Home
last modified time | relevance | path

Searched refs:percent (Results 1 – 25 of 118) sorted by relevance

12345

/base/update/sys_installer/frameworks/status_manager/src/
Dstatus_manager.cpp46 void StatusManager::UpdateCallback(UpdateStatus updateStatus, int percent) in UpdateCallback() argument
56 if (percent >=0 && percent <= 100 && percent >= percent_) { // 100 : max percent in UpdateCallback()
57 percent_ = percent; in UpdateCallback()
/base/update/updateservice/services/engine/src/
Dprogress_thread.cpp144 downloadProgress_.percent = 0; in ProcessThreadExecute()
162 int32_t DownloadThread::DownloadCallback(uint32_t percent, UpgradeStatus status, const std::string … in DownloadCallback() argument
172 } else if (percent != DOWNLOAD_FINISH_PERCENT in DownloadCallback()
173 && (percent < (downloadProgress_.percent + DOWNLOAD_PERIOD_PERCENT))) { in DownloadCallback()
178 if (percent == DOWNLOAD_FINISH_PERCENT in DownloadCallback()
183 downloadProgress_.percent = percent; in DownloadCallback()
198 unsigned int percent = (dlNow + curr) / (curr + dlTotal) * DOWNLOAD_FINISH_PERCENT; in DownloadProgress() local
199 return engine->DownloadCallback(percent, UPDATE_STATE_DOWNLOAD_ON, ""); in DownloadProgress()
Dupdate_service.cpp394 progress0.percent = DOWNLOAD_FINISH_PERCENT; in DownloadVersion()
466 progress.percent = 1; in DoUpdate()
485 progress.percent = DOWNLOAD_FINISH_PERCENT; in DoUpdate()
568 otaStatus_.progress = progress.percent; in DownloadCallback()
576 ENGINE_LOGI("DownloadCallback status %{public}d %{public}d", progress.status, progress.percent); in DownloadCallback()
590 if (downloadProgress.percent == MAX_PERCENT) { in DownloadCallback()
619 ENGINE_LOGE("UpgradeCallback status %{public}d %{public}d", progress.status, progress.percent); in UpgradeCallback()
627 if (progress.percent == MAX_PERCENT) { in UpgradeCallback()
770 [](int32_t result, uint32_t percent) {}); in VerifyUpgradePackage() argument
/base/update/updateservice/services/ab_update/src/
Dupdate_service_ab_callback.cpp26 void UpdateServiceAbCallback::OnUpgradeProgress(int updateStatus, int percent) in OnUpgradeProgress() argument
28 …NE_LOGI("UpdateServiceAbCallback OnUpgradeProgress progress %d percent %d", updateStatus, percent); in OnUpgradeProgress()
47 eventInfo_.taskBody.progress = percent; in OnUpgradeProgress()
/base/update/update_app/entry/src/main/js/default/pages/index/
Dindex.js133 percent: eventInfo.taskBody?.progress, property
136 let percent = progress.percent;
137 if (progress.percent > 5) {
138 percent = progress.percent - 5;
139 } else if (progress.percent > 90) {
140 percent = 90;
142 page.data.width = percent + '%';
143 if (progress.percent == 100) {
300 percent: eventInfo.taskBody?.progress, property
303 page.data.width = progress.percent + '%';
Dindex.css25 .percent{
/base/update/sys_installer/interfaces/innerkits/ipc_client/src/
Dsys_installer_callback_stub.cpp41 int percent = data.ReadInt32(); in OnRemoteRequest() local
42 OnUpgradeProgress(updateStatus, percent); in OnRemoteRequest()
Dsys_installer_client.cpp28 void OnUpgradeProgress(int updateStatus, int percent) in OnUpgradeProgress() argument
30 … printf("SysInstallerCallback OnUpgradeProgress progress %d percent %d\n", updateStatus, percent); in OnUpgradeProgress()
/base/update/sys_installer/frameworks/ipc_server/src/
Dsys_installer_callback_proxy.cpp25 void SysInstallerCallbackProxy::OnUpgradeProgress(int updateStatus, int percent) in OnUpgradeProgress() argument
44 data.WriteInt32(percent); in OnUpgradeProgress()
/base/request/request/download/services/src/
Ddownload_background_notification.cpp29 … const std::string &filePath, uint32_t percent) in PublishDownloadNotification() argument
38 wantParams.SetParam("progressValue", AAFwk::Integer::Box(percent)); in PublishDownloadNotification()
Ddownload_service_task.cpp888 void DownloadServiceTask::PublishNotification(bool background, uint32_t percent) in PublishNotification() argument
895 DownloadBackgroundNotification::PublishDownloadNotification(taskId_, pid, filePath, percent); in PublishNotification()
908 uint32_t percent = ProgressNotification(prevSize, downloadSize, totalSize); in PublishNotification() local
909 if (percent > 0) { in PublishNotification()
910 PublishNotification(background, percent); in PublishNotification()
925 uint32_t percent = static_cast<uint32_t>(downloadSize * 100.0 / totalSize); in ProgressNotification() local
931 if ((percent - lastPercent) >= TEN_PERCENT_THRESHOLD || in ProgressNotification()
933 ret = percent; in ProgressNotification()
/base/update/updateservice/test/unittest/update_client/
Dclient_unittest.cpp165 info.percent = PERCENT_20; in TestDownloadVersion()
169 info.percent = PERCENT_40; in TestDownloadVersion()
173 info.percent = PERCENT_60; in TestDownloadVersion()
177 info.percent = PERCENT_100; in TestDownloadVersion()
202 info.percent = PERCENT_20; in TestUpgradeVersion()
206 info.percent = PERCENT_40; in TestUpgradeVersion()
210 info.percent = PERCENT_60; in TestUpgradeVersion()
214 info.percent = PERCENT_100; in TestUpgradeVersion()
366 info.percent = PERCENT_20; in TestSubscribeEvent()
370 info.percent = PERCENT_40; in TestSubscribeEvent()
[all …]
/base/request/request/download/services/include/
Ddownload_background_notification.h24 const std::string &filePath, uint32_t percent);
Ddownload_service_task.h91 void PublishNotification(bool background, uint32_t percent);
/base/update/sys_installer/interfaces/inner_api/include/
Disys_installer_callback.h34 virtual void OnUpgradeProgress(int updateStatus, int percent) = 0;
/base/update/updater/test/unittest/package/
Dpackage_unittest.cpp212 [](int32_t result, uint32_t percent) { PKG_LOGI("current progress: %u\n", percent); }); in TestVerifyPackageWithCallback() argument
217 [](int32_t result, uint32_t percent) { PKG_LOGI("current progress: %u\n", percent); }); in TestVerifyPackageWithCallback() argument
220 std::function<void(int32_t result, uint32_t percent)> cb = nullptr; in TestVerifyPackageWithCallback()
226 [](int32_t result, uint32_t percent) { PKG_LOGI("current progress: %u\n", percent); }); in TestVerifyPackageWithCallback() argument
/base/update/updateservice/services/ab_update/include/
Dupdate_service_ab_callback.h32 void OnUpgradeProgress(int updateStatus, int percent) final;
/base/update/sys_installer/frameworks/ipc_server/include/
Dsys_installer_callback_proxy.h30 void OnUpgradeProgress(int updateStatus, int percent) override;
/base/update/sys_installer/frameworks/status_manager/include/
Dstatus_manager.h33 virtual void UpdateCallback(UpdateStatus updateStatus, int percent);
/base/update/updater/services/
Dupdater_main.cpp345 … float percent = static_cast<double>(startSize) / static_cast<double>(allPkgSize) + VERIFY_PERCENT; in CalcProgress() local
346 percent = (percent > 1.0) ? 1.0 : percent; // 1.0 : 100% in CalcProgress()
347 LOG(INFO) << "percent is:" << percent; in CalcProgress()
348 pkgStartPosition.push_back(percent); in CalcProgress()
/base/update/updater/interfaces/kits/include/package/
Dpackage.h135 std::function<void(int32_t result, uint32_t percent)> cb);
/base/update/updateservice/services/engine/include/
Dprogress_thread.h87 int32_t DownloadCallback(uint32_t percent, UpgradeStatus status, const std::string &error);
/base/global/i18n_lite/frameworks/i18n/include/
Dnumber_data.h60 char *percent = nullptr; variable
/base/global/i18n_lite/frameworks/i18n/src/
Dnumber_data.cpp94 percent = I18nNewCharString(tdp, strlen(tdp)); in InitSign()
264 I18nFree(static_cast<void *>(percent)); in ~NumberData()
/base/update/updater/interfaces/kits/packages/
Dpackage.cpp184 [](int32_t result, uint32_t percent) {}); in VerifyPackage() argument
190 const std::string &keyPath, std::function<void(int32_t result, uint32_t percent)> cb) in VerifyPackageWithCallback()

12345