/base/update/updateservice/interfaces/inner_api/feature/update/api/online_updater/ |
H A D | iservice_online_updater.h | 43 virtual int32_t CheckNewVersion(const UpgradeInfo &info, BusinessError &businessError, 47 const DownloadOptions &downloadOptions, BusinessError &businessError) = 0; 50 const PauseDownloadOptions &pauseDownloadOptions, BusinessError &businessError) = 0; 53 const ResumeDownloadOptions &resumeDownloadOptions, BusinessError &businessError) = 0; 56 const UpgradeOptions &upgradeOptions, BusinessError &businessError) = 0; 59 const ClearOptions &clearOptions, BusinessError &businessError) = 0; 61 virtual int32_t TerminateUpgrade(const UpgradeInfo &info, BusinessError &businessError) = 0; 64 BusinessError &businessError) = 0; 68 BusinessError &businessError) = 0; 71 BusinessError [all...] |
/base/update/updateservice/interfaces/inner_api/engine/include/ |
H A D | update_service_kits_impl.h | 41 int32_t CheckNewVersion(const UpgradeInfo &info, BusinessError &businessError, CheckResult &checkResult) final; 44 const DownloadOptions &downloadOptions, BusinessError &businessError) final; 47 const PauseDownloadOptions &pauseDownloadOptions, BusinessError &businessError) final; 50 const ResumeDownloadOptions &resumeDownloadOptions, BusinessError &businessError) final; 53 const UpgradeOptions &upgradeOptions, BusinessError &businessError) final; 56 const ClearOptions &clearOptions, BusinessError &businessError) final; 58 int32_t TerminateUpgrade(const UpgradeInfo &info, BusinessError &businessError) final; 61 BusinessError &businessError) final; 65 BusinessError &businessError) final; 68 BusinessError [all...] |
H A D | update_service_proxy.h | 32 int32_t CheckNewVersion(const UpgradeInfo &info, BusinessError &businessError, CheckResult &checkResult) override; 35 const DownloadOptions &downloadOptions, BusinessError &businessError) override; 38 const PauseDownloadOptions &pauseDownloadOptions, BusinessError &businessError) override; 41 const ResumeDownloadOptions &resumeDownloadOptions, BusinessError &businessError) override; 44 const UpgradeOptions &upgradeOptions, BusinessError &businessError) override; 47 const ClearOptions &clearOptions, BusinessError &businessError) override; 49 int32_t TerminateUpgrade(const UpgradeInfo &info, BusinessError &businessError) override; 52 BusinessError &businessError) override; 56 BusinessError &businessError) override; 59 BusinessError [all...] |
/base/update/updateservice/interfaces/inner_api/include/ |
H A D | update_service_kits.h | 57 virtual int32_t CheckNewVersion(const UpgradeInfo &info, BusinessError &businessError, 61 const DownloadOptions &downloadOptions, BusinessError &businessError) = 0; 64 const PauseDownloadOptions &pauseDownloadOptions, BusinessError &businessError) = 0; 67 const ResumeDownloadOptions &resumeDownloadOptions, BusinessError &businessError) = 0; 70 const UpgradeOptions &upgradeOptions, BusinessError &businessError) = 0; 73 const ClearOptions &clearOptions, BusinessError &businessError) = 0; 75 virtual int32_t TerminateUpgrade(const UpgradeInfo &info, BusinessError &businessError) = 0; 78 BusinessError &businessError) = 0; 82 BusinessError &businessError) = 0; 85 BusinessError [all...] |
/base/update/updateservice/services/engine/include/ |
H A D | update_service_impl_firmware.h | 36 int32_t CheckNewVersion(const UpgradeInfo &info, BusinessError &businessError, CheckResult &checkResult) final; 39 const DownloadOptions &downloadOptions, BusinessError &businessError) final; 42 const PauseDownloadOptions &pauseDownloadOptions, BusinessError &businessError) final; 45 const ResumeDownloadOptions &resumeDownloadOptions, BusinessError &businessError) final; 48 const UpgradeOptions &upgradeOptions, BusinessError &businessError) final; 51 const ClearOptions &clearOptions, BusinessError &businessError) final; 53 int32_t TerminateUpgrade(const UpgradeInfo &info, BusinessError &businessError) final; 56 const UpgradeInfo &info, NewVersionInfo &newVersionInfo, BusinessError &businessError) final; 60 BusinessError &businessError) final; 63 BusinessError [all...] |
H A D | update_service.h | 43 int32_t CheckNewVersion(const UpgradeInfo &info, BusinessError &businessError, CheckResult &checkResult) override; 46 const DownloadOptions &downloadOptions, BusinessError &businessError) override; 49 const PauseDownloadOptions &pauseDownloadOptions, BusinessError &businessError) override; 52 const ResumeDownloadOptions &resumeDownloadOptions, BusinessError &businessError) override; 55 const UpgradeOptions &upgradeOptions, BusinessError &businessError) override; 58 const ClearOptions &clearOptions, BusinessError &businessError) override; 60 int32_t TerminateUpgrade(const UpgradeInfo &info, BusinessError &businessError) override; 63 const UpgradeInfo &info, NewVersionInfo &newVersionInfo, BusinessError &businessError) override; 67 BusinessError &businessError) override; 70 BusinessError [all...] |
H A D | update_service_local_updater.h | 34 const std::vector<std::string> &packageNames, BusinessError &businessError) final; 37 BusinessError &businessError) final;
|
/base/update/updateservice/interfaces/inner_api/engine/src/ |
H A D | update_service_proxy.cpp | 90 int32_t UpdateServiceProxy::CheckNewVersion(const UpgradeInfo &info, BusinessError &businessError, in CheckNewVersion() 106 BusinessError error; in CheckNewVersion() 115 const DownloadOptions &downloadOptions, BusinessError &businessError) in Download() 131 BusinessError remoteBusinessError; in Download() 138 const PauseDownloadOptions &pauseDownloadOptions, BusinessError &businessError) in PauseDownload() 154 BusinessError remoteBusinessError; in PauseDownload() 161 const ResumeDownloadOptions &resumeDownloadOptions, BusinessError &businessError) in ResumeDownload() 177 BusinessError remoteBusinessError; in ResumeDownload() 184 const UpgradeOptions &upgradeOptions, BusinessError &businessError) in Upgrade() 202 BusinessError remoteBusinessErro in Upgrade() [all...] |
H A D | update_service_kits_impl.cpp | 67 int32_t UpdateServiceKitsImpl::CheckNewVersion(const UpgradeInfo &info, BusinessError &businessError, in CheckNewVersion() 80 const DownloadOptions &downloadOptions, BusinessError &businessError) in Download() 91 const PauseDownloadOptions &pauseDownloadOptions, BusinessError &businessError) in PauseDownload() 102 const ResumeDownloadOptions &resumeDownloadOptions, BusinessError &businessError) in ResumeDownload() 113 const UpgradeOptions &upgradeOptions, BusinessError &businessError) in Upgrade() 124 const ClearOptions &clearOptions, BusinessError &businessError) in ClearError() 134 int32_t UpdateServiceKitsImpl::TerminateUpgrade(const UpgradeInfo &info, BusinessError &businessError) in TerminateUpgrade() 145 BusinessError &businessError) in GetNewVersionInfo() 157 VersionDescriptionInfo &newVersionDescriptionInfo, BusinessError &businessError) in GetNewVersionDescription() 169 BusinessError in GetCurrentVersionInfo() [all...] |
/base/update/updateservice/foundations/model/include/ |
H A D | business_error.h | 30 struct BusinessError { struct 35 BusinessError &Build(CallResult callResult, const std::string &msg) in Build() 42 BusinessError &AddErrorMessage(int32_t errorCode, const std::string &errorMessage) in AddErrorMessage() 51 friend void to_json(nlohmann::json &jsonObj, const BusinessError &businessError) in to_json() 58 friend void from_json(const nlohmann::json &jsonObj, BusinessError &businessError) in from_json()
|
/base/update/updateservice/services/firmware/upgrade/flow/include/ |
H A D | firmware_manager.h | 45 void DoDownload(const DownloadOptions &downloadOptions, BusinessError &businessError); 46 void DoInstall(const UpgradeOptions &upgradeOptions, BusinessError &businessError, InstallType installType); 48 void DoClearError(BusinessError &businessError); 50 void DoCancelDownload(BusinessError &businessError); 51 void DoTerminateUpgrade(BusinessError &businessError);
|
/base/update/updateservice/frameworks/js/napi/update/src/ |
H A D | update_client.cpp | 113 BusinessError *businessError = reinterpret_cast<BusinessError *>(context); in CheckNewVersion() 125 BusinessError *businessError = reinterpret_cast<BusinessError *>(context); in CancelUpgrade() 182 BusinessError *businessError = reinterpret_cast<BusinessError *>(context); in Download() 206 BusinessError *businessError = reinterpret_cast<BusinessError *>(context); in PauseDownload() 230 BusinessError *businessError = reinterpret_cast<BusinessError *>(contex in ResumeDownload() [all...] |
/base/web/webview/interfaces/kits/napi/webviewcontroller/ |
H A D | napi_webview_controller.cpp | 133 BusinessError::ThrowErrorByErrcode(env, PARAM_CHECK_ERROR); in GetArrayValueType() 137 BusinessError::ThrowErrorByErrcode(env, PARAM_CHECK_ERROR); in GetArrayValueType() 160 BusinessError::ThrowErrorByErrcode(env, PARAM_CHECK_ERROR); in SetArrayHandlerBoolean() 170 BusinessError::ThrowErrorByErrcode(env, PARAM_CHECK_ERROR); in SetArrayHandlerString() 180 BusinessError::ThrowErrorByErrcode(env, PARAM_CHECK_ERROR); in SetArrayHandlerInteger() 190 BusinessError::ThrowErrorByErrcode(env, PARAM_CHECK_ERROR); in SetArrayHandlerDouble() 204 BusinessError::ThrowErrorByErrcode(env, INIT_ERROR); in GetWebviewController() 269 WVLOG_E("BusinessError: 401. The character of 'cacheKey' must be number or letters."); in CheckCacheKey() 270 BusinessError::ThrowErrorByErrcode(env, PARAM_CHECK_ERROR); in CheckCacheKey() 320 BusinessError in ParsePrefetchArgs() [all...] |
H A D | napi_native_media_player.cpp | 248 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR); in HandleStatusChanged() 255 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR); in HandleStatusChanged() 261 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::TYPE_NOT_MATCH_WITCH_VALUE); in HandleStatusChanged() 286 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR); in HandleVolumeChanged() 293 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR); in HandleVolumeChanged() 299 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR); in HandleVolumeChanged() 324 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR); in HandleMutedChanged() 331 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR); in HandleMutedChanged() 356 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR); in HandlePlaybackRateChanged() 363 NWebError::BusinessError in HandlePlaybackRateChanged() [all...] |
/base/update/updateservice/services/engine/src/ |
H A D | update_service.cpp | 157 BusinessError &businessError) in GetNewVersionInfo() 169 BusinessError &businessError) in GetNewVersionDescription() 181 BusinessError &businessError) in GetCurrentVersionInfo() 193 BusinessError &businessError) in GetCurrentVersionDescription() 204 int32_t UpdateService::GetTaskInfo(const UpgradeInfo &info, TaskInfo &taskInfo, BusinessError &businessError) in GetTaskInfo() 215 BusinessError &businessError) in SetUpgradePolicy() 225 int32_t UpdateService::GetUpgradePolicy(const UpgradeInfo &info, UpgradePolicy &policy, BusinessError &businessError) in GetUpgradePolicy() 235 int32_t UpdateService::CheckNewVersion(const UpgradeInfo &info, BusinessError &businessError, CheckResult &checkResult) in CheckNewVersion() 246 const DownloadOptions &downloadOptions, BusinessError &businessError) in Download() 257 const PauseDownloadOptions &pauseDownloadOptions, BusinessError in PauseDownload() [all...] |
H A D | update_service_impl_firmware.cpp | 39 int32_t UpdateServiceImplFirmware::CheckNewVersion(const UpgradeInfo &info, BusinessError &businessError, in CheckNewVersion() 44 [&, weakPtr](const BusinessError &error, const CheckResult &result) { in CheckNewVersion() 68 const DownloadOptions &downloadOptions, BusinessError &businessError) in Download() 96 BusinessError &businessError) in PauseDownload() 106 BusinessError &businessError) in ResumeDownload() 115 const UpgradeOptions &upgradeOptions, BusinessError &businessError) in Upgrade() 128 const ClearOptions &clearOptions, BusinessError &businessError) in ClearError() 137 int32_t UpdateServiceImplFirmware::TerminateUpgrade(const UpgradeInfo &info, BusinessError &businessError) in TerminateUpgrade() 145 const UpgradeInfo &info, NewVersionInfo &newVersionInfo, BusinessError &businessError) in GetNewVersionInfo() 159 VersionDescriptionInfo &newVersionDescriptionInfo, BusinessError in GetNewVersionDescription() [all...] |
H A D | update_service_stub.cpp | 81 BusinessError businessError = {}; in GetNewVersionStub() 97 BusinessError businessError; in GetNewVersionDescriptionStub() 117 BusinessError businessError = {}; in GetCurrentVersionStub() 132 BusinessError businessError; in GetCurrentVersionDescriptionStub() 151 BusinessError businessError = {}; in GetTaskInfoStub() 165 BusinessError businessError; in CheckNewVersionStub() 181 BusinessError businessError; in DownloadVersionStub() 198 BusinessError businessError; in PauseDownloadStub() 216 BusinessError businessError; in ResumeDownloadStub() 234 BusinessError businessErro in DoUpdateStub() [all...] |
H A D | update_service_local_updater.cpp | 28 const std::vector<std::string> &packageNames, BusinessError &businessError) in ApplyNewVersion() 44 BusinessError &businessError) in VerifyUpgradePackage()
|
/base/web/webview/interfaces/kits/napi/common/ |
H A D | business_error.cpp | 22 napi_value BusinessError::CreateError(napi_env env, int32_t err) in CreateError() 35 void BusinessError::ThrowErrorByErrcode(napi_env env, int32_t errCode) in ThrowErrorByErrcode() 40 void BusinessError::ThrowErrorByErrcode(napi_env env, int32_t errCode, const std::string& errorMsg) in ThrowErrorByErrcode()
|
/base/web/webview/interfaces/kits/napi/webadsblockmanager/ |
H A D | napi_web_adsblock_manager.cpp | 83 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR, in JsSetAdsBlockRules() 92 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR, in JsSetAdsBlockRules() 93 "BusinessError 401: Parameter error. The type of rulesFile must be string."); in JsSetAdsBlockRules() 99 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR, in JsSetAdsBlockRules() 100 "BusinessError 401: Parameter error. rulesFile path too long > 255."); in JsSetAdsBlockRules() 107 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR, in JsSetAdsBlockRules() 108 "BusinessError 401: Parameter error. The type of replace must be boolean."); in JsSetAdsBlockRules() 131 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR, in JsAddAdsBlockDisallowedList() 140 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR, in JsAddAdsBlockDisallowedList() 141 "BusinessError 40 in JsAddAdsBlockDisallowedList() [all...] |
/base/web/webview/interfaces/kits/napi/webdatabase/ |
H A D | napi_web_data_base.cpp | 146 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR, in JsSaveHttpAuthCredentials() 152 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR, in JsSaveHttpAuthCredentials() 158 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR, in JsSaveHttpAuthCredentials() 164 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR, in JsSaveHttpAuthCredentials() 169 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR, in JsSaveHttpAuthCredentials() 175 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR, in JsSaveHttpAuthCredentials() 176 "BusinessError 401: Parameter error. The length of 'password' must be between 0 and 256."); in JsSaveHttpAuthCredentials() 182 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR, in JsSaveHttpAuthCredentials() 183 "BusinessError 401: Parameter error. The length of 'password' obtained twice are different"); in JsSaveHttpAuthCredentials() 205 NWebError::BusinessError in JsGetHttpAuthCredentials() [all...] |
/base/update/updateservice/interfaces/inner_api/feature/update/api/local_updater/ |
H A D | iservice_local_updater.h | 30 const std::vector<std::string> &packageNames, BusinessError &businessError) = 0; 33 BusinessError &businessError) = 0;
|
/base/hiviewdfx/hichecker/interfaces/js/kits/napi/js_leak_watcher/ |
H A D | js_leak_watcher.js | 27 class BusinessError extends Error { 121 throw new BusinessError(ERROR_CODE_INVALID_PARAM); 143 throw new BusinessError(ERROR_CODE_INVALID_PARAM); 150 throw new BusinessError(ERROR_CODE_INVALID_PARAM); 183 throw new BusinessError(ERROR_CODE_INVALID_PARAM);
|
/base/web/webview/interfaces/kits/napi/webfunction/ |
H A D | napi_webview_function.cpp | 53 BusinessError::ThrowErrorByErrcode(env, PARAM_CHECK_ERROR);
in JsOnce() 62 BusinessError::ThrowErrorByErrcode(env, PARAM_CHECK_ERROR);
in JsOnce() 71 BusinessError::ThrowErrorByErrcode(env, TYPE_NOT_MATCH_WITCH_VALUE);
in JsOnce()
|
/base/update/updateservice/frameworks/js/napi/session/include/ |
H A D | napi_session.h | 58 void OnAsyncComplete(const BusinessError &businessError) final 96 void BuildWorkBusinessErr(BusinessError &businessError) in BuildWorkBusinessErr() 103 msg = "BusinessError " + std::to_string(workResult_) + NOT_SYSTEM_APP_INFO.data(); in BuildWorkBusinessErr() 107 msg = "BusinessError " + std::to_string(workResult_) + ": Permission denied. An attempt was made to " + in BuildWorkBusinessErr() 111 msg = "BusinessError " + std::to_string(COMPONENT_ERR + workResult_) + ": IPC error."; in BuildWorkBusinessErr() 115 msg = "BusinessError " + std::to_string(workResult_) + ": Capability not supported. " + in BuildWorkBusinessErr() 119 msg = "BusinessError " + std::to_string(workResult_) + ": Parameter verification failed."; in BuildWorkBusinessErr() 122 msg = "BusinessError " + std::to_string(COMPONENT_ERR + workResult_) + ": Execute fail."; in BuildWorkBusinessErr() 125 msg = "BusinessError " + std::to_string(COMPONENT_ERR + workResult_) + ": Forbidden execution."; in BuildWorkBusinessErr() 128 msg = "BusinessError " in BuildWorkBusinessErr() [all...] |