/base/account/os_account/interfaces/kits/napi/common/include/ |
D | napi_account_error.h | 27 napi_value GenerateBusinessSuccess(napi_env env, bool throwErr); 30 napi_value GenerateBusinessError(napi_env env, int32_t nativeErrCode, bool throwErr); 31 void AccountNapiThrow(napi_env env, int32_t jsErrCode, const std::string &jsErrMsg, bool throwErr =… 32 void AccountNapiThrow(napi_env env, int32_t nativeErrCode, bool throwErr = true); 33 void AccountIAMNapiThrow(napi_env env, int32_t jsErrCode, bool throwErr);
|
D | napi_account_common.h | 37 …CommonAsyncContext(napi_env napiEnv, bool throwAble = false) : env(napiEnv), throwErr(throwAble) {} in env() 46 bool throwErr = false; member
|
/base/account/os_account/interfaces/kits/napi/common/src/ |
D | napi_account_error.cpp | 108 napi_value GenerateBusinessSuccess(napi_env env, bool throwErr) in GenerateBusinessSuccess() argument 110 if (throwErr) { in GenerateBusinessSuccess() 118 napi_value GenerateBusinessError(napi_env env, int32_t nativeErrCode, bool throwErr) in GenerateBusinessError() argument 120 if (throwErr) { in GenerateBusinessError() 138 void AccountNapiThrow(napi_env env, int32_t nativeErrCode, bool throwErr) in AccountNapiThrow() argument 140 if (throwErr) { in AccountNapiThrow() 145 void AccountNapiThrow(napi_env env, int32_t jsErrCode, const std::string &jsErrMsg, bool throwErr) in AccountNapiThrow() argument 147 if (throwErr) { in AccountNapiThrow() 152 void AccountIAMNapiThrow(napi_env env, int32_t jsErrCode, bool throwErr) in AccountIAMNapiThrow() argument 154 if (throwErr) { in AccountIAMNapiThrow()
|
/base/account/os_account/interfaces/kits/napi/osaccount/src/ |
D | napi_os_account_common.cpp | 86 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, asyncContext->throwErr); in ParseOneParaContext() 93 …llbackAndId(napi_env env, napi_callback_info cbInfo, napi_ref &callbackRef, int &id, bool throwErr) in ParseCallbackAndId() argument 103 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, throwErr); in ParseCallbackAndId() 110 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, throwErr); in ParseCallbackAndId() 118 …rseCallbackAndId(env, cbInfo, asyncContext->callbackRef, asyncContext->id, asyncContext->throwErr); in ParseParaQueryOAByIdCB() 138 errJs = GenerateBusinessError(env, asyncContext->errCode, asyncContext->throwErr); in QueryOAByIdCallbackCompletedCB() 279 …rseCallbackAndId(env, cbInfo, asyncContext->callbackRef, asyncContext->id, asyncContext->throwErr); in ParseParaRemoveOACB() 300 errJs = GenerateBusinessError(env, asyncContext->errCode, asyncContext->throwErr); in RemoveOACallbackCompletedCB() 317 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, asyncContext->throwErr); in ParseParaSetOAName() 325 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, asyncContext->throwErr); in ParseParaSetOAName() [all …]
|
D | napi_os_account.cpp | 200 queryOAByIdCB->throwErr = true; in QueryOsAccountById() 233 removeOACB->throwErr = true; in RemoveOsAccount() 261 setOANameCB->throwErr = true; in SetOsAccountName() 294 setOAConsCB->throwErr = true; in SetOsAccountConstraints() 327 activeOACB->throwErr = true; in ActivateOsAccount() 360 createOACB->throwErr = true; in CreateOsAccount() 388 createOAForDomainCB->throwErr = true; in CreateOsAccountForDomain() 422 napi_value GetCreatedOsAccountsCountInner(napi_env env, napi_callback_info cbInfo, bool throwErr) in GetCreatedOsAccountsCountInner() argument 426 getOACount->throwErr = throwErr; in GetCreatedOsAccountsCountInner() 428 if (!ParseParaGetOACount(env, cbInfo, getOACount.get()) && throwErr) { in GetCreatedOsAccountsCountInner() [all …]
|
/base/account/os_account/interfaces/kits/napi/distributedaccount/src/ |
D | napi_distributed_account.cpp | 119 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, asyncContext->throwErr); in GetAccountInfo() 125 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, asyncContext->throwErr); in GetAccountInfo() 131 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, asyncContext->throwErr); in GetAccountInfo() 137 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, asyncContext->throwErr); in GetAccountInfo() 154 AccountNapiThrow(env, ERR_JS_PARAMETER_ERROR, errMsg, asyncContext->throwErr); in GetAccountInfo() 221 if (asyncContext->throwErr) { in ProcessSetNamedProperty() 249 if (asyncContext->throwErr) { in ProcessSetNamedProperty() 323 if (!asyncContext->throwErr) { in QueryOhosAccountInfoExecuteCB() 349 …apiDistributedAccount::QueryOhosAccountInfo(napi_env env, napi_callback_info cbInfo, bool throwErr) in QueryOhosAccountInfo() argument 357 asyncContext->throwErr = throwErr; in QueryOhosAccountInfo() [all …]
|
/base/account/os_account/interfaces/kits/napi/osaccount/include/ |
D | napi_os_account.h | 234 napi_value GetCreatedOsAccountsCountInner(napi_env env, napi_callback_info cbInfo, bool throwErr); 240 …i_value GetDistributedVirtualDeviceIdInner(napi_env env, napi_callback_info cbInfo, bool throwErr); 246 napi_value GetOsAccountAllConstraintsInner(napi_env env, napi_callback_info cbInfo, bool throwErr); 252 …_value GetOsAccountLocalIdFromProcessInner(napi_env env, napi_callback_info cbInfo, bool throwErr); 260 napi_value QueryActivatedOsAccountIdsInner(napi_env env, napi_callback_info cbInfo, bool throwErr); 268 napi_value QueryCurrentOsAccountInner(napi_env env, napi_callback_info cbInfo, bool throwErr); 276 napi_value GetOsAccountLocalIdFromUidInner(napi_env env, napi_callback_info cbInfo, bool throwErr); 286 …i_value GetOsAccountLocalIdFromDomainInner(napi_env env, napi_callback_info cbInfo, bool throwErr); 306 napi_value GetOsAccountTypeFromProcessInner(napi_env env, napi_callback_info cbInfo, bool throwErr); 312 napi_value InnerIsMultiOsAccountEnable(napi_env env, napi_callback_info cbInfo, bool throwErr); [all …]
|
/base/account/os_account/interfaces/kits/napi/distributedaccount/include/ |
D | napi_distributed_account.h | 31 bool throwErr = false; member 53 static napi_value QueryOhosAccountInfo(napi_env env, napi_callback_info cbInfo, bool throwErr); 59 static napi_value UpdateOhosAccountInfo(napi_env env, napi_callback_info cbInfo, bool throwErr);
|
/base/account/os_account/interfaces/kits/napi/appaccount/src/ |
D | napi_app_account.cpp | 325 … napi_value err = asyncContext->throwErr ? GenerateBusinessError(env, asyncContext->errCode) : in RemoveAccountInternal() 461 … napi_value err = asyncContext->throwErr ? GenerateBusinessError(env, asyncContext->errCode) : in CheckDataSyncEnabledInternal() 499 if ((!asyncContext->throwErr) && (!CheckSpecialCharacters(asyncContext->name))) { in SetCredentialInternal() 508 … napi_value err = asyncContext->throwErr ? GenerateBusinessError(env, asyncContext->errCode) : in SetCredentialInternal() 571 if ((!asyncContext->throwErr) && (!CheckSpecialCharacters(asyncContext->name))) { in SetDataSyncEnabledInternal() 580 … napi_value err = asyncContext->throwErr ? GenerateBusinessError(env, asyncContext->errCode) : in SetDataSyncEnabledInternal() 617 if ((!asyncContext->throwErr) && (!CheckSpecialCharacters(asyncContext->name))) { in SetCustomDataInternal() 626 … napi_value err = asyncContext->throwErr ? GenerateBusinessError(env, asyncContext->errCode) : in SetCustomDataInternal() 662 if (asyncContext->throwErr) { in GetAllAccessibleAccountsInternal() 674 … napi_value err = asyncContext->throwErr ? GenerateBusinessError(env, asyncContext->errCode) : in GetAllAccessibleAccountsInternal() [all …]
|
/base/account/os_account/interfaces/kits/napi/account_iam/include/ |
D | napi_account_iam_common.h | 112 bool throwErr = true; member 119 bool throwErr = true; member
|