Home
last modified time | relevance | path

Searched refs:powerStateCallback_ (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/utils/
H A Ddh_context.cpp48 sptr<PowerMgr::IPowerStateCallback> powerStateCallback_(new DHFWKPowerStateCallback()); in RegisterPowerStateLinstener() local
49 if (powerStateCallback_ == nullptr) { in RegisterPowerStateLinstener()
54 …bool ret = PowerMgr::PowerMgrClient::GetInstance().RegisterPowerStateCallback(powerStateCallback_); in RegisterPowerStateLinstener()
/ohos5.0/foundation/resourceschedule/device_usage_statistics/services/common/src/
H A Dbundle_active_service.cpp149powerStateCallback_ = new (std::nothrow) BundleActivePowerStateCallbackService(bundleActiveCore_); in InitService()
155 if (powerStateCallback_) { in InitService()
156 powerManagerClient.RegisterPowerStateCallback(powerStateCallback_); in InitService()
238 powerManagerClient.UnRegisterPowerStateCallback(powerStateCallback_); in OnStop()
/ohos5.0/foundation/resourceschedule/device_usage_statistics/services/common/include/
H A Dbundle_active_service.h233 sptr<PowerMgr::IPowerStateCallback> powerStateCallback_; variable
/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/server/src/
H A Daudio_policy_server.cpp415 sptr<PowerMgr::IPowerStateCallback> powerStateCallback_; in SubscribePowerStateChangeEvents() local
417 if (powerStateCallback_ == nullptr) { in SubscribePowerStateChangeEvents()
418 powerStateCallback_ = new (std::nothrow) AudioPolicyServerPowerStateCallback(this); in SubscribePowerStateChangeEvents()
421 if (powerStateCallback_ == nullptr) { in SubscribePowerStateChangeEvents()
427 …erSuccess = PowerMgr::PowerMgrClient::GetInstance().RegisterPowerStateCallback(powerStateCallback_, in SubscribePowerStateChangeEvents()