/base/telephony/core_service/frameworks/js/napi/ |
D | napi_util.h | 67 static bool CreateParameterErrorMessageForJs(int32_t errorCode, JsErrorCode &jsErrorCode); 68 static bool CreateNetworkSearchErrorMessageForJs(int32_t errorCode, JsErrorCode &jsErrorCode); 69 static bool CreateSimErrorMessageForJs(int32_t errorCode, JsErrorCode &jsErrorCode); 70 static bool CreateSmsErrorMessageForJs(int32_t errorCode, JsErrorCode &jsErrorCode); 71 static bool CreateObserverErrorMessageForJs(int32_t errorCode, JsErrorCode &jsErrorCode); 72 static bool CreateCommonErrorMessageForJs(int32_t errorCode, JsErrorCode &jsErrorCode); 73 static bool CreateCommonArgumentErrorMessageForJs(int32_t errorCode, JsErrorCode &jsErrorCode); 74 static bool CreateCommonServiceErrorMessageForJs(int32_t errorCode, JsErrorCode &jsErrorCode); 75 static bool CreateCommonSystemErrorMessageForJs(int32_t errorCode, JsErrorCode &jsErrorCode); 76 static bool CreateCallErrorMessageForJs(int32_t errorCode, JsErrorCode &jsErrorCode); [all …]
|
D | napi_util.cpp | 60 …{ JsErrorCode::JS_ERROR_TELEPHONY_PERMISSION_DENIED, JS_ERROR_TELEPHONY_PERMISSION_DENIED_STRING }, 61 { JsErrorCode::JS_ERROR_ILLEGAL_USE_OF_SYSTEM_API, JS_ERROR_ILLEGAL_USE_OF_SYSTEM_API_STRING }, 62 …{ JsErrorCode::JS_ERROR_TELEPHONY_INVALID_INPUT_PARAMETER, JS_ERROR_TELEPHONY_INVALID_INPUT_PARAME… 63 …{ JsErrorCode::JS_ERROR_DEVICE_NOT_SUPPORT_THIS_API, JS_ERROR_DEVICE_NOT_SUPPORT_THIS_API_STRING }, 64 { JsErrorCode::JS_ERROR_TELEPHONY_SUCCESS, JS_ERROR_TELEPHONY_SUCCESS_STRING }, 65 { JsErrorCode::JS_ERROR_TELEPHONY_ARGUMENT_ERROR, JS_ERROR_TELEPHONY_ARGUMENT_ERROR_STRING }, 66 { JsErrorCode::JS_ERROR_TELEPHONY_SERVICE_ERROR, JS_ERROR_TELEPHONY_SERVICE_ERROR_STRING }, 67 { JsErrorCode::JS_ERROR_TELEPHONY_SYSTEM_ERROR, JS_ERROR_TELEPHONY_SYSTEM_ERROR_STRING }, 68 { JsErrorCode::JS_ERROR_TELEPHONY_NO_SIM_CARD, JS_ERROR_TELEPHONY_NO_SIM_CARD_STRING }, 69 { JsErrorCode::JS_ERROR_TELEPHONY_UNKNOW_ERROR, JS_ERROR_TELEPHONY_UNKNOW_ERROR_STRING }, [all …]
|
D | js_error_code.h | 28 enum JsErrorCode { enum 152 JsErrorCode errorCode = JsErrorCode::JS_ERROR_TELEPHONY_UNKNOW_ERROR;
|
/base/time/time_service/framework/js/napi/system_date_time/src/ |
D | napi_system_date_time.cpp | 80 JsErrorCode::PARAMETER_ERROR); in SetTime() 83 JsErrorCode::PARAMETER_ERROR); in SetTime() 89 if (innerCode != JsErrorCode::ERROR_OK) { in SetTime() 106 JsErrorCode::PARAMETER_ERROR); in SetDate() 112 JsErrorCode::PARAMETER_ERROR); in SetDate() 118 JsErrorCode::PARAMETER_ERROR); in SetDate() 125 JsErrorCode::PARAMETER_ERROR); in SetDate() 129 JsErrorCode::PARAMETER_ERROR); in SetDate() 135 if (innerCode != JsErrorCode::ERROR_OK) { in SetDate() 159 … getRealActiveTimeContext->status == napi_ok, "invalid isNano", JsErrorCode::PARAMETER_ERROR); in GetRealActiveTime() [all …]
|
/base/time/time_service/framework/js/napi/system_timer/src/ |
D | napi_system_timer.cpp | 121 "Parameter error. The type of type must be number.", JsErrorCode::PARAMETER_ERROR); in ParseTimerOptions() 134 "Wrong argument number. Positive number expected.", JsErrorCode::PARAMETER_ERROR); in ParseTimerOptions() 139 JsErrorCode::PARAMETER_ERROR); in ParseTimerOptions() 157 …CHECK_ARGS_RETURN_VOID(TIME_MODULE_JS_NAPI, context, hasProperty, "type expected.", JsErrorCode::P… in GetTimerOptions() 159 …CHECK_STATUS_RETURN_VOID(TIME_MODULE_JS_NAPI, context, "type parameter error.", JsErrorCode::PARAM… in GetTimerOptions() 163 …RN_VOID(TIME_MODULE_JS_NAPI, context, hasProperty, "repeat expected.", JsErrorCode::PARAMETER_ERRO… in GetTimerOptions() 165 …CHECK_STATUS_RETURN_VOID(TIME_MODULE_JS_NAPI, context, "repeat parameter error.", JsErrorCode::PAR… in GetTimerOptions() 172 JsErrorCode::PARAMETER_ERROR); in GetTimerOptions() 180 JsErrorCode::PARAMETER_ERROR); in GetTimerOptions() 188 JsErrorCode::PARAMETER_ERROR); in GetTimerOptions() [all …]
|
/base/time/time_service/framework/js/napi/common/include/ |
D | napi_utils.h | 100 enum JsErrorCode : int32_t { enum 112 int errorCode = JsErrorCode::ERROR_OK; 117 { JsErrorCode::SYSTEM_APP_ERROR, "not system app" }, 118 { JsErrorCode::PARAMETER_ERROR, "parameter invalid" }, 119 { JsErrorCode::PERMISSION_ERROR, "permission denied" }, 120 { JsErrorCode::ERROR, "system error" },
|
/base/theme/screenlock_mgr/frameworks/js/napi/src/ |
D | napi_screenlock_ability.cpp | 46 { E_SCREENLOCK_NO_PERMISSION, JsErrorCode::ERR_NO_PERMISSION }, 47 { E_SCREENLOCK_PARAMETERS_INVALID, JsErrorCode::ERR_INVALID_PARAMS }, 48 { E_SCREENLOCK_WRITE_PARCEL_ERROR, JsErrorCode::ERR_SERVICE_ABNORMAL }, 49 { E_SCREENLOCK_NULLPTR, JsErrorCode::ERR_SERVICE_ABNORMAL }, 50 { E_SCREENLOCK_SENDREQUEST_FAILED, JsErrorCode::ERR_SERVICE_ABNORMAL }, 51 { E_SCREENLOCK_NOT_SYSTEM_APP, JsErrorCode::ERR_NOT_SYSTEM_APP }, 54 { JsErrorCode::ERR_NO_PERMISSION, PERMISSION_VALIDATION_FAILED }, 55 { JsErrorCode::ERR_INVALID_PARAMS, PARAMETER_VALIDATION_FAILED }, 56 { JsErrorCode::ERR_CANCEL_UNLOCK, CANCEL_UNLOCK_OPERATION }, 57 { JsErrorCode::ERR_SERVICE_ABNORMAL, SERVICE_IS_ABNORMAL }, [all …]
|
/base/time/time_service/framework/js/napi/common/src/ |
D | napi_utils.cpp | 32 return JsErrorCode::SYSTEM_APP_ERROR; in ConvertErrorCode() 34 return JsErrorCode::PERMISSION_ERROR; in ConvertErrorCode() 36 return JsErrorCode::PARAMETER_ERROR; in ConvertErrorCode() 38 return JsErrorCode::ERROR; in ConvertErrorCode() 101 if (errCode == JsErrorCode::ERROR_OK) { in GetCallbackErrorValue() 106 if (errCode == JsErrorCode::ERROR) { in GetCallbackErrorValue() 128 if (errorCode == JsErrorCode::ERROR_OK) { in SetPromise() 162 …return GetCallbackErrorValue(env, ERROR, NapiUtils::GetErrorMessage(JsErrorCode::PARAMETER_ERROR)); in JSParaError() 167 …SetPromise(env, deferred, ERROR, NapiUtils::GetErrorMessage(JsErrorCode::PARAMETER_ERROR), NapiGet… in JSParaError()
|
D | napi_work.cpp | 44 …CHECK_STATUS_RETURN_VOID(TIME_MODULE_JS_NAPI, this, "napi_get_cb_info failed!", JsErrorCode::PARAM… in GetCbInfo() 46 JsErrorCode::PARAMETER_ERROR); in GetCbInfo() 48 JsErrorCode::PARAMETER_ERROR); in GetCbInfo() 58 …CHECK_STATUS_RETURN_VOID(TIME_MODULE_JS_NAPI, this, "ref callback failed!", JsErrorCode::PARAMETER… in GetCbInfo() 70 JsErrorCode::PARAMETER_ERROR); in GetCbInfo() 138 if (jsErrorCode != JsErrorCode::ERROR) { in GenerateOutput() 199 if (jsErrorCode != JsErrorCode::ERROR) { in GenerateOutputSync()
|
/base/security/access_token/interfaces/kits/accesstoken/napi/src/ |
D | napi_atmanager.cpp | 379 JsErrorCode::JS_ERROR_PARAM_ILLEGAL, "Parameter is missing.")), false); in ParseInputVerifyPermissionOrGetFlag() 387 … napi_throw(env, GenerateBusinessError(env, JsErrorCode::JS_ERROR_PARAM_ILLEGAL, errMsg)), false); in ParseInputVerifyPermissionOrGetFlag() 395 … napi_throw(env, GenerateBusinessError(env, JsErrorCode::JS_ERROR_PARAM_ILLEGAL, errMsg)), false); in ParseInputVerifyPermissionOrGetFlag() 626 … GenerateBusinessError(env, JsErrorCode::JS_ERROR_PARAM_ILLEGAL, "Parameter is missing.")), false); in ParseInputGrantOrRevokePermission() 635 …env, napi_throw(env, GenerateBusinessError(env, JsErrorCode::JS_ERROR_PARAM_ILLEGAL, errMsg)), fal… in ParseInputGrantOrRevokePermission() 643 … napi_throw(env, GenerateBusinessError(env, JsErrorCode::JS_ERROR_PARAM_ILLEGAL, errMsg)), false); in ParseInputGrantOrRevokePermission() 651 … napi_throw(env, GenerateBusinessError(env, JsErrorCode::JS_ERROR_PARAM_ILLEGAL, errMsg)), false); in ParseInputGrantOrRevokePermission() 658 …NAPI_CALL_BASE(env, napi_throw(env, GenerateBusinessError(env, JsErrorCode::JS_ERROR_PARAM_ILLEGAL, in ParseInputGrantOrRevokePermission() 659 GetErrorMessage(JsErrorCode::JS_ERROR_PARAM_ILLEGAL))), false); in ParseInputGrantOrRevokePermission() 981 JsErrorCode::JS_ERROR_PARAM_ILLEGAL, "Parameter is missing.")), false); in ParseRequestPermissionFromUser() [all …]
|
/base/security/dlp_permission_service/interfaces/kits/napi_common/include/ |
D | napi_error_msg.h | 24 enum JsErrorCode : int32_t { enum
|
/base/security/access_token/interfaces/kits/common/include/ |
D | napi_error.h | 41 } JsErrorCode; typedef
|
/base/time/time_service/framework/js/napi/system_time/src/ |
D | js_systemtime.cpp | 87 asyncContext->errorCode = JsErrorCode::ERROR; in JSSystemTimeSetTime() 140 asyncContext->errorCode = JsErrorCode::ERROR; in JSSystemTimeSetTimeZone() 201 asyncContext->errorCode = JsErrorCode::ERROR; in JSSystemTimeGetCurrentTime() 256 asyncContext->errorCode = JsErrorCode::ERROR; in JSSystemTimeGetRealActiveTime() 311 asyncContext->errorCode = JsErrorCode::ERROR; in JSSystemTimeGetRealTime() 360 asyncContext->errorCode = JsErrorCode::ERROR; in JSSystemTimeGetDate() 410 asyncContext->errorCode = JsErrorCode::ERROR; in JSSystemTimeGetTimeZone()
|
/base/theme/screenlock_mgr/utils/include/ |
D | screenlock_common.h | 84 enum JsErrorCode : uint32_t { enum
|
/base/security/access_token/interfaces/kits/privacy/napi/src/ |
D | permission_record_manager_napi.cpp | 845 std::string errMsg = GetErrorMessage(JsErrorCode::JS_ERROR_PARAM_INVALID); in RegisterPermActiveChangeCallback() 846 …NAPI_CALL(env, napi_throw(env, GenerateBusinessError(env, JsErrorCode::JS_ERROR_PARAM_INVALID, err… in RegisterPermActiveChangeCallback() 884 std::string errMsg = GetErrorMessage(JsErrorCode::JS_ERROR_PARAM_INVALID); in UnregisterPermActiveChangeCallback() 885 …NAPI_CALL(env, napi_throw(env, GenerateBusinessError(env, JsErrorCode::JS_ERROR_PARAM_INVALID, err… in UnregisterPermActiveChangeCallback()
|