Signed-off-by: hwzhangchuang <zhangchuang.zhang@huawei.com>
This commit is contained in:
hwzhangchuang
2023-12-05 16:57:11 +08:00
parent a9fea13fe0
commit e2a8c7971f
5 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -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.");