mirror of
https://github.com/openharmony/distributedhardware_distributed_input.git
synced 2026-07-18 16:04:40 -04:00
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user