Home
last modified time | relevance | path

Searched refs:sceneName (Results 1 – 25 of 61) sorted by relevance

123

/ohos5.0/docs/zh-cn/application-dev/reference/apis-basic-services-kit/
H A Djs-apis-battery-info-sys.md20 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 Drender_node_scene_util.cpp315 … 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()
358sceneName + DefaultMaterialCameraConstants::CAMERA_ENVIRONMENT_BUFFER_PREFIX_NAME + cameraName); in GetSceneCameraBufferHandles()
362sceneName + 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 Drender_node_scene_util.h62 … 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 Dsubsys-power-charge-common-framework-guide.md102 * @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 Dinterface_i_battery_interface_v12.md38 | [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 Dinterface_i_battery_interface_v20.md38 | [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 Djs-apis-battery-info-sys.md20 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 Dbattery_srv_stub.cpp189 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 Dbattery_srv_client.cpp180 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 Dbattery_interface_impl.cpp248 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 Daps_monitor_impl.cpp39 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 Daps_monitor_impl.h21 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 Dbattery_srv_client.h91 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 Dibattery_srv.h43 … 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 Dsubsys-power-charge-common-framework-guide.md102 * @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 Dbattery_interface_impl.h54 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 Dbattery_interface_proxy.h.txt106 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 Dbattery_interface_service.h.txt66 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 Dbattery_interface_proxy.h.txt106 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 Dbattery_interface_service.h.txt66 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 Dintf_render_node_scene_util.h155 …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 Dbattery_info.cpp199 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 Dbattery_client_test.cpp734 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 Dbattery_service.h82 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 DIBatteryInterface.idl257 * @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);

123