Home
last modified time | relevance | path

Searched refs:NAPI_ERR_NO_ERROR (Results 1 - 9 of 9) sorted by relevance

/foundation/ability/ability_runtime/frameworks/js/napi/inner/napi_ability_common/
H A Dnapi_common_ability.cpp476 appTypeCB->cbBase.errCode = NAPI_ERR_NO_ERROR; in NAPI_GetAppTypeCommon()
534 asyncCallbackInfo->error_code = NAPI_ERR_NO_ERROR; in GetDisplayOrientationExecuteCallback()
583 asyncCallbackInfo->error_code = NAPI_ERR_NO_ERROR; in NAPI_GetDisplayOrientationCommon()
612 abilityInfoCB->cbBase.errCode = NAPI_ERR_NO_ERROR; in NAPI_GetAbilityInfoCommon()
643 hapModuleInfoCB->cbBase.errCode = NAPI_ERR_NO_ERROR; in NAPI_GetHapModuleInfoCommon()
674 appVersionInfoCB->cbBase.errCode = NAPI_ERR_NO_ERROR; in NAPI_GetAppVersionInfoCommon()
740 asyncCallbackInfo->errCode = NAPI_ERR_NO_ERROR; in CreateAsyncCallbackInfo()
754 asyncCallbackInfo->errCode = NAPI_ERR_NO_ERROR; in GetContextAsyncExecuteCB()
796 if (asyncCallbackInfo->errCode == NAPI_ERR_NO_ERROR) { in GetContextAsync()
843 if (asyncCallbackInfo->errCode == NAPI_ERR_NO_ERROR) { in GetContextPromise()
[all...]
H A Djs_napi_common.cpp116 int32_t errorVal = static_cast<int32_t>(NAPI_ERR_NO_ERROR); in JsConnectAbility()
130 if (errorVal != static_cast<int32_t>(NAPI_ERR_NO_ERROR) || result == false) { in JsConnectAbility()
159 if (*value != static_cast<int32_t>(NAPI_ERR_NO_ERROR)) { in SetJsDisConnectAbilityCallback()
178 auto errorVal = std::make_shared<int32_t>(static_cast<int32_t>(NAPI_ERR_NO_ERROR)); in JsDisConnectAbility()
317 auto errorVal = std::make_shared<int32_t>(static_cast<int32_t>(NAPI_ERR_NO_ERROR)); in JsGetFilesDir()
339 if (*value != static_cast<int32_t>(NAPI_ERR_NO_ERROR) || dir == nullptr) { in JsGetFilesDir()
366 auto errorVal = std::make_shared<int32_t>(static_cast<int32_t>(NAPI_ERR_NO_ERROR)); in JsIsUpdatingConfigurations()
387 if (*value != static_cast<int32_t>(NAPI_ERR_NO_ERROR) || info == nullptr) { in JsIsUpdatingConfigurations()
415 auto errorVal = std::make_shared<int32_t>(static_cast<int32_t>(NAPI_ERR_NO_ERROR)); in JsPrintDrawnCompleted()
436 if (*value != static_cast<int32_t>(NAPI_ERR_NO_ERROR) || dra in JsPrintDrawnCompleted()
[all...]
H A Dnapi_context.cpp81 showOnLockScreenCB->cbBase.errCode = NAPI_ERR_NO_ERROR; in SetShowOnLockScreenAsyncCompleteCB()
234 asyncCallbackInfo->error_code = NAPI_ERR_NO_ERROR; in SetDisplayOrientationExecuteCallbackWork()
290 setWakeUpScreenCB->cbBase.errCode = NAPI_ERR_NO_ERROR; in SetWakeUpScreenAsyncCompleteCB()
542 asyncCallbackInfo->error_code = NAPI_ERR_NO_ERROR; in VerifySelfPermissionExecuteCallbackWork()
647 asyncCallbackInfo->error_code = NAPI_ERR_NO_ERROR; in RequestPermissionsFromUserExecuteCallbackWork()
675 if (asyncCallbackInfo->error_code != NAPI_ERR_NO_ERROR) { in RequestPermissionsFromUserCompleteAsyncCallbackWork()
980 asyncCallbackInfo->error_code = NAPI_ERR_NO_ERROR; in VerifyPermissionExecuteCallback()
1056 appInfoCB->cbBase.errCode = NAPI_ERR_NO_ERROR; in GetAppInfoExecuteCB()
1084 if (appInfoCB->cbBase.errCode == NAPI_ERR_NO_ERROR) { in GetAppInfoAsyncCompleteCB()
1141 if (appInfoCB->cbBase.errCode == NAPI_ERR_NO_ERROR) { in GetAppInfoPromiseCompleteCB()
[all...]
H A Dnapi_common_ability_execute_utils.cpp38 appTypeCB->cbBase.errCode = NAPI_ERR_NO_ERROR; in GetAppTypeExecuteCB()
71 if (appTypeCB->cbBase.errCode == NAPI_ERR_NO_ERROR) { in GetAppTypeAsyncCompleteCB()
101 if (appTypeCB->cbBase.errCode == NAPI_ERR_NO_ERROR) { in GetAppTypePromiseCompleteCB()
242 abilityInfoCB->cbBase.errCode = NAPI_ERR_NO_ERROR; in GetAbilityInfoExecuteCB()
280 if (abilityInfoCB->cbBase.errCode == NAPI_ERR_NO_ERROR) { in GetAbilityInfoAsyncCompleteCB()
308 if (abilityInfoCB->cbBase.errCode == NAPI_ERR_NO_ERROR) { in GetAbilityInfoPromiseCompleteCB()
443 hapModuleInfoCB->cbBase.errCode = NAPI_ERR_NO_ERROR; in GetHapModuleInfoExecuteCB()
475 if (hapModuleInfoCB->cbBase.errCode == NAPI_ERR_NO_ERROR) { in GetHapModuleInfoAsyncCompleteCB()
497 if (hapModuleInfoCB->cbBase.errCode == NAPI_ERR_NO_ERROR) { in GetHapModuleInfoPromiseCompleteCB()
625 appVersionInfoCB->cbBase.errCode = NAPI_ERR_NO_ERROR; in GetAppVersionInfoExecuteCB()
[all...]
H A Dnapi_common_ability_wrap_utils.cpp41 { NAPI_ERR_NO_ERROR, ERR_ABILITY_START_SUCCESS },
294 asyncCallbackInfo->error_code = NAPI_ERR_NO_ERROR; in GetFilesDirExecuteCallback()
330 asyncCallbackInfo->error_code = NAPI_ERR_NO_ERROR; in IsUpdatingConfigurationsExecuteCallback()
364 asyncCallbackInfo->error_code = NAPI_ERR_NO_ERROR; in PrintDrawnCompletedExecuteCallback()
393 asyncCallbackInfo->error_code = NAPI_ERR_NO_ERROR; in GetOrCreateDistributedDirExecuteCallback()
435 asyncCallbackInfo->error_code = NAPI_ERR_NO_ERROR; in GetCacheDirExecuteCallback()
477 asyncCallbackInfo->error_code = NAPI_ERR_NO_ERROR; in GetExternalCacheDirExecuteCallback()
/foundation/ability/ability_runtime/frameworks/js/napi/inner/napi_common/
H A Dnapi_common_error.h24 #define NAPI_ERR_NO_ERROR 0 macro
H A Dnapi_common_util.cpp1111 if (asyncCallbackInfo->error_code == NAPI_ERR_NO_ERROR) { in CompleteAsyncVoidCallbackWork()
1144 if (asyncCallbackInfo->error_code == NAPI_ERR_NO_ERROR) { in CompletePromiseCallbackWork()
1166 if (asyncCallbackInfo->error_code == NAPI_ERR_NO_ERROR) { in CompletePromiseVoidCallbackWork()
/foundation/ability/ability_runtime/frameworks/js/napi/featureAbility/
H A Dfeature_ability.cpp307 if (startAbilityCallback->errCode == NAPI_ERR_NO_ERROR) { in OnStartAbilityForResult()
312 if (startAbilityCallback->errCode != NAPI_ERR_NO_ERROR) { in OnStartAbilityForResult()
817 asyncCallbackInfo->errCode = NAPI_ERR_NO_ERROR; in GetWantSyncWrap()
832 if (asyncCallbackInfo->errCode == NAPI_ERR_NO_ERROR) { in GetWantSyncWrap()
857 asyncCallbackInfo->errCode = NAPI_ERR_NO_ERROR; in NAPI_GetWantSync()
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/bundlemgr/
H A Dbundle_mgr.cpp53 constexpr size_t NAPI_ERR_NO_ERROR = 0; member
2482 if (asyncCallbackInfo->err == NAPI_ERR_NO_ERROR) { in GetBundleGidsAsyncComplete()
2501 if (asyncCallbackInfo->err == NAPI_ERR_NO_ERROR) { in GetBundleGidsPromiseComplete()
4456 if (asyncCallbackInfo->err == NAPI_ERR_NO_ERROR) { in GetAbilityLabelPromiseComplete()
4499 if (asyncCallbackInfo->err == NAPI_ERR_NO_ERROR) { in GetAbilityLabelAsyncComplete()

Completed in 39 milliseconds