Home
last modified time | relevance | path

Searched refs:GetJsErrorCodeByNativeError (Results 1 – 18 of 18) sorted by relevance

/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/ability_auto_startup_manager/
H A Djs_ability_auto_startup_manager.cpp120 ThrowError(env, GetJsErrorCodeByNativeError(ret)); in OnRegisterAutoStartupCallback()
166 ThrowError(env, GetJsErrorCodeByNativeError(ret)); in OnUnregisterAutoStartupCallback()
207 task.Reject(env, CreateJsError(env, GetJsErrorCodeByNativeError(INNER_ERR))); in OnSetApplicationAutoStartup()
212 task.Reject(env, CreateJsError(env, GetJsErrorCodeByNativeError(*ret))); in OnSetApplicationAutoStartup()
258 task.Reject(env, CreateJsError(env, GetJsErrorCodeByNativeError(INNER_ERR))); in OnCancelApplicationAutoStartup()
263 task.Reject(env, CreateJsError(env, GetJsErrorCodeByNativeError(*ret))); in OnCancelApplicationAutoStartup()
298 task.Reject(env, CreateJsError(env, GetJsErrorCodeByNativeError(INNER_ERR))); in OnQueryAllAutoStartupApplications()
303 task.Reject(env, CreateJsError(env, GetJsErrorCodeByNativeError(*ret))); in OnQueryAllAutoStartupApplications()
/ohos5.0/foundation/ability/ability_runtime/test/unittest/ability_business_error_test/
H A Dability_business_error_test.cpp68 AbilityErrorCode result = GetJsErrorCodeByNativeError(0);
71 result = GetJsErrorCodeByNativeError(-1000);
/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/ability_manager/
H A Djs_ability_manager.cpp266 task.Reject(env, CreateJsError(env, GetJsErrorCodeByNativeError(AAFwk::INNER_ERR))); in OnNotifyDebugAssertResult()
272 task.Reject(env, CreateJsError(env, GetJsErrorCodeByNativeError(ret))); in OnNotifyDebugAssertResult()
319 task.Reject(env, CreateJsError(env, GetJsErrorCodeByNativeError(errcode))); in OnGetAbilityRunningInfos()
361 task.Reject(env, CreateJsError(env, GetJsErrorCodeByNativeError(errcode))); in OnGetExtensionRunningInfos()
414 task.Reject(env, CreateJsError(env, GetJsErrorCodeByNativeError(errcode))); in OnUpdateConfiguration()
480 asyncTask->Reject(env, CreateJsError(env, GetJsErrorCodeByNativeError(resultCode))); in OnAcquireShareData()
496 asyncTask->Reject(env, CreateJsError(env, GetJsErrorCodeByNativeError(err))); in OnAcquireShareData()
538 task.Reject(env, CreateJsError(env, GetJsErrorCodeByNativeError(errCode))); in OnNotifySaveAsResult()
560 task.Reject(env, CreateJsError(env, GetJsErrorCodeByNativeError(ret))); in OnGetForegroundUIAbilities()
/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/insight_intent/insight_intent_driver/
H A Djs_insight_intent_driver.cpp57 task.Reject(env, CreateJsError(env, GetJsErrorCodeByNativeError(resultCode))); in ProcessInsightIntentExecute()
137 asyncTask->Reject(env, CreateJsError(env, GetJsErrorCodeByNativeError(err))); in OnExecute()
/ohos5.0/foundation/ability/ability_runtime/interfaces/kits/native/ability/native/ability_business_error/
H A Dability_business_error.h200 AbilityErrorCode GetJsErrorCodeByNativeError(int32_t errCode);
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/runtime/
H A Djs_error_utils.cpp104 auto errCode = GetJsErrorCodeByNativeError(err); in CreateJsErrorByNativeErr()
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/ability/native/auto_fill_extension_ability/
H A Djs_auto_fill_extension_context.cpp82 task.Reject(env, CreateJsError(env, GetJsErrorCodeByNativeError(*ret))); in OnReloadInModal()
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/ability/native/
H A Djs_free_install_observer.cpp202 value = CreateJsError(env_, GetJsErrorCodeByNativeError(resultCode)); in CallCallback()
236 napi_value error = CreateJsError(env_, GetJsErrorCodeByNativeError(resultCode)); in CallPromise()
H A Djs_service_extension_context.cpp716 …int32_t errcode = static_cast<int32_t>(AbilityRuntime::GetJsErrorCodeByNativeError(*innerErrorCode… in OnConnectAbility()
764 …int32_t errcode = static_cast<int32_t>(AbilityRuntime::GetJsErrorCodeByNativeError(innerErrorCode)… in OnConnectAbilityWithAccount()
/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/js_mission_manager/
H A Dmission_manager.cpp169 ThrowError(env, GetJsErrorCodeByNativeError(ret)); in OnOnOld()
206 ThrowError(env, GetJsErrorCodeByNativeError(ret)); in OnOnNew()
311 ThrowError(env, GetJsErrorCodeByNativeError(ret)); in OnOffNew()
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/ability/native/ability_business_error/
H A Dability_business_error.cpp242 AbilityErrorCode GetJsErrorCodeByNativeError(int32_t errCode) in GetJsErrorCodeByNativeError() function
/ohos5.0/foundation/ability/ability_runtime/frameworks/simulator/ability_simulator/src/
H A Djs_ability_context.cpp197 auto errCode = GetJsErrorCodeByNativeError(err); in CreateJsErrorByNativeErr()
/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/auto_fill_manager/
H A Djs_auto_fill_manager.cpp112 ThrowError(env, GetJsErrorCodeByNativeError(ret)); in OnRequestAutoSaveInner()
/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/app/js_app_manager/
H A Djs_app_manager.cpp658 task->Reject(env, CreateJsError(env, GetJsErrorCodeByNativeError(ret))); in OnGetForegroundApplications()
690 task->Reject(env, CreateJsError(env, GetJsErrorCodeByNativeError(ret))); in OnGetRunningProcessInformation()
785 task->Reject(env, CreateJsError(env, GetJsErrorCodeByNativeError(ret))); in OnGetRunningProcessInformationByBundleType()
1496 task->Reject(env, CreateJsError(env, GetJsErrorCodeByNativeError(ret))); in OnGetSupportedProcessCachePids()
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/ability/native/form_runtime/
H A Djs_form_extension_context.cpp244 …int32_t errcode = static_cast<int32_t>(AbilityRuntime::GetJsErrorCodeByNativeError(innerErrorCode)… in OnConnectAbility()
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/ability/native/ui_service_extension_ability/
H A Djs_ui_service_extension_context.cpp392 …int32_t errcode = static_cast<int32_t>(AbilityRuntime::GetJsErrorCodeByNativeError(*innerErrorCode… in OnConnectServiceExtensionAbility()
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/ability/native/ability_runtime/
H A Djs_ability_context.cpp650 AbilityErrorCode errcode = AbilityRuntime::GetJsErrorCodeByNativeError(innerErrorCode); in DoConnectUIServiceExtension()
1526 …int32_t errcode = static_cast<int32_t>(AbilityRuntime::GetJsErrorCodeByNativeError(innerErrorCode)… in OnConnectAbility()
1584 …int32_t errcode = static_cast<int32_t>(AbilityRuntime::GetJsErrorCodeByNativeError(innerErrorCode)… in OnConnectAbilityWithAccount()
1743 asyncTask->Reject(env, CreateJsError(env, GetJsErrorCodeByNativeError(errCode))); in OnRequestDialogService()
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/ability/native/ui_extension_ability/
H A Djs_ui_extension_context.cpp570 …int32_t errcode = static_cast<int32_t>(AbilityRuntime::GetJsErrorCodeByNativeError(innerErrorCode)… in OnConnectAbility()
784 AbilityErrorCode errcode = AbilityRuntime::GetJsErrorCodeByNativeError(innerErrorCode); in DoConnectUIServiceExtension()