Home
last modified time | relevance | path

Searched refs:powerScene (Results 1 - 7 of 7) sorted by relevance

/base/customization/enterprise_device_management/interfaces/kits/device_settings/include/
H A Ddevice_settings_addon.h57 static bool JsObjToPowerScene(napi_env env, napi_value object, PowerScene &powerScene);
65 static bool JsStrToPowerScene(napi_env env, std::string jsStr, PowerScene &powerScene);
68 napi_env env, PowerScene &powerScene, PowerPolicy &powerPolicy, std::string &info);
/base/customization/enterprise_device_management/interfaces/inner_api/device_settings/include/
H A Ddevice_settings_proxy.h36 int32_t SetPowerPolicy(const AppExecFwk::ElementName &admin, const PowerScene &powerScene,
38 int32_t GetPowerPolicy(const AppExecFwk::ElementName &admin, const PowerScene &powerScene,
/base/customization/enterprise_device_management/interfaces/kits/device_settings/src/
H A Ddevice_settings_addon.cpp97 PowerScene powerScene; in SetPowerPolicy() local
98 ASSERT_AND_THROW_PARAM_ERROR(env, JsObjToPowerScene(env, argv[ARR_INDEX_ONE], powerScene), in SetPowerPolicy()
103 int32_t ret = DeviceSettingsProxy::GetDeviceSettingsProxy()->SetPowerPolicy(elementName, powerScene, powerPolicy); in SetPowerPolicy()
125 PowerScene powerScene; in GetPowerPolicy() local
126 ASSERT_AND_THROW_PARAM_ERROR(env, JsObjToPowerScene(env, argv[ARR_INDEX_ONE], powerScene), in GetPowerPolicy()
129 int32_t ret = DeviceSettingsProxy::GetDeviceSettingsProxy()->GetPowerPolicy(elementName, powerScene, powerPolicy); in GetPowerPolicy()
139 bool DeviceSettingsAddon::JsObjToPowerScene(napi_env env, napi_value object, PowerScene &powerScene) in JsObjToPowerScene() argument
143 powerScene = PowerScene(powerInt); in JsObjToPowerScene()
416 PowerScene powerScene; in SetValue() local
417 ASSERT_AND_THROW_PARAM_ERROR(env, JsStrToPowerScene(env, value, powerScene), "para in SetValue()
460 PowerScene powerScene = PowerScene::TIME_OUT; GetValue() local
479 JsStrToPowerScene(napi_env env, std::string jsStr, PowerScene &powerScene) JsStrToPowerScene() argument
522 ConvertPowerPolicyToJsStr(napi_env env, PowerScene &powerScene, PowerPolicy &powerPolicy, std::string &info) ConvertPowerPolicyToJsStr() argument
[all...]
/base/customization/enterprise_device_management/test/fuzztest/powerpolicyplugin_fuzzer/
H A Dpower_policy_plugin_fuzzer.cpp58 uint32_t powerScene = CommonFuzzer::GetU32Data(data); in LLVMFuzzerTestOneInput() local
59 parcel.WriteUint32(powerScene); in LLVMFuzzerTestOneInput()
/base/customization/enterprise_device_management/interfaces/inner_api/device_settings/src/
H A Ddevice_settings_proxy.cpp124 int32_t DeviceSettingsProxy::SetPowerPolicy(const AppExecFwk::ElementName &admin, const PowerScene &powerScene, in SetPowerPolicy() argument
135 data.WriteUint32(static_cast<uint32_t>(powerScene)); in SetPowerPolicy()
143 int32_t DeviceSettingsProxy::GetPowerPolicy(const AppExecFwk::ElementName &admin, const PowerScene &powerScene, in GetPowerPolicy() argument
154 data.WriteUint32(static_cast<uint32_t>(powerScene)); in GetPowerPolicy()
/base/customization/enterprise_device_management/services/edm_plugin/include/
H A Dpower_policy_plugin.h48 bool GetPowerSceneKey(const uint32_t &powerScene, std::string &sceneKey);
/base/customization/enterprise_device_management/services/edm_plugin/src/
H A Dpower_policy_plugin.cpp192 bool PowerPolicyPlugin::GetPowerSceneKey(const uint32_t &powerScene, std::string &sceneKey) in GetPowerSceneKey() argument
194 if (powerScene == static_cast<uint32_t>(PowerScene::TIME_OUT)) { in GetPowerSceneKey()

Completed in 4 milliseconds