From 41f1294d8fe8ef843cbccdb67e497d316bb3de7b Mon Sep 17 00:00:00 2001 From: Mupceet Date: Wed, 9 Mar 2022 11:27:43 +0800 Subject: [PATCH] delete PowerMgr::PowerMgrClient::GetInstance().RefreshActivity Signed-off-by: Mupceet --- services/aams/src/accessibility_input_interceptor.cpp | 1 - services/aams/src/accessibility_keyevent_filter.cpp | 3 --- services/aams/test/mock/accessibility_keyevent_filter_mock.cpp | 1 - 3 files changed, 5 deletions(-) diff --git a/services/aams/src/accessibility_input_interceptor.cpp b/services/aams/src/accessibility_input_interceptor.cpp index 98144b0b..25a52a5d 100644 --- a/services/aams/src/accessibility_input_interceptor.cpp +++ b/services/aams/src/accessibility_input_interceptor.cpp @@ -20,7 +20,6 @@ #include "accessibility_zoom_handler.h" #include "accessible_ability_manager_service.h" #include "hilog_wrapper.h" -#include "power_mgr_client.h" #include "key_event.h" #include "input_event.h" diff --git a/services/aams/src/accessibility_keyevent_filter.cpp b/services/aams/src/accessibility_keyevent_filter.cpp index d125d695..2e0fea8a 100644 --- a/services/aams/src/accessibility_keyevent_filter.cpp +++ b/services/aams/src/accessibility_keyevent_filter.cpp @@ -16,7 +16,6 @@ #include "accessibility_keyevent_filter.h" #include "accessible_ability_manager_service.h" #include "hilog_wrapper.h" -#include "power_mgr_client.h" namespace OHOS { namespace Accessibility { @@ -81,8 +80,6 @@ void KeyEventFilter::SetServiceOnKeyEventResult(AccessibleAbilityConnection &con } } else { timeouthandler_->RemoveEvent(processingEvent->seqNum_); - PowerMgr::PowerMgrClient::GetInstance().RefreshActivity( - PowerMgr::UserActivityType::USER_ACTIVITY_TYPE_ACCESSIBILITY); RemoveProcessingEvent(processingEvent); } } diff --git a/services/aams/test/mock/accessibility_keyevent_filter_mock.cpp b/services/aams/test/mock/accessibility_keyevent_filter_mock.cpp index 607470a7..4ae80df7 100644 --- a/services/aams/test/mock/accessibility_keyevent_filter_mock.cpp +++ b/services/aams/test/mock/accessibility_keyevent_filter_mock.cpp @@ -16,7 +16,6 @@ #include "accessibility_keyevent_filter.h" #include "accessible_ability_manager_service.h" #include "hilog_wrapper.h" -#include "power_mgr_client.h" bool g_testKeyEvent = false; namespace OHOS {