From 4336ba895d77206e7300a157fa46a4254e5554f4 Mon Sep 17 00:00:00 2001 From: wangyantian Date: Wed, 21 Aug 2024 14:18:28 +0800 Subject: [PATCH] fix: Let BundleActivePowerStateCallbackService inherit from PowerStateCallbackStub Signed-off-by: wangyantian --- .../include/bundle_active_power_state_callback_service.h | 4 ++-- services/common/include/bundle_active_service.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/services/common/include/bundle_active_power_state_callback_service.h b/services/common/include/bundle_active_power_state_callback_service.h index 815ea6d..06d9335 100644 --- a/services/common/include/bundle_active_power_state_callback_service.h +++ b/services/common/include/bundle_active_power_state_callback_service.h @@ -16,13 +16,13 @@ #ifndef BUNDLE_ACTIVE_POWER_STATE_CALLBACK_SERVICE_H #define BUNDLE_ACTIVE_POWER_STATE_CALLBACK_SERVICE_H #ifdef DEVICE_USAGES_STATISTICS_POWERMANGER_ENABLE -#include "bundle_active_power_state_callback_stub.h" +#include "power_state_callback_stub.h" #include "bundle_active_core.h" namespace OHOS { namespace DeviceUsageStats { using OHOS::PowerMgr::PowerState; -class BundleActivePowerStateCallbackService : public BundleActivePowerStateCallbackStub { +class BundleActivePowerStateCallbackService : public PowerMgr::PowerStateCallbackStub { public: BundleActivePowerStateCallbackService(std::shared_ptr bundleActiveCore); virtual ~BundleActivePowerStateCallbackService() {} diff --git a/services/common/include/bundle_active_service.h b/services/common/include/bundle_active_service.h index 6e042cf..9bbfc9f 100644 --- a/services/common/include/bundle_active_service.h +++ b/services/common/include/bundle_active_service.h @@ -219,7 +219,7 @@ private: #endif #ifdef DEVICE_USAGES_STATISTICS_POWERMANGER_ENABLE sptr shutdownCallback_; - sptr powerStateCallback_; + sptr powerStateCallback_; #endif bool ready_ {false}; int32_t ConvertIntervalType(const int32_t intervalType); -- Gitee