Home
last modified time | relevance | path

Searched refs:percent (Results 1 - 25 of 37) sorted by relevance

12

/base/update/sys_installer/frameworks/status_manager/src/
H A Dstatus_manager.cpp49 void StatusManager::UpdateCallback(UpdateStatus updateStatus, int percent, const std::string &resultMsg) in UpdateCallback() argument
62 percent_ = 100; // 100 : max percent in UpdateCallback()
63 } else if (percent >= 0 && percent <= 100 && percent > percent_) { // 100 : max percent in UpdateCallback()
64 percent_ = percent; in UpdateCallback()
68 LOG(INFO) << "status:" << updateStatus_ << " percent:" << percent_ << " msg:" << resultMsg; in UpdateCallback()
72 void StatusManager::SetUpdatePercent(int percent) in SetUpdatePercent() argument
74 UpdateCallback(updateStatus_, percent, ""); in SetUpdatePercent()
[all...]
/base/update/updateservice/services/firmware/upgrade/executor/src/
H A Dfirmware_install_executor.cpp65 FirmwareTaskOperator().UpdateProgressByTaskId(tasks_.taskId, progress.status, progress.percent); in DoInstall()
67 FirmwareComponentOperator().UpdateProgressByUrl(component.url, progress.status, progress.percent); in DoInstall()
73 progress.percent = component.progress; in DoInstall()
103 component.versionId.c_str(), progress.status, progress.percent); in HandleInstallProgress()
104 FirmwareComponentOperator().UpdateProgressByUrl(component.url, progress.status, progress.percent); in HandleInstallProgress()
108 taskProgress_.percent = progress.percent; in HandleInstallProgress()
111 FirmwareTaskOperator().UpdateProgressByTaskId(tasks_.taskId, taskProgress_.status, taskProgress_.percent); in HandleInstallProgress()
125 taskProgress_.percent = Firmware::ONE_HUNDRED; in HandleInstallResult()
134 FirmwareTaskOperator().UpdateProgressByTaskId(tasks_.taskId, taskProgress_.status, taskProgress_.percent); in HandleInstallResult()
[all...]
H A Dfirmware_download_executor.cpp94 progress0.percent = DOWNLOAD_FINISH_PERCENT; in PerformDownload()
125 " progress.percent = %{public}d", progress.status, progress.percent); in DownloadCallback()
132 downloadProgress.percent = progress.percent; in DownloadCallback()
140 ENGINE_LOGI("DownloadCallback status: %{public}d progress: %{public}d", progress.status, progress.percent); in DownloadCallback()
155 progress.status, progress.percent); in DownloadCallback()
156 firmwareComponentOperator.UpdateProgressByUrl(serverUrl, progress.status, progress.percent); in DownloadCallback()
158 FirmwareTaskOperator().UpdateProgressByTaskId(tasks_.taskId, downloadProgress.status, downloadProgress.percent); in DownloadCallback()
/base/update/sys_installer/interfaces/innerkits/ipc_client/src/
H A Dsys_installer_callback.cpp42 int percent = data.ReadInt32(); in OnRemoteRequest() local
43 OnUpgradeProgress(static_cast<UpdateStatus>(updateStatus), percent, data.ReadString()); in OnRemoteRequest() local
53 void SysInstallerCallback::OnUpgradeProgress(UpdateStatus updateStatus, int percent, const std::string &resultMsg) in OnUpgradeProgress() argument
55 LOG(INFO) << "progress: " << updateStatus << " percent:" << percent << " msg:" << resultMsg; in OnUpgradeProgress()
57 callback_->OnUpgradeProgress(updateStatus, percent, resultMsg); in OnUpgradeProgress()
H A Dsys_installer_client.cpp29 void OnUpgradeProgress(UpdateStatus updateStatus, int percent, const std::string &resultMsg) override
31 printf("ProgressCallback progress %d percent %d msg %s\n", updateStatus, percent, resultMsg.c_str());
/base/update/updateservice/services/firmware/upgrade/install/src/
H A Dfirmware_sys_installer_callback.cpp27 void SysInstallerCallback::OnUpgradeProgress(SysInstaller::UpdateStatus updateStatus, int percent, in OnUpgradeProgress() argument
30 FIRMWARE_LOGI("sysInstallerCallback OnUpgradeProgress status %{public}d percent %{public}d", updateStatus, percent); in OnUpgradeProgress()
46 installProgress.progress.percent = static_cast<uint32_t>(percent); in OnUpgradeProgress()
H A Dfirmware_sys_installer_install.cpp85 sysComponent.progress = installProgress.progress.percent; in DoSysInstall()
131 sysInstallProgress_.percent = 0; in InitInstallProgress()
148 sysInstallProgress_.percent == Firmware::ONE_HUNDRED) { in WaitInstallResult()
/base/update/updateservice/services/engine/src/
H A Dprogress_thread.cpp172 int32_t DownloadThread::DownloadCallback(uint32_t percent, UpgradeStatus status, const std::string &error) in DownloadCallback() argument
178 ENGINE_CHECK_NO_LOG(!DealAbnormal(percent), in DownloadCallback()
181 if (downloadProgress_.status == status && downloadProgress_.percent == percent) { in DownloadCallback()
185 ENGINE_LOGI("DownloadCallback percent %d, status %d, exitDownload_ %d, error %s, downloadFileName_ %s", in DownloadCallback()
186 percent, CAST_INT(status), exitDownload_ ? 1 : 0, error.c_str(), downloadFileName_.c_str()); in DownloadCallback()
191 } else if (percent != DOWNLOAD_FINISH_PERCENT && in DownloadCallback()
192 (percent < (downloadProgress_.percent + DOWNLOAD_PERIOD_PERCENT))) { in DownloadCallback()
197 if (percent in DownloadCallback()
217 unsigned int percent = (dlNow + curr) / (curr + dlTotal) * DOWNLOAD_FINISH_PERCENT; DownloadProgress() local
242 DealAbnormal(uint32_t percent) DealAbnormal() argument
[all...]
H A Dupdate_service_util_hmos.cpp34 taskBody.progress = static_cast<int32_t>(progress.percent); in BuildTaskBody()
H A Dupdate_service_local_updater.cpp48 [](int32_t result, uint32_t percent) {}); in VerifyUpgradePackage()
/base/update/sys_installer/frameworks/ipc_server/src/
H A Dsys_installer_callback_proxy.cpp26 void SysInstallerCallbackProxy::OnUpgradeProgress(UpdateStatus updateStatus, int percent, const std::string &resultMsg) in OnUpgradeProgress() argument
45 data.WriteInt32(percent); in OnUpgradeProgress()
/base/update/sys_installer/frameworks/status_manager/include/
H A Dstatus_manager.h34 virtual void UpdateCallback(UpdateStatus updateStatus, int percent, const std::string &resultMsg);
36 void SetUpdatePercent(int percent);
/base/update/sys_installer/test/fuzztest/imoduleupdate_fuzzer/
H A Dimodule_update_fuzzer.cpp44 void OnUpgradeProgress(UpdateStatus updateStatus, int percent, const std::string &resultMsg) override
46 printf("ProgressCallback progress %d percent %d msg %s\n", updateStatus, percent, resultMsg.c_str());
/base/update/sys_installer/interfaces/inner_api/include/
H A Disys_installer_callback_func.h25 virtual void OnUpgradeProgress(UpdateStatus updateStatus, int percent, const std::string &resultMsg) = 0;
H A Disys_installer_callback.h40 virtual void OnUpgradeProgress(UpdateStatus updateStatus, int percent, const std::string &resultMsg) = 0;
/base/update/updateservice/interfaces/inner_api/feature/update/model/common/
H A Dprogress.h26 uint32_t percent = 0; member
/base/update/updater/test/fuzztest/package_fuzzer/
H A Dpackage_fuzzer.cpp196 [](int32_t result, uint32_t percent) { PKG_LOGI("progress: %u\n", percent); }); in TestVerifyPackageWithCallback()
200 [](int32_t result, uint32_t percent) { PKG_LOGI("progress: %u\n", percent); }); in TestVerifyPackageWithCallback()
202 std::function<void(int32_t result, uint32_t percent)> cb = nullptr; in TestVerifyPackageWithCallback()
207 [](int32_t result, uint32_t percent) { PKG_LOGI("progress: %u\n", percent); }); in TestVerifyPackageWithCallback()
265 [](int32_t result, uint32_t percent) {}); in FuzzVerifyPackage()
266 VerifyPackageWithCallback(pkgPath, dataInfo.c_str(), [](int32_t result, uint32_t percent) {}); in FuzzVerifyPackage()
/base/update/updateservice/services/firmware/upgrade/install/include/
H A Dfirmware_sys_installer_callback.h30 void OnUpgradeProgress(SysInstaller::UpdateStatus updateStatus, int percent, const std::string &resultMsg) final;
/base/update/sys_installer/frameworks/ipc_server/include/
H A Dsys_installer_callback_proxy.h30 void OnUpgradeProgress(UpdateStatus updateStatus, int percent, const std::string &resultMsg) override;
/base/update/updater/test/unittest/package/
H A Dpackage_unittest.cpp209 [](int32_t result, uint32_t percent) { PKG_LOGI("current progress: %u\n", percent); }); in TestVerifyPackageWithCallback()
214 [](int32_t result, uint32_t percent) { PKG_LOGI("current progress: %u\n", percent); }); in TestVerifyPackageWithCallback()
217 std::function<void(int32_t result, uint32_t percent)> cb = nullptr; in TestVerifyPackageWithCallback()
223 [](int32_t result, uint32_t percent) { PKG_LOGI("current progress: %u\n", percent); }); in TestVerifyPackageWithCallback()
/base/update/sys_installer/interfaces/innerkits/ipc_client/include/
H A Dsys_installer_callback.h36 void OnUpgradeProgress(UpdateStatus updateStatus, int percent, const std::string &resultMsg) override;
/base/update/updateservice/services/engine/include/
H A Dprogress_thread.h93 int32_t DownloadCallback(uint32_t percent, UpgradeStatus status, const std::string &error);
105 bool DealAbnormal(uint32_t percent);
/base/update/updateservice/services/firmware/upgrade/data_processor/src/
H A Dfirmware_download_data_processor.cpp73 FIRMWARE_LOGI("SetDownloadProgress status: %{public}d progress: %{public}d", progress.status, progress.percent); in SetDownloadProgress()
/base/update/sys_installer/test/unittest/ipc_test/
H A Dsys_installer_ipc_test.cpp67 void OnUpgradeProgress(UpdateStatus updateStatus, int percent, const std::string &resultMsg) override
69 printf("ProgressCallback progress %d percent %d msg %s\n", updateStatus, percent, resultMsg.c_str());
/base/update/sys_installer/tools/module_update_tool/
H A Dmain.cpp106 void OnUpgradeProgress(UpdateStatus updateStatus, int percent, const std::string &resultMsg) override
108 printf("ProgressCallback progress %d percent %d msg %s\n", updateStatus, percent, resultMsg.c_str());

Completed in 8 milliseconds

12