Home
last modified time | relevance | path

Searched refs:Power (Results 1 - 9 of 9) sorted by relevance

/base/powermgr/power_manager/frameworks/napi/power/
H A Dpower_module.cpp73 POWER_HILOGD(COMP_FWK, "Initialize the Power module"); in PowerInit()
76 DECLARE_NAPI_FUNCTION("shutdownDevice", Power::ShutdownDevice), in PowerInit()
77 DECLARE_NAPI_FUNCTION("rebootDevice", Power::RebootDevice), in PowerInit()
78 DECLARE_NAPI_FUNCTION("isScreenOn", Power::IsScreenOn), in PowerInit()
79 DECLARE_NAPI_FUNCTION("wakeupDevice", Power::WakeupDevice), in PowerInit()
80 DECLARE_NAPI_FUNCTION("suspendDevice", Power::SuspendDevice), in PowerInit()
95 POWER_HILOGD(COMP_FWK, "The initialization of the Power module is complete"); in PowerInit()
H A Dpower.cpp37 napi_value Power::RebootOrShutdown(napi_env env, napi_callback_info info, bool isReboot) in RebootOrShutdown()
66 napi_value Power::ShutdownDevice(napi_env env, napi_callback_info info) in ShutdownDevice()
71 napi_value Power::RebootDevice(napi_env env, napi_callback_info info) in RebootDevice()
76 void Power::IsScreenOnCallBack(napi_env env, std::unique_ptr<PowerAsyncCallbackInfo>& asCallbackInfoPtr) in IsScreenOnCallBack()
110 napi_value Power::IsScreenOn(napi_env env, napi_callback_info info) in IsScreenOn()
149 napi_value Power::WakeupDevice(napi_env env, napi_callback_info info) in WakeupDevice()
174 napi_value Power::SuspendDevice(napi_env env, napi_callback_info info) in SuspendDevice()
H A Dpower.h36 class Power { class
/base/powermgr/power_manager/services/native/src/actions/default/
H A Dsystem_suspend_controller.h54 class PowerHdfCallback : public OHOS::HDI::Power::V1_2::IPowerHdiCallback {
65 OHOS::HDI::Power::V1_2::RunningLockInfo FillRunningLockInfo(const RunningLockParam& param);
68 sptr<OHOS::HDI::Power::V1_2::IPowerInterface> powerInterface_ { nullptr };
H A Dsystem_suspend_controller.cpp30 using namespace OHOS::HDI::Power::V1_2;
174 OHOS::HDI::Power::V1_2::RunningLockInfo SystemSuspendController::FillRunningLockInfo(const RunningLockParam& param) in FillRunningLockInfo()
176 OHOS::HDI::Power::V1_2::RunningLockInfo filledInfo {}; in FillRunningLockInfo()
178 filledInfo.type = static_cast<OHOS::HDI::Power::V1_2::RunningLockType>(param.type); in FillRunningLockInfo()
192 OHOS::HDI::Power::V1_2::RunningLockInfo filledInfo = FillRunningLockInfo(param); in AcquireRunningLock()
205 OHOS::HDI::Power::V1_2::RunningLockInfo filledInfo = FillRunningLockInfo(param); in ReleaseRunningLock()
/base/powermgr/power_manager/services/native/src/
H A Dpower_hdi_callback.cpp19 using namespace OHOS::HDI::Power::V1_2;
/base/powermgr/power_manager/services/native/include/
H A Dpower_hdi_callback.h24 using namespace OHOS::HDI::Power::V1_2;
/base/telephony/ril_adapter/services/hril/src/
H A Dhril_manager.cpp44 using namespace OHOS::HDI::Power::V1_2;
161 static OHOS::HDI::Power::V1_2::RunningLockInfo FillRunningLockInfo(const std::string &name, int32_t timeoutMs) in FillRunningLockInfo()
163 OHOS::HDI::Power::V1_2::RunningLockInfo filledInfo {}; in FillRunningLockInfo()
165 filledInfo.type = OHOS::HDI::Power::V1_2::RunningLockType::RUNNINGLOCK_BACKGROUND_PHONE; in FillRunningLockInfo()
188 OHOS::HDI::Power::V1_2::RunningLockInfo filledInfo = FillRunningLockInfo( in RunningLockCallback()
205 OHOS::HDI::Power::V1_2::RunningLockInfo filledInfo = FillRunningLockInfo( in ApplyRunningLock()
241 OHOS::HDI::Power::V1_2::RunningLockInfo filledInfo = FillRunningLockInfo( in ReleaseRunningLock()
/base/telephony/ril_adapter/services/hril/include/
H A Dhril_manager.h227 sptr<OHOS::HDI::Power::V1_2::IPowerInterface> powerInterface_ { nullptr };

Completed in 6 milliseconds