/base/update/updateservice/services/engine/include/ |
D | update_service_proxy.h | 36 const DownloadOptions &downloadOptions, BusinessError &businessError) override; 39 const PauseDownloadOptions &pauseDownloadOptions, BusinessError &businessError) override; 42 const ResumeDownloadOptions &resumeDownloadOptions, BusinessError &businessError) override; 45 const UpgradeOptions &upgradeOptions, BusinessError &businessError) override; 48 const ClearOptions &clearOptions, BusinessError &businessError) override; 50 int32_t TerminateUpgrade(const UpgradeInfo &info, BusinessError &businessError) override; 53 BusinessError &businessError) override; 57 BusinessError &businessError) override; 60 BusinessError &businessError) override; 63 … VersionDescriptionInfo ¤tVersionDescriptionInfo, BusinessError &businessError) override; [all …]
|
D | update_service_impl_firmware.h | 37 const DownloadOptions &downloadOptions, BusinessError &businessError) final; 40 const PauseDownloadOptions &pauseDownloadOptions, BusinessError &businessError) final; 43 const ResumeDownloadOptions &resumeDownloadOptions, BusinessError &businessError) final; 46 const UpgradeOptions &upgradeOptions, BusinessError &businessError) final; 49 const ClearOptions &clearOptions, BusinessError &businessError) final; 51 int32_t TerminateUpgrade(const UpgradeInfo &info, BusinessError &businessError) final; 54 … const UpgradeInfo &info, NewVersionInfo &newVersionInfo, BusinessError &businessError) final; 58 BusinessError &businessError) final; 61 BusinessError &businessError) final; 64 VersionDescriptionInfo ¤tVersionDescriptionInfo, BusinessError &businessError) final; [all …]
|
D | update_service.h | 47 const DownloadOptions &downloadOptions, BusinessError &businessError) override; 50 const PauseDownloadOptions &pauseDownloadOptions, BusinessError &businessError) override; 53 const ResumeDownloadOptions &resumeDownloadOptions, BusinessError &businessError) override; 56 const UpgradeOptions &upgradeOptions, BusinessError &businessError) override; 59 const ClearOptions &clearOptions, BusinessError &businessError) override; 61 int32_t TerminateUpgrade(const UpgradeInfo &info, BusinessError &businessError) override; 64 … const UpgradeInfo &info, NewVersionInfo &newVersionInfo, BusinessError &businessError) override; 68 BusinessError &businessError) override; 71 BusinessError &businessError) override; 74 … VersionDescriptionInfo ¤tVersionDescriptionInfo, BusinessError &businessError) override; [all …]
|
/base/update/updateservice/interfaces/inner_api/include/ |
D | update_service_kits.h | 45 const DownloadOptions &downloadOptions, BusinessError &businessError) = 0; 48 const PauseDownloadOptions &pauseDownloadOptions, BusinessError &businessError) = 0; 51 const ResumeDownloadOptions &resumeDownloadOptions, BusinessError &businessError) = 0; 54 const UpgradeOptions &upgradeOptions, BusinessError &businessError) = 0; 57 const ClearOptions &clearOptions, BusinessError &businessError) = 0; 59 virtual int32_t TerminateUpgrade(const UpgradeInfo &info, BusinessError &businessError) = 0; 62 BusinessError &businessError) = 0; 66 BusinessError &businessError) = 0; 69 BusinessError &businessError) = 0; 72 VersionDescriptionInfo ¤tVersionDescriptionInfo, BusinessError &businessError) = 0; [all …]
|
D | iservice_online_updater.h | 33 const DownloadOptions &downloadOptions, BusinessError &businessError) = 0; 36 const PauseDownloadOptions &pauseDownloadOptions, BusinessError &businessError) = 0; 39 const ResumeDownloadOptions &resumeDownloadOptions, BusinessError &businessError) = 0; 42 const UpgradeOptions &upgradeOptions, BusinessError &businessError) = 0; 45 const ClearOptions &clearOptions, BusinessError &businessError) = 0; 47 virtual int32_t TerminateUpgrade(const UpgradeInfo &info, BusinessError &businessError) = 0; 50 BusinessError &businessError) = 0; 54 BusinessError &businessError) = 0; 57 BusinessError &businessError) = 0; 60 VersionDescriptionInfo ¤tVersionDescriptionInfo, BusinessError &businessError) = 0; [all …]
|
D | update_service_kits_impl.h | 43 const DownloadOptions &downloadOptions, BusinessError &businessError) final; 46 const PauseDownloadOptions &pauseDownloadOptions, BusinessError &businessError) final; 49 const ResumeDownloadOptions &resumeDownloadOptions, BusinessError &businessError) final; 52 const UpgradeOptions &upgradeOptions, BusinessError &businessError) final; 55 const ClearOptions &clearOptions, BusinessError &businessError) final; 57 int32_t TerminateUpgrade(const UpgradeInfo &info, BusinessError &businessError) final; 60 BusinessError &businessError) final; 64 BusinessError &businessError) final; 67 BusinessError &businessError) final; 70 VersionDescriptionInfo ¤tVersionDescriptionInfo, BusinessError &businessError) final; [all …]
|
/base/update/updateservice/interfaces/inner_api/engine/ |
D | update_service_kits_impl.cpp | 112 const BusinessError &businessError, const CheckResult &checkResult) in OnCheckVersionDone() argument 116 updateCallback_.checkNewVersionDone(businessError, checkResult); in OnCheckVersionDone() 161 const DownloadOptions &downloadOptions, BusinessError &businessError) in Download() argument 166 return updateService->Download(info, versionDigestInfo, downloadOptions, businessError); in Download() 170 const PauseDownloadOptions &pauseDownloadOptions, BusinessError &businessError) in PauseDownload() argument 175 … return updateService->PauseDownload(info, versionDigestInfo, pauseDownloadOptions, businessError); in PauseDownload() 179 const ResumeDownloadOptions &resumeDownloadOptions, BusinessError &businessError) in ResumeDownload() argument 184 …eturn updateService->ResumeDownload(info, versionDigestInfo, resumeDownloadOptions, businessError); in ResumeDownload() 188 const UpgradeOptions &upgradeOptions, BusinessError &businessError) in Upgrade() argument 193 return updateService->Upgrade(info, versionDigest, upgradeOptions, businessError); in Upgrade() [all …]
|
D | update_service_proxy.cpp | 108 const DownloadOptions &downloadOptions, BusinessError &businessError) in Download() argument 126 businessError = remoteBusinessError; in Download() 131 const PauseDownloadOptions &pauseDownloadOptions, BusinessError &businessError) in PauseDownload() argument 149 businessError = remoteBusinessError; in PauseDownload() 154 const ResumeDownloadOptions &resumeDownloadOptions, BusinessError &businessError) in ResumeDownload() argument 172 businessError = remoteBusinessError; in ResumeDownload() 177 const UpgradeOptions &upgradeOptions, BusinessError &businessError) in Upgrade() argument 197 businessError = remoteBusinessError; in Upgrade() 202 const ClearOptions &clearOptions, BusinessError &businessError) in ClearError() argument 219 businessError = remoteBusinessError; in ClearError() [all …]
|
/base/update/updateservice/services/engine/src/ |
D | update_service_impl_firmware.cpp | 42 DelayedSingleton<FirmwareManager>::GetInstance()->DoCheck([=](BusinessError &businessError, in CheckNewVersion() 44 …ARE_LOGI("CheckNewVersion result: %{public}d isExistNewVersion %{public}d", businessError.errorNum, in CheckNewVersion() 47 … UpdateServiceCache::GetUpgradeInfo(BusinessSubType::FIRMWARE), businessError, checkResult); in CheckNewVersion() 53 const DownloadOptions &downloadOptions, BusinessError &businessError) in Download() argument 62 businessError.Build(CallResult::FAIL, "download error"); in Download() 68 DelayedSingleton<FirmwareManager>::GetInstance()->DoDownload(downloadOptions, businessError); in Download() 74 BusinessError &businessError) in PauseDownload() argument 78 businessError.Build(CallResult::UN_SUPPORT, "pause download not support"); in PauseDownload() 84 BusinessError &businessError) in ResumeDownload() argument 87 businessError.Build(CallResult::UN_SUPPORT, "resume download not support"); in ResumeDownload() [all …]
|
D | update_service_stub.cpp | 76 BusinessError businessError = {}; in GetNewVersionStub() local 77 int32_t ret = service->GetNewVersionInfo(upgradeInfo, newVersionInfo, businessError); in GetNewVersionStub() 79 MessageParcelHelper::WriteBusinessError(reply, businessError); in GetNewVersionStub() 92 BusinessError businessError; in GetNewVersionDescriptionStub() local 98 newVersionDescriptionInfo, businessError); in GetNewVersionDescriptionStub() 100 MessageParcelHelper::WriteBusinessError(reply, businessError); in GetNewVersionDescriptionStub() 112 BusinessError businessError = {}; in GetCurrentVersionStub() local 113 int32_t ret = service->GetCurrentVersionInfo(upgradeInfo, currentVersionInfo, businessError); in GetCurrentVersionStub() 115 MessageParcelHelper::WriteBusinessError(reply, businessError); in GetCurrentVersionStub() 127 BusinessError businessError; in GetCurrentVersionDescriptionStub() local [all …]
|
D | update_service.cpp | 152 BusinessError &businessError) in GetNewVersionInfo() argument 159 return onlineUpdater->GetNewVersionInfo(info, newVersionInfo, businessError); in GetNewVersionInfo() 164 BusinessError &businessError) in GetNewVersionDescription() argument 172 newVersionDescriptionInfo, businessError); in GetNewVersionDescription() 176 BusinessError &businessError) in GetCurrentVersionInfo() argument 183 return onlineUpdater->GetCurrentVersionInfo(info, currentVersionInfo, businessError); in GetCurrentVersionInfo() 188 BusinessError &businessError) in GetCurrentVersionDescription() argument 196 businessError); in GetCurrentVersionDescription() 199 …dateService::GetTaskInfo(const UpgradeInfo &info, TaskInfo &taskInfo, BusinessError &businessError) in GetTaskInfo() argument 206 return onlineUpdater->GetTaskInfo(info, taskInfo, businessError); in GetTaskInfo() [all …]
|
D | update_service_local_updater.cpp | 28 const std::string &packageName, BusinessError &businessError) in ApplyNewVersion() argument 32 businessError.errorNum = CallResult::SUCCESS; in ApplyNewVersion() 46 BusinessError &businessError) in VerifyUpgradePackage() argument 48 businessError.errorNum = CallResult::SUCCESS; in VerifyUpgradePackage()
|
/base/usb/usb_manager/utils/native/src/ |
D | usb_napi_errors.cpp | 50 napi_value businessError = nullptr; in CreateBusinessError() local 51 napi_create_error(env, nullptr, message, &businessError); in CreateBusinessError() 52 napi_set_named_property(env, businessError, "code", code); in CreateBusinessError() 53 return businessError; in CreateBusinessError() 58 napi_value businessError = nullptr; in ThrowBusinessError() local 59 businessError = CreateBusinessError(env, errCode, errMsg); in ThrowBusinessError() 60 napi_throw(env, businessError); in ThrowBusinessError()
|
/base/web/webview/interfaces/kits/napi/common/ |
D | business_error.cpp | 24 napi_value businessError = nullptr; in CreateError() local 25 NAPI_CALL(env, napi_create_object(env, &businessError)); in CreateError() 30 NAPI_CALL(env, napi_set_named_property(env, businessError, "code", errorCode)); in CreateError() 31 NAPI_CALL(env, napi_set_named_property(env, businessError, "message", errorMessage)); in CreateError() 32 return businessError; in CreateError()
|
/base/update/updateservice/services/firmware/upgrade/flow/include/ |
D | firmware_manager.h | 43 void DoDownload(const DownloadOptions &downloadOptions, BusinessError &businessError); 44 …void DoInstall(const UpgradeOptions &upgradeOptions, BusinessError &businessError, InstallType ins… 46 void DoClearError(BusinessError &businessError); 48 void DoCancelDownload(BusinessError &businessError); 49 void DoTerminateUpgrade(BusinessError &businessError);
|
/base/account/os_account/frameworks/appaccount/native/src/ |
D | app_account_authorization_extension_callback_stub.cpp | 54 AsyncCallbackError businessError; in ProcOnResult() local 55 if (!data.ReadInt32(businessError.code)) { in ProcOnResult() 59 if (!data.ReadString(businessError.message)) { in ProcOnResult() 68 businessError.data = *(errParameters); in ProcOnResult() 74 OnResult(businessError, (*parameters)); in ProcOnResult()
|
D | app_account_authorization_extension_callback_proxy.cpp | 47 const AsyncCallbackError &businessError, const AAFwk::WantParams ¶meters) in OnResult() argument 54 if (!data.WriteInt32(businessError.code)) { in OnResult() 58 if (!data.WriteString(businessError.message)) { in OnResult() 62 if (!data.WriteParcelable(&businessError.data)) { in OnResult()
|
/base/security/access_token/interfaces/kits/common/src/ |
D | napi_error.cpp | 54 napi_value businessError = nullptr; in GenerateBusinessError() local 62 NAPI_CALL(env, napi_create_error(env, nullptr, msg, &businessError)); in GenerateBusinessError() 63 NAPI_CALL(env, napi_set_named_property(env, businessError, "code", code)); in GenerateBusinessError() 64 NAPI_CALL(env, napi_set_named_property(env, businessError, "message", msg)); in GenerateBusinessError() 66 return businessError; in GenerateBusinessError()
|
/base/update/updateservice/frameworks/js/napi/client/ |
D | update_client.cpp | 94 [=](const BusinessError &businessError, const CheckResult &checkResult) { in InitCallback() 95 NotifyCheckVersionDone(businessError, checkResult); in InitCallback() 130 BusinessError *businessError = reinterpret_cast<BusinessError *>(context); in CancelUpgrade() local 132 CAST_INT(UpdaterSaInterfaceCode::DOWNLOAD), *businessError); in CancelUpgrade() 191 BusinessError *businessError = reinterpret_cast<BusinessError *>(context); in Download() local 193 upgradeInfo_, versionDigestInfo_, downloadOptions_, *businessError); in Download() 216 BusinessError *businessError = reinterpret_cast<BusinessError *>(context); in PauseDownload() local 218 upgradeInfo_, versionDigestInfo_, pauseDownloadOptions_, *businessError); in PauseDownload() 241 BusinessError *businessError = reinterpret_cast<BusinessError *>(context); in ResumeDownload() local 243 upgradeInfo_, versionDigestInfo_, resumeDownloadOptions_, *businessError); in ResumeDownload() [all …]
|
/base/msdp/device_status/frameworks/js/napi/src/ |
D | devicestatus_napi_error.cpp | 31 napi_value businessError = nullptr; in CreateNapiError() local 36 napi_create_error(env, nullptr, msg, &businessError); in CreateNapiError() 37 napi_set_named_property(env, businessError, "code", code); in CreateNapiError() 38 return businessError; in CreateNapiError()
|
/base/update/updateservice/services/callback/src/ |
D | update_callback_stub.cpp | 35 BusinessError businessError; in OnRemoteRequest() local 39 MessageParcelHelper::ReadBusinessError(data, businessError); in OnRemoteRequest() 41 OnCheckVersionDone(businessError, checkResult); in OnRemoteRequest()
|
/base/sensors/miscdevice/interfaces/plugin/vibrator/src/ |
D | vibrator_napi_error.cpp | 27 napi_value businessError = nullptr; in CreateBusinessError() local 32 napi_create_error(env, nullptr, msg, &businessError); in CreateBusinessError() 33 napi_set_named_property(env, businessError, "code", code); in CreateBusinessError() 34 return businessError; in CreateBusinessError()
|
/base/sensors/sensor/interfaces/plugin/src/ |
D | sensor_napi_error.cpp | 27 napi_value businessError = nullptr; in CreateBusinessError() local 32 napi_create_error(env, nullptr, msg, &businessError); in CreateBusinessError() 33 napi_set_named_property(env, businessError, "code", code); in CreateBusinessError() 34 return businessError; in CreateBusinessError()
|
/base/msdp/device_status/utils/common/include/ |
D | util_napi_error.h | 52 napi_value businessError = nullptr; \ 57 napi_create_error(env, nullptr, errorMsg, &businessError); \ 58 napi_set_named_property(env, businessError, ERR_CODE.c_str(), errorCode); \ 59 napi_throw(env, businessError); \
|
/base/update/updateservice/services/firmware/upgrade/flow/src/ |
D | firmware_manager.cpp | 154 void FirmwareManager::DoCancelDownload(BusinessError &businessError) in DoCancelDownload() argument 160 businessError.Build(CallResult::FAIL, "no download task to cancel!"); in DoCancelDownload() 161 …businessError.AddErrorMessage(CAST_INT(DUPDATE_ERR_DOWNLOAD_COMMON_ERROR), "no download task to ca… in DoCancelDownload() 168 void FirmwareManager::DoTerminateUpgrade(BusinessError &businessError) in DoTerminateUpgrade() argument 175 … businessError.AddErrorMessage(CAST_INT(DUPDATE_ERR_INTERNAL_ERROR), "terminate upgrade error!"); in DoTerminateUpgrade() 191 …std::make_shared<FirmwareManualCheckMode>([=](BusinessError &businessError, CheckResult &checkResu… in DoCheck() argument 193 onCheckComplete(businessError, checkResult); in DoCheck() 200 …d FirmwareManager::DoDownload(const DownloadOptions &downloadOptions, BusinessError &businessError) in DoDownload() argument 204 std::make_shared<FirmwareDownloadMode>(downloadOptions, businessError, [=]() { in DoDownload() 225 void FirmwareManager::DoInstall(const UpgradeOptions &upgradeOptions, BusinessError &businessError, in DoInstall() argument [all …]
|