| /base/update/updateservice/services/firmware/upgrade/executor/src/ |
| D | firmware_install_executor.cpp | 44 Progress progress; in DoInstall() local 45 progress.status = UpgradeStatus::UPDATE_FAIL; in DoInstall() 46 progress.endReason = "no task"; in DoInstall() 47 installCallbackInfo_.progress = progress; in DoInstall() 53 Progress progress; in DoInstall() local 55 progress.status = UpgradeStatus::INSTALLING; in DoInstall() 57 progress.status = UpgradeStatus::UPDATING; in DoInstall() 62 FirmwareTaskOperator().UpdateProgressByTaskId(tasks_.taskId, progress.status, progress.percent); in DoInstall() 64 … FirmwareComponentOperator().UpdateProgressByUrl(component.url, progress.status, progress.percent); in DoInstall() 68 Progress progress; in DoInstall() local [all …]
|
| D | firmware_download_executor.cpp | 49 Progress progress; in DoDownload() local 50 progress.status = UpgradeStatus::DOWNLOAD_FAIL; in DoDownload() 51 progress.endReason = "no task"; in DoDownload() 52 firmwareProgressCallback_.progressCallback(progress); in DoDownload() 62 Progress progress; in DoDownload() local 63 progress.status = UpgradeStatus::DOWNLOAD_FAIL; in DoDownload() 64 progress.endReason = "not support"; in DoDownload() 65 firmwareProgressCallback_.progressCallback(progress); in DoDownload() 101 const Progress &progress) -> void { in PerformDownload() argument 102 DownloadCallback(serverUrl, fileName, progress); in PerformDownload() [all …]
|
| /base/update/updater/resources/ |
| D | BUILD.gn | 95 "${product_name}/images/progress/dark_flash_00000.png", 96 "${product_name}/images/progress/dark_flash_00001.png", 97 "${product_name}/images/progress/dark_flash_00002.png", 98 "${product_name}/images/progress/dark_flash_00003.png", 99 "${product_name}/images/progress/dark_flash_00004.png", 100 "${product_name}/images/progress/dark_flash_00005.png", 101 "${product_name}/images/progress/dark_flash_00006.png", 102 "${product_name}/images/progress/dark_flash_00007.png", 103 "${product_name}/images/progress/dark_flash_00008.png", 104 "${product_name}/images/progress/dark_flash_00009.png", [all …]
|
| /base/update/updateservice/services/engine/src/ |
| D | update_service_util_hmos.cpp | 31 void UpdateServiceUtil::BuildTaskBody(const Progress &progress, TaskBody &taskBody) in BuildTaskBody() argument 33 taskBody.status = progress.status; in BuildTaskBody() 34 taskBody.progress = static_cast<int32_t>(progress.percent); in BuildTaskBody() 35 int errorCode = atoi(progress.endReason.c_str()); in BuildTaskBody() 39 errorMsg.errorMessage = progress.endReason; in BuildTaskBody()
|
| /base/update/updateservice/services/firmware/upgrade/data_processor/src/ |
| D | firmware_install_data_processor.cpp | 71 Progress progress = installCallbackInfo.progress; in SetInstallResult() local 72 …OGI("SetInstallResult status: %{public}d progress: %{public}d", progress.status, progress.percent); in SetInstallResult() 74 …if (progress.status == UpgradeStatus::UPDATE_FAIL || progress.status == UpgradeStatus::INSTALL_FAI… in SetInstallResult() 78 progress.status, installCallbackInfo.errorMessage); in SetInstallResult() 82 … DelayedSingleton<FirmwareCallbackUtils>::GetInstance()->ProgressCallback(tasks_.taskId, progress); in SetInstallResult()
|
| D | firmware_download_data_processor.cpp | 57 …requireTotalSize += (Firmware::ONE_HUNDRED - component.progress) * component.size / Firmware::ONE_… in IsSpaceEnough() 71 void FirmwareDownloadDataProcessor::SetDownloadProgress(const Progress &progress) in SetDownloadProgress() argument 73 …("SetDownloadProgress status: %{public}d progress: %{public}d", progress.status, progress.percent); in SetDownloadProgress() 74 downloadProgress_ = progress; in SetDownloadProgress() 76 … DelayedSingleton<FirmwareCallbackUtils>::GetInstance()->ProgressCallback(tasks_.taskId, progress); in SetDownloadProgress()
|
| /base/request/request/frameworks/js/napi/src/ |
| D | notify_stub.cpp | 51 notifyData.progress.state = static_cast<State>(data.ReadUint32()); in OnCallBack() 52 notifyData.progress.index = data.ReadUint32(); in OnCallBack() 53 notifyData.progress.processed = data.ReadUint64(); in OnCallBack() 54 notifyData.progress.totalProcessed = data.ReadUint64(); in OnCallBack() 55 data.ReadInt64Vector(¬ifyData.progress.sizes); in OnCallBack() 63 notifyData.progress.extras[key] = data.ReadString(); in OnCallBack() 92 notify.progress = notifyData.progress; in RequestCallBack() 116 notify.data.push_back(notifyData.progress.processed); in GetDownloadNotify() 117 if (!notifyData.progress.sizes.empty()) { in GetDownloadNotify() 118 notify.data.push_back(notifyData.progress.sizes[0]); in GetDownloadNotify() [all …]
|
| D | request_event.cpp | 170 if (type == EVENT_FAIL && taskInfo->progress.state != State::FAILED) { in NeedNotify() 173 if (type == EVENT_COMPLETE && taskInfo->progress.state != State::COMPLETED) { in NeedNotify() 176 if (!taskInfo->progress.sizes.empty()) { in NeedNotify() 177 uint64_t processed = taskInfo->progress.processed; in NeedNotify() 178 int64_t totalSise = taskInfo->progress.sizes[0]; in NeedNotify() 221 notifyData.progress = taskInfo->progress; in BuildNotifyData() 392 if (infoRes.progress.state == State::FAILED) { in GetDownloadInfo() 400 if (infoRes.progress.state == State::WAITING && in GetDownloadInfo() 404 if (infoRes.progress.state == State::PAUSED) { in GetDownloadInfo() 413 auto it = stateMap_.find(infoRes.progress.state); in GetDownloadInfo() [all …]
|
| /base/request/request/services/service/rust/src/ |
| D | task_info.rs | 17 use super::{c_string_wrapper::*, enumration::*, form_item::*, progress::*, utils::*, request_bindin… 29 pub progress: Progress, field 60 pub progress: Progress, field 107 pub progress: CProgress, field 127 sizes: format!("{:?}", self.progress.sizes), in build_info_set() 128 processed: format!("{:?}", self.progress.processed), in build_info_set() 162 progress: self.progress.to_c_struct(&info.sizes, &info.processed, &info.extras), in to_c_struct() 170 let progress = Progress::from_c_struct(&c_struct.progress); in from_c_struct() localVariable 171 let extras = progress.extras.clone(); in from_c_struct() 190 progress, in from_c_struct() [all …]
|
| D | request_service_ability.rs | 20 enumration::*, log::LOG_LABEL, progress::*, request_binding, task_config::*, 291 if notify_data.progress.common_data.index >= notify_data.progress.sizes.len() { in notify_client() 295 let common_data = notify_data.progress.common_data; in notify_client() 318 .write(&(notify_data.progress.common_data.state as u32)) in notify_client() 320 let index = notify_data.progress.common_data.index; in notify_client() 323 .write(&(notify_data.progress.processed[index] as u64)) in notify_client() 326 .write(&(notify_data.progress.common_data.total_processed as u64)) in notify_client() 328 client_data.write(&(notify_data.progress.sizes)).ok(); in notify_client() 330 .write(&(notify_data.progress.extras.len() as u32)) in notify_client() 332 for (k, v) in notify_data.progress.extras.iter() { in notify_client() [all …]
|
| D | request_task.rs | 18 …enumration::*, progress::*, task_info::*, task_config::*, task_manager::*, utils::*, request_bindi… 75 pub progress: Mutex<Progress>, field 150 let written_bytes = self.task.progress.lock().unwrap().processed[0] as u64; in poll_write_partial_file() 169 let mut progress_guard = self.task.progress.lock().unwrap(); in poll_write_file() 227 let index = self.task.progress.lock().unwrap().common_data.index; in poll_read() 232 let mut progress_guard = self.task.progress.lock().unwrap(); in poll_read() 308 progress: Mutex::new(Progress::new(sizes)), in constructor() 345 progress: self.progress.lock().unwrap().clone(), in build_notify_data() 481 let mut progress_guard = self.progress.lock().unwrap(); in clear_downloaded_file() 501 let progress_guard = self.progress.lock().unwrap(); in build_download_request() [all …]
|
| /base/update/updateservice/services/firmware/upgrade/install/src/ |
| D | firmware_sys_installer_callback.cpp | 34 installProgress.progress.status = UpgradeStatus::INSTALLING; in OnUpgradeProgress() 37 installProgress.progress.status = UpgradeStatus::INSTALL_SUCCESS; in OnUpgradeProgress() 40 installProgress.progress.status = UpgradeStatus::INSTALL_FAIL; in OnUpgradeProgress() 45 installProgress.progress.percent = static_cast<uint32_t>(percent); in OnUpgradeProgress()
|
| D | firmware_sys_installer_install.cpp | 72 sysInstallProgress_ = installProgress.progress; in DoSysInstall() 74 sysComponent.status = installProgress.progress.status; in DoSysInstall() 75 sysComponent.progress = installProgress.progress.percent; in DoSysInstall() 77 sysComponent.status, sysComponent.progress); in DoSysInstall()
|
| /base/update/updateservice/services/firmware/upgrade/flow/src/ |
| D | firmware_flow_manager.cpp | 94 void FirmwareFlowManager::OnDownloadCallback(const Progress &progress) in OnDownloadCallback() argument 101 executeMode_->SetDownloadProgress(progress); in OnDownloadCallback() 102 if (progress.status != UpgradeStatus::DOWNLOADING) { in OnDownloadCallback() 115 if (installCallbackInfo.progress.status != UpgradeStatus::INSTALLING) { in OnInstallCallback() 140 …areProgressCallback downloadCallback{[=](const Progress &progress) { OnDownloadCallback(progress);… in CreateInstance()
|
| /base/request/request/services/service/rust/src/c_wrapper/source/ |
| D | c_request_database.cpp | 178 insertValues.PutInt("state", taskInfo->progress.commonData.state); in WriteRequestTaskInfo() 179 insertValues.PutLong("idx", taskInfo->progress.commonData.index); in WriteRequestTaskInfo() 180 insertValues.PutLong("total_processed", taskInfo->progress.commonData.totalProcessed); in WriteRequestTaskInfo() 181 …insertValues.PutString("sizes", std::string(taskInfo->progress.sizes.cStr, taskInfo->progress.size… in WriteRequestTaskInfo() 183 std::string(taskInfo->progress.processed.cStr, taskInfo->progress.processed.len)); in WriteRequestTaskInfo() 184 …insertValues.PutString("extras", std::string(taskInfo->progress.extras.cStr, taskInfo->progress.ex… in WriteRequestTaskInfo() 243 values.PutInt("state", updateInfo->progress.commonData.state); in UpdateRequestTaskInfo() 244 values.PutLong("idx", updateInfo->progress.commonData.index); in UpdateRequestTaskInfo() 245 values.PutLong("total_processed", updateInfo->progress.commonData.totalProcessed); in UpdateRequestTaskInfo() 246 …values.PutString("sizes", std::string(updateInfo->progress.sizes.cStr, updateInfo->progress.sizes.… in UpdateRequestTaskInfo() [all …]
|
| /base/request/request/frameworks/native/src/ |
| D | parcel_helper.cpp | 100 info.progress.state = static_cast<State>(data.ReadUint32()); in UnMarshalProgress() 101 info.progress.index = data.ReadUint32(); in UnMarshalProgress() 102 info.progress.processed = data.ReadUint64(); in UnMarshalProgress() 103 info.progress.totalProcessed = data.ReadUint64(); in UnMarshalProgress() 104 data.ReadInt64Vector(&info.progress.sizes); in UnMarshalProgress() 116 info.progress.extras[key] = data.ReadString(); in UnMarshalMapProgressExtras()
|
| /base/update/updateservice/services/core/ability/callback/src/ |
| D | base_callback_utils.cpp | 41 …BaseCallbackUtils::ProgressCallback(const std::string &versionDigestInfo, const Progress &progress) in ProgressCallback() argument 44 versionDigestInfo.c_str(), progress.status); in ProgressCallback() 61 if (iter->first == progress.status) { in ProgressCallback() 69 UpdateServiceUtil::BuildTaskBody(progress, taskBody); in ProgressCallback()
|
| /base/request/request/services/service/rust/src/c_wrapper/include/ |
| D | c_task_info.h | 66 CProgress progress; member 82 Progress progress; member 91 CProgress progress; member
|
| /base/update/updateservice/services/firmware/upgrade/executor/include/ |
| D | firmware_download_executor.h | 38 void DownloadCallback(std::string serverUrl, std::string packageName, Progress progress); 39 bool VerifyDownloadPkg(const std::string &pkgName, Progress &progress);
|
| D | firmware_iexecutor.h | 32 using ProgressCallback = std::function<void(const Progress &progress)>; 38 Progress progress; member
|
| /base/update/updateservice/frameworks/js/napi/base/include/ |
| D | client_helper.h | 83 Progress *progress; member 97 delete result.progress; in Release() 98 result.progress = nullptr; in Release() 133 if (result.progress == nullptr) { 134 result.progress = new (std::nothrow) Progress(); 136 if ((result.progress != nullptr) && (updateResult.result.progress != nullptr)) { 137 *(result.progress) = *(updateResult.result.progress);
|
| /base/update/update_app/common/src/main/ets/manager/ |
| D | UpgradeInterface.ets | 165 * @param progress 进度 168 showDownloading(version: string, progress: number, context: common.Context): Promise<void>; 190 * @param progress 进度 193 showInstalling(version: string, progress: number, context: common.Context): Promise<void>
|
| /base/request/request/test/unittest/js_test/requestAgentTaskTest/entry/src/main/ets/test/ |
| D | RequestOperateTask.test.ets | 236 task.on('progress', function(progress) { 237 if (progress.state === request.agent.State.STOPPED) { 239 task.off('progress'); 622 task.on('test', function (progress) {}) 645 task.on(123, function (progress) {}) 667 task.on('failed', function (progress) { 668 expect(progress.state).assertEqual(request.agent.State.FAILED); 688 task.on('progress', function (progress) { 689 expect(progress.state).assertEqual(request.agent.State.RUNNING); 690 task.off('progress'); [all …]
|
| /base/update/update_app/feature/ota/src/main/ets/components/ |
| D | ProgressContent.ets | 21 * @param progress 进度值 24 function getDisplayProgress(progress): number { 26 if (!isNaN(progress)) { 27 displayProgress = (progress).toFixed(0);
|
| /base/update/updater/services/ui/strategy/ |
| D | progress_strategy.cpp | 61 std::string progress = std::to_string(intValue) + "%"; in ShowProgress() local 62 pgMgr_[id_].As<TextLabelAdapter>()->SetText(progress); in ShowProgress()
|