Home
last modified time | relevance | path

Searched refs:PowerPolicyAction (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/base/customization/enterprise_device_management/interfaces/inner_api/device_settings/include/
H A Dpower_policy.h27 enum class PowerPolicyAction : uint32_t { enum
43 [[nodiscard]] PowerPolicyAction GetPowerPolicyAction() const;
47 PowerPolicyAction powerPolicyAction_ = PowerPolicyAction::AUTO_SUSPEND;
/ohos5.0/base/customization/enterprise_device_management/interfaces/inner_api/device_settings/src/
H A Dpower_policy.cpp48 if (action >= static_cast<uint32_t>(PowerPolicyAction::NONE) && in SetPowerPolicyAction()
49 action <= static_cast<uint32_t>(PowerPolicyAction::SHUTDOWN)) { in SetPowerPolicyAction()
50 powerPolicyAction_ = PowerPolicyAction(action); in SetPowerPolicyAction()
56 PowerPolicyAction PowerPolicy::GetPowerPolicyAction() const in GetPowerPolicyAction()
/ohos5.0/base/customization/enterprise_device_management/interfaces/kits/device_settings/src/
H A Ddevice_settings_addon.cpp36 napi_create_uint32(env, static_cast<uint32_t>(PowerPolicyAction::NONE), &nActionNone)); in CreatePowerPolicyActionObject()
40 …napi_create_uint32(env, static_cast<uint32_t>(PowerPolicyAction::AUTO_SUSPEND), &nActionAutoSuspen… in CreatePowerPolicyActionObject()
44 …napi_create_uint32(env, static_cast<uint32_t>(PowerPolicyAction::FORCE_SUSPEND), &nActionForceSusp… in CreatePowerPolicyActionObject()
48 … napi_create_uint32(env, static_cast<uint32_t>(PowerPolicyAction::HIBERNATE), &nActionHibernate)); in CreatePowerPolicyActionObject()
52 … napi_create_uint32(env, static_cast<uint32_t>(PowerPolicyAction::SHUTDOWN), &nActionShutDown)); in CreatePowerPolicyActionObject()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-mdm-kit/
H A Djs-apis-enterprise-deviceSettings-sys.md438 …let powerPolicyAction: deviceSettings.PowerPolicyAction = deviceSettings.PowerPolicyAction.AUTO_SU…
507 | powerPolicyAction | [PowerPolicyAction](#powerpolicyaction11) | 是 | 执行电源策略的动作。 |
520 ## PowerPolicyAction<sup>11+</sup>
/ohos5.0/docs/en/application-dev/reference/apis-mdm-kit/
H A Djs-apis-enterprise-deviceSettings-sys.md438 …let powerPolicyAction: deviceSettings.PowerPolicyAction = deviceSettings.PowerPolicyAction.AUTO_SU…
507 | powerPolicyAction | [PowerPolicyAction](#powerpolicyaction11) | Yes| Action to apply the power po…
520 ## PowerPolicyAction<sup>11+</sup>