/foundation/bundlemanager/bundle_framework/interfaces/kits/js/default_app/ |
H A D | js_default_app_unsupported.cpp | 33 napi_throw(env, error); in IsDefaultApplication() 42 napi_throw(env, error); in IsDefaultApplicationSync() 51 napi_throw(env, error); in GetDefaultApplication() 60 napi_throw(env, error); in GetDefaultApplicationSync() 69 napi_throw(env, error); in SetDefaultApplication() 78 napi_throw(env, error); in SetDefaultApplicationSync() 87 napi_throw(env, error); in ResetDefaultApplication() 96 napi_throw(env, error); in ResetDefaultApplicationSync()
|
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/launcher_bundle_manager/ |
H A D | launcher_bundle_manager_unsupported.cpp | 32 napi_throw(env, error); in GetLauncherAbilityInfo() 41 napi_throw(env, error); in GetLauncherAbilityInfoSync() 50 napi_throw(env, error); in GetAllLauncherAbilityInfo() 59 napi_throw(env, error); in GetShortcutInfo() 68 napi_throw(env, error); in GetShortcutInfoSync() 77 napi_throw(env, error); in StartShortcut()
|
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/overlay/ |
H A D | js_app_overlay_unsupported.cpp | 32 napi_throw(env, error); in SetOverlayEnabled() 41 napi_throw(env, error); in SetOverlayEnabledByBundleName() 50 napi_throw(env, error); in GetOverlayModuleInfo() 59 napi_throw(env, error); in GetTargetOverlayModuleInfos() 68 napi_throw(env, error); in GetOverlayModuleInfoByBundleName() 77 napi_throw(env, error); in GetTargetOverlayModuleInfosByBundleName()
|
/foundation/ability/ability_runtime/frameworks/native/runtime/ |
H A D | js_error_utils.cpp | 32 napi_throw(env, CreateJsError(env, errCode, errorMsg)); in ThrowError() 37 napi_throw(env, CreateJsError(env, static_cast<int32_t>(err), GetErrorMsg(err))); in ThrowError() 42 napi_throw(env, CreateJsError(env, in ThrowInvalidCallerError() 49 napi_throw(env, CreateJsError(env, in ThrowTooFewParametersError() 56 napi_throw(env, CreateJsError(env, in ThrowInvalidNumParametersError() 63 napi_throw(env, CreateJsError(env, in ThrowNoPermissionError() 70 napi_throw(env, CreateJsError(env, in ThrowNotSystemAppError() 77 napi_throw(env, CreateInvalidParamJsError(env, message)); in ThrowInvalidParamError() 82 napi_throw(env, CreateJsErrorByNativeErr(env, err)); in ThrowErrorByNativeErr()
|
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/app_control/ |
H A D | js_app_control_unsupported.cpp | 32 napi_throw(env, error); in GetDisposedStatus() 41 napi_throw(env, error); in SetDisposedStatus() 50 napi_throw(env, error); in DeleteDisposedStatus() 59 napi_throw(env, error); in GetDisposedStatusSync() 68 napi_throw(env, error); in SetDisposedStatusSync() 77 napi_throw(env, error); in DeleteDisposedStatusSync() 86 napi_throw(env, error); in GetDisposedRule() 95 napi_throw(env, error); in SetDisposedRule()
|
H A D | js_app_control.cpp | 201 napi_throw(env, businessError); in SetDisposedStatusSync() 215 napi_throw(env, error); in SetDisposedStatusSync() 224 napi_throw(env, businessError); in SetDisposedStatusSync() 314 napi_throw(env, businessError); in InnerDeleteDisposedStatusSync() 322 napi_throw(env, error); in InnerDeleteDisposedStatusSync() 336 napi_throw(env, businessError); in InnerDeleteDisposedStatusSync() 472 napi_throw(env, businessError); in GetDisposedStatusSync() 480 napi_throw(env, error); in GetDisposedStatusSync() 490 napi_throw(env, businessError); in GetDisposedStatusSync() 619 napi_throw(en in InnerGetDisposedRule() [all...] |
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/bundle_resource/ |
H A D | bundle_resource_unsupported.cpp | 31 napi_throw(env, error); in GetBundleResourceInfo() 40 napi_throw(env, error); in GetLauncherAbilityResourceInfo() 49 napi_throw(env, error); in GetAllBundleResourceInfo() 58 napi_throw(env, error); in GetAllLauncherAbilityResourceInfo()
|
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/free_install/ |
H A D | free_install_unsupported.cpp | 31 napi_throw(env, error); in IsHapModuleRemovable() 39 napi_throw(env, error); in SetHapModuleUpgradeFlag() 47 napi_throw(env, error); in GetBundlePackInfo() 55 napi_throw(env, error); in GetDispatchInfo()
|
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/color_manager/color_space_object_convertor/ |
H A D | js_color_space.cpp | 42 napi_throw(env, in GetColorSpaceName() 54 napi_throw(env, in GetSendableColorSpaceName() 66 napi_throw(env, in GetWhitePoint() 78 napi_throw(env, in GetSendableWhitePoint() 90 napi_throw(env, in GetGamma() 102 napi_throw(env, in GetSendableGamma() 115 napi_throw(env, in OnGetColorSpaceName() 131 napi_throw(env, in OnGetColorSpaceName() 143 napi_throw(env, in OnGetSendableColorSpaceName() 159 napi_throw(en in OnGetSendableColorSpaceName() [all...] |
H A D | color_space_object_convertor.cpp | 32 napi_throw(env, in CreateJsColorSpaceObject() 41 napi_throw(env, in CreateJsColorSpaceObject() 66 napi_throw(env, in CreateJsSendableColorSpaceObject() 81 napi_throw(env, in CreateJsSendableColorSpaceObject()
|
/foundation/window/window_manager/window_scene/interfaces/kits/napi/scene_session_manager/ |
H A D | js_scene_session_manager.cpp | 1080 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnRegisterCallback() 1087 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnRegisterCallback() 1094 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnRegisterCallback() 1104 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnRegisterCallback() 1171 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnUpdateFocus() 1178 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnUpdateFocus() 1185 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnUpdateFocus() 1303 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnGetAllAbilityInfos() 1311 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnGetAllAbilityInfos() 1318 napi_throw(en in OnGetAllAbilityInfos() [all...] |
H A D | js_root_scene_session.cpp | 93 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnRegisterCallback() 100 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnRegisterCallback() 107 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnRegisterCallback() 116 napi_throw(env, CreateJsError( in OnRegisterCallback() 146 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnLoadContent() 155 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnLoadContent() 162 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_STATE_ABNORMALLY))); in OnLoadContent() 170 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_STATE_ABNORMALLY))); in OnLoadContent()
|
H A D | js_scene_session.cpp | 2277 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnSetPrivacyMode() 2284 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnSetPrivacyMode() 2306 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnSetSystemSceneOcclusionAlpha() 2313 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnSetSystemSceneOcclusionAlpha() 2334 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnSetSystemSceneForceUIFirst() 2341 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnSetSystemSceneForceUIFirst() 2362 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnSetFocusable() 2369 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnSetFocusable() 2390 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnSetFocusableOnShow() 2397 napi_throw(en in OnSetFocusableOnShow() [all...] |
/foundation/window/window_manager/window_scene/interfaces/kits/napi/screen_session_manager/ |
H A D | js_screen_session_manager.cpp | 320 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_REPEAT_OPERATION))); in OnRegisterShutdownCallback() 328 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnRegisterShutdownCallback() 335 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM))); in OnRegisterShutdownCallback() 356 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_NOT_REGISTER_SYNC_CALLBACK))); in OnUnRegisterShutdownCallback() 380 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM))); in OnRegisterCallback() 387 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM))); in OnRegisterCallback() 393 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM))); in OnRegisterCallback() 400 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM))); in OnRegisterCallback() 421 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnUpdateScreenRotationProperty() 428 napi_throw(en in OnUpdateScreenRotationProperty() [all...] |
H A D | js_screen_session.cpp | 121 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnLoadContent() 130 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnLoadContent() 137 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_STATE_ABNORMALLY))); in OnLoadContent() 145 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_STATE_ABNORMALLY))); in OnLoadContent() 186 napi_throw(env, CreateJsError(env, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM))); in OnSetScreenRotationLocked() 193 napi_throw(env, CreateJsError(env, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM))); in OnSetScreenRotationLocked() 199 napi_throw(env, CreateJsError(env, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM))); in OnSetScreenRotationLocked() 243 napi_throw(env, CreateJsError(env, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM))); in OnSetTouchEnabled() 250 napi_throw(env, CreateJsError(env, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM))); in OnSetTouchEnabled() 256 napi_throw(en in OnSetTouchEnabled() [all...] |
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/color_manager/sendable_colorspacemanager_napi/ |
H A D | js_sendable_color_space_manager.cpp | 46 napi_throw(env, in CheckColorSpaceTypeRange() 56 napi_throw(env, in CheckColorSpaceTypeRange() 84 napi_throw(env, in OnCreateColorSpace() 93 napi_throw(env, in OnCreateColorSpace() 99 napi_throw(env, in OnCreateColorSpace() 111 napi_throw(env, in OnCreateColorSpace()
|
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/color_manager/colorspacemanager_napi/ |
H A D | js_color_space_manager.cpp | 45 napi_throw(env, in CheckColorSpaceTypeRange() 55 napi_throw(env, in CheckColorSpaceTypeRange() 83 napi_throw(env, in OnCreateColorSpace() 92 napi_throw(env, in OnCreateColorSpace() 98 napi_throw(env, in OnCreateColorSpace() 110 napi_throw(env, in OnCreateColorSpace()
|
/foundation/window/window_manager/interfaces/kits/napi/window_runtime/window_stage_napi/ |
H A D | js_window_stage.cpp | 218 napi_throw(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_STAGE_ABNORMALLY)); in OnGetMainWindowSync() 224 napi_throw(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_STATE_ABNORMALLY)); in OnGetMainWindowSync() 236 napi_throw(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_STATE_ABNORMALLY)); in OnEvent() 244 napi_throw(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_INVALID_PARAM)); in OnEvent() 252 napi_throw(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_INVALID_PARAM)); in OnEvent() 258 napi_throw(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_INVALID_PARAM)); in OnEvent() 265 napi_throw(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_STATE_ABNORMALLY)); in OnEvent() 271 napi_throw(env, JsErrUtils::CreateJsError(env, ret)); in OnEvent() 285 napi_throw(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_STATE_ABNORMALLY)); in OffEvent() 295 napi_throw(en in OffEvent() [all...] |
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/bundle_manager/ |
H A D | bundle_manager_sync.cpp | 176 napi_throw(env, businessError); in SetApplicationEnabledSync() 217 napi_throw(env, businessError); in SetAbilityEnabledSync() 252 napi_throw(env, businessError); in IsApplicationEnabledSync() 287 napi_throw(env, businessError); in IsAbilityEnabledSync() 487 napi_throw(env, businessError); in QueryExtensionInfosSync() 524 napi_throw(env, businessError); in GetPermissionDefSync() 588 napi_throw(env, businessError); in GetAbilityLabelSync() 598 napi_throw(env, error); in GetAbilityLabelSync() 664 napi_throw(env, businessError); in GetLaunchWantForBundleSync() 697 napi_throw(en in GetBundleArchiveInfoSync() [all...] |
/foundation/window/window_manager/interfaces/kits/napi/display_runtime/ |
H A D | js_display_manager.cpp | 197 napi_throw(env, CreateJsError(env, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_SCREEN)));
in OnGetDefaultDisplaySync() 213 napi_throw(env, CreateJsError(env, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM), errMsg));
in OnGetDisplayByIdSync() 220 napi_throw(env, CreateJsError(env, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM), errMsg));
in OnGetDisplayByIdSync() 226 napi_throw(env, CreateJsError(env, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM), errMsg));
in OnGetDisplayByIdSync() 232 napi_throw(env, CreateJsError(env, static_cast<int32_t>(DmErrorCode::DM_ERROR_SYSTEM_INNORMAL)));
in OnGetDisplayByIdSync() 566 napi_throw(env, CreateJsError(env, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM), errMsg));
in OnRegisterDisplayManagerCallback() 572 napi_throw(env, CreateJsError(env, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM), errMsg));
in OnRegisterDisplayManagerCallback() 580 napi_throw(env, CreateJsError(env, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM), errMsg));
in OnRegisterDisplayManagerCallback() 586 napi_throw(env, CreateJsError(env, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM), errMsg));
in OnRegisterDisplayManagerCallback() 598 napi_throw(en in OnRegisterDisplayManagerCallback() [all...] |
/foundation/communication/nfc/frameworks/js/napi/controller/ |
H A D | nfc_napi_ctrl_utils.cpp | 74 napi_throw(env, GenerateBusinessError(env, BUSI_ERR_PERM, in CheckNfcStatusCodeAndThrow() 78 napi_throw(env, GenerateBusinessError(env, BUSI_ERR_NFC_STATE_INVALID, in CheckNfcStatusCodeAndThrow()
|
/foundation/barrierfree/accessibility/interfaces/kits/napi/src/ |
H A D | napi_accessibility_system_ability_client.cpp | 52 napi_throw(env, err); \ 325 napi_throw(env, err); in GetAccessibilityExtensionList() 371 napi_throw(env, err); in GetAccessibilityExtensionList() 582 napi_throw(env, err); in SendAccessibilityEvent() 608 napi_throw(env, err); in SendAccessibilityEvent() 642 napi_throw(env, err); in SubscribeState() 665 napi_throw(env, err); in SubscribeState() 722 napi_throw(env, err); in UnsubscribeState() 883 napi_throw(env, err); in SetCaptionStateEnabled() 888 napi_throw(en in SetCaptionStateEnabled() [all...] |
/foundation/bundlemanager/distributed_bundle_framework/interfaces/kits/js/distributedBundle/ |
H A D | distributed_bundle_unsupported.cpp | 32 napi_throw(env, error); in GetRemoteAbilityInfo()
|
/foundation/window/window_manager/interfaces/kits/napi/embeddable_window_stage/ |
H A D | js_embeddable_window_stage.cpp | 166 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WmErrorCode::WM_ERROR_STATE_ABNORMALLY))); in OnGetMainWindowSync() 186 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WmErrorCode::WM_ERROR_INVALID_PARAM))); in OnEvent() 194 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WmErrorCode::WM_ERROR_INVALID_PARAM))); in OnEvent() 200 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WmErrorCode::WM_ERROR_INVALID_PARAM))); in OnEvent() 230 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WmErrorCode::WM_ERROR_INVALID_PARAM))); in OffEvent() 235 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WmErrorCode::WM_ERROR_INVALID_PARAM))); in OffEvent() 307 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WmErrorCode::WM_ERROR_INVALID_PARAM))); in OnLoadContent()
|
/foundation/window/window_manager/interfaces/kits/napi/window_runtime/window_manager_napi/ |
H A D | js_window_manager.cpp | 531 napi_throw(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_INVALID_PARAM));
in OnCreateWindow() 537 napi_throw(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_INVALID_PARAM));
in OnCreateWindow() 544 napi_throw(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_INVALID_PARAM));
in OnCreateWindow() 576 napi_throw(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_INVALID_PARAM));
in OnGetSnapshot() 582 napi_throw(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_INVALID_PARAM));
in OnGetSnapshot() 690 napi_throw(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_INVALID_PARAM));
in OnFindWindowSync() 702 napi_throw(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_STATE_ABNORMALLY));
in OnFindWindowSync() 732 napi_throw(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_INVALID_PARAM));
in OnMinimizeAll() 791 napi_throw(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_INVALID_PARAM));
in OnRegisterWindowManagerCallback() 797 napi_throw(en in OnRegisterWindowManagerCallback() [all...] |