/base/security/huks/frameworks/huks_standard/main/common/src/ |
D | hks_errcode_adapter.c | 29 .errorCode = HKS_SUCCESS, 36 .errorCode = HUKS_ERR_CODE_PERMISSION_FAIL, 43 .errorCode = HUKS_ERR_CODE_ILLEGAL_ARGUMENT, 50 .errorCode = HUKS_ERR_CODE_ILLEGAL_ARGUMENT, 57 .errorCode = HUKS_ERR_CODE_ILLEGAL_ARGUMENT, 64 .errorCode = HUKS_ERR_CODE_ILLEGAL_ARGUMENT, 71 .errorCode = HUKS_ERR_CODE_ILLEGAL_ARGUMENT, 78 .errorCode = HUKS_ERR_CODE_ILLEGAL_ARGUMENT, 85 .errorCode = HUKS_ERR_CODE_ILLEGAL_ARGUMENT, 92 .errorCode = HUKS_ERR_CODE_ILLEGAL_ARGUMENT, [all …]
|
/base/telephony/core_service/services/network_search/test/ |
D | network_search_test_callback_stub.cpp | 21 …earchTestCallbackStub::OnGetNetworkModeCallback(const int32_t searchModel, const int32_t errorCode) in OnGetNetworkModeCallback() argument 26 searchModel, errorCode); in OnGetNetworkModeCallback() 28 …workSearchTestCallbackStub::OnSetNetworkModeCallback(const bool setResult, const int32_t errorCode) in OnSetNetworkModeCallback() argument 33 setResult, errorCode); in OnSetNetworkModeCallback() 36 …tworkSearchTestCallbackStub::OnSetRadioStateCallback(const bool setResult, const int32_t errorCode) in OnSetRadioStateCallback() argument 41 setResult, errorCode); in OnSetRadioStateCallback() 44 …tworkSearchTestCallbackStub::OnGetRadioStateCallback(const bool setResult, const int32_t errorCode) in OnGetRadioStateCallback() argument 49 setResult, errorCode); in OnGetRadioStateCallback() 53 const sptr<NetworkSearchResult> &nsResult, const int32_t errorCode) in OnGetNetworkSearchInformation() argument 55 if (!errorCode) { in OnGetNetworkSearchInformation() [all …]
|
D | network_search_test_callback_stub.h | 25 void OnGetNetworkModeCallback(const int32_t searchModel, const int32_t errorCode) override; 26 void OnSetNetworkModeCallback(const bool setResult, const int32_t errorCode) override; 27 void OnSetRadioStateCallback(const bool setResult, const int32_t errorCode) override; 28 void OnGetRadioStateCallback(const bool setResult, const int32_t errorCode) override; 30 const sptr<NetworkSearchResult> &networkSearchResult, const int32_t errorCode) override; 31 void OnSetPreferredNetworkCallback(const bool result, const int32_t errorCode) override; 32 void OnGetPreferredNetworkCallback(const int32_t networkMode, const int32_t errorCode) override; 33 void OnSetNrOptionModeCallback(const bool setResult, const int32_t errorCode) override; 34 void OnGetNrOptionModeCallback(const int32_t mode, const int32_t errorCode) override;
|
/base/security/huks/interfaces/kits/napi/src/ |
D | huks_napi.cpp | 332 static void AddHuksErrorCodePart1(napi_env env, napi_value errorCode) in AddHuksErrorCodePart1() argument 334 AddInt32Property(env, errorCode, "HUKS_SUCCESS", HKS_SUCCESS); in AddHuksErrorCodePart1() 335 AddInt32Property(env, errorCode, "HUKS_FAILURE", HKS_FAILURE); in AddHuksErrorCodePart1() 336 AddInt32Property(env, errorCode, "HUKS_ERROR_BAD_STATE", HKS_ERROR_BAD_STATE); in AddHuksErrorCodePart1() 337 AddInt32Property(env, errorCode, "HUKS_ERROR_INVALID_ARGUMENT", HKS_ERROR_INVALID_ARGUMENT); in AddHuksErrorCodePart1() 338 AddInt32Property(env, errorCode, "HUKS_ERROR_NOT_SUPPORTED", HKS_ERROR_NOT_SUPPORTED); in AddHuksErrorCodePart1() 339 AddInt32Property(env, errorCode, "HUKS_ERROR_NO_PERMISSION", HKS_ERROR_NO_PERMISSION); in AddHuksErrorCodePart1() 340 AddInt32Property(env, errorCode, "HUKS_ERROR_INSUFFICIENT_DATA", HKS_ERROR_INSUFFICIENT_DATA); in AddHuksErrorCodePart1() 341 AddInt32Property(env, errorCode, "HUKS_ERROR_BUFFER_TOO_SMALL", HKS_ERROR_BUFFER_TOO_SMALL); in AddHuksErrorCodePart1() 342 … AddInt32Property(env, errorCode, "HUKS_ERROR_INSUFFICIENT_MEMORY", HKS_ERROR_INSUFFICIENT_MEMORY); in AddHuksErrorCodePart1() [all …]
|
/base/telephony/core_service/test/unittest/core_service_gtest/ |
D | network_search_test_callback_stub.cpp | 122 …earchTestCallbackStub::OnGetNetworkModeCallback(const int32_t searchModel, const int32_t errorCode) in OnGetNetworkModeCallback() argument 125 searchModel, errorCode); in OnGetNetworkModeCallback() 130 …workSearchTestCallbackStub::OnSetNetworkModeCallback(const bool setResult, const int32_t errorCode) in OnSetNetworkModeCallback() argument 133 setResult, errorCode); in OnSetNetworkModeCallback() 134 setNetworkModeResult_ = (TELEPHONY_SUCCESS == errorCode); in OnSetNetworkModeCallback() 138 …tworkSearchTestCallbackStub::OnSetRadioStateCallback(const bool setResult, const int32_t errorCode) in OnSetRadioStateCallback() argument 141 setResult, errorCode); in OnSetRadioStateCallback() 142 setRadioStateResult_ = (TELEPHONY_SUCCESS == errorCode); in OnSetRadioStateCallback() 146 …tworkSearchTestCallbackStub::OnGetRadioStateCallback(const bool isRadioOn, const int32_t errorCode) in OnGetRadioStateCallback() argument 149 "isRadioOn:%{public}d, error:%{public}d", isRadioOn, errorCode); in OnGetRadioStateCallback() [all …]
|
D | network_search_test_callback_stub.h | 46 void OnGetNetworkModeCallback(const int32_t searchModel, const int32_t errorCode) override; 47 void OnSetNetworkModeCallback(const bool setResult, const int32_t errorCode) override; 48 void OnSetRadioStateCallback(const bool setResult, const int32_t errorCode) override; 49 void OnGetRadioStateCallback(const bool isRadioOn, const int32_t errorCode) override; 51 const sptr<NetworkSearchResult> &networkSearchResult, const int32_t errorCode) override; 52 void OnSetPreferredNetworkCallback(const bool result, const int32_t errorCode) override; 53 void OnGetPreferredNetworkCallback(const int32_t networkMode, const int32_t errorCode) override; 54 void OnSetNrOptionModeCallback(const bool setResult, const int32_t errorCode) override; 55 void OnGetNrOptionModeCallback(const int32_t mode, const int32_t errorCode) override;
|
/base/telephony/core_service/frameworks/js/napi/ |
D | napi_util.cpp | 85 std::string NapiUtil::GetErrorMessage(int32_t errorCode) in GetErrorMessage() argument 88 auto iter = errorMap_.find(errorCode); in GetErrorMessage() 93 …D("NapiUtil::GetErrorMessage errorCode %{public}d, message = %{public}s", errorCode, iter->second); in GetErrorMessage() 108 napi_value NapiUtil::CreateErrorMessage(napi_env env, const std::string &msg, int32_t errorCode) in CreateErrorMessage() argument 114 NAPI_CALL(env, napi_create_int32(env, errorCode, &codeValue)); in CreateErrorMessage() 281 std::string errorCode = std::to_string(queueWorkStatus); in HandleAsyncWork() local 283 NAPI_CALL(env, napi_throw_error(env, errorCode.c_str(), errorMessage.c_str())); in HandleAsyncWork() 377 JsError NapiUtil::ConverErrorMessageForJs(int32_t errorCode) in ConverErrorMessageForJs() argument 380 if (errorCode == TELEPHONY_ERR_SUCCESS) { in ConverErrorMessageForJs() 381 error.errorCode = JS_ERROR_TELEPHONY_SUCCESS; in ConverErrorMessageForJs() [all …]
|
D | napi_util.h | 34 …ue CreateErrorMessage(napi_env env, const std::string &message, int32_t errorCode = ERROR_DEFAULT); 60 static JsError ConverErrorMessageForJs(int32_t errorCode); 62 int32_t errorCode, const std::string &funcName, const std::string &permission); 63 static void ThrowError(napi_env env, int32_t errorCode, const std::string &message); 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); [all …]
|
/base/location/frameworks/native/source/ |
D | locator_proxy.cpp | 493 LocationErrCode errorCode = in GetSwitchStateV9() local 495 LBSLOGD(LOCATOR_STANDARD, "Proxy::GetSwitchState Transact ErrCode = %{public}d", errorCode); in GetSwitchStateV9() 497 if (errorCode == ERRCODE_SUCCESS) { in GetSwitchStateV9() 502 return errorCode; in GetSwitchStateV9() 513 LocationErrCode errorCode = in EnableAbilityV9() local 515 LBSLOGD(LOCATOR_STANDARD, "Proxy::EnableAbility Transact ErrCodes = %{public}d", errorCode); in EnableAbilityV9() 516 return errorCode; in EnableAbilityV9() 521 …LocationErrCode errorCode = SendSimpleMsgV9(static_cast<int>(LocatorInterfaceCode::UPDATE_SA_ABILI… in UpdateSaAbilityV9() local 522 LBSLOGD(LOCATOR_STANDARD, "Proxy::UpdateSaAbility Transact ErrCodes = %{public}d", errorCode); in UpdateSaAbilityV9() 523 return errorCode; in UpdateSaAbilityV9() [all …]
|
/base/telephony/core_service/interfaces/innerkits/include/ |
D | i_network_search_callback_stub.h | 35 virtual void OnSetNetworkModeCallback(const bool setResult, const int32_t errorCode); 36 virtual void OnGetNetworkModeCallback(const int32_t searchModel, const int32_t errorCode); 37 virtual void OnSetRadioStateCallback(const bool setResult, const int32_t errorCode); 38 virtual void OnGetRadioStateCallback(const bool setResult, const int32_t errorCode); 40 const sptr<NetworkSearchResult> &networkSearchResult, const int32_t errorCode); 41 virtual void OnSetPreferredNetworkCallback(const bool result, const int32_t errorCode); 42 virtual void OnGetPreferredNetworkCallback(const int32_t networkMode, const int32_t errorCode); 43 virtual void OnSetNrOptionModeCallback(const bool setResult, const int32_t errorCode); 44 virtual void OnGetNrOptionModeCallback(const int32_t mode, const int32_t errorCode);
|
/base/security/huks/interfaces/kits/liteapi/src/ |
D | hks_lite_api.cpp | 33 JSIValue errorCode = JSI::CreateObject(); in CreateHuksErrCode() local 35 … AddInt32PropertyInLite(errorCode, "HUKS_ERR_CODE_PERMISSION_FAIL", HUKS_ERR_CODE_PERMISSION_FAIL); in CreateHuksErrCode() 36 …AddInt32PropertyInLite(errorCode, "HUKS_ERR_CODE_ILLEGAL_ARGUMENT", HUKS_ERR_CODE_ILLEGAL_ARGUMENT… in CreateHuksErrCode() 37 …AddInt32PropertyInLite(errorCode, "HUKS_ERR_CODE_NOT_SUPPORTED_API", HUKS_ERR_CODE_NOT_SUPPORTED_A… in CreateHuksErrCode() 38 …AddInt32PropertyInLite(errorCode, "HUKS_ERR_CODE_FEATURE_NOT_SUPPORTED", HUKS_ERR_CODE_FEATURE_NOT… in CreateHuksErrCode() 39 AddInt32PropertyInLite(errorCode, "HUKS_ERR_CODE_MISSING_CRYPTO_ALG_ARGUMENT", in CreateHuksErrCode() 41 AddInt32PropertyInLite(errorCode, "HUKS_ERR_CODE_INVALID_CRYPTO_ALG_ARGUMENT", in CreateHuksErrCode() 43 …AddInt32PropertyInLite(errorCode, "HUKS_ERR_CODE_FILE_OPERATION_FAIL", HUKS_ERR_CODE_FILE_OPERATIO… in CreateHuksErrCode() 44 …AddInt32PropertyInLite(errorCode, "HUKS_ERR_CODE_COMMUNICATION_FAIL", HUKS_ERR_CODE_COMMUNICATION_… in CreateHuksErrCode() 45 AddInt32PropertyInLite(errorCode, "HUKS_ERR_CODE_CRYPTO_FAIL", HUKS_ERR_CODE_CRYPTO_FAIL); in CreateHuksErrCode() [all …]
|
/base/security/certificate_manager/interfaces/kits/napi/src/ |
D | cm_napi.cpp | 41 static void AddCMErrorCodePart(napi_env env, napi_value errorCode) in AddCMErrorCodePart() argument 43 AddInt32Property(env, errorCode, "SUCCESS", SUCCESS); in AddCMErrorCodePart() 44 AddInt32Property(env, errorCode, "PARAM_ERROR", PARAM_ERROR); in AddCMErrorCodePart() 45 AddInt32Property(env, errorCode, "FAILURE", INNER_FAILURE); in AddCMErrorCodePart() 46 AddInt32Property(env, errorCode, "NO_PERMISSION", NO_PERMISSION); in AddCMErrorCodePart() 47 AddInt32Property(env, errorCode, "NOT_FOUND", NOT_FOUND); in AddCMErrorCodePart() 48 AddInt32Property(env, errorCode, "INVALID_CERT_FORMAT", INVALID_CERT_FORMAT); in AddCMErrorCodePart() 53 napi_value errorCode = nullptr; in CreateCMErrorCode() local 54 NAPI_CALL(env, napi_create_object(env, &errorCode)); in CreateCMErrorCode() 56 AddCMErrorCodePart(env, errorCode); in CreateCMErrorCode() [all …]
|
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_service/main/hisysevent_wrapper/src/ |
D | cm_report_wrapper.c | 22 const char *name, int32_t errorCode) in ReportFaultEvent() argument 24 if (errorCode == CM_SUCCESS) { in ReportFaultEvent() 29 struct EventValues eventValues = { cmContext->userId, cmContext->uid, name, errorCode }; in ReportFaultEvent() 38 const struct CmBlob *certName, int32_t errorCode) in CmReport() argument 42 (void)ReportFaultEvent(funcName, cmContext, "NULL", errorCode); in CmReport() 45 (void)ReportFaultEvent(funcName, cmContext, (char *)certName->data, errorCode); in CmReport()
|
/base/update/updateservice/services/core/ability/utils/src/ |
D | file_utils.cpp | 38 std::error_code errorCode; in GetFileSize() local 39 int64_t fileSize = static_cast<int64_t>(std::filesystem::file_size(fileName, errorCode)); in GetFileSize() 40 if (errorCode.operator bool()) { in GetFileSize() 55 std::error_code errorCode; in IsSpaceEnough() local 57 const std::filesystem::space_info spaceInfo = std::filesystem::space(filePath, errorCode); in IsSpaceEnough() 58 if (errorCode.operator bool()) { in IsSpaceEnough() 59 ENGINE_LOGE("get disk free error, error code = %d", errorCode.value()); in IsSpaceEnough() 104 std::error_code errorCode; in RemoveAll() local 105 std::filesystem::remove_all(path, errorCode); in RemoveAll() 106 if (errorCode.operator bool()) { in RemoveAll() [all …]
|
/base/security/dlp_permission_service/services/dlp_permission/sa/sa_main/ |
D | dlp_credential.cpp | 43 static bool IsDlpCredentialHuksError(int errorCode) in IsDlpCredentialHuksError() argument 45 … return ((errorCode >= DLP_ERR_GENERATE_KEY_FAILED) && (errorCode < DLP_ERR_IPC_INTERNAL_FAILED)); in IsDlpCredentialHuksError() 48 static bool IsDlpCredentialIpcError(int errorCode) in IsDlpCredentialIpcError() argument 50 … return ((errorCode >= DLP_ERR_IPC_INTERNAL_FAILED) && (errorCode < DLP_ERR_CONNECTION_TIME_OUT)); in IsDlpCredentialIpcError() 53 static bool IsDlpCredentialServerError(int errorCode) in IsDlpCredentialServerError() argument 55 return ((errorCode >= DLP_ERR_CONNECTION_TIME_OUT) && (errorCode < DLP_ERR_FILE_PATH)); in IsDlpCredentialServerError() 58 static bool IsNoPermissionError(int errorCode) in IsNoPermissionError() argument 60 …return ((errorCode == DLP_ERR_CONNECTION_VIP_RIGHT_EXPIRED) || (errorCode == DLP_ERR_CONNECTION_NO… in IsNoPermissionError() 61 (errorCode == DLP_ERR_CONNECTION_POLICY_PERMISSION_EXPIRED)); in IsNoPermissionError() 64 static bool IsNoAccountError(int errorCode) in IsNoAccountError() argument [all …]
|
/base/location/frameworks/js/napi/source/ |
D | location_napi_event.cpp | 144 LocationErrCode errorCode = CheckLocationSwitchEnable(); in SubscribeGnssStatusV9() local 145 if (errorCode != ERRCODE_SUCCESS) { in SubscribeGnssStatusV9() 146 return errorCode; in SubscribeGnssStatusV9() 166 LocationErrCode errorCode = CheckLocationSwitchEnable(); in SubscribeNmeaMessageV9() local 167 if (errorCode != ERRCODE_SUCCESS) { in SubscribeNmeaMessageV9() 168 return errorCode; in SubscribeNmeaMessageV9() 233 LocationErrCode errorCode = CheckLocationSwitchEnable(); in SubscribeLocationChangeV9() local 234 if (errorCode != ERRCODE_SUCCESS) { in SubscribeLocationChangeV9() 235 return errorCode; in SubscribeLocationChangeV9() 310 LocationErrCode errorCode = CheckLocationSwitchEnable(); in SubscribeCacheLocationChangeV9() local [all …]
|
D | location_napi_adapter.cpp | 73 LocationErrCode errorCode = CheckLocationSwitchState(); in HandleGetCachedLocation() local 74 if (errorCode != ERRCODE_SUCCESS) { in HandleGetCachedLocation() 75 HandleSyncErrCode(env, errorCode); in HandleGetCachedLocation() 79 errorCode = g_locatorClient->GetCachedLocationV9(loc); in HandleGetCachedLocation() 84 HandleSyncErrCode(env, errorCode); in HandleGetCachedLocation() 102 LocationErrCode errorCode = g_locatorClient->IsLocationEnabledV9(isEnabled); in IsLocationEnabled() local 103 if (errorCode != ERRCODE_SUCCESS) { in IsLocationEnabled() 104 HandleSyncErrCode(env, errorCode); in IsLocationEnabled() 184 LocationErrCode errorCode = g_locatorClient->EnableAbilityV9(false); in DisableLocation() local 185 if (errorCode != ERRCODE_SUCCESS) { in DisableLocation() [all …]
|
/base/telephony/core_service/frameworks/js/sim/src/ |
D | napi_sim.cpp | 70 NapiUtil::ThrowError(env, error.errorCode, error.errorMessage); in NapiCreateAsyncWork() 107 NapiUtil::ThrowError(env, error.errorCode, error.errorMessage); in NapiCreateAsyncWork2() 127 const std::string &errMessage, bool funcIgnoreReturnVal = false, int errorCode = ERROR_DEFAULT) in NapiAsyncCompleteCallback() argument 137 napi_value errorMessage = NapiUtil::CreateErrorMessage(env, errMessage, errorCode); in NapiAsyncCompleteCallback() 149 callbackValue[0] = NapiUtil::CreateErrorMessage(env, errMessage, errorCode); in NapiAsyncCompleteCallback() 170 … napi_value errorMessage = NapiUtil::CreateErrorMessage(env, error.errorMessage, error.errorCode); in NapiAsyncBaseCompleteCallback() 188 callbackValue[0] = NapiUtil::CreateErrorMessage(env, error.errorMessage, error.errorCode); in NapiAsyncBaseCompleteCallback() 212 asyncContext.context.errorCode, permissionPara.func, permissionPara.permission); in NapiAsyncPermissionCompleteCallback() 225 JsError error = NapiUtil::ConverErrorMessageForJs(asyncContext.context.errorCode); in NapiAsyncCommomCompleteCallback() 351 reVal->context.errorCode = ERROR_SLOT_ID_INVALID; in NativeIsSimActive() [all …]
|
/base/notification/distributed_notification_service/frameworks/core/test/unittest/mock/ |
D | mock_image_source.cpp | 31 void MockImageSourceCreateImageSource(bool mockRet, uint32_t errorCode) in MockImageSourceCreateImageSource() argument 34 g_mockImageSourceCreateImageSourceErrorCode = errorCode; in MockImageSourceCreateImageSource() 37 void MockImageSourceCreatePixelMap(bool mockRet, uint32_t errorCode) in MockImageSourceCreatePixelMap() argument 40 g_mockImageSourceCreatePixelMapErrorCode = errorCode; in MockImageSourceCreatePixelMap() 66 const SourceOptions &opts, uint32_t &errorCode) in CreateImageSource() argument 72 const SourceOptions &opts, uint32_t &errorCode) in CreateImageSource() argument 74 errorCode = g_mockImageSourceCreateImageSourceErrorCode; in CreateImageSource() 85 uint32_t &errorCode) in CreateImageSource() argument 87 errorCode = g_mockImageSourceCreateImageSourceErrorCode; in CreateImageSource() 98 uint32_t &errorCode) in CreateImageSource() argument [all …]
|
/base/global/i18n/frameworks/intl/test/unittest/ |
D | i18n_test.cpp | 64 I18nErrorCode errorCode = I18nErrorCode::SUCCESS; variable 65 PreferredLanguage::AddPreferredLanguage("en-US", 0, errorCode); 66 if (errorCode == I18nErrorCode::SUCCESS) { 80 I18nErrorCode errorCode = I18nErrorCode::SUCCESS; variable 81 I18nNormalizer normalizer(I18nNormalizerMode::NFD, errorCode); 82 EXPECT_EQ(errorCode, I18nErrorCode::SUCCESS); 85 string normalizedText = normalizer.Normalize(text.c_str(), text.length(), errorCode); 86 EXPECT_EQ(errorCode, I18nErrorCode::SUCCESS); 91 normalizedText = normalizer.Normalize(text.c_str(), text.length(), errorCode); 92 EXPECT_EQ(errorCode, I18nErrorCode::SUCCESS); [all …]
|
/base/telephony/core_service/frameworks/js/network_search/src/ |
D | set_network_search_mode_callback.cpp | 26 …tNetworkSearchModeCallback::OnSetNetworkModeCallback(const bool setResult, const int32_t errorCode) in OnSetNetworkModeCallback() argument 32 …I("OnSetNetworkModeCallback setResult = %{public}d ,errorCode = %{public}d", setResult, errorCode); in OnSetNetworkModeCallback() 35 …asyncContext_->errorCode = ((errorCode == HRIL_ERR_SUCCESS) ? TELEPHONY_ERR_SUCCESS : TELEPHONY_ER… in OnSetNetworkModeCallback()
|
D | set_preferred_network_callback.cpp | 27 …ferredNetworkCallback::OnSetPreferredNetworkCallback(const bool setResult, const int32_t errorCode) in OnSetPreferredNetworkCallback() argument 35 errorCode); in OnSetPreferredNetworkCallback() 36 asyncContext_->resolved = (errorCode == HRIL_ERR_SUCCESS) && setResult; in OnSetPreferredNetworkCallback() 38 asyncContext_->errorCode = TELEPHONY_ERR_RIL_CMD_FAIL; in OnSetPreferredNetworkCallback()
|
D | set_radio_state_callback.cpp | 26 void SetRadioStateCallback::OnSetRadioStateCallback(const bool setResult, const int32_t errorCode) in OnSetRadioStateCallback() argument 34 asyncContext_->resolved = (errorCode == HRIL_ERR_REPEAT_STATUS) || in OnSetRadioStateCallback() 35 ((errorCode == HRIL_ERR_SUCCESS) && setResult); in OnSetRadioStateCallback() 37 asyncContext_->errorCode = TELEPHONY_ERR_RIL_CMD_FAIL; in OnSetRadioStateCallback()
|
D | get_network_search_info_callback.cpp | 28 const sptr<NetworkSearchResult> &networkSearchResult, const int32_t errorCode) in OnGetNetworkSearchInformation() argument 30 TELEPHONY_LOGI("start errorCode = %{public}d", errorCode); in OnGetNetworkSearchInformation() 36 asyncContext_->resolved = (errorCode == HRIL_ERR_SUCCESS) && (networkSearchResult != nullptr); in OnGetNetworkSearchInformation() 40 asyncContext_->errorCode = TELEPHONY_ERR_RIL_CMD_FAIL; in OnGetNetworkSearchInformation()
|
/base/customization/enterprise_device_management/interfaces/kits/common/src/ |
D | napi_edm_error.cpp | 41 napi_value CreateError(napi_env env, ErrCode errorCode) in CreateError() argument 43 auto pair = GetMessageFromReturncode(errorCode); in CreateError() 47 napi_value CreateErrorWithInnerCode(napi_env env, ErrCode errorCode, std::string &errMessage) in CreateErrorWithInnerCode() argument 49 auto pair = GetMessageFromReturncode(errorCode); in CreateErrorWithInnerCode() 57 napi_value CreateError(napi_env env, int32_t errorCode, const std::string &errMessage) in CreateError() argument 62 napi_create_string_utf8(env, static_cast<char *>(std::to_string(errorCode).data()), in CreateError() 63 std::to_string(errorCode).size(), &errorCodeStr); in CreateError()
|