mirror of
https://github.com/openharmony/distributedhardware_distributed_input.git
synced 2026-07-18 16:04:40 -04:00
@@ -180,7 +180,7 @@ size_t InputHub::GetEvents(RawEvent *buffer, size_t bufferSize)
|
||||
}
|
||||
if (!sharedDHIds_[device->identifier.descriptor]) {
|
||||
RecordDeviceChangeStates(device, readBuffer, count);
|
||||
DHLOGE("Not in sharing stat, device descriptor: %s",
|
||||
DHLOGD("Not in sharing stat, device descriptor: %s",
|
||||
GetAnonyString(device->identifier.descriptor).c_str());
|
||||
continue;
|
||||
}
|
||||
@@ -204,7 +204,7 @@ size_t InputHub::GetEvents(RawEvent *buffer, size_t bufferSize)
|
||||
bool InputHub::IsTouchPad(const InputDevice &inputDevice)
|
||||
{
|
||||
std::string dhName = inputDevice.name;
|
||||
DHLOGI("device name is %s.", dhName.c_str());
|
||||
DHLOGD("device name is %s.", dhName.c_str());
|
||||
transform(dhName.begin(), dhName.end(), dhName.begin(), ::tolower);
|
||||
if (dhName.find(DH_TOUCH_PAD) == std::string::npos) {
|
||||
return false;
|
||||
@@ -1314,7 +1314,7 @@ void InputHub::RecordChangeEventLog(const RawEvent &event)
|
||||
eventType = "other type " + std::to_string(event.type);
|
||||
break;
|
||||
}
|
||||
DHLOGD("0.E2E-Test Sink collect change event, EventType: %s, Code: %d, Value: %d, Path: %s, descriptor: %s,"
|
||||
DHLOGI("0.E2E-Test Sink collect change event, EventType: %s, Code: %d, Value: %d, Path: %s, descriptor: %s,"
|
||||
"When:%" PRId64 "", eventType.c_str(), event.code, event.value, event.path.c_str(),
|
||||
GetAnonyString(event.descriptor).c_str(), event.when);
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@ void DistributedInputCollector::StartCollectEventsThread()
|
||||
}
|
||||
size_t count = inputHub_->StartCollectInputEvents(mEventBuffer, INPUT_EVENT_BUFFER_SIZE);
|
||||
if (count > 0) {
|
||||
DHLOGI("Count: %zu", count);
|
||||
DHLOGD("Count: %zu", count);
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -69,7 +69,7 @@ DistributedInputSinkTransport &DistributedInputSinkTransport::GetInstance()
|
||||
|
||||
void DistributedInputSinkTransport::DInputSinkEventHandler::ProcessEvent(const AppExecFwk::InnerEvent::Pointer &event)
|
||||
{
|
||||
DHLOGI("ProcessEvent");
|
||||
DHLOGD("ProcessEvent");
|
||||
EHandlerMsgType eventId = static_cast<EHandlerMsgType>(event->GetInnerEventId());
|
||||
switch (eventId) {
|
||||
case EHandlerMsgType::DINPUT_SINK_EVENT_HANDLER_MSG: {
|
||||
|
||||
@@ -1107,7 +1107,7 @@ void DistributedInputSourceTransport::CalculateLatency(int32_t sessionId, const
|
||||
recvNum_ += 1;
|
||||
eachLatencyDetails_ += (std::to_string(deltaTime_) + DINPUT_SPLIT_COMMA);
|
||||
if (deltaTime_ >= MSG_LATENCY_ALARM_US) {
|
||||
DHLOGW("The RTT time between send req and receive rsp is too long: llu% us");
|
||||
DHLOGW("The RTT time between send req and receive rsp is too long: %llu us", deltaTime_);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -485,7 +485,7 @@ void DistributedInputTransportBase::HandleSession(int32_t sessionId, const std::
|
||||
return;
|
||||
}
|
||||
uint32_t cmdType = recMsg[DINPUT_SOFTBUS_KEY_CMD_TYPE];
|
||||
DHLOGI("HandleSession cmdType %u.", cmdType);
|
||||
DHLOGD("HandleSession cmdType %u.", cmdType);
|
||||
if (cmdType < TRANS_MSG_SRC_SINK_SPLIT) {
|
||||
if (srcCallback_ == nullptr) {
|
||||
DHLOGE("srcCallback is nullptr.");
|
||||
|
||||
Reference in New Issue
Block a user