mirror of
https://github.com/openharmony/distributedhardware_distributed_input.git
synced 2026-07-19 17:43:35 -04:00
@@ -73,7 +73,7 @@ void DistributedInputClient::AddWhiteListInfosCb::OnResult(const std::string &de
|
||||
return;
|
||||
}
|
||||
size_t jsonSize = inputData.size();
|
||||
DHLOGI("AddWhiteListInfosCb OnResult json size:%d.\n", jsonSize);
|
||||
DHLOGI("AddWhiteListInfosCb OnResult json size:%zu.\n", jsonSize);
|
||||
TYPE_WHITE_LIST_VEC vecWhiteList = inputData;
|
||||
WhiteListUtil::GetInstance().SyncWhiteList(deviceId, vecWhiteList);
|
||||
}
|
||||
|
||||
@@ -643,7 +643,7 @@ void DistributedInputClient::AddWhiteListInfos(const std::string &deviceId, cons
|
||||
return;
|
||||
}
|
||||
size_t jsonSize = inputData.size();
|
||||
DHLOGI("AddWhiteListInfosCb OnResult deviceId: %s, json str: %s, json size:%d.\n",
|
||||
DHLOGI("AddWhiteListInfosCb OnResult deviceId: %s, json str: %s, json size:%zu.\n",
|
||||
GetAnonyString(deviceId).c_str(), GetAnonyString(strJson).c_str(), jsonSize);
|
||||
TYPE_WHITE_LIST_VEC vecWhiteList = inputData;
|
||||
WhiteListUtil::GetInstance().SyncWhiteList(deviceId, vecWhiteList);
|
||||
@@ -668,7 +668,7 @@ void DistributedInputClient::UpdateSinkScreenInfos(const std::string &strJson)
|
||||
return;
|
||||
}
|
||||
size_t jsonSize = inputData.size();
|
||||
DHLOGI("OnResult json str: %s, json size:%d.\n", GetAnonyString(strJson).c_str(), jsonSize);
|
||||
DHLOGI("OnResult json str: %s, json size:%zu.\n", GetAnonyString(strJson).c_str(), jsonSize);
|
||||
std::vector<std::vector<uint32_t>> transInfos = inputData;
|
||||
for (auto info : transInfos) {
|
||||
if (info.size() != SINK_SCREEN_INFO_SIZE) {
|
||||
|
||||
@@ -748,7 +748,7 @@ void DistributedInputSinkManager::ProjectWindowListener::OnMessage(const DHTopic
|
||||
{
|
||||
DHLOGI("ProjectWindowListener OnMessage!");
|
||||
if (topic != DHTopic::TOPIC_SINK_PROJECT_WINDOW_INFO) {
|
||||
DHLOGE("this topic is wrong, %d", static_cast<uint32_t>(topic));
|
||||
DHLOGE("this topic is wrong, %u", static_cast<uint32_t>(topic));
|
||||
return;
|
||||
}
|
||||
std::string srcDeviceId = "";
|
||||
@@ -876,7 +876,7 @@ void DistributedInputSinkManager::PluginStartListener::OnMessage(const DHTopic t
|
||||
{
|
||||
DHLOGI("PluginStartListener OnMessage!");
|
||||
if (topic != DHTopic::TOPIC_PHY_DEV_PLUGIN) {
|
||||
DHLOGE("this topic is wrong, %d", static_cast<uint32_t>(topic));
|
||||
DHLOGE("this topic is wrong, %u", static_cast<uint32_t>(topic));
|
||||
return;
|
||||
}
|
||||
if (message.empty()) {
|
||||
|
||||
@@ -210,7 +210,7 @@ void DistributedInputSinkTransport::SendKeyStateNodeMsg(const int32_t sessionId,
|
||||
DHLOGE("SendKeyStateNodeMsg error, sessionId <= 0.");
|
||||
return;
|
||||
}
|
||||
DHLOGI("SendKeyStateNodeMsg sessionId: %d, btnCode: %d.", sessionId, btnCode);
|
||||
DHLOGI("SendKeyStateNodeMsg sessionId: %d, btnCode: %u.", sessionId, btnCode);
|
||||
nlohmann::json jsonStr;
|
||||
jsonStr[DINPUT_SOFTBUS_KEY_CMD_TYPE] = TRANS_SINK_MSG_KEY_STATE;
|
||||
jsonStr[DINPUT_SOFTBUS_KEY_KEYSTATE_DHID] = dhId;
|
||||
|
||||
@@ -346,7 +346,7 @@ void DInputSourceListener::OnReceivedEventRemoteInput(const std::string deviceId
|
||||
}
|
||||
|
||||
size_t jsonSize = inputData.size();
|
||||
DHLOGD("OnReceivedEventRemoteInput called, deviceId: %s, json size:%d.",
|
||||
DHLOGD("OnReceivedEventRemoteInput called, deviceId: %s, json size:%zu.",
|
||||
GetAnonyString(deviceId).c_str(), jsonSize);
|
||||
|
||||
std::vector<RawEvent> mEventBuffer(jsonSize);
|
||||
|
||||
@@ -1632,7 +1632,7 @@ void DistributedInputSourceManager::StopDScreenListener::OnMessage(const DHTopic
|
||||
{
|
||||
DHLOGI("StopDScreenListener OnMessage!");
|
||||
if (topic != DHTopic::TOPIC_STOP_DSCREEN) {
|
||||
DHLOGE("this topic is wrong, %d", static_cast<uint32_t>(topic));
|
||||
DHLOGE("this topic is wrong, %u", static_cast<uint32_t>(topic));
|
||||
return;
|
||||
}
|
||||
std::string sinkDevId = "";
|
||||
@@ -1700,7 +1700,7 @@ void DistributedInputSourceManager::DeviceOfflineListener::OnMessage(const DHTop
|
||||
{
|
||||
DHLOGI("DeviceOfflineListener OnMessage!");
|
||||
if (topic != DHTopic::TOPIC_DEV_OFFLINE) {
|
||||
DHLOGE("this topic is wrong, %d", static_cast<uint32_t>(topic));
|
||||
DHLOGE("this topic is wrong, %u", static_cast<uint32_t>(topic));
|
||||
return;
|
||||
}
|
||||
if (message.empty()) {
|
||||
|
||||
@@ -95,7 +95,7 @@ void OnFile(int32_t socket, FileEvent *event)
|
||||
|
||||
void OnQos(int32_t socket, QoSEvent eventId, const QosTV *qos, uint32_t qosCount)
|
||||
{
|
||||
DHLOGI("OnQos, socket: %d, QoSEvent: %d, qosCount: %ld", socket, (int32_t)eventId, qosCount);
|
||||
DHLOGI("OnQos, socket: %d, QoSEvent: %d, qosCount: %u", socket, (int32_t)eventId, qosCount);
|
||||
for (uint32_t idx = 0; idx < qosCount; idx++) {
|
||||
DHLOGI("QosTV: type: %d, value: %d", (int32_t)qos[idx].qos, qos[idx].value);
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ void DistributedInputClient::AddWhiteListInfosCb::OnResult(const std::string &de
|
||||
return;
|
||||
}
|
||||
size_t jsonSize = inputData.size();
|
||||
DHLOGI("AddWhiteListInfosCb OnResult json size:%d.\n", jsonSize);
|
||||
DHLOGI("AddWhiteListInfosCb OnResult json size:%zu.\n", jsonSize);
|
||||
TYPE_WHITE_LIST_VEC vecWhiteList = inputData;
|
||||
WhiteListUtil::GetInstance().SyncWhiteList(deviceId, vecWhiteList);
|
||||
}
|
||||
|
||||
@@ -69,7 +69,7 @@ void DistributedInputClient::AddWhiteListInfosCb::OnResult(const std::string &de
|
||||
return;
|
||||
}
|
||||
size_t jsonSize = inputData.size();
|
||||
DHLOGI("AddWhiteListInfosCb OnResult json size:%d.\n", jsonSize);
|
||||
DHLOGI("AddWhiteListInfosCb OnResult json size:%zu.\n", jsonSize);
|
||||
TYPE_WHITE_LIST_VEC vecWhiteList = inputData;
|
||||
WhiteListUtil::GetInstance().SyncWhiteList(deviceId, vecWhiteList);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user