Home
last modified time | relevance | path

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

/ohos5.0/base/powermgr/power_manager/frameworks/napi/power/
H A Dpower_napi.cpp45 static PowerMgrClient& g_powerMgrClient = PowerMgrClient::GetInstance(); variable
59 bool isScreen = g_powerMgrClient.IsScreenOn(); in IsActive()
106 code = g_powerMgrClient.ForceSuspendDevice(); in Suspend()
108 code = g_powerMgrClient.SuspendDevice(); in Suspend()
136 PowerErrors code = g_powerMgrClient.Hibernate(clearMemory); in Hibernate()
170 PowerMode mode = g_powerMgrClient.GetDeviceMode(); in GetPowerMode()
216 code = g_powerMgrClient.RebootDevice(reason); in RebootOrShutdown()
218 code = g_powerMgrClient.ShutDownDevice(reason); in RebootOrShutdown()
331 code = g_powerMgrClient.RestoreScreenOffTime(); in SetScreenOffTime()
333 code = g_powerMgrClient.OverrideScreenOffTime(timeout); in SetScreenOffTime()
[all …]
H A Dpower.cpp34 static PowerMgrClient& g_powerMgrClient = PowerMgrClient::GetInstance(); variable
59 g_powerMgrClient.RebootDeviceForDeprecated(std::string(reason)); in RebootOrShutdown()
61 g_powerMgrClient.ShutDownDevice(std::string(reason)); in RebootOrShutdown()
84 asyncCallbackInfo->screenOn = g_powerMgrClient.IsScreenOn(); in IsScreenOnCallBack()
171 g_powerMgrClient.WakeupDevice(WakeupDeviceType::WAKEUP_DEVICE_APPLICATION, std::string(reason)); in WakeupDevice()
184 g_powerMgrClient.SuspendDevice(SuspendDeviceType::SUSPEND_DEVICE_REASON_APPLICATION, false); in SuspendDevice()
/ohos5.0/base/powermgr/thermal_manager/services/native/src/thermal_action/action/
H A Daction_popup.cpp33 static PowerMgrClient& g_powerMgrClient = PowerMgrClient::GetInstance(); variable
97 g_powerMgrClient.RefreshActivity(UserActivityType::USER_ACTIVITY_TYPE_ATTENTION); in HandlePopupEvent()
101 g_powerMgrClient.RefreshActivity(UserActivityType::USER_ACTIVITY_TYPE_ATTENTION); in HandlePopupEvent()
/ohos5.0/base/powermgr/power_manager/frameworks/napi/runninglock/
H A Drunninglock_interface.cpp37 static PowerMgrClient& g_powerMgrClient = PowerMgrClient::GetInstance(); variable
251 …asyncInfo->runningLock = g_powerMgrClient.CreateRunningLock(std::string(asyncInfo->name), asyncInf… in CreateRunningLockCallBack()