/ohos5.0/docs/zh-cn/application-dev/reference/apis-basic-services-kit/ |
H A D | js-apis-battery-info-sys.md | 20 setBatteryConfig(sceneName: string, sceneValue: string): number 32 | sceneName | string | 是 | 设置场景名称;该参数必须为字符串类型。 | 56 let sceneName = 'xxx'; 65 getBatteryConfig(sceneName: string): string 77 | sceneName | string | 是 | 设置场景名称;该参数必须为字符串类型。 | 100 let sceneName = 'xxx'; 101 let result = batteryInfo.getBatteryConfig(sceneName); 108 isBatteryConfigSupported(sceneName: string): boolean 120 | sceneName | string | 是 | 设置场景名称;该参数必须为字符串类型。 | 143 let sceneName = 'xxx'; [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/render/ |
H A D | render_node_scene_util.cpp | 315 … RENDER_NS::IRenderNodeContextManager& renderNodeContextMgr, const BASE_NS::string_view sceneName) in GetSceneBufferHandles() argument 350 … RENDER_NS::IRenderNodeContextManager& renderNodeContextMgr, const BASE_NS::string_view sceneName, in GetSceneCameraBufferHandles() argument 356 sceneName + DefaultMaterialCameraConstants::CAMERA_GENERAL_BUFFER_PREFIX_NAME + cameraName); in GetSceneCameraBufferHandles() 358 … sceneName + DefaultMaterialCameraConstants::CAMERA_ENVIRONMENT_BUFFER_PREFIX_NAME + cameraName); in GetSceneCameraBufferHandles() 362 … sceneName + DefaultMaterialCameraConstants::CAMERA_POST_PROCESS_BUFFER_PREFIX_NAME + cameraName); in GetSceneCameraBufferHandles() 365 sceneName + DefaultMaterialCameraConstants::CAMERA_LIGHT_BUFFER_PREFIX_NAME + cameraName); in GetSceneCameraBufferHandles() 391 … RENDER_NS::IRenderNodeContextManager& renderNodeContextMgr, const BASE_NS::string_view sceneName, in GetSceneCameraImageHandles() argument 446 IRenderNodeContextManager& renderNodeContextMgr, const string_view sceneName) in GetSceneBufferHandles() argument 448 return RenderNodeSceneUtil::GetSceneBufferHandles(renderNodeContextMgr, sceneName); in GetSceneBufferHandles() 454 …return RenderNodeSceneUtil::GetSceneCameraBufferHandles(renderNodeContextMgr, sceneName, cameraNam… in GetSceneCameraBufferHandles() [all …]
|
H A D | render_node_scene_util.h | 62 … RENDER_NS::IRenderNodeContextManager& renderNodeContextMgr, const BASE_NS::string_view sceneName); 64 … RENDER_NS::IRenderNodeContextManager& renderNodeContextMgr, const BASE_NS::string_view sceneName, 67 … RENDER_NS::IRenderNodeContextManager& renderNodeContextMgr, const BASE_NS::string_view sceneName, 88 …S::IRenderNodeContextManager& renderNodeContextMgr, const BASE_NS::string_view sceneName) override; 90 const BASE_NS::string_view sceneName, const BASE_NS::string_view cameraName) override; 92 const BASE_NS::string_view sceneName, const BASE_NS::string_view cameraName,
|
/ohos5.0/docs/zh-cn/device-dev/subsystems/ |
H A D | subsys-power-charge-common-framework-guide.md | 102 * @param { string } sceneName - Indicates the battery charging scene name. 113 function setBatteryConfig(sceneName: string, sceneValue: string): number; 118 * @param { string } sceneName - Indicates the battery charging scene name. 128 function getBatteryConfig(sceneName: string): string; 133 * @param { string } sceneName - Indicates the battery charging scene name. 143 function isBatteryConfigSupported(sceneName: string): boolean; 150 - setBatteryConfig:设置电池配置,sceneName表示充电场景名称,sceneValue表示充电场景配置值,返回值为0表示设置成功,其他表示设置失败 152 - getBatteryConfig:查询电池配置,sceneName表示充电场景名称,返回值表示充电场景配置值 154 - isBatteryConfigSupported:是否支持电池配置,sceneName表示充电场景名称,返回值为true表示支持该充电场景,返回值为false表示不支持该充电场景
|
/ohos5.0/docs/zh-cn/device-dev/reference/hdi-apis/battery/ |
H A D | interface_i_battery_interface_v12.md | 38 | [SetBatteryConfig](#setbatteryconfig) ([in] String sceneName, [in] String value) | 根据场景名称设置电池配置 | 39 | [GetBatteryConfig](#getbatteryconfig) ([in] String sceneName, [out] String value) | 根据场景名称获取电池配置 … 40 | [IsBatteryConfigSupported](#isbatteryconfigsupported) ([in] String sceneName, [out] boolean value… 74 IBatteryInterface::GetBatteryConfig ([in] String sceneName, [out] String value ) 87 | sceneName | 输入参数,电池充电场景名称。 | 466 IBatteryInterface::IsBatteryConfigSupported ([in] String sceneName, [out] boolean value ) 479 | sceneName | 输入参数,电池充电场景名称。 | 517 IBatteryInterface::SetBatteryConfig ([in] String sceneName, [in] String value ) 530 | sceneName | 输入参数,电池充电场景名称。 |
|
H A D | interface_i_battery_interface_v20.md | 38 | [SetBatteryConfig](#setbatteryconfig) ([in] String sceneName, [in] String value) | 根据场景名称设置电池配置 。… 39 | [GetBatteryConfig](#getbatteryconfig) ([in] String sceneName, [out] String value) | 根据场景名称获取电池配置 … 40 | [IsBatteryConfigSupported](#isbatteryconfigsupported) ([in] String sceneName, [out] boolean value… 74 IBatteryInterface::GetBatteryConfig ([in] String sceneName, [out] String value ) 87 | sceneName | 输入参数,电池充电场景名称。 | 466 IBatteryInterface::IsBatteryConfigSupported ([in] String sceneName, [out] boolean value ) 479 | sceneName | 输入参数,电池充电场景名称。 | 517 IBatteryInterface::SetBatteryConfig ([in] String sceneName, [in] String value ) 530 | sceneName | 输入参数,电池充电场景名称。 |
|
/ohos5.0/docs/en/application-dev/reference/apis-basic-services-kit/ |
H A D | js-apis-battery-info-sys.md | 20 setBatteryConfig(sceneName: string, sceneValue: string): number 32 | sceneName | string | Yes | Scenario name. The value must be a string.| 56 let sceneName = 'xxx'; 58 let result = batteryInfo.setBatteryConfig(sceneName, sceneValue); 65 getBatteryConfig(sceneName: string): string 77 | sceneName | string | Yes | Scenario name. The value must be a string.| 100 let sceneName = 'xxx'; 101 let result = batteryInfo.getBatteryConfig(sceneName); 108 isBatteryConfigSupported(sceneName: string): boolean 143 let sceneName = 'xxx'; [all …]
|
/ohos5.0/base/powermgr/battery_manager/services/zidl/src/ |
H A D | battery_srv_stub.cpp | 189 std::u16string sceneName; in SetChargeConfigStub() local 190 RETURN_IF_READ_PARCEL_FAILED_WITH_RET(data, String16, sceneName, E_READ_PARCEL_ERROR); in SetChargeConfigStub() 191 std::string tempSceneName = Str16ToStr8(sceneName); in SetChargeConfigStub() 204 std::u16string sceneName; in GetChargeConfigStub() local 205 RETURN_IF_READ_PARCEL_FAILED_WITH_RET(data, String16, sceneName, E_READ_PARCEL_ERROR); in GetChargeConfigStub() 206 std::string tempSceneName = Str16ToStr8(sceneName); in GetChargeConfigStub() 217 std::u16string sceneName; in SupportChargeConfigStub() local 218 RETURN_IF_READ_PARCEL_FAILED_WITH_RET(data, String16, sceneName, E_READ_PARCEL_ERROR); in SupportChargeConfigStub() 219 std::string tempSceneName = Str16ToStr8(sceneName); in SupportChargeConfigStub()
|
/ohos5.0/base/powermgr/battery_manager/frameworks/native/src/ |
H A D | battery_srv_client.cpp | 180 BatteryError BatterySrvClient::SetBatteryConfig(const std::string& sceneName, const std::string& va… in SetBatteryConfig() argument 184 return proxy->SetBatteryConfig(sceneName, value); in SetBatteryConfig() 187 BatteryError BatterySrvClient::GetBatteryConfig(const std::string& sceneName, std::string& result) in GetBatteryConfig() argument 191 return proxy->GetBatteryConfig(sceneName, result); in GetBatteryConfig() 194 BatteryError BatterySrvClient::IsBatteryConfigSupported(const std::string& sceneName, bool& result) in IsBatteryConfigSupported() argument 198 return proxy->IsBatteryConfigSupported(sceneName, result); in IsBatteryConfigSupported()
|
/ohos5.0/drivers/peripheral/battery/interfaces/hdi_service/src/ |
H A D | battery_interface_impl.cpp | 248 int32_t BatteryInterfaceImpl::SetBatteryConfig(const std::string& sceneName, const std::string& val… in SetBatteryConfig() argument 258 …std::string, BatteryConfig::ChargeSceneConfig>::iterator it = chargeSceneConfigMap.find(sceneName); in SetBatteryConfig() 264 BATTERY_HILOGW(FEATURE_BATT_INFO, "key:%{public}s not found", sceneName.c_str()); in SetBatteryConfig() 268 int32_t BatteryInterfaceImpl::GetBatteryConfig(const std::string& sceneName, std::string& value) in GetBatteryConfig() argument 279 …std::string, BatteryConfig::ChargeSceneConfig>::iterator it = chargeSceneConfigMap.find(sceneName); in GetBatteryConfig() 285 BATTERY_HILOGE(FEATURE_BATT_INFO, "key:%{public}s not found", sceneName.c_str()); in GetBatteryConfig() 290 int32_t BatteryInterfaceImpl::IsBatteryConfigSupported(const std::string& sceneName, bool& value) in IsBatteryConfigSupported() argument 301 …std::string, BatteryConfig::ChargeSceneConfig>::iterator it = chargeSceneConfigMap.find(sceneName); in IsBatteryConfigSupported() 322 BATTERY_HILOGE(FEATURE_BATT_INFO, "key:%{public}s not found", sceneName.c_str()); in IsBatteryConfigSupported()
|
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/entrance/ |
H A D | aps_monitor_impl.cpp | 39 void ApsMonitorImpl::SetApsScene(const string& sceneName, bool onOff) in SetApsScene() argument 42 if (apsScenes.find(sceneName) == apsScenes.end()) { in SetApsScene() 52 setFunc_(bundleName, sceneName, OnOff); in SetApsScene()
|
H A D | aps_monitor_impl.h | 21 using SetSceneFunc = void (*)(std::string pkgName, std::string sceneName, uint32_t state); 26 void SetApsScene(const std::string& sceneName, bool onOff) override;
|
/ohos5.0/base/powermgr/battery_manager/interfaces/inner_api/native/include/ |
H A D | battery_srv_client.h | 91 BatteryError SetBatteryConfig(const std::string& sceneName, const std::string& value); 95 BatteryError GetBatteryConfig(const std::string& sceneName, std::string& result); 99 BatteryError IsBatteryConfigSupported(const std::string& sceneName, bool& result);
|
H A D | ibattery_srv.h | 43 … virtual BatteryError SetBatteryConfig(const std::string& sceneName, const std::string& value) = 0; 44 virtual BatteryError GetBatteryConfig(const std::string& sceneName, std::string& result) = 0;
|
/ohos5.0/docs/en/device-dev/subsystems/ |
H A D | subsys-power-charge-common-framework-guide.md | 102 * @param { string } sceneName - Indicates the battery charging scene name. 113 function setBatteryConfig(sceneName: string, sceneValue: string): number; 118 * @param { string } sceneName - Indicates the battery charging scene name. 128 function getBatteryConfig(sceneName: string): string; 133 * @param { string } sceneName - Indicates the battery charging scene name. 143 function isBatteryConfigSupported(sceneName: string): boolean; 150 - **setBatteryConfig**: Sets the battery configuration. **sceneName** and **sceneValue** indicates … 152 - **getBatteryConfig**: Queries the battery configuration. **sceneName** indicates the name of the … 154 - **isBatteryConfigSupported**: Checks whether the battery configuration is supported. **sceneName*…
|
/ohos5.0/drivers/peripheral/battery/interfaces/hdi_service/include/ |
H A D | battery_interface_impl.h | 54 int32_t SetBatteryConfig(const std::string& sceneName, const std::string& value) override; 55 int32_t GetBatteryConfig(const std::string& sceneName, std::string& value) override; 56 int32_t IsBatteryConfigSupported(const std::string& sceneName, bool& value) override;
|
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/battery_v1_2/cpp_target/battery/v1_2/ |
H A D | battery_interface_proxy.h.txt | 106 int32_t SetBatteryConfig(const std::string& sceneName, const std::string& value) override; 108 int32_t GetBatteryConfig(const std::string& sceneName, std::string& value) override; 110 int32_t IsBatteryConfigSupported(const std::string& sceneName, bool& value) override; 155 static int32_t SetBatteryConfig_(const std::string& sceneName, const std::string& value, 158 static int32_t GetBatteryConfig_(const std::string& sceneName, std::string& value, 161 static int32_t IsBatteryConfigSupported_(const std::string& sceneName, bool& value,
|
H A D | battery_interface_service.h.txt | 66 int32_t SetBatteryConfig(const std::string& sceneName, const std::string& value) override; 68 int32_t GetBatteryConfig(const std::string& sceneName, std::string& value) override; 70 int32_t IsBatteryConfigSupported(const std::string& sceneName, bool& value) override;
|
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/battery_v2_0/cpp_target/battery/v2_0/ |
H A D | battery_interface_proxy.h.txt | 106 int32_t SetBatteryConfig(const std::string& sceneName, const std::string& value) override; 108 int32_t GetBatteryConfig(const std::string& sceneName, std::string& value) override; 110 int32_t IsBatteryConfigSupported(const std::string& sceneName, bool& value) override; 155 static int32_t SetBatteryConfig_(const std::string& sceneName, const std::string& value, 158 static int32_t GetBatteryConfig_(const std::string& sceneName, std::string& value, 161 static int32_t IsBatteryConfigSupported_(const std::string& sceneName, bool& value,
|
H A D | battery_interface_service.h.txt | 66 int32_t SetBatteryConfig(const std::string& sceneName, const std::string& value) override; 68 int32_t GetBatteryConfig(const std::string& sceneName, std::string& value) override; 70 int32_t IsBatteryConfigSupported(const std::string& sceneName, bool& value) override;
|
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/render/ |
H A D | intf_render_node_scene_util.h | 155 …DER_NS::IRenderNodeContextManager& renderNodeContextMgr, const BASE_NS::string_view sceneName) = 0; 162 … RENDER_NS::IRenderNodeContextManager& renderNodeContextMgr, const BASE_NS::string_view sceneName, 171 … RENDER_NS::IRenderNodeContextManager& renderNodeContextMgr, const BASE_NS::string_view sceneName,
|
/ohos5.0/base/powermgr/battery_manager/frameworks/napi/src/ |
H A D | battery_info.cpp | 199 std::string sceneName = NapiUtils::GetStringFromNapi(env, argv[INDEX_0]); in SetBatteryConfig() local 202 BatteryError code = g_battClient.SetBatteryConfig(sceneName, value); in SetBatteryConfig() 204 sceneName.c_str(), value.c_str(), static_cast<int32_t>(code)); in SetBatteryConfig() 228 std::string sceneName = NapiUtils::GetStringFromNapi(env, argv[INDEX_0]); in GetBatteryConfig() local 229 BATTERY_HILOGD(COMP_FWK, "get charge config, sceneName: %{public}s", sceneName.c_str()); in GetBatteryConfig() 232 BatteryError code = g_battClient.GetBatteryConfig(sceneName, result); in GetBatteryConfig() 257 std::string sceneName = NapiUtils::GetStringFromNapi(env, argv[INDEX_0]); in IsBatteryConfigSupported() local 258 … BATTERY_HILOGI(COMP_FWK, "get support charge config, featureName: %{public}s", sceneName.c_str()); in IsBatteryConfigSupported() 261 BatteryError code = g_battClient.IsBatteryConfigSupported(sceneName, result); in IsBatteryConfigSupported()
|
/ohos5.0/base/powermgr/battery_manager/frameworks/native/test/unittest/src/ |
H A D | battery_client_test.cpp | 734 string sceneName = "testScene"; variable 736 int ret = (int)BatterySrvClient.SetBatteryConfig(sceneName, value); 739 sceneName = "wireless"; 740 ret = (int)BatterySrvClient.GetBatteryConfig(sceneName, value); 742 ret = (int)BatterySrvClient.SetBatteryConfig(sceneName, value); 758 string sceneName = "testScene"; variable 760 BatteryError ret = BatterySrvClient.GetBatteryConfig(sceneName, result); 776 string sceneName = "testScene1"; variable 778 BatteryError ret = BatterySrvClient.IsBatteryConfigSupported(sceneName, result);
|
/ohos5.0/base/powermgr/battery_manager/services/native/include/ |
H A D | battery_service.h | 82 BatteryError SetBatteryConfig(const std::string& sceneName, const std::string& value) override; 83 BatteryError GetBatteryConfig(const std::string& sceneName, std::string& result) override; 84 BatteryError IsBatteryConfigSupported(const std::string& sceneName, bool& result) override;
|
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/battery_v1_2/foo/battery/v1_2/ |
H A D | IBatteryInterface.idl | 257 * @param sceneName battery charge scene name 265 SetBatteryConfig([in] String sceneName, [in] String value); 270 * @param sceneName battery charge scene name 278 GetBatteryConfig([in] String sceneName, [out] String value); 283 * @param sceneName battery charge scene name 291 IsBatteryConfigSupported([in] String sceneName, [out] boolean value);
|