Signed-off-by: hwzhangchuang <zhangchuang.zhang@huawei.com>
This commit is contained in:
hwzhangchuang
2023-12-05 21:41:47 +08:00
parent 2599344ee3
commit 10a0016b94
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -717,7 +717,7 @@ int32_t InputHub::GetEventKeys(struct libevdev *dev, InputDevice &identifier)
DHLOGD("The device is not support eventKey: %d", eventKey);
continue;
}
DHLOGI("QueryInputDeviceInfo eventKey: %d", eventKey);
DHLOGD("QueryInputDeviceInfo eventKey: %d", eventKey);
identifier.eventKeys.push_back(eventKey);
}
return DH_SUCCESS;
@@ -471,7 +471,7 @@ void DistributedInputNodeManager::InjectEvent()
if (ret != 0) {
DHLOGE("InjectEvent setname failed.");
}
DHLOGI("start");
DHLOGD("start");
while (isInjectThreadRunning_.load()) {
EventBatch events;
{
@@ -488,7 +488,7 @@ void DistributedInputNodeManager::InjectEvent()
DHLOGD("process event, inject queue size: %zu", injectQueue_.size());
ProcessInjectEvent(events);
}
DHLOGI("end");
DHLOGD("end");
}
void DistributedInputNodeManager::RegisterInjectEventCb(sptr<ISessionStateCallback> callback)
@@ -346,7 +346,7 @@ void DInputSourceListener::OnReceivedEventRemoteInput(const std::string deviceId
}
size_t jsonSize = inputData.size();
DHLOGI("OnReceivedEventRemoteInput called, deviceId: %s, json size:%d.",
DHLOGD("OnReceivedEventRemoteInput called, deviceId: %s, json size:%d.",
GetAnonyString(deviceId).c_str(), jsonSize);
std::vector<RawEvent> mEventBuffer(jsonSize);
@@ -1078,7 +1078,7 @@ void DistributedInputSourceTransport::NotifyResponseKeyStateBatch(int32_t sessio
void DistributedInputSourceTransport::NotifyReceivedEventRemoteInput(int32_t sessionId, const nlohmann::json &recMsg)
{
DHLOGI("OnBytesReceived cmdType is TRANS_SINK_MSG_BODY_DATA.");
DHLOGD("OnBytesReceived cmdType is TRANS_SINK_MSG_BODY_DATA.");
if (!IsString(recMsg, DINPUT_SOFTBUS_KEY_INPUT_DATA)) {
DHLOGE("The key is invaild.");
return;
@@ -1095,7 +1095,7 @@ void DistributedInputSourceTransport::NotifyReceivedEventRemoteInput(int32_t ses
void DistributedInputSourceTransport::CalculateLatency(int32_t sessionId, const nlohmann::json &recMsg)
{
DHLOGI("OnBytesReceived cmdType is TRANS_SINK_MSG_LATENCY.");
DHLOGD("OnBytesReceived cmdType is TRANS_SINK_MSG_LATENCY.");
std::string deviceId = DistributedInputTransportBase::GetInstance().GetDevIdBySessionId(sessionId);
if (deviceId.empty()) {
DHLOGE("OnBytesReceived cmdType is TRANS_SINK_MSG_LATENCY, deviceId is error.");