/base/powermgr/battery_manager/test/unittest/src/ |
H A D | battery_srv_stub_test.cpp | 114 u16string sceneName = Str8ToStr16("BatterySrvStub004"); in HWTEST_F() local 116 g_data.WriteString16(sceneName); in HWTEST_F() 134 u16string sceneName = Str8ToStr16("BatterySrvStub005"); in HWTEST_F() local 135 g_data.WriteString16(sceneName); in HWTEST_F() 152 u16string sceneName = Str8ToStr16("BatterySrvStub006"); in HWTEST_F() local 153 g_data.WriteString16(sceneName); in HWTEST_F()
|
/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;
|
/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& value) 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()
|
/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()
|
H A D | battery_srv_proxy.cpp | 380 BatteryError BatterySrvProxy::SetBatteryConfig(const std::string& sceneName, const std::string& value) in SetBatteryConfig() argument 393 RETURN_IF_WRITE_PARCEL_FAILED_WITH_RET(data, String16, Str8ToStr16(sceneName), BatteryError::ERR_CONNECTION_FAIL); in SetBatteryConfig() 409 BatteryError BatterySrvProxy::GetBatteryConfig(const std::string& sceneName, std::string& result) in GetBatteryConfig() argument 422 RETURN_IF_WRITE_PARCEL_FAILED_WITH_RET(data, String16, Str8ToStr16(sceneName), BatteryError::ERR_CONNECTION_FAIL); in GetBatteryConfig() 440 BatteryError BatterySrvProxy::IsBatteryConfigSupported(const std::string& sceneName, bool& result) in IsBatteryConfigSupported() argument 453 RETURN_IF_WRITE_PARCEL_FAILED_WITH_RET(data, String16, Str8ToStr16(sceneName), BatteryError::ERR_CONNECTION_FAIL); in IsBatteryConfigSupported()
|
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webview/ |
H A D | ark_vsync_adapter_impl.cpp | 54 void ArkVSyncAdapterImpl::SetScene(const ArkWebString& sceneName, uint32_t state) in SetScene() argument 56 std::string sceneNameStr = ArkWebStringStructToClass(sceneName); in SetScene()
|
H A D | ark_vsync_adapter_impl.h | 41 void SetScene(const ArkWebString& sceneName, uint32_t state) override;
|
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/ |
H A D | ark_vsync_adapter_wrapper.cpp | 71 void ArkVSyncAdapterWrapper::SetScene(const std::string& sceneName, uint32_t state) in SetScene() argument 76 ArkWebString ark_value = ArkWebStringClassToStruct(sceneName); in SetScene()
|
H A D | ark_vsync_adapter_wrapper.h | 40 void SetScene(const std::string& sceneName, uint32_t state) override;
|
/base/powermgr/battery_manager/services/zidl/include/ |
H A D | battery_srv_proxy.h | 53 virtual BatteryError SetBatteryConfig(const std::string& sceneName, const std::string& value) override; 55 virtual BatteryError IsBatteryConfigSupported(const std::string& sceneName, bool& result) override;
|
/base/powermgr/battery_manager/services/native/include/ |
H A D | battery_service.h | 76 BatteryError SetBatteryConfig(const std::string& sceneName, const std::string& value) override; 77 BatteryError GetBatteryConfig(const std::string& sceneName, std::string& result) override; 78 BatteryError IsBatteryConfigSupported(const std::string& sceneName, bool& result) override;
|
/base/web/webview/ohos_adapter/graphic_adapter/src/ |
H A D | vsync_adapter_impl.cpp | 216 void VSyncAdapterImpl::SetScene(const std::string& sceneName, uint32_t state) { in SetScene() argument 217 WVLOG_D("APSManagerAdapterImpl SetScene sceneName=%{public}s state=%{public}u", sceneName.c_str(), state); in SetScene() 225 Rosen::ApsManager::GetInstance().SetScene(pkgName_, sceneName, state); in SetScene()
|
/base/notification/distributed_notification_service/frameworks/ans/src/ |
H A D | notification_unified_group_info.cpp | 62 void NotificationUnifiedGroupInfo::SetSceneName(const std::string &sceneName) in SetSceneName() argument 64 sceneName_ = sceneName; in SetSceneName() 87 ", sceneName = " + sceneName_ + ", extraInfo = " + extraStr +" }"; in Dump() 108 ANS_LOGE("Failed to write sceneName"); in Marshalling() 157 ANS_LOGE("Failed to read sceneName"); in ReadFromParcel()
|
/base/notification/distributed_notification_service/interfaces/inner_api/ |
H A D | notification_unified_group_Info.h | 75 * @brief Obtains the sceneName of unified group info. 77 * @return Returns the sceneName of aggregation scenario. 82 * @brief Set the sceneName of unified group info. 84 * @param sceneName the sceneName of unified group info. 86 void SetSceneName(const std::string &sceneName);
|
/base/web/webview/ohos_adapter/graphic_adapter/include/ |
H A D | vsync_adapter_impl.h | 45 void SetScene(const std::string& sceneName, uint32_t state) override;
|
/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() 203 BATTERY_HILOGI(FEATURE_BATT_INFO, "set charge config, sceneName: %{public}s, value: %{public}s, ret: %{public}d",
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 in IsBatteryConfigSupported() [all...] |
/base/powermgr/battery_manager/test/unittest/src/interface_test/ |
H A D | battery_client_test.cpp | 735 string sceneName = "testScene"; in HWTEST_F() local 737 int ret = (int)BatterySrvClient.SetBatteryConfig(sceneName, value); in HWTEST_F() 740 sceneName = "wireless"; in HWTEST_F() 741 ret = (int)BatterySrvClient.GetBatteryConfig(sceneName, value); in HWTEST_F() 743 ret = (int)BatterySrvClient.SetBatteryConfig(sceneName, value); in HWTEST_F() 759 string sceneName = "testScene"; in HWTEST_F() local 761 BatteryError ret = BatterySrvClient.GetBatteryConfig(sceneName, result); in HWTEST_F() 777 string sceneName = "testScene1"; in HWTEST_F() local 779 BatteryError ret = BatterySrvClient.IsBatteryConfigSupported(sceneName, result); in HWTEST_F()
|
/base/powermgr/battery_manager/services/native/src/ |
H A D | battery_service.cpp | 503 BatteryError BatteryService::SetBatteryConfig(const std::string& sceneName, const std::string& value) in SetBatteryConfig() argument 516 return iBatteryInterface_->SetBatteryConfig(sceneName, value) == ERR_OK ? in SetBatteryConfig() 520 BatteryError BatteryService::GetBatteryConfig(const std::string& sceneName, std::string& result) in GetBatteryConfig() argument 534 int32_t ret = iBatteryInterface_->GetBatteryConfig(sceneName, result); in GetBatteryConfig() 536 BATTERY_HILOGE(FEATURE_BATT_INFO, "get charge config failed, key:%{public}s", sceneName.c_str()); in GetBatteryConfig() 543 BatteryError BatteryService::IsBatteryConfigSupported(const std::string& sceneName, bool& result) in IsBatteryConfigSupported() argument 557 int32_t ret = iBatteryInterface_->IsBatteryConfigSupported(sceneName, result); in IsBatteryConfigSupported() 559 BATTERY_HILOGE(FEATURE_BATT_INFO, "get support charge config failed, key:%{public}s", sceneName.c_str()); in IsBatteryConfigSupported()
|
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/include/ |
H A D | ark_graphic_adapter.h | 49 virtual void SetScene(const ArkWebString& sceneName, uint32_t state) = 0;
|
/base/web/webview/ohos_interface/include/ohos_adapter/ |
H A D | graphic_adapter.h | 48 virtual void SetScene(const std::string& sceneName, uint32_t state) = 0;
|
/base/location/frameworks/js/napi/notification/src/ |
H A D | notification_napi_convert_request.cpp | 1290 // sceneName?: string in GetNotificationUnifiedGroupInfo() 1291 jsValue = AppExecFwk::GetPropertyValueByPropertyName(env, info, "sceneName", napi_string); in GetNotificationUnifiedGroupInfo() 1293 std::string sceneName = AppExecFwk::UnwrapStringFromJS(env, jsValue); in GetNotificationUnifiedGroupInfo() local 1294 unifiedGroupInfo->SetSceneName(sceneName); in GetNotificationUnifiedGroupInfo()
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
H A D | common_convert_request.cpp | 1831 // sceneName?: string in GetNotificationUnifiedGroupInfo() 1832 jsValue = AppExecFwk::GetPropertyValueByPropertyName(env, info, "sceneName", napi_string); in GetNotificationUnifiedGroupInfo() 1834 std::string sceneName = AppExecFwk::UnwrapStringFromJS(env, jsValue); in GetNotificationUnifiedGroupInfo() local 1835 unifiedGroupInfo->SetSceneName(sceneName); in GetNotificationUnifiedGroupInfo()
|