/base/update/sys_installer/frameworks/status_manager/src/ |
D | status_manager.cpp | 46 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/ |
D | progress_thread.cpp | 144 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()
|
D | update_service.cpp | 394 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/ |
D | update_service_ab_callback.cpp | 26 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/ |
D | index.js | 133 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 + '%';
|
D | index.css | 25 .percent{
|
/base/update/sys_installer/interfaces/innerkits/ipc_client/src/ |
D | sys_installer_callback_stub.cpp | 41 int percent = data.ReadInt32(); in OnRemoteRequest() local 42 OnUpgradeProgress(updateStatus, percent); in OnRemoteRequest()
|
D | sys_installer_client.cpp | 28 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/ |
D | sys_installer_callback_proxy.cpp | 25 void SysInstallerCallbackProxy::OnUpgradeProgress(int updateStatus, int percent) in OnUpgradeProgress() argument 44 data.WriteInt32(percent); in OnUpgradeProgress()
|
/base/request/request/download/services/src/ |
D | download_background_notification.cpp | 29 … const std::string &filePath, uint32_t percent) in PublishDownloadNotification() argument 38 wantParams.SetParam("progressValue", AAFwk::Integer::Box(percent)); in PublishDownloadNotification()
|
D | download_service_task.cpp | 888 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/ |
D | client_unittest.cpp | 165 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/ |
D | download_background_notification.h | 24 const std::string &filePath, uint32_t percent);
|
D | download_service_task.h | 91 void PublishNotification(bool background, uint32_t percent);
|
/base/update/sys_installer/interfaces/inner_api/include/ |
D | isys_installer_callback.h | 34 virtual void OnUpgradeProgress(int updateStatus, int percent) = 0;
|
/base/update/updater/test/unittest/package/ |
D | package_unittest.cpp | 212 [](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/ |
D | update_service_ab_callback.h | 32 void OnUpgradeProgress(int updateStatus, int percent) final;
|
/base/update/sys_installer/frameworks/ipc_server/include/ |
D | sys_installer_callback_proxy.h | 30 void OnUpgradeProgress(int updateStatus, int percent) override;
|
/base/update/sys_installer/frameworks/status_manager/include/ |
D | status_manager.h | 33 virtual void UpdateCallback(UpdateStatus updateStatus, int percent);
|
/base/update/updater/services/ |
D | updater_main.cpp | 345 … 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/ |
D | package.h | 135 std::function<void(int32_t result, uint32_t percent)> cb);
|
/base/update/updateservice/services/engine/include/ |
D | progress_thread.h | 87 int32_t DownloadCallback(uint32_t percent, UpgradeStatus status, const std::string &error);
|
/base/global/i18n_lite/frameworks/i18n/include/ |
D | number_data.h | 60 char *percent = nullptr; variable
|
/base/global/i18n_lite/frameworks/i18n/src/ |
D | number_data.cpp | 94 percent = I18nNewCharString(tdp, strlen(tdp)); in InitSign() 264 I18nFree(static_cast<void *>(percent)); in ~NumberData()
|
/base/update/updater/interfaces/kits/packages/ |
D | package.cpp | 184 [](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()
|