Home
last modified time | relevance | path

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

12345

/base/update/updateservice/engine/src/
Dprogress_thread.cpp141 downloadProgress_.percent = 0; in ProcessThreadExecute()
159 int32_t DownloadThread::DownloadCallback(uint32_t percent, UpgradeStatus status, const std::string … in DownloadCallback() argument
169 } else if (percent != DOWNLOAD_FINISH_PERCENT in DownloadCallback()
170 && (percent < (downloadProgress_.percent + DOWNLOAD_PERIOD_PERCENT))) { in DownloadCallback()
175 if (percent == DOWNLOAD_FINISH_PERCENT in DownloadCallback()
180 downloadProgress_.percent = percent; in DownloadCallback()
195 unsigned int percent = (dlNow + curr) / (curr + dlTotal) * DOWNLOAD_FINISH_PERCENT; in DownloadProgress() local
196 return engine->DownloadCallback(percent, UPDATE_STATE_DOWNLOAD_ON, ""); in DownloadProgress()
Dupdate_service.cpp179 progress0.percent = DOWNLOAD_FINISH_PERCENT; in DownloadVersion()
202 progress.percent = 1; in DoUpdate()
213 progress.percent = DOWNLOAD_FINISH_PERCENT; in DoUpdate()
248 downloadProgress.percent = progress.percent; in DownloadCallback()
255 ENGINE_LOGI("DownloadCallback status %d %d", progress.status, progress.percent); in DownloadCallback()
277 ENGINE_LOGE("UpgradeCallback status %d %d", progress.status, progress.percent); in UpgradeCallback()
Dupdate_helper.cpp150 info.percent = static_cast<uint32_t>(reply.ReadUint32()); in ReadUpdateProgress()
158 data.WriteUint32(info.percent); in WriteUpdateProgress()
/base/update/app/entry/src/main/js/default/pages/index/
Dindex.js92 let percent = progress.percent;
93 if (progress.percent > 5) {
94 percent = progress.percent - 5;
95 }else if(progress.percent>90){
96 percent = 90;
98 page.data.width = percent + '%';
99 if (progress.percent == 100) {
215 page.data.width = progress.percent + '%';
Dindex.css25 .percent{
/base/update/updateservice/callback/src/
Dupdate_callback.cpp43 ENGINE_LOGI("OnDownloadProgress progress %u %d", progress.percent, progress.status); in OnDownloadProgress()
48 ENGINE_LOGI("OnUpgradeProgress progress %u %d", progress.percent, progress.status); in OnUpgradeProgress()
/base/update/updateservice/test/unittest/update_client/
Dclient_unittest.cpp159 info.percent = PERCENT_20; in TestDownloadVersion()
163 info.percent = PERCENT_40; in TestDownloadVersion()
167 info.percent = PERCENT_60; in TestDownloadVersion()
171 info.percent = PERCENT_100; in TestDownloadVersion()
196 info.percent = PERCENT_20; in TestUpgradeVersion()
200 info.percent = PERCENT_40; in TestUpgradeVersion()
204 info.percent = PERCENT_60; in TestUpgradeVersion()
208 info.percent = PERCENT_100; in TestUpgradeVersion()
360 info.percent = PERCENT_20; in TestSubscribeEvent()
364 info.percent = PERCENT_40; in TestSubscribeEvent()
[all …]
Dclient_stub.cpp351 testEnv->progress.percent = testValue->intValue; in napi_set_named_property()
/base/update/updateservice/client/
Dupdate_client.cpp425 [&](int32_t result, uint32_t percent) { NotifyVerifyProgresss(result, percent); }); in VerifyUpdatePackage() argument
627 res->result.progress->percent = result.result.progress->percent; in Emit()
659 CLIENT_LOGI("NotifyDownloadProgress status %d %d", progress.status, progress.percent); in NotifyDownloadProgress()
660 … if (progress.percent == PROGRESS_DOWNLOAD_FINISH && progress.status == UPDATE_STATE_DOWNLOAD_ON) { in NotifyDownloadProgress()
663 progress_.percent = progress.percent; in NotifyDownloadProgress()
677 CLIENT_LOGI("NotifyUpgradeProgresss status %d %d", progress.status, progress.percent); in NotifyUpgradeProgresss()
678 progress_.percent = progress.percent; in NotifyUpgradeProgresss()
689 void UpdateClient::NotifyVerifyProgresss(int32_t retCode, uint32_t percent) in NotifyVerifyProgresss() argument
692 verifyProgress_.percent = percent; in NotifyVerifyProgresss()
885 ret |= SetInt32(env, obj, "percent", result.result.progress->percent); in BuildProgress()
Dupdate_client.h145 void NotifyVerifyProgresss(int32_t retCode, uint32_t percent);
/base/update/updater/interfaces/kits/include/package/
Dpackage.h148 std::function<void(int32_t result, uint32_t percent)> cb);
/base/update/updateservice/interfaces/innerkits/engine/
Dupdate_service_kits_impl.cpp113 ENGINE_LOGE("OnDownloadProgress progress %u %d", progress.percent, progress.status); in OnDownloadProgress()
121 ENGINE_LOGE("OnUpgradeProgress progress %u %d", progress.percent, progress.status); in OnUpgradeProgress()
/base/update/updateservice/engine/include/
Dprogress_thread.h95 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/update/updateservice/interfaces/kits/js/declaration/
D@ohos.update.d.ts220 percent: number; property
/base/global/i18n_lite/frameworks/i18n/src/
Dnumber_data.cpp94 percent = I18nNewCharString(tdp, strlen(tdp)); in InitSign()
263 I18nFree((void *)percent); in ~NumberData()
Dnumber_format_impl.cpp36 off = ReplaceAndCountOff(strContent, i + off, data->percent, off); in ConvertSignAndNum()
/base/update/updater/interfaces/kits/packages/
Dpackage.cpp180 [](int32_t result, uint32_t percent) {}); in VerifyPackage() argument
186 const std::string &keyPath, std::function<void(int32_t result, uint32_t percent)> cb) in VerifyPackageWithCallback()
/base/update/updateservice/interfaces/innerkits/include/
Dupdate_helper.h105 uint32_t percent; member
/base/global/i18n_lite/tools/i18n-dat-tool/src/main/java/ohos/global/i18n/
DFetcher.java390 String percent = decimalFormatSymbols.getPercentString(); in getNumberFormat() local
402 sb.append(convertNoAscii(percent)); in getNumberFormat()
/base/update/updater/services/include/package/
Dpkg_manager.h224 using VerifyCallback = std::function<void(int32_t result, uint32_t percent)>;
/base/update/updater/test/unittest/package/
Dpackage_unittest.cpp251 [](int32_t result, uint32_t percent) { PKG_LOGI("current progress: %u\n", percent); }); in TestVerifyZipWithCallback() argument
/base/global/i18n_standard/frameworks/intl/src/
Dnumber_format.cpp106 numberFormat = numberFormat.unit(icu::NoUnit::percent()); in InitProperties()
/base/hiviewdfx/blackbox/
DLICENSE21 otherwise, or (ii) ownership of fifty percent (50%) or more of the
/base/customization/enterprise_device_management/
DLICENSE21 otherwise, or (ii) ownership of fifty percent (50%) or more of the

12345