/ohos5.0/base/security/crypto_framework/frameworks/js/napi/crypto/src/ |
H A D | napi_pub_key.cpp | 79 … napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to get pubKey obj!")); in JsGetEncoded() 87 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "c getEncoded fail.")); in JsGetEncoded() 95 napi_throw(env, GenerateBusinessError(env, res, "covert blob to napi value failed.")); in JsGetEncoded() 119 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to get format.")); in JsGetEncodedDer() 140 napi_throw(env, GenerateBusinessError(env, res, "c getEncodedDer fail.")); in JsGetEncodedDer() 147 napi_throw(env, GenerateBusinessError(env, res, "covert blob to napi value failed.")); in JsGetEncodedDer() 194 napi_throw(env, GenerateBusinessError(env, res, "getEncodedPem fail.")); in JsGetEncodedPem() 208 napi_throw(env, GenerateBusinessError(env, res, "C getAsyKeySpecBigInteger failed.")); in GetAsyKeySpecBigInt() 216 napi_throw(env, GenerateBusinessError(env, res, "covert bigInt to napi value failed.")); in GetAsyKeySpecBigInt() 229 napi_throw(env, GenerateBusinessError(env, res, "C getAsyKeySpecInt failed.")); in GetAsyKeySpecNumber() [all …]
|
H A D | napi_pri_key.cpp | 79 … napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to get priKey obj!")); in JsGetEncoded() 87 napi_throw(env, GenerateBusinessError(env, res, "c getEncoded fail.")); in JsGetEncoded() 95 napi_throw(env, GenerateBusinessError(env, res, "covert blob to napi value failed.")); in JsGetEncoded() 142 napi_throw(env, GenerateBusinessError(env, res, "getEncodedPem fail.")); in JsGetEncodedPem() 179 napi_throw(env, GenerateBusinessError(env, res, "C getAsyKeySpecBigInteger failed.")); in GetAsyKeySpecBigInt() 188 napi_throw(env, GenerateBusinessError(env, res, "covert bigInt to napi value failed.")); in GetAsyKeySpecBigInt() 200 napi_throw(env, GenerateBusinessError(env, res, "C getAsyKeySpecInt failed.")); in GetAsyKeySpecNumber() 215 napi_throw(env, GenerateBusinessError(env, res, "C getAsyKeySpecString failed.")); in GetAsyKeySpecString() 282 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "wrong argument num.")); in JsGetEncodedDer() 288 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to get format.")); in JsGetEncodedDer() [all …]
|
H A D | napi_ecc_key_util.cpp | 42 … napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "The input args num is invalid.")); in JsGenECCCommonParamsSpec() 49 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to get algoName.")); in JsGenECCCommonParamsSpec() 56 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "create c generator fail.")); in JsGenECCCommonParamsSpec() 75 … napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "The input args num is invalid.")); in JsConvertPoint() 82 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to get curveName.")); in JsConvertPoint() 89 … napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to get point blob.")); in JsConvertPoint() 99 napi_throw(env, GenerateBusinessError(env, ret, "failed to convert point.")); in JsConvertPoint() 125 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to get curveName.")); in JsGetEncodedPoint() 132 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to get point.")); in JsGetEncodedPoint() 140 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to get format.")); in JsGetEncodedPoint() [all …]
|
H A D | napi_asy_key_spec_generator.cpp | 403 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "create context fail!")); in JsGenerateKeyPair() 409 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "build context fail!")); in JsGenerateKeyPair() 431 napi_throw(env, GenerateBusinessError(env, errCode, "generate key pair fail.")); in JsGenerateKeyPairSync() 465 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "create context fail!")); in JsGeneratePubKey() 471 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "build context fail!")); in JsGeneratePubKey() 493 napi_throw(env, GenerateBusinessError(env, errCode, "generate PubKey fail.")); in JsGeneratePubKeySync() 502 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "new napi pub key failed!")); in JsGeneratePubKeySync() 530 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "create context fail!")); in JsGeneratePriKey() 536 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "build context fail!")); in JsGeneratePriKey() 558 napi_throw(env, GenerateBusinessError(env, errCode, "generate PriKey fail.")); in JsGeneratePriKeySync() [all …]
|
H A D | napi_cipher.cpp | 523 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "create context fail!")); in JsCipherInit() 544 napi_throw(env, GenerateBusinessError(env, res, "init cipher fail.")); in SyncInit() 606 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "create context fail!")); in JsCipherUpdate() 646 napi_throw(env, GenerateBusinessError(env, errCode, "get input blob failed!")); in JsCipherUpdateSync() 654 napi_throw(env, GenerateBusinessError(env, errCode, "update fail!")); in JsCipherUpdateSync() 673 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "create context fail!")); in JsCipherDoFinal() 717 napi_throw(env, GenerateBusinessError(env, ret, "get input blob failed!")); in JsCipherDoFinalSync() 727 napi_throw(env, GenerateBusinessError(env, res, "do final fail!")); in JsCipherDoFinalSync() 808 napi_throw(env, GenerateBusinessError(env, res, "create C cipher fail!")); in CreateCipher() 873 napi_throw(env, GenerateBusinessError(env, res, "c set cipher spec failed.")); in JsSetCipherSpec() [all …]
|
H A D | napi_mac.cpp | 417 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "malloc context failed")); in JsMacInit() 423 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "build context fail.")); in JsMacInit() 448 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "napiSysKey is null!")); in JsMacInitSync() 461 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "mac is nullptr!")); in JsMacInitSync() 479 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "malloc context failed")); in JsMacUpdate() 517 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "inBlob is null!")); in JsMacUpdateSync() 524 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "mac is nullptr!")); in JsMacUpdateSync() 546 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "malloc context failed")); in JsMacDoFinal() 575 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "mac is nullptr!")); in JsMacDoFinalSync() 582 napi_throw(env, GenerateBusinessError(env, errCode, "mac doFinal failed!")); in JsMacDoFinalSync() [all …]
|
H A D | napi_sym_key_generator.cpp | 217 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "new napi sym key failed.")); in AsyncKeyReturn() 335 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "new napi sym key failed.")); in napiGetInstance() 361 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "Create context failed!")); in JsGenerateSymKey() 367 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "Build context fail.")); in JsGenerateSymKey() 404 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "generate sym key failed.")); in JsGenerateSymKeySync() 411 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "get instance failed!")); in JsGenerateSymKeySync() 473 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "get keyMaterial failed!")); in JsConvertKeySync() 483 napi_throw(env, GenerateBusinessError(env, ret, "convertSymKey key failed!")); in JsConvertKeySync() 490 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "get instance failed!")); in JsConvertKeySync() 526 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to get algoName.")); in CreateSymKeyGenerator() [all …]
|
H A D | napi_rand.cpp | 233 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "malloc context failed")); in JsGenerateRandom() 239 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "build context fail.")); in JsGenerateRandom() 258 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "invalid params count")); in JsGenerateRandomSync() 265 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "get numBytes failed!")); in JsGenerateRandomSync() 277 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "fail to get rand obj!")); in JsGenerateRandomSync() 285 napi_throw(env, GenerateBusinessError(env, res, "generateRandom failed!")); in JsGenerateRandomSync() 305 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "invalid params count")); in JsSetSeed() 327 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "fail to get rand obj!")); in JsSetSeed() 335 napi_throw(env, GenerateBusinessError(env, res, "set seed failed.")); in JsSetSeed() 359 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "fail to get rand obj!")); in JsGetAlgorithm() [all …]
|
H A D | napi_sm2_crypto_util.cpp | 118 … napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "The input args num is invalid.")); in JsGenCipherTextBySpec() 124 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to get spec.")); in JsGenCipherTextBySpec() 132 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to get mode.")); in JsGenCipherTextBySpec() 140 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "Failed to allocate memory.")); in JsGenCipherTextBySpec() 148 napi_throw(env, GenerateBusinessError(env, res, "gen cipher text by spec fail.")); in JsGenCipherTextBySpec() 219 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "Invalid spec!")); in ConvertSm2CipherTextSpecToNapiValue() 226 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "create object failed!")); in ConvertSm2CipherTextSpecToNapiValue() 231 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "build object failed!")); in ConvertSm2CipherTextSpecToNapiValue() 252 … napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to get cipherText.")); in JsGetCipherTextSpec() 261 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to get mode.")); in JsGetCipherTextSpec() [all …]
|
H A D | napi_sign.cpp | 561 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "create context fail.")); in JsInit() 610 napi_throw(env, GenerateBusinessError(env, ret, "sign init fail.")); in JsInitSync() 621 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "create context fail.")); in JsUpdate() 660 napi_throw(env, GenerateBusinessError(env, ret, "failed to get data.")); in JsUpdateSync() 669 napi_throw(env, GenerateBusinessError(env, ret, "sign update fail.")); in JsUpdateSync() 680 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "create context fail.")); in JsSign() 723 napi_throw(env, GenerateBusinessError(env, ret, "failed to get data.")); in JsSignSync() 735 napi_throw(env, GenerateBusinessError(env, ret, "sign doFinal fail.")); in JsSignSync() 809 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "new napi sign failed")); in CreateJsSign() 917 napi_throw(env, GenerateBusinessError(env, ret, "C getSignSpecString failed.")); in GetSignSpecString() [all …]
|
H A D | napi_verify.cpp | 715 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "create context fail.")); in JsInit() 764 napi_throw(env, GenerateBusinessError(env, ret, "verify init fail.")); in JsInitSync() 775 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "create context fail.")); in JsUpdate() 814 napi_throw(env, GenerateBusinessError(env, ret, "failed to get input blob.")); in JsUpdateSync() 828 napi_throw(env, GenerateBusinessError(env, ret, "verify update fail.")); in JsUpdateSync() 950 napi_throw(env, GenerateBusinessError(env, ret, "build context fail.")); in JsRecover() 990 napi_throw(env, GenerateBusinessError(env, ret, "failed to get signature data.")); in JsRecoverSync() 999 napi_throw(env, GenerateBusinessError(env, res, "failed to verify recover.")); in JsRecoverSync() 1067 napi_throw(env, GenerateBusinessError(env, ret, "create c verify fail.")); in CreateJsVerify() 1180 napi_throw(env, GenerateBusinessError(env, ret, "C getVerifySpecString failed.")); in GetVerifySpecString() [all …]
|
H A D | napi_md.cpp | 313 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "malloc context failed")); in JsMdUpdate() 319 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "build context fail.")); in JsMdUpdate() 338 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "invalid parameters.")); in JsMdUpdateSync() 344 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "invalid parameters.")); in JsMdUpdateSync() 350 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "invalid parameters.")); in JsMdUpdateSync() 358 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "md is nullptr!")); in JsMdUpdateSync() 382 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "malloc context failed")); in JsMdDoFinal() 388 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "build context fail.")); in JsMdDoFinal() 413 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "md is nullptr!")); in JsMdDoFinalSync() 421 napi_throw(env, GenerateBusinessError(env, errCode, "md doFinal failed!")); in JsMdDoFinalSync() [all …]
|
H A D | napi_key.cpp | 47 … napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to unwrap napi key obj.")); in JsGetAlgorithm() 53 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "fail to get key obj!")); in JsGetAlgorithm() 72 … napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to unwrap napi key obj.")); in JsGetFormat() 78 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "fail to get key obj!")); in JsGetFormat() 97 … napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to unwrap napi key obj.")); in JsGetEncoded() 103 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "fail to get key obj!")); in JsGetEncoded() 111 napi_throw(env, GenerateBusinessError(env, res, "getEncoded failed.")); in JsGetEncoded()
|
/ohos5.0/base/security/certificate_framework/frameworks/js/napi/certificate/src/ |
H A D | napi_cert_utils.cpp | 396 napi_throw(env, CertGenerateBusinessError(env, CF_ERR_MALLOC, "malloc failed!")); in CertGetBlobFromUint8ArrJSParams() 404 napi_throw(env, CertGenerateBusinessError(env, CF_ERR_MALLOC, "malloc failed!")); in CertGetBlobFromUint8ArrJSParams() 453 napi_throw(env, CertGenerateBusinessError(env, CF_ERR_MALLOC, "malloc failed")); in CertGetBlobFromStringJSParams() 515 napi_throw(env, CertGenerateBusinessError(env, CF_ERR_MALLOC, "malloc failed")); in CertGetBlobArrFromArrUarrJSParams() 523 napi_throw(env, CertGenerateBusinessError(env, CF_ERR_MALLOC, "malloc failed")); in CertGetBlobArrFromArrUarrJSParams() 576 napi_throw(env, CertGenerateBusinessError(env, CF_ERR_MALLOC, "malloc failed")); in CertGetBlobFromArrBoolJSParams() 584 napi_throw(env, CertGenerateBusinessError(env, CF_ERR_MALLOC, "malloc failed")); in CertGetBlobFromArrBoolJSParams() 659 napi_throw(env, CertGenerateBusinessError(env, CF_ERR_MALLOC, "malloc failed")); in CertGetSANArrFromArrUarrJSParams() 668 napi_throw(env, CertGenerateBusinessError(env, CF_ERR_MALLOC, "malloc failed")); in CertGetSANArrFromArrUarrJSParams() 719 napi_throw(env, CertGenerateBusinessError(env, CF_ERR_MALLOC, "malloc failed")); in CertGetArrFromArrUarrJSParams() [all …]
|
H A D | napi_cert_crl_collection.cpp | 233 napi_throw(env, CertGenerateBusinessError(env, CF_INVALID_PARAMS, "thisVar is nullptr.")); in NapiSelectCerts() 240 … napi_throw(env, CertGenerateBusinessError(env, CF_INVALID_PARAMS, "certCrlCol is nullptr.")); in NapiSelectCerts() 250 napi_throw(env, CertGenerateBusinessError(env, CF_ERR_MALLOC, "Malloc matchParams failed")); in GetCertMatchParams() 279 napi_throw(env, CertGenerateBusinessError(env, CF_ERR_MALLOC, "malloc context failed")); in SelectCerts() 325 napi_throw(env, CertGenerateBusinessError(env, CF_INVALID_PARAMS, "thisVar is nullptr.")); in NapiSelectCRLs() 332 … napi_throw(env, CertGenerateBusinessError(env, CF_INVALID_PARAMS, "certCrlCol is nullptr.")); in NapiSelectCRLs() 372 napi_throw(env, CertGenerateBusinessError(env, CF_ERR_MALLOC, "Malloc matchParams failed")); in GetCrlMatchParam() 395 napi_throw(env, CertGenerateBusinessError(env, CF_INVALID_PARAMS, "thisVar is nullptr.")); in SelectCRLs() 404 napi_throw(env, CertGenerateBusinessError(env, CF_ERR_MALLOC, "malloc context failed")); in SelectCRLs() 489 napi_throw(env, CertGenerateBusinessError(env, res, "parse param failed.")); in NapiCreateCertCRLCollection() [all …]
|
H A D | napi_x509_cert_chain.cpp | 341 … napi_throw(env, CertGenerateBusinessError(env, CF_INVALID_PARAMS, "check args count failed!")); in Validate() 348 napi_throw(env, CertGenerateBusinessError(env, CF_ERR_MALLOC, "malloc context failed!")); in Validate() 390 napi_throw(env, CertGenerateBusinessError(env, result, "toString failed")); in ToString() 407 napi_throw(env, CertGenerateBusinessError(env, result, "hashCode failed")); in HashCode() 420 napi_throw(env, CertGenerateBusinessError(env, CF_INVALID_PARAMS, "get cert arr failed!")); in CreateX509CertChainByArray() 429 napi_throw(env, CertGenerateBusinessError(env, res, "create cert chain by arr failed!")); in CreateX509CertChainByArray() 453 napi_throw(env, CertGenerateBusinessError(env, CF_ERR_MALLOC, "context is nullptr!")); in CreateX509CertChainByEncodingBlob() 674 napi_throw(env, CertGenerateBusinessError(env, CF_ERR_MALLOC, "context is nullptr!")); in CreateTrustAnchorsWithKeyStore() 799 napi_throw(env, CertGenerateBusinessError(env, CF_ERR_MALLOC, "context is nullptr!")); in CreateX509CertChainExtReturn() 852 napi_throw(env, CertGenerateBusinessError(env, res, "get cert list failed!")); in NapiGetCertList() [all …]
|
/ohos5.0/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()
|
/ohos5.0/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()
|
/ohos5.0/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()
|
/ohos5.0/foundation/window/window_manager/window_scene/interfaces/kits/napi/scene_session_manager/ |
H A D | js_scene_session_manager.cpp | 1165 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnRegisterCallback() 1172 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnRegisterCallback() 1179 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnRegisterCallback() 1189 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnRegisterCallback() 1591 napi_throw(env, in OnGetRootSceneSession() 1610 napi_throw(env, in OnGetRootSceneSession() 1656 napi_throw(env, in OnRequestSceneSession() 1663 napi_throw(env, CreateJsError( in OnRequestSceneSession() 2188 napi_throw(env, CreateJsError(env, in OnGetWindowSceneConfig() 2201 napi_throw(env, CreateJsError(env, in OnGetSystemConfig() [all …]
|
/ohos5.0/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(env, in OnGetSendableColorSpaceName() [all …]
|
/ohos5.0/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()
|
/ohos5.0/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()
|
/ohos5.0/foundation/window/window_manager/window_scene/interfaces/kits/napi/screen_session_manager/ |
H A D | js_screen_session_manager.cpp | 416 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnUpdateScreenRotationProperty() 423 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnUpdateScreenRotationProperty() 469 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnNotifyScreenLockEvent() 476 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnNotifyScreenLockEvent() 501 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnGetPhyScreenProperty() 508 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnGetPhyScreenProperty() 524 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnUpdateAvailableArea() 531 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnUpdateAvailableArea() 558 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnSetScreenOffDelayTime() 566 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnSetScreenOffDelayTime() [all …]
|
/ohos5.0/base/security/security_guard/frameworks/js/napi/ |
H A D | security_guard_napi.cpp | 305 napi_throw(env, GenerateBusinessError(env, BAD_PARAM)); in NapiReportSecurityInfo() 313 napi_throw(env, GenerateBusinessError(env, BAD_PARAM)); in NapiReportSecurityInfo() 321 napi_throw(env, GenerateBusinessError(env, code)); in NapiReportSecurityInfo() 453 napi_throw(env, GenerateBusinessError(env, BAD_PARAM, in ParseModelId() 614 napi_throw(env, GenerateBusinessError(env, BAD_PARAM)); in NapiUpdatePolicyFile() 656 napi_throw(env, GenerateBusinessError(env, BAD_PARAM)); in NapiStartSecurityEventCollector() 689 napi_throw(env, GenerateBusinessError(env, code)); in NapiStartSecurityEventCollector() 702 napi_throw(env, GenerateBusinessError(env, BAD_PARAM)); in NapiStopSecurityEventCollector() 716 napi_throw(env, GenerateBusinessError(env, code)); in NapiStopSecurityEventCollector() 855 napi_throw(env, GenerateBusinessError(env, BAD_PARAM)); in NapiQuerySecurityEvent() [all …]
|