Home
last modified time | relevance | path

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

/base/update/updateservice/frameworks/js/napi/client/
Dupdate_client.cpp116 napi_value retValue = sess->StartWork( in CancelUpgrade() local
124 PARAM_CHECK(retValue != nullptr, sessionsMgr_->RemoveSession(sess->GetSessionId()); in CancelUpgrade()
126 return retValue; in CancelUpgrade()
176 …napi_value retValue = StartSession(env, info, sessionParams, [=](SessionType type, void *context) … in Download() local
181 PARAM_CHECK(retValue != nullptr, return nullptr, "Failed to start worker."); in Download()
182 return retValue; in Download()
204 …napi_value retValue = StartSession(env, info, sessionParams, [=](SessionType type, void *context) … in PauseDownload() local
209 PARAM_CHECK(retValue != nullptr, return nullptr, "Failed to start worker."); in PauseDownload()
210 return retValue; in PauseDownload()
232 …napi_value retValue = StartSession(env, info, sessionParams, [=](SessionType type, void *context) … in ResumeDownload() local
[all …]
Drestorer.cpp40 napi_value retValue = StartSession(env, info, sessionParams, in FactoryReset() local
45 PARAM_CHECK(retValue != nullptr, return nullptr, "Failed to FactoryReset."); in FactoryReset()
46 return retValue; in FactoryReset()
Dlocal_updater.cpp102 napi_value retValue = StartSession(env, info, sessionParams, in VerifyUpgradePackage() local
109 PARAM_CHECK(retValue != nullptr, return nullptr, "Failed to VerifyUpgradePackage."); in VerifyUpgradePackage()
110 return retValue; in VerifyUpgradePackage()
128 napi_value retValue = StartSession(env, info, sessionParams, in ApplyNewVersion() local
137 PARAM_CHECK(retValue != nullptr, return nullptr, "Failed to ApplyNewVersion"); in ApplyNewVersion()
138 return retValue; in ApplyNewVersion()
/base/update/updateservice/frameworks/js/napi/base/src/
Diupdater.cpp38 napi_value retValue = sess->StartWork(env, args, in On() local
42 …PARAM_CHECK(retValue != nullptr, sessionsMgr_->RemoveSession(sess->GetSessionId()); return nullptr, in On()
44 return retValue; in On()
93 napi_value retValue = sess->StartWork(env, args, function, nullptr); in StartSession() local
94 …PARAM_CHECK(retValue != nullptr, sessionsMgr_->RemoveSession(sess->GetSessionId()); return nullptr, in StartSession()
96 return retValue; in StartSession()
/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 …]
Dnapi_web_storage.h31 int retValue; member
/base/update/updater/services/script/script_interpreter/
Dscript_context.cpp158 retValue = make_shared<IntegerValue>(this->GetValue() op value->GetValue()); \
167 retValue = make_shared<FloatValue>(this->GetValue() op value->GetValue()); \
184 retValue = make_shared<IntegerValue>(this->GetValue() op value->GetValue()); \
201 retValue = make_shared<IntegerValue>(this->GetValue() / value->GetValue()); \
210 retValue = make_shared<FloatValue>(this->GetValue() / value->GetValue()); \
225 UScriptValuePtr retValue = std::make_shared<ErrorValue>(USCRIPT_ERROR_INTERPRET); in Computer() local
226 USCRIPT_CHECK(rightValue != nullptr, return retValue, "Check param error"); in Computer()
271 return retValue; in Computer()
279 retValue = make_shared<FloatValue>(this->GetValue() op value->GetValue()); \
288 retValue = make_shared<FloatValue>(this->GetValue() op value->GetValue()); \
[all …]
Dscript_interpreter.cpp166 std::shared_ptr<ReturnValue> retValue = std::make_shared<ReturnValue>(); in ExecuteNativeFunc() local
175 retValue->AddValues(funcContext->GetOutVar()); in ExecuteNativeFunc()
177 return retValue; in ExecuteNativeFunc()
203 retValue->AddValues(funcContext->GetOutVar()); in ExecuteNativeFunc()
204 return retValue; in ExecuteNativeFunc()
Dscript_statement.cpp349 std::shared_ptr<ReturnValue> retValue = std::make_shared<ReturnValue>(); in Execute() local
350 USCRIPT_CHECK(retValue != nullptr, return result, "Create ret value failed"); in Execute()
355 retValue->AddValues((static_cast<ReturnValue*>(var.get()))->GetValues()); in Execute()
357 retValue->AddValue(var); in Execute()
361 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.cpp139 napi_value retValue = nullptr; in JsSaveHttpAuthCredentials() local
143 napi_get_cb_info(env, info, &argc, argv, &retValue, nullptr); in JsSaveHttpAuthCredentials()
198 napi_value retValue = nullptr; in JsGetHttpAuthCredentials() local
202 napi_get_cb_info(env, info, &argc, argv, &retValue, nullptr); in JsGetHttpAuthCredentials()
/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()
144 napi_value retValue = nullptr; in JsSetCookie() local
148 napi_get_cb_info(env, info, &argc, argv, &retValue, nullptr); in JsSetCookie()
198 napi_value retValue = nullptr; in JsPutAcceptCookieEnabled() local
202 napi_get_cb_info(env, info, &argc, argv, &retValue, nullptr); in JsPutAcceptCookieEnabled()
239 napi_value retValue = nullptr; in JsPutAcceptThirdPartyCookieEnabled() local
243 napi_get_cb_info(env, info, &argc, argv, &retValue, nullptr); in JsPutAcceptThirdPartyCookieEnabled()
/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/hiviewdfx/hisysevent/interfaces/js/kits/napi/src/
Dnapi_hisysevent_adapter.cpp62 napi_value retValue = nullptr; in Write() local
63 napi_call_function(env, nullptr, callback, RET_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()
Denable_notification.cpp47 auto retValue = Common::GetBundleOption(env, argv[PARAM0], params.option); in ParseParameters() local
48 if (retValue == nullptr) { in ParseParameters()
95 auto retValue = Common::GetBundleOption(env, argv[PARAM0], params.option); in ParseParameters() local
96 if (retValue == nullptr) { in ParseParameters()
Dremove.cpp155 auto retValue = Common::GetBundleOption(env, argv[PARAM0], bundleandKeyInfo.option); in ParseParametersByRemoveAll() local
156 if (retValue == nullptr) { in ParseParametersByRemoveAll()
202 auto retValue = Common::GetBundleOption(env, argv[PARAM0], params.option); in ParseParameters() local
203 if (retValue == nullptr) { in ParseParameters()
Dslot.cpp282 auto retValue = Common::GetBundleOption(env, argv[PARAM0], params.option); in ParseParametersSetSlotByBundle() local
283 if (retValue == nullptr) { in ParseParametersSetSlotByBundle()
381 auto retValue = Common::GetBundleOption(env, argv[PARAM0], params.option); in ParseParametersGetSlotNumByBundle() local
382 if (retValue == nullptr) { in ParseParametersGetSlotNumByBundle()
421 auto retValue = Common::GetBundleOption(env, argv[PARAM0], params.option); in ParseParametersGetSlotsByBundle() local
422 if (retValue == nullptr) { in ParseParametersGetSlotsByBundle()
1187 auto retValue = Common::GetBundleOption(env, argv[PARAM0], params.option); in ParseParametersEnableSlot() local
1188 if (retValue == nullptr) { in ParseParametersEnableSlot()
1314 auto retValue = Common::GetBundleOption(env, argv[PARAM0], params.option); in ParseParametersIsEnableSlot() local
1315 if (retValue == nullptr) { in ParseParametersIsEnableSlot()
Ddistributed.cpp84 auto retValue = Common::GetBundleOption(env, argv[PARAM0], params.option); in ParseParameters() local
85 if (retValue == nullptr) { in ParseParameters()
131 auto retValue = Common::GetBundleOption(env, argv[PARAM0], params.option); in ParseParameters() local
132 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/telephony/call_manager/frameworks/native/src/
Dcall_manager_client.cpp593 char retValue[VOICECALL_CAP_VAL_LEN + 1] = {"true"}; in HasVoiceCapability() local
594 int retLen = GetParameter(KEY_VOICECALL_CAP.c_str(), "true", retValue, VOICECALL_CAP_VAL_LEN); in HasVoiceCapability()
595 TELEPHONY_LOGI("HasVoiceCapability retValue %{public}s, retLen %{public}d", retValue, retLen); in HasVoiceCapability()
596 if (strcmp(retValue, "false") == 0) { in HasVoiceCapability()
/base/time/time_service/services/time/src/
Dsntp_client.cpp342 errno_t retValue = memcpy_s(&milliseconds, sizeof(int), valueRx, sizeof(int)); in GetNtpField32() local
343 if (retValue != EOK) { in GetNtpField32()
344 TIME_HILOGE(TIME_MODULE_SERVICE, "memcpy_s failed, err = %d\n", retValue); in GetNtpField32()
/base/startup/init/test/moduletest/
Dsyspara_moduleTest.cpp312 char retValue[PARAM_VALUE_LEN_MAX] = {0}; variable
314 std::thread(GetParameterTestReInt, key.c_str(), "", retValue, PARAM_VALUE_LEN_MAX).join();