Home
last modified time | relevance | path

Searched refs:businessError (Results 1 - 25 of 116) sorted by relevance

12345

/base/update/updateservice/interfaces/inner_api/feature/update/api/online_updater/
H A Diservice_online_updater.h43 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 &businessError)
[all...]
/base/update/updateservice/interfaces/inner_api/engine/include/
H A Dupdate_service_kits_impl.h41 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 &businessError) fina
[all...]
H A Dupdate_service_proxy.h32 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 &businessError) overrid
[all...]
/base/update/updateservice/interfaces/inner_api/include/
H A Dupdate_service_kits.h57 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 &businessError)
[all...]
/base/update/updateservice/interfaces/inner_api/engine/src/
H A Dupdate_service_kits_impl.cpp67 int32_t UpdateServiceKitsImpl::CheckNewVersion(const UpgradeInfo &info, BusinessError &businessError, in CheckNewVersion() argument
74 int32_t ret = updateService->CheckNewVersion(info, businessError, checkResult); in CheckNewVersion()
80 const DownloadOptions &downloadOptions, BusinessError &businessError) in Download()
85 int32_t ret = updateService->Download(info, versionDigestInfo, downloadOptions, businessError); in Download()
91 const PauseDownloadOptions &pauseDownloadOptions, BusinessError &businessError) in PauseDownload()
96 int32_t ret = updateService->PauseDownload(info, versionDigestInfo, pauseDownloadOptions, businessError); in PauseDownload()
102 const ResumeDownloadOptions &resumeDownloadOptions, BusinessError &businessError) in ResumeDownload()
107 int32_t ret = updateService->ResumeDownload(info, versionDigestInfo, resumeDownloadOptions, businessError); in ResumeDownload()
113 const UpgradeOptions &upgradeOptions, BusinessError &businessError) in Upgrade()
118 int32_t ret = updateService->Upgrade(info, versionDigest, upgradeOptions, businessError); in Upgrade()
79 Download(const UpgradeInfo &info, const VersionDigestInfo &versionDigestInfo, const DownloadOptions &downloadOptions, BusinessError &businessError) Download() argument
90 PauseDownload(const UpgradeInfo &info, const VersionDigestInfo &versionDigestInfo, const PauseDownloadOptions &pauseDownloadOptions, BusinessError &businessError) PauseDownload() argument
101 ResumeDownload(const UpgradeInfo &info, const VersionDigestInfo &versionDigestInfo, const ResumeDownloadOptions &resumeDownloadOptions, BusinessError &businessError) ResumeDownload() argument
112 Upgrade(const UpgradeInfo &info, const VersionDigestInfo &versionDigest, const UpgradeOptions &upgradeOptions, BusinessError &businessError) Upgrade() argument
123 ClearError(const UpgradeInfo &info, const VersionDigestInfo &versionDigest, const ClearOptions &clearOptions, BusinessError &businessError) ClearError() argument
134 TerminateUpgrade(const UpgradeInfo &info, BusinessError &businessError) TerminateUpgrade() argument
144 GetNewVersionInfo(const UpgradeInfo &info, NewVersionInfo &newVersionInfo, BusinessError &businessError) GetNewVersionInfo() argument
155 GetNewVersionDescription(const UpgradeInfo &info, const VersionDigestInfo &versionDigestInfo, const DescriptionOptions &descriptionOptions, VersionDescriptionInfo &newVersionDescriptionInfo, BusinessError &businessError) GetNewVersionDescription() argument
168 GetCurrentVersionInfo(const UpgradeInfo &info, CurrentVersionInfo &currentVersionInfo, BusinessError &businessError) GetCurrentVersionInfo() argument
179 GetCurrentVersionDescription(const UpgradeInfo &info, const DescriptionOptions &descriptionOptions, VersionDescriptionInfo &currentVersionDescriptionInfo, BusinessError &businessError) GetCurrentVersionDescription() argument
192 GetTaskInfo(const UpgradeInfo &info, TaskInfo &taskInfo, BusinessError &businessError) GetTaskInfo() argument
202 SetUpgradePolicy(const UpgradeInfo &info, const UpgradePolicy &policy, BusinessError &businessError) SetUpgradePolicy() argument
213 GetUpgradePolicy(const UpgradeInfo &info, UpgradePolicy &policy, BusinessError &businessError) GetUpgradePolicy() argument
224 Cancel(const UpgradeInfo &info, int32_t service, BusinessError &businessError) Cancel() argument
234 FactoryReset(BusinessError &businessError) FactoryReset() argument
244 ApplyNewVersion(const UpgradeInfo &info, const std::string &miscFile, const std::vector<std::string> &packageNames, BusinessError &businessError) ApplyNewVersion() argument
255 VerifyUpgradePackage(const std::string &packagePath, const std::string &keyPath, BusinessError &businessError) VerifyUpgradePackage() argument
[all...]
H A Dupdate_service_proxy.cpp90 int32_t UpdateServiceProxy::CheckNewVersion(const UpgradeInfo &info, BusinessError &businessError, in CheckNewVersion() argument
110 businessError = error; in CheckNewVersion()
115 const DownloadOptions &downloadOptions, BusinessError &businessError) in Download()
133 businessError = remoteBusinessError; in Download()
138 const PauseDownloadOptions &pauseDownloadOptions, BusinessError &businessError) in PauseDownload()
156 businessError = remoteBusinessError; in PauseDownload()
161 const ResumeDownloadOptions &resumeDownloadOptions, BusinessError &businessError) in ResumeDownload()
179 businessError = remoteBusinessError; in ResumeDownload()
184 const UpgradeOptions &upgradeOptions, BusinessError &businessError) in Upgrade()
204 businessError in Upgrade()
114 Download(const UpgradeInfo &info, const VersionDigestInfo &versionDigestInfo, const DownloadOptions &downloadOptions, BusinessError &businessError) Download() argument
137 PauseDownload(const UpgradeInfo &info, const VersionDigestInfo &versionDigestInfo, const PauseDownloadOptions &pauseDownloadOptions, BusinessError &businessError) PauseDownload() argument
160 ResumeDownload(const UpgradeInfo &info, const VersionDigestInfo &versionDigestInfo, const ResumeDownloadOptions &resumeDownloadOptions, BusinessError &businessError) ResumeDownload() argument
183 Upgrade(const UpgradeInfo &info, const VersionDigestInfo &versionDigest, const UpgradeOptions &upgradeOptions, BusinessError &businessError) Upgrade() argument
208 ClearError(const UpgradeInfo &info, const VersionDigestInfo &versionDigest, const ClearOptions &clearOptions, BusinessError &businessError) ClearError() argument
230 TerminateUpgrade(const UpgradeInfo &info, BusinessError &businessError) TerminateUpgrade() argument
249 GetNewVersionInfo(const UpgradeInfo &info, NewVersionInfo &newVersionInfo, BusinessError &businessError) GetNewVersionInfo() argument
274 GetNewVersionDescription(const UpgradeInfo &info, const VersionDigestInfo &versionDigestInfo, const DescriptionOptions &descriptionOptions, VersionDescriptionInfo &newVersionDescriptionInfo, BusinessError &businessError) GetNewVersionDescription() argument
303 GetCurrentVersionInfo(const UpgradeInfo &info, CurrentVersionInfo &currentVersionInfo, BusinessError &businessError) GetCurrentVersionInfo() argument
328 GetCurrentVersionDescription(const UpgradeInfo &info, const DescriptionOptions &descriptionOptions, VersionDescriptionInfo &currentVersionDescriptionInfo, BusinessError &businessError) GetCurrentVersionDescription() argument
356 GetTaskInfo(const UpgradeInfo &info, TaskInfo &taskInfo, BusinessError &businessError) GetTaskInfo() argument
380 SetUpgradePolicy(const UpgradeInfo &info, const UpgradePolicy &policy, BusinessError &businessError) SetUpgradePolicy() argument
403 GetUpgradePolicy(const UpgradeInfo &info, UpgradePolicy &policy, BusinessError &businessError) GetUpgradePolicy() argument
428 Cancel(const UpgradeInfo &info, int32_t service, BusinessError &businessError) Cancel() argument
450 FactoryReset(BusinessError &businessError) FactoryReset() argument
473 ApplyNewVersion(const UpgradeInfo &info, const std::string &miscFile, const std::vector<std::string> &packageNames, BusinessError &businessError) ApplyNewVersion() argument
503 VerifyUpgradePackage(const std::string &packagePath, const std::string &keyPath, BusinessError &businessError) VerifyUpgradePackage() argument
[all...]
/base/update/updateservice/services/engine/include/
H A Dupdate_service_impl_firmware.h36 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 &businessError) fina
[all...]
H A Dupdate_service.h43 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 &businessError) overrid
[all...]
/base/update/updateservice/foundations/model/include/
H A Dbusiness_error.h51 friend void to_json(nlohmann::json &jsonObj, const BusinessError &businessError) in to_json()
53 jsonObj["message"] = businessError.message; in to_json()
54 jsonObj["errorNum"] = businessError.errorNum; in to_json()
55 jsonObj["data"] = businessError.data; in to_json()
58 friend void from_json(const nlohmann::json &jsonObj, BusinessError &businessError) in from_json()
60 JsonUtils::GetValueAndSetTo(jsonObj, "message", businessError.message); in from_json()
61 JsonUtils::GetValueAndSetTo(jsonObj, "data", businessError.data); in from_json()
64 businessError.errorNum = static_cast<CallResult>(errorNumber); in from_json()
/base/update/updateservice/services/engine/src/
H A Dupdate_service_stub.cpp81 BusinessError businessError = {}; in GetNewVersionStub() local
82 int32_t ret = service->GetNewVersionInfo(upgradeInfo, newVersionInfo, businessError); in GetNewVersionStub()
84 MessageParcelHelper::WriteBusinessError(reply, businessError); in GetNewVersionStub()
97 BusinessError businessError; in GetNewVersionDescriptionStub() local
103 newVersionDescriptionInfo, businessError); in GetNewVersionDescriptionStub()
105 MessageParcelHelper::WriteBusinessError(reply, businessError); in GetNewVersionDescriptionStub()
117 BusinessError businessError = {}; in GetCurrentVersionStub() local
118 int32_t ret = service->GetCurrentVersionInfo(upgradeInfo, currentVersionInfo, businessError); in GetCurrentVersionStub()
120 MessageParcelHelper::WriteBusinessError(reply, businessError); in GetCurrentVersionStub()
132 BusinessError businessError; in GetCurrentVersionDescriptionStub() local
151 BusinessError businessError = {}; GetTaskInfoStub() local
165 BusinessError businessError; CheckNewVersionStub() local
181 BusinessError businessError; DownloadVersionStub() local
198 BusinessError businessError; PauseDownloadStub() local
216 BusinessError businessError; ResumeDownloadStub() local
234 BusinessError businessError; DoUpdateStub() local
252 BusinessError businessError; ClearErrorStub() local
270 BusinessError businessError; TerminateUpgradeStub() local
285 BusinessError businessError = {}; SetUpgradePolicyStub() local
299 BusinessError businessError = {}; GetUpgradePolicyStub() local
333 BusinessError businessError = {}; CancelStub() local
346 BusinessError businessError; FactoryResetStub() local
370 BusinessError businessError; ApplyNewVersionStub() local
383 BusinessError businessError; VerifyUpgradePackageStub() local
[all...]
H A Dupdate_service_impl_firmware.cpp39 int32_t UpdateServiceImplFirmware::CheckNewVersion(const UpgradeInfo &info, BusinessError &businessError, in CheckNewVersion() argument
50 businessError = error; in CheckNewVersion()
60 businessError.errorNum = CallResult::TIME_OUT; in CheckNewVersion()
61 businessError.message = "CheckNewVersion TimeOut"; in CheckNewVersion()
68 const DownloadOptions &downloadOptions, BusinessError &businessError) in Download()
75 businessError.Build(CallResult::FAIL, "repeat download error"); in Download()
84 businessError.Build(CallResult::FAIL, "download error"); in Download()
90 DelayedSingleton<FirmwareManager>::GetInstance()->DoDownload(downloadOptions, businessError); in Download()
96 BusinessError &businessError) in PauseDownload()
100 businessError in PauseDownload()
67 Download(const UpgradeInfo &info, const VersionDigestInfo &versionDigestInfo, const DownloadOptions &downloadOptions, BusinessError &businessError) Download() argument
94 PauseDownload(const UpgradeInfo &info, const VersionDigestInfo &versionDigestInfo, const PauseDownloadOptions &pauseDownloadOptions, BusinessError &businessError) PauseDownload() argument
104 ResumeDownload(const UpgradeInfo &info, const VersionDigestInfo &versionDigestInfo, const ResumeDownloadOptions &resumeDownloadOptions, BusinessError &businessError) ResumeDownload() argument
114 Upgrade(const UpgradeInfo &info, const VersionDigestInfo &versionDigestInfo, const UpgradeOptions &upgradeOptions, BusinessError &businessError) Upgrade() argument
127 ClearError(const UpgradeInfo &info, const VersionDigestInfo &versionDigestInfo, const ClearOptions &clearOptions, BusinessError &businessError) ClearError() argument
137 TerminateUpgrade(const UpgradeInfo &info, BusinessError &businessError) TerminateUpgrade() argument
144 GetNewVersionInfo( const UpgradeInfo &info, NewVersionInfo &newVersionInfo, BusinessError &businessError) GetNewVersionInfo() argument
157 GetNewVersionDescription(const UpgradeInfo &info, const VersionDigestInfo &versionDigestInfo, const DescriptionOptions &descriptionOptions, VersionDescriptionInfo &newVersionDescriptionInfo, BusinessError &businessError) GetNewVersionDescription() argument
201 GetCurrentVersionInfo(const UpgradeInfo &info, CurrentVersionInfo &currentVersionInfo, BusinessError &businessError) GetCurrentVersionInfo() argument
210 GetCurrentVersionDescription(const UpgradeInfo &info, const DescriptionOptions &descriptionOptions, VersionDescriptionInfo &currentVersionDescriptionInfo, BusinessError &businessError) GetCurrentVersionDescription() argument
250 GetTaskInfo(const UpgradeInfo &info, TaskInfo &taskInfo, BusinessError &businessError) GetTaskInfo() argument
269 SetUpgradePolicy(const UpgradeInfo &info, const UpgradePolicy &policy, BusinessError &businessError) SetUpgradePolicy() argument
286 GetUpgradePolicy(const UpgradeInfo &info, UpgradePolicy &policy, BusinessError &businessError) GetUpgradePolicy() argument
301 Cancel(const UpgradeInfo &info, int32_t service, BusinessError &businessError) Cancel() argument
[all...]
H A Dupdate_service.cpp157 BusinessError &businessError) in GetNewVersionInfo()
164 return onlineUpdater->GetNewVersionInfo(info, newVersionInfo, businessError); in GetNewVersionInfo()
169 BusinessError &businessError) in GetNewVersionDescription()
177 newVersionDescriptionInfo, businessError); in GetNewVersionDescription()
181 BusinessError &businessError) in GetCurrentVersionInfo()
188 return onlineUpdater->GetCurrentVersionInfo(info, currentVersionInfo, businessError); in GetCurrentVersionInfo()
193 BusinessError &businessError) in GetCurrentVersionDescription()
201 businessError); in GetCurrentVersionDescription()
204 int32_t UpdateService::GetTaskInfo(const UpgradeInfo &info, TaskInfo &taskInfo, BusinessError &businessError) in GetTaskInfo() argument
211 return onlineUpdater->GetTaskInfo(info, taskInfo, businessError); in GetTaskInfo()
156 GetNewVersionInfo(const UpgradeInfo &info, NewVersionInfo &newVersionInfo, BusinessError &businessError) GetNewVersionInfo() argument
167 GetNewVersionDescription(const UpgradeInfo &info, const VersionDigestInfo &versionDigestInfo, const DescriptionOptions &descriptionOptions, VersionDescriptionInfo &newVersionDescriptionInfo, BusinessError &businessError) GetNewVersionDescription() argument
180 GetCurrentVersionInfo(const UpgradeInfo &info, CurrentVersionInfo &currentVersionInfo, BusinessError &businessError) GetCurrentVersionInfo() argument
191 GetCurrentVersionDescription(const UpgradeInfo &info, const DescriptionOptions &descriptionOptions, VersionDescriptionInfo &currentVersionDescriptionInfo, BusinessError &businessError) GetCurrentVersionDescription() argument
214 SetUpgradePolicy(const UpgradeInfo &info, const UpgradePolicy &policy, BusinessError &businessError) SetUpgradePolicy() argument
225 GetUpgradePolicy(const UpgradeInfo &info, UpgradePolicy &policy, BusinessError &businessError) GetUpgradePolicy() argument
235 CheckNewVersion(const UpgradeInfo &info, BusinessError &businessError, CheckResult &checkResult) CheckNewVersion() argument
245 Download(const UpgradeInfo &info, const VersionDigestInfo &versionDigestInfo, const DownloadOptions &downloadOptions, BusinessError &businessError) Download() argument
256 PauseDownload(const UpgradeInfo &info, const VersionDigestInfo &versionDigestInfo, const PauseDownloadOptions &pauseDownloadOptions, BusinessError &businessError) PauseDownload() argument
265 ResumeDownload(const UpgradeInfo &info, const VersionDigestInfo &versionDigestInfo, const ResumeDownloadOptions &resumeDownloadOptions, BusinessError &businessError) ResumeDownload() argument
273 Upgrade(const UpgradeInfo &info, const VersionDigestInfo &versionDigestInfo, const UpgradeOptions &upgradeOptions, BusinessError &businessError) Upgrade() argument
284 ClearError(const UpgradeInfo &info, const VersionDigestInfo &versionDigestInfo, const ClearOptions &clearOptions, BusinessError &businessError) ClearError() argument
295 TerminateUpgrade(const UpgradeInfo &info, BusinessError &businessError) TerminateUpgrade() argument
305 Cancel(const UpgradeInfo &info, int32_t service, BusinessError &businessError) Cancel() argument
315 FactoryReset(BusinessError &businessError) FactoryReset() argument
325 ApplyNewVersion(const UpgradeInfo &info, const std::string &miscFile, const std::vector<std::string> &packageNames, BusinessError &businessError) ApplyNewVersion() argument
336 VerifyUpgradePackage(const std::string &packagePath, const std::string &keyPath, BusinessError &businessError) VerifyUpgradePackage() argument
379 BusinessError businessError; BuildTaskInfoDump() local
[all...]
H A Dupdate_service_local_updater.cpp28 const std::vector<std::string> &packageNames, BusinessError &businessError) in ApplyNewVersion()
32 businessError.errorNum = CallResult::SUCCESS; in ApplyNewVersion()
44 BusinessError &businessError) in VerifyUpgradePackage()
46 businessError.errorNum = CallResult::SUCCESS; in VerifyUpgradePackage()
27 ApplyNewVersion(const UpgradeInfo &info, const std::string &miscFile, const std::vector<std::string> &packageNames, BusinessError &businessError) ApplyNewVersion() argument
43 VerifyUpgradePackage(const std::string &packagePath, const std::string &keyPath, BusinessError &businessError) VerifyUpgradePackage() argument
/base/usb/usb_manager/utils/native/src/
H A Dusb_napi_errors.cpp50 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/
H A Dbusiness_error.cpp24 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/
H A Dfirmware_manager.h45 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/session/include/
H A Dnapi_session.h58 void OnAsyncComplete(const BusinessError &businessError) final
61 businessError_ = businessError;
96 void BuildWorkBusinessErr(BusinessError &businessError) in BuildWorkBusinessErr() argument
145 businessError.Build(static_cast<CallResult>(workResult_), msg); in BuildWorkBusinessErr()
148 void GetBusinessError(BusinessError &businessError, const NapiResult &result) in GetBusinessError() argument
151 businessError = result.businessError; in GetBusinessError()
153 BuildWorkBusinessErr(businessError); in GetBusinessError()
H A Dbase_promise_session.h54 int32_t errorNum = static_cast<int32_t>(result.businessError.errorNum); in NotifyJS()
61 BusinessError businessError; in NotifyJS() local
62 GetBusinessError(businessError, result); in NotifyJS()
63 if (businessError.errorNum == CallResult::SUCCESS) { in NotifyJS()
67 NapiCommonUtils::BuildBusinessError(env, processResult, businessError); in NotifyJS()
/base/update/updateservice/frameworks/js/napi/update/src/
H A Dupdate_client.cpp113 BusinessError *businessError = reinterpret_cast<BusinessError *>(context); in CheckNewVersion()
114 return UpdateServiceKits::GetInstance().CheckNewVersion(upgradeInfo_, *businessError, checkResult_); in CheckNewVersion()
125 BusinessError *businessError = reinterpret_cast<BusinessError *>(context); in CancelUpgrade()
127 *businessError); in CancelUpgrade()
182 BusinessError *businessError = reinterpret_cast<BusinessError *>(context); in Download()
184 *businessError); in Download()
206 BusinessError *businessError = reinterpret_cast<BusinessError *>(context); in PauseDownload()
208 *businessError); in PauseDownload()
230 BusinessError *businessError = reinterpret_cast<BusinessError *>(context); in ResumeDownload()
232 *businessError); in ResumeDownload()
[all...]
/base/account/os_account/frameworks/appaccount/native/src/
H A Dapp_account_authorization_extension_callback_stub.cpp54 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()
H A Dapp_account_authorization_extension_callback_proxy.cpp47 const AsyncCallbackError &businessError, const AAFwk::WantParams &parameters) in OnResult()
54 if (!data.WriteInt32(businessError.code)) { in OnResult()
58 if (!data.WriteString(businessError.message)) { in OnResult()
62 if (!data.WriteParcelable(&businessError.data)) { in OnResult()
46 OnResult( const AsyncCallbackError &businessError, const AAFwk::WantParams &parameters) OnResult() argument
/base/security/access_token/frameworks/js/napi/common/src/
H A Dnapi_error.cpp62 napi_value businessError = nullptr; in GenerateBusinessError() local
70 NAPI_CALL(env, napi_create_error(env, nullptr, msg, &businessError)); in GenerateBusinessError()
71 NAPI_CALL(env, napi_set_named_property(env, businessError, "code", code)); in GenerateBusinessError()
72 NAPI_CALL(env, napi_set_named_property(env, businessError, "message", msg)); in GenerateBusinessError()
74 return businessError; in GenerateBusinessError()
/base/msdp/device_status/frameworks/js/napi/src/
H A Ddevicestatus_napi_error.cpp31 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/sensors/sensor/frameworks/js/napi/src/
H A Dsensor_napi_error.cpp27 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/miscdevice/frameworks/js/napi/vibrator/src/
H A Dvibrator_napi_error.cpp27 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()

Completed in 11 milliseconds

12345