Home
last modified time | relevance | path

Searched refs:retValue (Results 1 – 25 of 34) sorted by relevance

12

/base/update/updateservice/frameworks/js/napi/client/
Dupdate_client.cpp126 napi_value retValue = sess->StartWork( in CancelUpgrade() local
135 PARAM_CHECK(retValue != nullptr, sessionsMgr_->RemoveSession(sess->GetSessionId()); in CancelUpgrade()
137 return retValue; in CancelUpgrade()
190 …napi_value retValue = StartSession(env, info, sessionParams, [=](SessionType type, void *context) … in Download() local
195 PARAM_CHECK(retValue != nullptr, return nullptr, "Failed to start worker."); in Download()
196 return retValue; in Download()
215 …napi_value retValue = StartSession(env, info, sessionParams, [=](SessionType type, void *context) … in PauseDownload() local
220 PARAM_CHECK(retValue != nullptr, return nullptr, "Failed to start worker."); in PauseDownload()
221 return retValue; in PauseDownload()
240 …napi_value retValue = StartSession(env, info, sessionParams, [=](SessionType type, void *context) … in ResumeDownload() local
[all …]
Drestorer.cpp41 napi_value retValue = StartSession(env, info, sessionParams, in FactoryReset() local
46 PARAM_CHECK(retValue != nullptr, return nullptr, "Failed to FactoryReset."); in FactoryReset()
47 return retValue; in FactoryReset()
Dlocal_updater.cpp105 napi_value retValue = StartSession(env, info, sessionParams, in VerifyUpgradePackage() local
112 PARAM_CHECK(retValue != nullptr, return nullptr, "Failed to VerifyUpgradePackage."); in VerifyUpgradePackage()
113 return retValue; in VerifyUpgradePackage()
131 napi_value retValue = StartSession(env, info, sessionParams, in ApplyNewVersion() local
140 PARAM_CHECK(retValue != nullptr, return nullptr, "Failed to ApplyNewVersion"); in ApplyNewVersion()
141 return retValue; in ApplyNewVersion()
/base/telephony/core_service/utils/common/src/
Dtelephony_config.cpp56 int32_t TelephonyConfig::ConvertCharToInt(uint32_t &retValue, const std::string &maxCap, uint32_t i… in ConvertCharToInt() argument
73 retValue = static_cast<uint32_t>(originChar - '0'); in ConvertCharToInt()
75 retValue = static_cast<uint32_t>(originChar - 'a') + ASCII_BASE_OFFSET_VALUE; in ConvertCharToInt()
77 retValue = static_cast<uint32_t>(originChar - 'A') + ASCII_BASE_OFFSET_VALUE; in ConvertCharToInt()
/base/customization/enterprise_device_management/test/fuzztest/issuperadmin_fuzzer/
Dissuperadmin_fuzzer.cpp37 bool retValue = false; in FuzzIsSuperAdmin() local
38 enterpriseDeviceManager->IsSuperAdmin(bundleName, retValue); in FuzzIsSuperAdmin()
/base/update/updateservice/frameworks/js/napi/base/src/
Diupdater.cpp45 napi_value retValue = sess->StartWork(env, args, in On() local
49 …PARAM_CHECK(retValue != nullptr, sessionsMgr_->RemoveSession(sess->GetSessionId()); return nullptr, in On()
51 return retValue; in On()
108 napi_value retValue = sess->StartWork(env, args, function, nullptr); in StartSession() local
109 …PARAM_CHECK(retValue != nullptr, sessionsMgr_->RemoveSession(sess->GetSessionId()); return nullptr, in StartSession()
111 return retValue; in StartSession()
/base/telephony/ril_adapter/test/unittest/ril_adapter_gtest/
Dril_test_util.cpp119 char retValue[VOICECALL_CAP_VAL_LEN + 1] = { "true" }; in HasVoiceCapabilityInner() local
120 int retLen = GetParameter(KEY_VOICECALL_CAP.c_str(), "true", retValue, VOICECALL_CAP_VAL_LEN); in HasVoiceCapabilityInner()
121 TELEPHONY_LOGI("HasVoiceCapability retValue %{public}s, retLen %{public}d", retValue, retLen); in HasVoiceCapabilityInner()
122 if (strcmp(retValue, "false") == 0) { in HasVoiceCapabilityInner()
/base/web/webview/interfaces/kits/napi/webstorage/
Dnapi_web_storage.cpp69 napi_value retValue = nullptr; in JsDeleteOrigin() local
73 napi_get_cb_info(env, info, &argc, &argv, &retValue, nullptr); in JsDeleteOrigin()
264 napi_value retValue = nullptr; in JsGetOrigins() local
271 napi_get_cb_info(env, info, &argc, &argv, &retValue, nullptr); in JsGetOrigins()
278 napi_get_cb_info(env, info, &argc, &argv, &retValue, nullptr); in JsGetOrigins()
299 param->retValue = web_storage->GetOriginQuota(param->origin); in ExecuteGetOriginUsageOrQuota()
300 if (param->retValue != INTERFACE_ERROR && param->retValue != NWebError::INVALID_ORIGIN) { in ExecuteGetOriginUsageOrQuota()
303 param->errCode = param->retValue; in ExecuteGetOriginUsageOrQuota()
308 param->retValue = web_storage->GetOriginUsage(param->origin); in ExecuteGetOriginUsageOrQuota()
309 if (param->retValue != INTERFACE_ERROR && param->retValue != NWebError::INVALID_ORIGIN) { in ExecuteGetOriginUsageOrQuota()
[all …]
/base/customization/enterprise_device_management/test/fuzztest/isadminenabled_fuzzer/
Disadminenabled_fuzzer.cpp42 bool retValue = false; in FuzzIsAdminEnabled() local
43 enterpriseDeviceManager->IsAdminEnabled(admin, userId, retValue); in FuzzIsAdminEnabled()
/base/update/updater/services/script/script_interpreter/
Dscript_context.cpp175 retValue = make_shared<IntegerValue>(this->GetValue() op value->GetValue()); \
184 retValue = make_shared<FloatValue>(this->GetValue() op value->GetValue()); \
201 retValue = make_shared<IntegerValue>(this->GetValue() op value->GetValue()); \
218 retValue = make_shared<IntegerValue>(this->GetValue() / value->GetValue()); \
227 retValue = make_shared<FloatValue>(this->GetValue() / value->GetValue()); \
242 UScriptValuePtr retValue = std::make_shared<ErrorValue>(USCRIPT_ERROR_INTERPRET); in Computer() local
245 return retValue; in Computer()
287 return retValue; in Computer()
295 retValue = make_shared<FloatValue>(this->GetValue() op value->GetValue()); \
304 retValue = make_shared<FloatValue>(this->GetValue() op value->GetValue()); \
[all …]
Dscript_interpreter.cpp175 std::shared_ptr<ReturnValue> retValue = std::make_shared<ReturnValue>(); in ExecuteNativeFunc() local
190 retValue->AddValues(funcContext->GetOutVar()); in ExecuteNativeFunc()
192 return retValue; in ExecuteNativeFunc()
218 retValue->AddValues(funcContext->GetOutVar()); in ExecuteNativeFunc()
219 return retValue; in ExecuteNativeFunc()
Dscript_statement.cpp364 std::shared_ptr<ReturnValue> retValue = std::make_shared<ReturnValue>(); in Execute() local
365 if (retValue == nullptr) { in Execute()
373 retValue->AddValues(((ReturnValue*)var.get())->GetValues()); in Execute()
375 retValue->AddValue(var); in Execute()
379 result.SetResultValue(retValue); in Execute()
/base/web/webview/interfaces/kits/napi/webdatabase/
Dnapi_geolocation_permission.cpp49 bool retValue; member
110 napi_value retValue = nullptr; in ProcessActionByType() local
113 napi_get_cb_info(env, info, &argc, argv, &retValue, nullptr); in ProcessActionByType()
183 napi_get_boolean(env, param->retValue, &setResult[PARAMONE]); in GetPermissionStateComplete()
208 napi_get_boolean(env, param->retValue, &setResult[PARAMONE]); in GetPermissionStatePromiseComplete()
232 OHOS::NWeb::NWebDataBase::WebPermissionType::GEOLOCATION_TYPE, param->retValue)) { in ExecuteGetPermissionState()
248 .retValue = false, in GetPermissionStateAsync()
277 .retValue = false, in GetPermissionStatePromise()
299 napi_value retValue = nullptr; in JsGetAccessibleGeolocation() local
304 napi_get_cb_info(env, info, &argc, argv, &retValue, nullptr); in JsGetAccessibleGeolocation()
[all …]
Dnapi_web_data_base.cpp141 napi_value retValue = nullptr; in JsSaveHttpAuthCredentials() local
145 napi_get_cb_info(env, info, &argc, argv, &retValue, nullptr); in JsSaveHttpAuthCredentials()
200 napi_value retValue = nullptr; in JsGetHttpAuthCredentials() local
204 napi_get_cb_info(env, info, &argc, argv, &retValue, nullptr); in JsGetHttpAuthCredentials()
/base/telephony/core_service/utils/common/include/
Dtelephony_config.h33 int32_t ConvertCharToInt(uint32_t &retValue, const std::string &maxCap, uint32_t index);
/base/web/webview/interfaces/kits/napi/webcookiemanager/
Dnapi_web_cookie_manager.cpp110 napi_value retValue = nullptr; in JsGetCookie() local
114 napi_get_cb_info(env, info, &argc, argv, &retValue, nullptr); in JsGetCookie()
145 napi_value retValue = nullptr; in JsSetCookie() local
149 napi_get_cb_info(env, info, &argc, argv, &retValue, nullptr); in JsSetCookie()
199 napi_value retValue = nullptr; in JsPutAcceptCookieEnabled() local
203 napi_get_cb_info(env, info, &argc, argv, &retValue, nullptr); in JsPutAcceptCookieEnabled()
240 napi_value retValue = nullptr; in JsPutAcceptThirdPartyCookieEnabled() local
244 napi_get_cb_info(env, info, &argc, argv, &retValue, nullptr); in JsPutAcceptThirdPartyCookieEnabled()
/base/hiviewdfx/hiview/interfaces/js/napi/src/
Dhiview_napi_adapter.cpp78 napi_value retValue = nullptr; in FileOperationCompleteCallback() local
79 napi_call_function(env, nullptr, callback, RET_SIZE, results, &retValue); in FileOperationCompleteCallback()
Dhiview_napi_util.cpp106 … const napi_env env, const std::string& paramName, const napi_value& value, std::string& retValue) in ParseStringValue() argument
118 retValue = std::string {buf}; in ParseStringValue()
/base/hiviewdfx/hiappevent/frameworks/js/napi/src/
Dnapi_hiappevent_write.cpp92 napi_value retValue = nullptr; in Write() local
93 napi_call_function(env, nullptr, callback, RESULT_SIZE, results, &retValue); in Write()
/base/notification/distributed_notification_service/frameworks/js/napi/src/
Ddisplay_badge.cpp46 auto retValue = Common::GetBundleOption(env, argv[PARAM0], params.option); in ParseParameters() local
47 if (retValue == nullptr) { in ParseParameters()
97 auto retValue = Common::GetBundleOption(env, argv[PARAM0], params.option); in ParseParameters() local
98 if (retValue == nullptr) { in ParseParameters()
Dremove.cpp71 auto retValue = Common::GetHashCodes(env, argv[PARAM0], hashcodes); in ParseHashcodeTypeParams() local
72 if (retValue == nullptr) { in ParseHashcodeTypeParams()
179 auto retValue = Common::GetBundleOption(env, argv[PARAM0], bundleandKeyInfo.option); in ParseParametersByRemoveAll() local
180 if (retValue == nullptr) { in ParseParametersByRemoveAll()
226 auto retValue = Common::GetBundleOption(env, argv[PARAM0], params.option); in ParseParameters() local
227 if (retValue == nullptr) { in ParseParameters()
Denable_notification.cpp46 auto retValue = Common::GetBundleOption(env, argv[PARAM0], params.option); in ParseParameters() local
47 if (retValue == nullptr) { in ParseParameters()
94 auto retValue = Common::GetBundleOption(env, argv[PARAM0], params.option); in ParseParameters() local
95 if (retValue == nullptr) { in ParseParameters()
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/
Dnapi_remove_group.cpp48 auto retValue = Common::GetBundleOption(env, argv[PARAM0], params.option); in ParseParameters() local
49 if (retValue == nullptr) { in ParseParameters()
/base/hiviewdfx/hiview/interfaces/js/napi/include/
Dhiview_napi_util.h33 … const napi_env env, const std::string& paramName, const napi_value& value, std::string& retValue);
/base/telephony/call_manager/frameworks/native/src/
Dcall_manager_client.cpp682 char retValue[VOICECALL_CAP_VAL_LEN + 1] = {"true"}; in HasVoiceCapability() local
683 int retLen = GetParameter(KEY_VOICECALL_CAP.c_str(), "true", retValue, VOICECALL_CAP_VAL_LEN); in HasVoiceCapability()
684 TELEPHONY_LOGI("HasVoiceCapability retValue %{public}s, retLen %{public}d", retValue, retLen); in HasVoiceCapability()
685 if (strcmp(retValue, "false") == 0) { in HasVoiceCapability()

12