| /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 | 336 static void AddHuksErrorCodePart1(napi_env env, napi_value errorCode) in AddHuksErrorCodePart1() argument 338 AddInt32Property(env, errorCode, "HUKS_SUCCESS", HKS_SUCCESS); in AddHuksErrorCodePart1() 339 AddInt32Property(env, errorCode, "HUKS_FAILURE", HKS_FAILURE); in AddHuksErrorCodePart1() 340 AddInt32Property(env, errorCode, "HUKS_ERROR_BAD_STATE", HKS_ERROR_BAD_STATE); in AddHuksErrorCodePart1() 341 AddInt32Property(env, errorCode, "HUKS_ERROR_INVALID_ARGUMENT", HKS_ERROR_INVALID_ARGUMENT); in AddHuksErrorCodePart1() 342 AddInt32Property(env, errorCode, "HUKS_ERROR_NOT_SUPPORTED", HKS_ERROR_NOT_SUPPORTED); in AddHuksErrorCodePart1() 343 AddInt32Property(env, errorCode, "HUKS_ERROR_NO_PERMISSION", HKS_ERROR_NO_PERMISSION); in AddHuksErrorCodePart1() 344 AddInt32Property(env, errorCode, "HUKS_ERROR_INSUFFICIENT_DATA", HKS_ERROR_INSUFFICIENT_DATA); in AddHuksErrorCodePart1() 345 AddInt32Property(env, errorCode, "HUKS_ERROR_BUFFER_TOO_SMALL", HKS_ERROR_BUFFER_TOO_SMALL); in AddHuksErrorCodePart1() 346 … AddInt32Property(env, errorCode, "HUKS_ERROR_INSUFFICIENT_MEMORY", HKS_ERROR_INSUFFICIENT_MEMORY); in AddHuksErrorCodePart1() [all …]
|
| /base/telephony/core_service/frameworks/js/napi/ |
| D | napi_util.cpp | 96 std::string NapiUtil::GetErrorMessage(int32_t errorCode) in GetErrorMessage() argument 99 auto iter = errorMap_.find(errorCode); in GetErrorMessage() 104 …D("NapiUtil::GetErrorMessage errorCode %{public}d, message = %{public}s", errorCode, iter->second); in GetErrorMessage() 129 napi_value NapiUtil::CreateErrorMessage(napi_env env, const std::string &msg, int32_t errorCode) in CreateErrorMessage() argument 135 NAPI_CALL(env, napi_create_int32(env, errorCode, &codeValue)); in CreateErrorMessage() 302 std::string errorCode = std::to_string(queueWorkStatus); in HandleAsyncWork() local 304 NAPI_CALL(env, napi_throw_error(env, errorCode.c_str(), errorMessage.c_str())); in HandleAsyncWork() 398 JsError NapiUtil::ConverErrorMessageForJs(int32_t errorCode) in ConverErrorMessageForJs() argument 401 if (errorCode == TELEPHONY_ERR_SUCCESS) { in ConverErrorMessageForJs() 402 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/telephony/core_service/utils/vcard/src/ |
| D | vcard_manager.cpp | 67 int32_t errorCode = TELEPHONY_SUCCESS; in OnRawDataCreated() local 68 currentContact_->AddRawData(rawData, errorCode); in OnRawDataCreated() 80 int32_t errorCode = Import(path, accountId); in ImportLock() local 82 TELEPHONY_LOGI("ImportLock errorCode : %{public}d finish", errorCode); in ImportLock() 83 return errorCode; in ImportLock() 88 int32_t errorCode = TELEPHONY_SUCCESS; in Import() local 89 Decode(path, errorCode); in Import() 90 if (errorCode != TELEPHONY_SUCCESS) { in Import() 92 return errorCode; in Import() 94 BatchInsertContactDbAbility(accountId, errorCode); in Import() [all …]
|
| D | vcard_decoder_v21.cpp | 100 void VCardDecoderV21::Decode(int32_t &errorCode) in Decode() argument 103 while (!IsEnd() && DecodeOne(errorCode)) { in Decode() 104 if (errorCode != TELEPHONY_SUCCESS) { in Decode() 111 bool VCardDecoderV21::DecodeOne(int32_t &errorCode) in DecodeOne() argument 113 errorCode = TELEPHONY_SUCCESS; in DecodeOne() 119 errorCode = TELEPHONY_ERR_VCARD_FILE_INVALID; in DecodeOne() 122 ParseItems(errorCode); in DecodeOne() 123 if (errorCode != TELEPHONY_SUCCESS) { in DecodeOne() 149 void VCardDecoderV21::ParseItems(int32_t &errorCode) in ParseItems() argument 151 while (ParseItem(errorCode)) { in ParseItems() [all …]
|
| D | vcard_decoder.cpp | 32 std::shared_ptr<VCardDecoder> VCardDecoder::Create(const std::string &path, int32_t &errorCode) in Create() argument 35 errorCode = TELEPHONY_ERR_VCARD_FILE_INVALID; in Create() 39 errorCode = fileUtils_.Open(path); in Create() 40 if (errorCode != TELEPHONY_SUCCESS) { in Create() 43 errorCode = TELEPHONY_ERR_VCARD_FILE_INVALID; in Create() 46 errorCode = TELEPHONY_SUCCESS; in Create() 50 …red_ptr<VCardDecoder> VCardDecoder::Create(std::shared_ptr<std::ifstream> file, int32_t &errorCode) in Create() argument 55 errorCode = TELEPHONY_ERR_LOCAL_PTR_NULL; in Create() 58 errorCode = TELEPHONY_SUCCESS; in Create() 97 void VCardDecoder::Decode(int32_t &errorCode) {} in Decode() argument [all …]
|
| D | vcard_decoder_v30.cpp | 81 …0::DealParams(const std::string ¶ms, std::shared_ptr<VCardRawData> rawData, int32_t &errorCode) in DealParams() argument 83 VCardDecoderV21::DealParams(params, rawData, errorCode); in DealParams() 84 if (errorCode == TELEPHONY_SUCCESS) { in DealParams() 91 DealAnyParam(name, value, rawData, errorCode); in DealParams() 92 errorCode = TELEPHONY_SUCCESS; in DealParams() 95 errorCode = TELEPHONY_ERR_VCARD_FILE_INVALID; in DealParams() 100 int32_t errorCode = TELEPHONY_SUCCESS; in EncodeParamValue() local 101 return VCardUtils::ConvertCharset(value, "", DEFAULT_IMPORT_CHARSET, errorCode); in EncodeParamValue() 105 …g ¶m, const std::string ¶mValue, std::shared_ptr<VCardRawData> rawData, int32_t &errorCode) in DealAnyParam() argument 107 DealParamV30(param, paramValue, rawData, errorCode); in DealAnyParam() [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/location/frameworks/native/source/ |
| D | locator_proxy.cpp | 496 LocationErrCode errorCode = in GetSwitchStateV9() local 498 LBSLOGD(LOCATOR_STANDARD, "Proxy::GetSwitchState Transact ErrCode = %{public}d", errorCode); in GetSwitchStateV9() 500 if (errorCode == ERRCODE_SUCCESS) { in GetSwitchStateV9() 505 return errorCode; in GetSwitchStateV9() 516 LocationErrCode errorCode = in EnableAbilityV9() local 518 LBSLOGD(LOCATOR_STANDARD, "Proxy::EnableAbility Transact ErrCodes = %{public}d", errorCode); in EnableAbilityV9() 519 return errorCode; in EnableAbilityV9() 524 …LocationErrCode errorCode = SendSimpleMsgV9(static_cast<int>(LocatorInterfaceCode::UPDATE_SA_ABILI… in UpdateSaAbilityV9() local 525 LBSLOGD(LOCATOR_STANDARD, "Proxy::UpdateSaAbility Transact ErrCodes = %{public}d", errorCode); in UpdateSaAbilityV9() 526 return errorCode; in UpdateSaAbilityV9() [all …]
|
| /base/telephony/core_service/utils/vcard/include/ |
| D | vcard_decoder_v21.h | 32 virtual void Decode(int32_t &errorCode); 33 virtual bool DecodeOne(int32_t &errorCode); 37 void ParseItems(int32_t &errorCode); 38 bool ParseItem(int32_t &errorCode); 39 …alRawDataValue(const std::string &name, std::shared_ptr<VCardRawData> rawData, int32_t &errorCode); 45 …d BuildRawData(const std::string &line, std::shared_ptr<VCardRawData> rawData, int32_t &errorCode); 46 …d DealParams(const std::string ¶ms, std::shared_ptr<VCardRawData> rawData, int32_t &errorCode); 48 const std::string ¶mValue, std::shared_ptr<VCardRawData> rawData, int32_t &errorCode); 49 … DealTypeParam(const std::string &type, std::shared_ptr<VCardRawData> rawData, int32_t &errorCode); 50 …ealValueParam(const std::string &value, std::shared_ptr<VCardRawData> rawData, int32_t &errorCode); [all …]
|
| D | vcard_decoder_v30.h | 29 …d DealParams(const std::string ¶ms, std::shared_ptr<VCardRawData> rawData, int32_t &errorCode); 31 std::shared_ptr<VCardRawData> rawData, int32_t &errorCode); 33 const std::string ¶mValue, std::shared_ptr<VCardRawData> rawData, int32_t &errorCode); 35 const std::string ¶mValue, std::shared_ptr<VCardRawData> rawData, int32_t &errorCode); 36 virtual void DealAgent(std::shared_ptr<VCardRawData> rawData, int32_t &errorCode); 40 virtual std::string GetBase64(const std::string &value, int32_t &errorCode); 45 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/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/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 struct EventValues eventValues = { cmContext->userId, cmContext->uid, name, errorCode }; in ReportFaultEvent() 47 const struct CmBlob *certName, int32_t errorCode) in CmReport() argument 49 if (errorCode == CM_SUCCESS) { in CmReport() 54 (void)ReportFaultEvent(funcName, cmContext, "NULL", errorCode); in CmReport() 63 (void)ReportFaultEvent(funcName, cmContext, (char *)certName->data, errorCode); in CmReport()
|
| /base/telephony/core_service/frameworks/js/sim/src/ |
| D | napi_sim.cpp | 74 NapiUtil::ThrowError(env, error.errorCode, error.errorMessage); in NapiCreateAsyncWork() 111 NapiUtil::ThrowError(env, error.errorCode, error.errorMessage); in NapiCreateAsyncWork2() 152 NapiUtil::ThrowError(env, error.errorCode, error.errorMessage); in NapiCreateAsyncWork3() 159 NapiUtil::ThrowError(env, error.errorCode, error.errorMessage); in NapiCreateAsyncWork3() 179 const std::string &errMessage, bool funcIgnoreReturnVal = false, int errorCode = ERROR_DEFAULT) in NapiAsyncCompleteCallback() argument 189 napi_value errorMessage = NapiUtil::CreateErrorMessage(env, errMessage, errorCode); in NapiAsyncCompleteCallback() 201 callbackValue[0] = NapiUtil::CreateErrorMessage(env, errMessage, errorCode); in NapiAsyncCompleteCallback() 222 … napi_value errorMessage = NapiUtil::CreateErrorMessage(env, error.errorMessage, error.errorCode); in NapiAsyncBaseCompleteCallback() 240 callbackValue[0] = NapiUtil::CreateErrorMessage(env, error.errorMessage, error.errorCode); in NapiAsyncBaseCompleteCallback() 264 asyncContext.context.errorCode, permissionPara.func, permissionPara.permission); in NapiAsyncPermissionCompleteCallback() [all …]
|
| /base/security/asset/frameworks/js/napi/src/ |
| D | asset_napi.cpp | 76 napi_value errorCode = nullptr; in DeclareErrorCode() local 77 NAPI_CALL(env, napi_create_object(env, &errorCode)); in DeclareErrorCode() 78 AddUint32Property(env, errorCode, "PERMISSION_DENIED", ASSET_PERMISSION_DENIED); in DeclareErrorCode() 79 AddUint32Property(env, errorCode, "INVALID_ARGUMENT", ASSET_INVALID_ARGUMENT); in DeclareErrorCode() 80 AddUint32Property(env, errorCode, "SERVICE_UNAVAILABLE", ASSET_SERVICE_UNAVAILABLE); in DeclareErrorCode() 81 AddUint32Property(env, errorCode, "NOT_FOUND", ASSET_NOT_FOUND); in DeclareErrorCode() 82 AddUint32Property(env, errorCode, "DUPLICATED", ASSET_DUPLICATED); in DeclareErrorCode() 83 AddUint32Property(env, errorCode, "ACCESS_DENIED", ASSET_ACCESS_DENIED); in DeclareErrorCode() 84 AddUint32Property(env, errorCode, "STATUS_MISMATCH", ASSET_STATUS_MISMATCH); in DeclareErrorCode() 85 AddUint32Property(env, errorCode, "OUT_OF_MEMORY", ASSET_OUT_OF_MEMORY); in DeclareErrorCode() [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/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() 103 std::error_code errorCode; in RemoveAll() local 104 std::filesystem::remove_all(path, errorCode); in RemoveAll() 105 if (errorCode.operator bool()) { in RemoveAll() 107 errorCode.message().c_str()); in RemoveAll() 187 std::error_code errorCode; in CreatDirWithPermission() local 188 std::filesystem::create_directory(fileDir, errorCode); in CreatDirWithPermission() 189 if (errorCode.operator bool()) { in CreatDirWithPermission() [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, "CM_ERROR_NO_PERMISSION", HAS_NO_PERMISSION); in AddCMErrorCodePart() 44 AddInt32Property(env, errorCode, "CM_ERROR_NOT_SYSTEM_APP", NOT_SYSTEM_APP); in AddCMErrorCodePart() 45 AddInt32Property(env, errorCode, "CM_ERROR_INVALID_PARAMS", PARAM_ERROR); in AddCMErrorCodePart() 46 AddInt32Property(env, errorCode, "CM_ERROR_GENERIC", INNER_FAILURE); in AddCMErrorCodePart() 47 AddInt32Property(env, errorCode, "CM_ERROR_NO_FOUND", NOT_FOUND); in AddCMErrorCodePart() 48 AddInt32Property(env, errorCode, "CM_ERROR_INCORRECT_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/location/frameworks/js/napi/source/ |
| 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() 101 LocationErrCode errorCode = g_locatorClient->IsLocationEnabledV9(isEnabled); in IsLocationEnabled() local 102 if (errorCode != ERRCODE_SUCCESS) { in IsLocationEnabled() 103 HandleSyncErrCode(env, errorCode); in IsLocationEnabled() 186 LocationErrCode errorCode = g_locatorClient->EnableAbilityV9(false); in DisableLocation() local 187 if (errorCode != ERRCODE_SUCCESS) { in DisableLocation() [all …]
|
| /base/location/test/location_locator/source/ |
| D | locator_required_data_manager_test.cpp | 61 LocationErrCode errorCode = locatorDataManager->RegisterCallback(dataConfig, nullptr); variable 62 EXPECT_EQ(ERRCODE_INVALID_PARAM, errorCode); 63 errorCode = locatorDataManager->UnregisterCallback(nullptr); 64 EXPECT_EQ(ERRCODE_SERVICE_UNAVAILABLE, errorCode); 82 …LocationErrCode errorCode = locatorDataManager->RegisterCallback(dataConfig, callback->AsObject()); variable 83 EXPECT_EQ(ERRCODE_NOT_SUPPORTED, errorCode); 101 …LocationErrCode errorCode = locatorDataManager->RegisterCallback(dataConfig, callback->AsObject()); variable 102 EXPECT_EQ(ERRCODE_SUCCESS, errorCode);
|