Home
last modified time | relevance | path

Searched refs:newVersionInfo (Results 1 – 25 of 26) sorted by relevance

12

/base/update/updateservice/test/fuzztest/updateservicegetnewversion_fuzzer/
Dupdateservicegetnewversion_fuzzer.cpp31 NewVersionInfo newVersionInfo; in FuzzUpdateServiceGetNewVersion() local
34 …DelayedSingleton<FuzztestHelper>::GetInstance()->BuildUpgradeInfo(), newVersionInfo, businessError… in FuzzUpdateServiceGetNewVersion()
/base/update/update_app/feature/ota/src/main/ets/util/
DVersionUtils.ets36 * @param newVersionInfo 新版本信息
93 let newVersionInfo: update.NewVersionInfo = globalThis.cachedNewVersionInfo ||
98 if (newVersionInfo) {
99 …LogUtils.info(TAG, 'getNewVersionDigest, versionDigestInfo: ' + newVersionInfo.versionDigestInfo.v…
100 return newVersionInfo.versionDigestInfo.versionDigest;
121 …let newVersionInfo = globalThis.cachedNewVersionInfo || await OtaUpdateManager.getInstance().getNe…
126 …let components: Array<update.VersionComponent> = VersionUtils.sortComponents(newVersionInfo?.versi…
/base/update/updateservice/frameworks/js/napi/base/include/
Dclient_helper.h84 NewVersionInfo *newVersionInfo; member
103 delete result.newVersionInfo; in Release()
104 result.newVersionInfo = nullptr; in Release()
147 if (result.newVersionInfo == nullptr) {
148 result.newVersionInfo = new (std::nothrow) NewVersionInfo();
150 … if ((result.newVersionInfo != nullptr) && (updateResult.result.newVersionInfo != nullptr)) {
151 *(result.newVersionInfo) = *(updateResult.result.newVersionInfo);
/base/update/updateservice/services/engine/src/
Dmessage_parcel_helper.cpp173 void ReadNewVersionInfoEx(MessageParcel &reply, NewVersionInfo &newVersionInfo) in ReadNewVersionInfoEx() argument
175 newVersionInfo.versionDigestInfo.versionDigest = Str16ToStr8(reply.ReadString16()); in ReadNewVersionInfoEx()
176 ReadVersionComponents(reply, newVersionInfo.versionComponents); in ReadNewVersionInfoEx()
179 void WriteNewVersionInfoEx(MessageParcel &data, const NewVersionInfo &newVersionInfo) in WriteNewVersionInfoEx() argument
181 data.WriteString16(Str8ToStr16(newVersionInfo.versionDigestInfo.versionDigest)); in WriteNewVersionInfoEx()
182 WriteVersionComponents(data, newVersionInfo.versionComponents); in WriteNewVersionInfoEx()
188 ReadNewVersionInfoEx(reply, checkResult.newVersionInfo); in ReadCheckResult()
195 WriteNewVersionInfoEx(data, checkResult.newVersionInfo); in WriteCheckResult()
199 …t32_t MessageParcelHelper::ReadNewVersionInfo(MessageParcel &reply, NewVersionInfo &newVersionInfo) in ReadNewVersionInfo() argument
201 ReadNewVersionInfoEx(reply, newVersionInfo); in ReadNewVersionInfo()
[all …]
Dupdate_service.cpp151 int32_t UpdateService::GetNewVersionInfo(const UpgradeInfo &info, NewVersionInfo &newVersionInfo, in GetNewVersionInfo() argument
159 return onlineUpdater->GetNewVersionInfo(info, newVersionInfo, businessError); in GetNewVersionInfo()
354 if (checkResult.newVersionInfo.versionComponents.empty()) { in BuildVersionInfoDump()
357 …dprintf(fd, "PackageSize: %zu\n", static_cast<size_t>(checkResult.newVersionInfo.versionComponents… in BuildVersionInfoDump()
358 … dprintf(fd, "ComponentType: %d\n", checkResult.newVersionInfo.versionComponents[0].componentType); in BuildVersionInfoDump()
359 …dprintf(fd, "UpgradeAction: %s\n", checkResult.newVersionInfo.versionComponents[0].upgradeAction.c… in BuildVersionInfoDump()
360 …dprintf(fd, "DisplayVersion: %s\n", checkResult.newVersionInfo.versionComponents[0].displayVersion… in BuildVersionInfoDump()
361 …dprintf(fd, "InnerVersion: %s\n", checkResult.newVersionInfo.versionComponents[0].innerVersion.c_s… in BuildVersionInfoDump()
362 …dprintf(fd, "Content: %s\n", checkResult.newVersionInfo.versionComponents[0].descriptionInfo.conte… in BuildVersionInfoDump()
Dupdate_service_impl_firmware.cpp123 const UpgradeInfo &info, NewVersionInfo &newVersionInfo, BusinessError &businessError) in GetNewVersionInfo() argument
130 FirmwareUpdateHelper::BuildNewVersionInfo(components, newVersionInfo.versionComponents); in GetNewVersionInfo()
131 newVersionInfo.versionDigestInfo.versionDigest = task.taskId; in GetNewVersionInfo()
Dupdate_service_stub.cpp75 NewVersionInfo newVersionInfo = {}; in GetNewVersionStub() local
77 int32_t ret = service->GetNewVersionInfo(upgradeInfo, newVersionInfo, businessError); in GetNewVersionStub()
80 MessageParcelHelper::WriteNewVersionInfo(reply, newVersionInfo); in GetNewVersionStub()
/base/update/updateservice/services/firmware/upgrade/data_processor/src/
Dfirmware_check_data_processor.cpp249 BuildVersionDigest(checkResult.newVersionInfo, dbComponentList); in BuildCheckResult()
250 …FirmwareUpdateHelper::BuildNewVersionInfo(dbComponentList, checkResult.newVersionInfo.versionCompo… in BuildCheckResult()
255 NewVersionInfo &newVersionInfo, const std::vector<FirmwareComponent> &componentList) in BuildVersionDigest() argument
257newVersionInfo.versionDigestInfo.versionDigest = FirmwareUpdateHelper::BuildTaskId(componentList); in BuildVersionDigest()
/base/update/updateservice/interfaces/inner_api/include/
Dmessage_parcel_helper.h41 static int32_t ReadNewVersionInfo(MessageParcel &reply, NewVersionInfo &newVersionInfo);
42 static int32_t WriteNewVersionInfo(MessageParcel &data, const NewVersionInfo &newVersionInfo);
Diservice_online_updater.h49 virtual int32_t GetNewVersionInfo(const UpgradeInfo &info, NewVersionInfo &newVersionInfo,
Dupdate_service_kits.h61 virtual int32_t GetNewVersionInfo(const UpgradeInfo &info, NewVersionInfo &newVersionInfo,
Dupdate_service_kits_impl.h59 int32_t GetNewVersionInfo(const UpgradeInfo &info, NewVersionInfo &newVersionInfo,
Dupdate_helper.h396 NewVersionInfo newVersionInfo; member
/base/update/updateservice/services/firmware/upgrade/data_processor/include/
Dfirmware_check_data_processor.h56 …void BuildVersionDigest(NewVersionInfo &newVersionInfo, const std::vector<FirmwareComponent> &comp…
/base/update/updateservice/frameworks/js/napi/base/src/
Dclient_helper.cpp241 …PARAM_CHECK(result.result.newVersionInfo != nullptr, return CAST_INT(ClientStatus::CLIENT_SUCCESS), in BuildNewVersionInfo()
251 BuildVersionDigestInfo(env, obj, result.result.newVersionInfo->versionDigestInfo); in BuildNewVersionInfo()
252 BuildVersionComponents(env, obj, result.result.newVersionInfo->versionComponents); in BuildNewVersionInfo()
286 napi_value newVersionInfo; in BuildCheckResult() local
287 napi_create_object(env, &newVersionInfo); in BuildCheckResult()
288 BuildVersionDigestInfo(env, newVersionInfo, checkResult->newVersionInfo.versionDigestInfo); in BuildCheckResult()
289 BuildVersionComponents(env, newVersionInfo, checkResult->newVersionInfo.versionComponents); in BuildCheckResult()
290 napi_set_named_property(env, obj, "newVersionInfo", newVersionInfo); in BuildCheckResult()
/base/update/updateservice/services/engine/include/
Dupdate_service_impl_firmware.h54 … const UpgradeInfo &info, NewVersionInfo &newVersionInfo, BusinessError &businessError) final;
Dupdate_service_proxy.h52 int32_t GetNewVersionInfo(const UpgradeInfo &info, NewVersionInfo &newVersionInfo,
Dupdate_service.h64 … const UpgradeInfo &info, NewVersionInfo &newVersionInfo, BusinessError &businessError) override;
/base/update/updateservice/interfaces/inner_api/engine/
Dupdate_service_kits_impl.cpp213 …t UpdateServiceKitsImpl::GetNewVersionInfo(const UpgradeInfo &info, NewVersionInfo &newVersionInfo, in GetNewVersionInfo() argument
219 return updateService->GetNewVersionInfo(info, newVersionInfo, businessError); in GetNewVersionInfo()
Dupdate_service_proxy.cpp242 …32_t UpdateServiceProxy::GetNewVersionInfo(const UpgradeInfo &info, NewVersionInfo &newVersionInfo, in GetNewVersionInfo() argument
263 newVersionInfo = remoteNewVersionInfo; in GetNewVersionInfo()
/base/update/update_app/product/oh/base/src/main/ets/pages/
DnewVersion.ets184 …let newVersionInfo = globalThis.cachedNewVersionInfo || await OtaUpdateManager.getInstance().getNe…
190 if (!newVersionInfo) {
193 …let components: Array<update.VersionComponent> = VersionUtils.sortComponents(newVersionInfo?.versi…
Dindex.ets149 this.log('handle checkNewVersion:' + JSON.stringify(upgradeData.data?.newVersionInfo));
/base/update/updateservice/interfaces/kits/js/declaration/
D@ohos.update.d.ts752 newVersionInfo: NewVersionInfo; property
/base/update/update_app/common/src/main/ets/manager/
DUpdateManager.ts263 if (!result?.isExistNewVersion || !result?.newVersionInfo) {
/base/update/update_app/feature/ota/src/main/ets/manager/
DOtaUpdateManager.ets134 globalThis.cachedNewVersionInfo = result?.data?.newVersionInfo;

12