From 747b1106d17bcf9489de67552f8b3b338afc746d Mon Sep 17 00:00:00 2001 From: wangdi Date: Sat, 6 Sep 2025 18:07:09 +0800 Subject: [PATCH] del deviceId Signed-off-by: wangdi --- services/src/common_event_control_manager.cpp | 3 +-- services/src/common_event_sticky_manager.cpp | 3 +-- services/src/common_event_subscriber_manager.cpp | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/services/src/common_event_control_manager.cpp b/services/src/common_event_control_manager.cpp index 5dfcc352..a6df2679 100644 --- a/services/src/common_event_control_manager.cpp +++ b/services/src/common_event_control_manager.cpp @@ -827,9 +827,8 @@ void CommonEventControlManager::DumpStateByCommonEventRecord( std::string type = "\t\tType: " + record->commonEventData->GetWant().GetType() + "\n"; std::string bundle = "\t\tBundleName: " + record->commonEventData->GetWant().GetBundle() + "\n"; std::string ability = "\t\tAbilityName: " + record->commonEventData->GetWant().GetElement().GetAbilityName() + "\n"; - std::string deviced = "\t\tDevicedID: " + record->commonEventData->GetWant().GetElement().GetDeviceID() + "\n"; - std::string want = "\tWant:\n" + action + entities + scheme + uri + flags + type + bundle + ability + deviced; + std::string want = "\tWant:\n" + action + entities + scheme + uri + flags + type + bundle + ability; std::string code = "\tCode: " + std::to_string(record->commonEventData->GetCode()) + "\n"; std::string data = "\tData: " + record->commonEventData->GetData() + "\n"; diff --git a/services/src/common_event_sticky_manager.cpp b/services/src/common_event_sticky_manager.cpp index f1f3ac99..f6676f54 100644 --- a/services/src/common_event_sticky_manager.cpp +++ b/services/src/common_event_sticky_manager.cpp @@ -156,9 +156,8 @@ void CommonEventStickyManager::DumpState( std::string bundle = "\t\tBundleName: " + record->commonEventData->GetWant().GetBundle() + "\n"; std::string ability = "\t\tAbilityName: " + record->commonEventData->GetWant().GetElement().GetAbilityName() + "\n"; - std::string deviced = "\t\tDevicedID: " + record->commonEventData->GetWant().GetElement().GetDeviceID() + "\n"; - std::string want = "\tWant:\n" + action + entities + scheme + uri + flags + type + bundle + ability + deviced; + std::string want = "\tWant:\n" + action + entities + scheme + uri + flags + type + bundle + ability; std::string code = "\tCode: " + std::to_string(record->commonEventData->GetCode()) + "\n"; std::string data = "\tData: " + record->commonEventData->GetData() + "\n"; diff --git a/services/src/common_event_subscriber_manager.cpp b/services/src/common_event_subscriber_manager.cpp index 826ce23f..06e44fce 100644 --- a/services/src/common_event_subscriber_manager.cpp +++ b/services/src/common_event_subscriber_manager.cpp @@ -181,7 +181,6 @@ void CommonEventSubscriberManager::DumpDetailed( } userId = format + "USERID: " + userId + "\n"; std::string permission = format + "Permission: " + record->eventSubscribeInfo->GetPermission() + "\n"; - std::string deviceId = format + "DevicedID: " + record->eventSubscribeInfo->GetDeviceId() + "\n"; std::string events = format + "\tEvent: "; std::string separator; @@ -232,7 +231,7 @@ void CommonEventSubscriberManager::DumpDetailed( freezeTime = format + "FreezeTime: " + std::to_string(record->freezeTime) + "\n"; } - dumpInfo = title + recordTime + pid + uid + bundleName + priority + userId + permission + deviceId + + dumpInfo = title + recordTime + pid + uid + bundleName + priority + userId + permission + matchingSkills + isFreeze + freezeTime; } -- Gitee