Home
last modified time | relevance | path

Searched refs:callResult (Results 1 – 25 of 26) sorted by relevance

12

/base/update/update_app/common/src/main/ets/manager/
DUpdateManager.ts36 callResult: UpgradeCallResult.OK,
39 upgradeData.callResult = UpgradeCallResult.TIME_OUT;
51 upgradeData.callResult = UpgradeCallResult.ERROR;
61 upgradeData.callResult = UpgradeCallResult.ERROR;
131 callResult: UpgradeCallResult.OK
144 callResult: UpgradeCallResult.ERROR,
163 callResult: UpgradeCallResult.OK,
170 callResult: UpgradeCallResult.ERROR,
201 callResult: UpgradeCallResult.OK,
208 callResult: UpgradeCallResult.ERROR,
[all …]
/base/powermgr/battery_manager/frameworks/napi/
Dsystem_battery.cpp135 napi_value callResult = 0; in SuccessCallback() local
137 napi_status status = napi_call_function(env, nullptr, success, argc, &argv, &callResult); in SuccessCallback()
166 napi_value callResult = 0; in FailCallback() local
168 napi_status status = napi_call_function(env, nullptr, fail, argc, argv, &callResult); in FailCallback()
180 napi_value callResult = 0; in CompleteCallback() local
182 napi_status status = napi_call_function(env, nullptr, complete, argc, nullptr, &callResult); in CompleteCallback()
/base/sensors/medical_sensor/interfaces/plugin/src/
Dmedical_napi_utils.cpp105 napi_value callResult = nullptr; in EmitAsyncCallbackWork() local
108 napi_call_function(env, nullptr, callback, 1, &result, &callResult); in EmitAsyncCallbackWork()
151 napi_value callResult = nullptr; in EmitUvEventLoop() local
173 napi_call_function(env, undefined, callback, 1, &result, &callResult); in EmitUvEventLoop()
/base/sensors/miscdevice/interfaces/plugin/vibrator/src/
Dvibrator_napi_utils.cpp237 napi_value callResult = nullptr; in EmitSystemCallback() local
238 … NAPI_CALL_RETURN_VOID(env, napi_call_function(env, nullptr, callback, 1, &result, &callResult)); in EmitSystemCallback()
248 napi_value callResult = nullptr; in EmitSystemCallback() local
249 NAPI_CALL_RETURN_VOID(env, napi_call_function(env, nullptr, callback, 1, result, &callResult)); in EmitSystemCallback()
289 napi_value callResult = nullptr; in EmitAsyncCallbackWork() local
290 CHKCV((napi_call_function(env, nullptr, callback, 2, result, &callResult) == napi_ok), in EmitAsyncCallbackWork()
/base/update/updateservice/frameworks/js/napi/client/
Dupdate_session.cpp146 napi_value callResult; in NotifyJS() local
164 retStatus = napi_call_function(env, undefined, callback, callBackNumber, retArgs, &callResult); in NotifyJS()
266 napi_value callResult; in NotifyJS() local
276 napi_call_function(env, thisVar, handler, 1, &jsEvent, &callResult); in NotifyJS()
292 napi_value callResult = nullptr; in NotifyJS() local
293 status = napi_call_function(env, thisVar, handler, 1, &jsEvent, &callResult); in NotifyJS()
/base/update/update_app/feature/ota/src/main/ets/util/
DRouterUtils.ts81 if (upgradeData?.callResult === UpgradeCallResult.OK) {
DVersionUtils.ets95 return upgradeData.callResult === UpgradeCallResult.OK ? upgradeData.data : null;
124 return upgradeData.callResult == UpgradeCallResult.OK ? upgradeData.data : null;
/base/update/update_app/common/src/main/ets/const/
Dupdate_const.ts379 callResult: UpgradeCallResult; property
/base/web/webview/interfaces/kits/napi/webviewcontroller/
Dwebview_javascript_result_callback.cpp58 napi_value callResult = nullptr; in UvJsCallbackThreadWoker() local
60 napi_call_function(param->env_, nullptr, callback, argv.size(), &argv[0], &callResult); in UvJsCallbackThreadWoker()
62 ParseNapiValue2NwebValue(param->env_, callResult, param->value_); in UvJsCallbackThreadWoker()
/base/update/updateservice/frameworks/js/napi/base/src/
Dclient_helper.cpp595 bool ClientHelper::IsCommonError(CallResult callResult) in IsCommonError() argument
597 return callResult == CallResult::UN_SUPPORT || callResult == CallResult::NOT_SYSTEM_APP || in IsCommonError()
598 callResult == CallResult::APP_NOT_GRANTED || callResult == CallResult::PARAM_ERR; in IsCommonError()
601 int32_t ClientHelper::ConvertToErrorCode(CallResult callResult) in ConvertToErrorCode() argument
603 if (IsCommonError(callResult) || callResult == CallResult::SUCCESS) { in ConvertToErrorCode()
604 return CAST_INT(callResult); in ConvertToErrorCode()
606 return COMPONENT_ERR + CAST_INT(callResult); in ConvertToErrorCode()
/base/startup/init/interfaces/kits/jskits/src/
Dnative_parameters_js.cpp74 napi_value callResult = nullptr; in SetCallbackWork() local
76 napi_call_function(env, nullptr, callback, ARGC_NUMBER, result, &callResult); in SetCallbackWork()
253 napi_value callResult = nullptr; in GetCallbackWork() local
255 napi_call_function(env, nullptr, callback, ARGC_NUMBER, result, &callResult); in GetCallbackWork()
Dnative_parameters_watch.cpp128 napi_value callResult = nullptr; in WaitCallbackWork() local
133 napi_call_function(env, undefined, callbackRef, ARGC_NUMBER, result, &callResult); in WaitCallbackWork()
/base/startup/init/interfaces/kits/jskits/src_enhance/
Dnative_parameters_js.cpp133 napi_value callResult = nullptr; in SetCallbackWork() local
135 napi_call_function(env, nullptr, callback, ARGC_NUMBER, result, &callResult); in SetCallbackWork()
320 napi_value callResult = nullptr; in GetCallbackWork() local
322 napi_call_function(env, nullptr, callback, ARGC_NUMBER, result, &callResult); in GetCallbackWork()
/base/msdp/device_status/frameworks/js/napi/src/
Ddevicestatus_event.cpp189 napi_value callResult = nullptr; in CheckRet() local
191 status = napi_call_function(env_, nullptr, handler, argc, &result, &callResult); in CheckRet()
/base/sensors/sensor/interfaces/plugin/src/
Dsensor_napi_utils.cpp460 napi_value callResult = nullptr; in EmitAsyncCallbackWork() local
469 … CHKCV((napi_call_function(env, nullptr, callback, 2, result, &callResult) == napi_ok), in EmitAsyncCallbackWork()
479 CHKCV((napi_call_function(env, nullptr, callback, 2, result, &callResult) == napi_ok), in EmitAsyncCallbackWork()
535 napi_value callResult = nullptr; in EmitUvEventLoop() local
545 if (napi_call_function(env, nullptr, callback, 1, &result[1], &callResult) != napi_ok) { in EmitUvEventLoop()
/base/powermgr/thermal_manager/frameworks/napi/
Dthermal_manager_napi.cpp120 napi_value callResult = nullptr; in OnThermalLevel() local
121 status = napi_call_function(env_, nullptr, callback, ARG_1, &levelValue, &callResult); in OnThermalLevel()
/base/update/updateservice/frameworks/js/napi/base/include/
Dclient_helper.h219 static int32_t ConvertToErrorCode(CallResult callResult);
228 static bool IsCommonError(CallResult callResult);
/base/update/update_app/product/oh/base/src/main/ets/pages/
Dindex.ets122 …let otaStatus: OtaStatus = upgradeData.callResult == UpgradeCallResult.OK ? upgradeData.data : nul…
128 if (upgradeData.callResult == UpgradeCallResult.OK) {
148 if (upgradeData.callResult == UpgradeCallResult.OK) {
DcurrentVersion.ets48 if (upgradeData.callResult == UpgradeCallResult.OK) {
DnewVersion.ets122 …let otaStatus: OtaStatus = upgradeData.callResult == UpgradeCallResult.OK ? upgradeData.data : nul…
187 return upgradeData.callResult == UpgradeCallResult.OK ? upgradeData.data : null;
/base/update/update_app/feature/ota/src/main/ets/manager/
DOtaUpdateManager.ets78 if (result?.callResult === UpgradeCallResult.OK) {
94 if (result?.callResult === UpgradeCallResult.OK) {
133 if (result?.callResult === UpgradeCallResult.OK) {
/base/powermgr/display_manager/frameworks/napi/
Dbrightness.cpp379 napi_value callResult = 0; in CallFunction() local
382 napi_status status = napi_call_function(env_, nullptr, callback, argc, response, &callResult); in CallFunction()
/base/update/updateservice/interfaces/inner_api/include/
Dupdate_helper.h437 BusinessError &Build(CallResult callResult, const std::string &msg) in Build()
439 errorNum = callResult; in Build()
/base/useriam/user_auth_framework/frameworks/js/napi/user_auth/src/
Duser_auth_napi_helper.cpp375 napi_value callResult; in CallVoidNapiFunc() local
376 ret = napi_call_function(env, undefined, funcVal, argc, argv, &callResult); in CallVoidNapiFunc()
/base/update/updateservice/services/engine/src/
Dupdate_service_stub.cpp36 #define CALL_RESULT_TO_IPC_RESULT(callResult) ((callResult) + CALL_RESULT_OFFSET) argument

12