/foundation/ability/ability_runtime/frameworks/js/napi/app/app_manager/ |
D | js_app_manager.cpp | 192 task.Reject(engine, CreateJsError(engine, errCode, "Invalidate params.")); in OnUnregisterApplicationStateObserver() 197 … task.Reject(engine, CreateJsError(engine, ERROR_CODE_ONE, "observer or appManager nullptr")); in OnUnregisterApplicationStateObserver() 206 … task.Reject(engine, CreateJsError(engine, ret, "UnregisterApplicationStateObserver failed")); in OnUnregisterApplicationStateObserver() 230 task.Reject(engine, CreateJsError(engine, errCode, "Invalidate params.")); in OnGetForegroundApplications() 235 … task.Reject(engine, CreateJsError(engine, ERROR_CODE_ONE, "appManager nullptr")); in OnGetForegroundApplications() 245 … task.Reject(engine, CreateJsError(engine, ret, "OnGetForegroundApplications failed")); in OnGetForegroundApplications() 269 task.Reject(engine, CreateJsError(engine, errCode, "Invalidate params.")); in OnGetProcessRunningInfos() 277 task.Reject(engine, CreateJsError(engine, ret, "Get mission infos failed.")); in OnGetProcessRunningInfos() 301 task.Reject(engine, CreateJsError(engine, errCode, "Invalidate params.")); in OnIsRunningInStabilityTest() 306 … task.Reject(engine, CreateJsError(engine, ERROR_CODE_ONE, "abilityManager nullptr")); in OnIsRunningInStabilityTest() [all …]
|
/foundation/ability/ability_runtime/frameworks/js/napi/uri_permission/ |
D | js_uri_perm_mgr.cpp | 105 … task.Reject(engine, CreateNoPermissionError(engine, "ohos.permission.PROXY_AUTHORIZATION_URI")); in OnGrantUriPermission() 107 … task.Reject(engine, CreateJsError(engine, ERR_ABILITY_RUNTIME_EXTERNAL_INVALID_URI_FLAG, in OnGrantUriPermission() 110 … task.Reject(engine, CreateJsError(engine, ERR_ABILITY_RUNTIME_EXTERNAL_INVALID_URI_TYPE, in OnGrantUriPermission() 113 … task.Reject(engine, CreateJsError(engine, ERR_ABILITY_RUNTIME_EXTERNAL_GRANT_URI_PERMISSION, in OnGrantUriPermission() 116 … task.Reject(engine, CreateJsError(engine, ERR_ABILITY_RUNTIME_EXTERNAL_INTERNAL_ERROR, in OnGrantUriPermission() 163 task.Reject(engine, CreateNoPermissionError(engine, in OnRevokeUriPermission() 166 … task.Reject(engine, CreateJsError(engine, ERR_ABILITY_RUNTIME_EXTERNAL_INVALID_URI_TYPE, in OnRevokeUriPermission() 169 … task.Reject(engine, CreateJsError(engine, ERR_ABILITY_RUNTIME_EXTERNAL_INTERNAL_ERROR, in OnRevokeUriPermission()
|
/foundation/ability/ability_runtime/frameworks/js/napi/ability_manager/ |
D | js_ability_manager.cpp | 121 … task.Reject(engine, CreateJsError(engine, GetJsErrorCodeByNativeError(errcode))); in OnGetAbilityRunningInfos() 125 … task.Reject(engine, CreateJsError(engine, errcode, "Get mission infos failed.")); in OnGetAbilityRunningInfos() 164 … task.Reject(engine, CreateJsError(engine, GetJsErrorCodeByNativeError(errcode))); in OnGetExtensionRunningInfos() 168 … task.Reject(engine, CreateJsError(engine, errcode, "Get mission infos failed.")); in OnGetExtensionRunningInfos() 193 … task.Reject(engine, CreateJsError(engine, ERR_INVALID_VALUE, "no enough params.")); in OnUpdateConfiguration() 206 … task.Reject(engine, CreateJsError(engine, ERR_INVALID_VALUE, "config is invalid.")); in OnUpdateConfiguration() 218 … task.Reject(engine, CreateJsError(engine, GetJsErrorCodeByNativeError(errcode))); in OnUpdateConfiguration() 222 task.Reject(engine, CreateJsError(engine, errcode, "update config failed.")); in OnUpdateConfiguration() 285 … asyncTask->Reject(engine, CreateJsError(engine, GetJsErrorCodeByNativeError(resultCode))); in OnAcquireShareData() 290 … asyncTask->Reject(engine, CreateJsError(engine, AbilityErrorCode::ERROR_CODE_INNER)); in OnAcquireShareData() [all …]
|
/foundation/window/window_manager/interfaces/kits/napi/window_runtime/window_napi/ |
D | js_window.cpp | 677 … task.Reject(engine, CreateJsError(engine, static_cast<int32_t>(WMError::WM_ERROR_NULLPTR))); in OnShow() 681 task.Reject(engine, CreateJsError(engine, static_cast<int32_t>(errCode))); in OnShow() 689 … task.Reject(engine, CreateJsError(engine, static_cast<int32_t>(ret), "Window show failed")); in OnShow() 708 task.Reject(engine, CreateJsError(engine, in OnShowWindow() 717 task.Reject(engine, CreateJsError(engine, in OnShowWindow() 744 task.Reject(engine, CreateJsError(engine, static_cast<int32_t>(errCode))); in OnShowWithAnimation() 750 task.Reject(engine, CreateJsError(engine, in OnShowWithAnimation() 758 … task.Reject(engine, CreateJsError(engine, static_cast<int32_t>(ret), "Window show failed")); in OnShowWithAnimation() 785 … task.Reject(engine, CreateJsError(engine, static_cast<int32_t>(WMError::WM_ERROR_NULLPTR))); in OnDestroy() 789 task.Reject(engine, CreateJsError(engine, static_cast<int32_t>(errCode))); in OnDestroy() [all …]
|
/foundation/arkui/napi/native_engine/impl/ark/ |
D | ark_native_deferred.cpp | 52 void ArkNativeDeferred::Reject(NativeValue* reason) in Reject() function in ArkNativeDeferred 60 deferred_->Reject(vm, value.ToLocal(vm)); in Reject()
|
D | ark_native_deferred.h | 29 void Reject(NativeValue* reason) override;
|
/foundation/ability/ability_runtime/frameworks/js/napi/app/js_app_manager/ |
D | js_app_manager.cpp | 298 task.Reject(engine, CreateJsError(engine, AbilityErrorCode::ERROR_CODE_INNER)); in OnOffOld() 308 task.Reject(engine, CreateJsErrorByNativeErr(engine, ret)); in OnOffOld() 362 task.Reject(engine, CreateJsError(engine, AbilityErrorCode::ERROR_CODE_INNER)); in OnGetForegroundApplications() 372 task.Reject(engine, CreateJsError(engine, GetJsErrorCodeByNativeError(ret))); in OnGetForegroundApplications() 390 task.Reject(engine, CreateJsError(engine, AbilityErrorCode::ERROR_CODE_INNER)); in OnGetRunningProcessInformation() 398 task.Reject(engine, CreateJsError(engine, GetJsErrorCodeByNativeError(ret))); in OnGetRunningProcessInformation() 416 task.Reject(engine, CreateJsError(engine, AbilityErrorCode::ERROR_CODE_INNER)); in OnIsRunningInStabilityTest() 452 task.Reject(engine, CreateJsError(engine, AbilityErrorCode::ERROR_CODE_INNER)); in OnkillProcessesByBundleName() 459 task.Reject(engine, CreateJsErrorByNativeErr(engine, ret, "kill process failed.")); in OnkillProcessesByBundleName() 490 task.Reject(engine, CreateJsError(engine, AbilityErrorCode::ERROR_CODE_INNER)); in OnClearUpApplicationData() [all …]
|
/foundation/multimedia/av_session/mediaControlExtension/ModuleLoader/ |
D | js_media_control_extension_context.cpp | 94 … task.Reject(engine, CreateJsError(engine, AbilityErrorCode::ERROR_CODE_INVALID_CONTEXT)); in OnStartAbility() 104 task.Reject(engine, CreateJsErrorByNativeErr(engine, innerErrorCode)); in OnStartAbility() 123 task.Reject(engine, CreateJsError(engine, ERROR_CODE_ONE, "Context is released")); in OnTerminateSelf() 131 task.Reject(engine, CreateJsErrorByNativeErr(engine, innerErrorCode)); in OnTerminateSelf() 166 … task.Reject(engine, CreateJsError(engine, AbilityErrorCode::ERROR_CODE_INVALID_CONTEXT)); in OnTerminateSelfWithResult() 174 task.Reject(engine, CreateJsErrorByNativeErr(engine, errorCode)); in OnTerminateSelfWithResult()
|
/foundation/ability/ability_runtime/frameworks/native/ability/native/ability_runtime/ |
D | js_ability_context.cpp | 290 task.Reject(engine, CreateJsErrorByNativeErr(engine, *innerErrorCode)); in OnStartAbility() 334 … task.Reject(engine, CreateJsError(engine, AbilityErrorCode::ERROR_CODE_INVALID_CONTEXT)); in OnStartAbilityAsCaller() 342 task.Reject(engine, CreateJsErrorByNativeErr(engine, innerErrorCode)); in OnStartAbilityAsCaller() 414 task.Reject(engine, CreateJsErrorByNativeErr(engine, *innerErrorCode)); in OnStartAbilityWithAccount() 505 task.Reject(engine, CreateJsError(engine, AbilityErrorCode::ERROR_CODE_INNER)); in OnStartAbilityByCall() 528 task.Reject(engine, CreateJsError(engine, AbilityErrorCode::ERROR_CODE_INNER)); in OnStartAbilityByCall() 609 asyncTask->Reject(engine, CreateJsError(engine, AbilityErrorCode::ERROR_CODE_INNER)); in OnStartAbilityForResult() 619 asyncTask->Reject(engine, CreateJsErrorByNativeErr(engine, resultCode)); in OnStartAbilityForResult() 628 … asyncTask->Reject(engine, CreateJsError(engine, AbilityErrorCode::ERROR_CODE_INVALID_CONTEXT)); in OnStartAbilityForResult() 693 asyncTask->Reject(engine, CreateJsError(engine, AbilityErrorCode::ERROR_CODE_INNER)); in OnStartAbilityForResultWithAccount() [all …]
|
/foundation/window/window_manager/interfaces/kits/napi/window_runtime/window_manager_napi/ |
D | js_window_manager.cpp | 216 task.Reject(engine, CreateJsError(engine, err, "New window option failed")); in CreateNewSystemWindowTask() 223 task.Reject(engine, CreateJsError(engine, err, "Context is nullptr")); in CreateNewSystemWindowTask() 233 … task.Reject(engine, CreateJsError(engine, err, "TYPE_FLOAT CheckCallingPermission failed")); in CreateNewSystemWindowTask() 246 task.Reject(engine, CreateJsError(engine, err, "Create window failed")); in CreateNewSystemWindowTask() 257 task.Reject(engine, CreateJsError(engine, err, "Context is nullptr")); in CreateSystemWindowTask() 266 … task.Reject(engine, CreateJsError(engine, err, "TYPE_FLOAT CheckCallingPermission failed")); in CreateSystemWindowTask() 274 task.Reject(engine, CreateJsError(engine, err, "New window option failed")); in CreateSystemWindowTask() 287 task.Reject(engine, CreateJsError(engine, err, "Create window failed")); in CreateSystemWindowTask() 295 task.Reject(engine, CreateJsError(engine, err, "New window option failed")); in CreateNewSubWindowTask() 304 task.Reject(engine, CreateJsError(engine, err, "parent window missed")); in CreateNewSubWindowTask() [all …]
|
/foundation/barrierfree/accessibility/interfaces/kits/napi/accessibility_extension_module_loader/src/ |
D | napi_accessibility_extension_context.cpp | 193 task.Reject(engine, CreateJsError(engine, in SetTargetBundleNameCompleteTask() 204 task.Reject(engine, CreateJsError(engine, in SetTargetBundleNameCompleteTask() 254 task.Reject(engine, CreateJsError(engine, in GetFoucusElementCompleteTask() 274 task.Reject(engine, CreateJsError(engine, in GetFoucusElementCompleteTask() 331 task.Reject(engine, CreateJsError(engine, in GetWindowRootElementCompleteTask() 361 task.Reject(engine, CreateJsError(engine, in GetWindowRootElementCompleteTask() 420 task.Reject(engine, CreateJsError(engine, in GetWindowsAsync() 437 task.Reject(engine, CreateJsError(engine, in GetWindowsAsync() 458 task.Reject(engine, CreateJsError(engine, in GetWindowsByDisplayIdAsync() 466 task.Reject(engine, CreateJsError(engine, in GetWindowsByDisplayIdAsync() [all …]
|
/foundation/arkui/napi/native_engine/ |
D | native_deferred.h | 25 virtual void Reject(NativeValue* reason) = 0;
|
/foundation/ability/ability_runtime/frameworks/native/ability/native/ui_extension_ability/ |
D | js_ui_extension_context.cpp | 184 … task.Reject(engine, CreateJsError(engine, AbilityErrorCode::ERROR_CODE_INVALID_CONTEXT)); in OnStartAbility() 194 task.Reject(engine, CreateJsErrorByNativeErr(engine, innerErrorCode)); in OnStartAbility() 213 … task.Reject(engine, CreateJsError(engine, AbilityErrorCode::ERROR_CODE_INVALID_CONTEXT)); in OnTerminateSelf() 221 task.Reject(engine, CreateJsErrorByNativeErr(engine, innerErrorCode)); in OnTerminateSelf() 262 asyncTask->Reject(engine, CreateJsError(engine, AbilityErrorCode::ERROR_CODE_INNER)); in OnStartAbilityForResult() 266 asyncTask->Reject(engine, CreateJsErrorByNativeErr(engine, resultCode)); in OnStartAbilityForResult() 274 … asyncTask->Reject(engine, CreateJsError(engine, AbilityErrorCode::ERROR_CODE_INVALID_CONTEXT)); in OnStartAbilityForResult() 308 … task.Reject(engine, CreateJsError(engine, AbilityErrorCode::ERROR_CODE_INVALID_CONTEXT)); in OnTerminateSelfWithResult() 316 task.Reject(engine, CreateJsErrorByNativeErr(engine, errorCode)); in OnTerminateSelfWithResult() 351 … task.Reject(engine, CreateJsError(engine, AbilityErrorCode::ERROR_CODE_INVALID_CONTEXT)); in OnConnectAbility() [all …]
|
D | js_ui_extension_content_session.cpp | 199 task.Reject(engine, CreateJsErrorByNativeErr(engine, *innerErrorCode)); in OnStartAbility() 314 asyncTask->Reject(engine, CreateJsError(engine, AbilityErrorCode::ERROR_CODE_INNER)); in StartAbilityForResultRuntimeTask() 324 asyncTask->Reject(engine, CreateJsErrorByNativeErr(engine, resultCode)); in StartAbilityForResultRuntimeTask() 333 … asyncTask->Reject(engine, CreateJsError(engine, AbilityErrorCode::ERROR_CODE_INVALID_CONTEXT)); in StartAbilityForResultRuntimeTask() 356 task.Reject(engine, CreateJsError(engine, AbilityErrorCode::ERROR_CODE_INNER)); in OnTerminateSelf() 363 task.Reject(engine, CreateJsErrorByNativeErr(engine, errorCode)); in OnTerminateSelf() 395 task.Reject(engine, CreateJsError(engine, AbilityErrorCode::ERROR_CODE_INNER)); in OnTerminateSelfWithResult() 400 task.Reject(engine, CreateJsError(engine, AbilityErrorCode::ERROR_CODE_INNER)); in OnTerminateSelfWithResult() 407 task.Reject(engine, CreateJsErrorByNativeErr(engine, errorCode)); in OnTerminateSelfWithResult() 566 task.Reject(engine, CreateJsError(engine, AbilityErrorCode::ERROR_CODE_INNER)); in OnSetWindowPrivacyMode() [all …]
|
/foundation/ability/ability_runtime/frameworks/native/ability/native/ |
D | js_service_extension_context.cpp | 261 task.Reject(engine, CreateJsErrorByNativeErr(engine, *innerErrorCode)); in OnStartAbility() 302 … task.Reject(engine, CreateJsError(engine, AbilityErrorCode::ERROR_CODE_INVALID_CONTEXT)); in OnStartAbilityAsCaller() 312 task.Reject(engine, CreateJsErrorByNativeErr(engine, innerErrorCode)); in OnStartAbilityAsCaller() 424 task.Reject(engine, CreateJsError(engine, calldata->err, "callComplete err.")); in GetCallComplete() 446 task.Reject(engine, CreateJsError(engine, -1, "Create Call Failed.")); in GetCallComplete() 550 task.Reject(engine, CreateJsErrorByNativeErr(engine, *innerErrorCode)); in OnStartAbilityWithAccount() 607 … task.Reject(engine, CreateJsError(engine, ERROR_CODE_ONE, "Context is released")); in OnTerminateAbility() 615 task.Reject(engine, CreateJsErrorByNativeErr(engine, innerErrorCode)); in OnTerminateAbility() 649 … task.Reject(engine, CreateJsError(engine, ERROR_CODE_ONE, "Context is released")); in OnConnectAbility() 694 … task.Reject(engine, CreateJsError(engine, ERROR_CODE_ONE, "Context is released")); in OnConnectAbilityWithAccount() [all …]
|
/foundation/ability/ability_runtime/frameworks/js/napi/mission_manager/ |
D | mission_manager.cpp | 174 … task.Reject(engine, CreateJsError(engine, AbilityErrorCode::ERROR_CODE_NO_MISSION_LISTENER)); in OnUnregisterMissionListener() 187 task.Reject(engine, in OnUnregisterMissionListener() 227 task.Reject(engine, in OnGetMissionInfos() 267 task.Reject(engine, in OnGetMissionInfo() 318 task.Reject(engine, CreateJsErrorByNativeErr(engine, snapshotWrap->result, in OnGetMissionSnapShot() 373 task.Reject(engine, in OnLockMission() 406 task.Reject(engine, in OnUnlockMission() 439 task.Reject(engine, in OnClearMission() 460 task.Reject(engine, in OnClearAllMissions() 502 task.Reject(engine, in OnMoveMissionToFront()
|
/foundation/ability/form_fwk/frameworks/js/napi/formHost/ |
D | napi_form_host.cpp | 1085 asyncTask->Reject(engine, AbilityRuntime::CreateJsError(engine, retCode, retMsg)); in OnShareForm() 1090 … asyncTask->Reject(engine, AbilityRuntime::CreateJsError(engine, errCode, "Invalidate params.")); in OnShareForm() 1134 task.Reject(engine, CreateJsError(engine, code, QueryRetMsg(code))); in OnDisableFormsUpdate() 1140 task.Reject(engine, CreateJsError(engine, retCode, QueryRetMsg(retCode))); in OnDisableFormsUpdate() 1169 task.Reject(engine, CreateJsError(engine, retCode, QueryRetMsg(retCode))); in OnIsSystemReady() 1193 task.Reject(engine, CreateJsError(engine, retCode, QueryRetMsg(retCode))); in OnGetAllFormsInfo() 1230 task.Reject(engine, CreateJsError(engine, retCode, QueryRetMsg(retCode))); in OnGetFormsInfo() 1242 task.Reject(engine, CreateJsError(engine, retCode, QueryRetMsg(retCode))); in OnGetFormsInfo() 1282 task.Reject(engine, CreateJsError(engine, retCode, QueryRetMsg(retCode))); in OnDeleteForm() 1291 task.Reject(engine, CreateJsError(engine, retCode, QueryRetMsg(retCode))); in OnDeleteForm() [all …]
|
/foundation/ability/ability_runtime/frameworks/js/napi/js_mission_manager/ |
D | mission_manager.cpp | 259 … task.Reject(engine, CreateJsError(engine, AbilityErrorCode::ERROR_CODE_NO_MISSION_LISTENER)); in OnOffOld() 272 task.Reject(engine, in OnOffOld() 357 task.Reject(engine, in OnGetMissionInfos() 397 task.Reject(engine, in OnGetMissionInfo() 448 task.Reject(engine, CreateJsErrorByNativeErr(engine, snapshotWrap->result, in OnGetMissionSnapShot() 503 task.Reject(engine, in OnLockMission() 536 task.Reject(engine, in OnUnlockMission() 569 task.Reject(engine, in OnClearMission() 590 task.Reject(engine, in OnClearAllMissions() 632 task.Reject(engine, in OnMoveMissionToFront() [all …]
|
/foundation/ability/ability_runtime/frameworks/native/ability/native/form_runtime/ |
D | js_form_extension_context.cpp | 130 task.Reject(engine, CreateJsError(engine, 1, "Context is released")); in OnUpdateForm() 137 task.Reject(engine, CreateJsError(engine, errcode, "update form failed.")); in OnUpdateForm() 179 task.Reject(engine, in OnStartAbility() 190 task.Reject(engine, in OnStartAbility() 225 … task.Reject(engine, CreateJsError(engine, AbilityErrorCode::ERROR_CODE_INVALID_CONTEXT)); in OnConnectAbility() 268 … task.Reject(engine, CreateJsError(engine, AbilityErrorCode::ERROR_CODE_INVALID_CONTEXT)); in OnDisconnectAbility() 273 task.Reject(engine, CreateJsError(engine, AbilityErrorCode::ERROR_CODE_INNER)); in OnDisconnectAbility() 281 task.Reject(engine, CreateJsErrorByNativeErr(engine, innerErrorCode)); in OnDisconnectAbility()
|
/foundation/window/window_manager/interfaces/kits/napi/window_runtime/window_stage_napi/ |
D | js_window_stage.cpp | 162 task.Reject(engine, CreateJsError(engine, in OnGetMainWindow() 173 task.Reject(engine, CreateJsError(engine, in OnGetMainWindow() 305 …task.Reject(engine, CreateJsError(engine, static_cast<int32_t>(ret), "Window load content failed")… in LoadContentTask() 345 task.Reject(engine, CreateJsError(engine, in OnLoadContent() 364 … task.Reject(engine, CreateJsError(engine, static_cast<int32_t>(WMError::WM_ERROR_NULLPTR))); in OnGetWindowMode() 370 … task.Reject(engine, CreateJsError(engine, static_cast<int32_t>(Rosen::WMError::WM_ERROR_NULLPTR), in OnGetWindowMode() 411 task.Reject(engine, CreateJsError(engine, in OnCreateSubWindow() 421 task.Reject(engine, CreateJsError(engine, in OnCreateSubWindow() 459 task.Reject(engine, CreateJsError(engine, in OnGetSubWindow()
|
/foundation/ability/ability_runtime/frameworks/js/napi/app/ability_delegator/ |
D | js_ability_delegator.cpp | 287 task.Reject(engine, CreateJsError(engine, COMMON_FAILED, "addAbilityMonitor failed.")); in OnAddAbilityMonitor() 334 … task.Reject(engine, CreateJsError(engine, COMMON_FAILED, "addAbilityStageMonitor failed.")); in OnAddAbilityStageMonitor() 389 … task.Reject(engine, CreateJsError(engine, COMMON_FAILED, "removeAbilityMonitor failed.")); in OnRemoveAbilityMonitor() 457 … task.Reject(engine, CreateJsError(engine, COMMON_FAILED, "removeAbilityStageMonitor failed.")); in OnRemoveAbilityStageMonitor() 541 task.Reject(engine, CreateJsError(engine, COMMON_FAILED, "waitAbilityMonitor failed.")); in OnWaitAbilityMonitor() 595 … task.Reject(engine, CreateJsError(engine, COMMON_FAILED, "waitAbilityStageMonitor failed.")); in OnWaitAbilityStageMonitor() 622 task.Reject(engine, CreateJsError(engine, COMMON_FAILED, "print failed.")); in OnPrint() 689 … task.Reject(engine, CreateJsError(engine, COMMON_FAILED, "executeShellCommand failed.")); in OnExecuteShellCommand() 697 … task.Reject(engine, CreateJsError(engine, COMMON_FAILED, "executeShellCommand failed.")); in OnExecuteShellCommand() 784 … task.Reject(engine, CreateJsError(engine, COMMON_FAILED, "getCurrentTopAbility failed.")); in OnGetCurrentTopAbility() [all …]
|
/foundation/ability/ability_runtime/frameworks/native/appkit/ability_runtime/context/ |
D | js_application_context_utils.cpp | 394 … task.Reject(engine, CreateJsError(engine, ERR_ABILITY_RUNTIME_EXTERNAL_CONTEXT_NOT_EXIST, in OnGetGroupDir() 448 … task.Reject(engine, CreateJsError(engine, ERR_ABILITY_RUNTIME_EXTERNAL_CONTEXT_NOT_EXIST, in OnKillProcessBySelf() 481 … task.Reject(engine, CreateJsError(engine, ERR_ABILITY_RUNTIME_EXTERNAL_CONTEXT_NOT_EXIST, in OnGetRunningProcessInformation() 503 … task.Reject(engine, CreateJsError(engine, ERR_ABILITY_RUNTIME_EXTERNAL_INTERNAL_ERROR, in OnGetRunningProcessInformation() 510 task.Reject(engine, CreateJsError(engine, ERR_ABILITY_RUNTIME_EXTERNAL_INTERNAL_ERROR, in OnGetRunningProcessInformation() 592 task.Reject(engine, CreateJsError(engine, errCode, "Invalidate params.")); in OnUnregisterAbilityLifecycleCallback() 598 task.Reject(engine, CreateJsError(engine, ERROR_CODE_ONE, "callback is nullptr")); in OnUnregisterAbilityLifecycleCallback() 605 … task.Reject(engine, CreateJsError(engine, ERROR_CODE_ONE, "call UnRegister failed!")); in OnUnregisterAbilityLifecycleCallback() 682 task.Reject(engine, CreateJsError(engine, errCode, "Invalidate params.")); in OnUnregisterEnvironmentCallback() 688 … task.Reject(engine, CreateJsError(engine, ERROR_CODE_ONE, "env_callback is nullptr")); in OnUnregisterEnvironmentCallback() [all …]
|
/foundation/ability/dmsfwk/interfaces/kits/napi/continuation_manager/ |
D | js_continuation_manager.cpp | 148 task.Reject(engine, CreateJsError(engine, errCode, "Invalidate params.")); in OnRegister() 158 task.Reject(engine, CreateJsError(engine, ret, "Register failed.")); in OnRegister() 212 task.Reject(engine, CreateJsError(engine, errCode, ErrorMessageReturn(errCode))); in OnRegisterContinuation() 247 task.Reject(engine, CreateJsError(engine, errCode, "Invalidate params.")); in OnUnregister() 255 task.Reject(engine, CreateJsError(engine, ret, "Unregister failed.")); in OnUnregister() 300 task.Reject(engine, CreateJsError(engine, errCode, ErrorMessageReturn(errCode))); in OnUnregisterContinuation() 464 task.Reject(engine, CreateJsError(engine, errCode, "Invalidate params.")); in OnUpdateConnectStatus() 473 task.Reject(engine, CreateJsError(engine, ret, "UpdateConnectStatus failed.")); in OnUpdateConnectStatus() 532 task.Reject(engine, CreateJsError(engine, errCode, ErrorMessageReturn(errCode))); in OnUpdateContinuationState() 578 task.Reject(engine, CreateJsError(engine, errCode, "Invalidate params.")); in OnStartDeviceManager() [all …]
|
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/animation/window_animation_manager/ |
D | rs_window_animation_manager.cpp | 149 task.Reject(engine, CreateJsError(engine, errCode, "Invalid params.")); in OnMinimizeWindowWithAnimation() 157 … task.Reject(engine, CreateJsError(engine, errCode, "Animation finished callback is null!")); in OnMinimizeWindowWithAnimation() 202 task.Reject(engine, CreateJsError(engine, errCode, "Invalid params.")); in OnGetWindowAnimationTargets()
|
/foundation/ability/ability_runtime/frameworks/js/napi/quick_fix/ |
D | js_quick_fix_manager.cpp | 103 task.Reject(engine, CreateJsErrorByErrorCode(engine, errCode)); in OnGetApplyedQuickFixInfo() 138 task.Reject(engine, CreateJsErrorByErrorCode(engine, errcode)); in OnApplyQuickFix() 183 task.Reject(engine, CreateJsErrorByErrorCode(engine, *retval)); in OnRevokeQuickFix()
|