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 815ea6df6cd4f967f8b144ebdd39d4506f624d28..06d933521c6ecbbfb4cd4144df75a2218b22f3a3 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 6e042cf20ae00fbb7f1b9c3f770115a0e46a88c8..9bbfc9f7b0770a8955afedf2d622c9049bf1d47d 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);