Home
last modified time | relevance | path

Searched refs:progress (Results 1 – 25 of 101) sorted by relevance

12345

/base/update/updateservice/services/firmware/upgrade/executor/src/
Dfirmware_install_executor.cpp44 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 …]
Dfirmware_download_executor.cpp49 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/
DBUILD.gn95 "${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/notification/distributed_notification_service/frameworks/ans/src/
Dnotification_progress.cpp86 NotificationProgress *progress = new (std::nothrow) NotificationProgress(); in FromJson() local
87 if (progress == nullptr) { in FromJson()
94 progress->maxValue_ = jsonObject.at("maxValue").get<int32_t>(); in FromJson()
98 progress->currentValue_ = jsonObject.at("currentValue").get<int32_t>(); in FromJson()
102 progress->isPercentage_ = jsonObject.at("isPercentage_").get<bool>(); in FromJson()
105 return progress; in FromJson()
138 NotificationProgress *progress = new (std::nothrow) NotificationProgress(); in Unmarshalling() local
140 if (progress && !progress->ReadFromParcel(parcel)) { in Unmarshalling()
141 delete progress; in Unmarshalling()
142 progress = nullptr; in Unmarshalling()
[all …]
/base/update/updateservice/services/engine/src/
Dupdate_service_util_hmos.cpp31 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/
Dfirmware_install_data_processor.cpp71 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()
Dfirmware_download_data_processor.cpp57 …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/
Dnotify_stub.cpp52 notifyData.progress.state = static_cast<State>(data.ReadUint32()); in OnCallBack()
53 notifyData.progress.index = data.ReadUint32(); in OnCallBack()
54 notifyData.progress.processed = data.ReadUint64(); in OnCallBack()
55 notifyData.progress.totalProcessed = data.ReadUint64(); in OnCallBack()
56 data.ReadInt64Vector(&notifyData.progress.sizes); in OnCallBack()
64 notifyData.progress.extras[key] = data.ReadString(); in OnCallBack()
99 notify.progress = notifyData.progress; in RequestCallBack()
113 uint32_t index = notifyData.progress.index; in RequestCallBack()
117 NapiUtils::ReadBytesFromFile(filePath, notify.progress.bodyBytes); in RequestCallBack()
141 … && notifyData.progress.state == State::COMPLETED && (type == "progress" || type == "complete")) { in IsHeaderReceive()
[all …]
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
Dnotification_local_live_view_content_test.cpp77 NotificationProgress progress; variable
78 progress.SetMaxValue(1);
79 liveViewContent->SetProgress(progress);
190 NotificationProgress progress; variable
191 progress.SetMaxValue(1);
192 liveViewContent->SetProgress(progress);
222 NotificationProgress progress; variable
223 progress.SetMaxValue(1);
224 liveViewContent->SetProgress(progress);
254 NotificationProgress progress; variable
[all …]
Dnotification_progress_test.cpp112 NotificationProgress *progress = notificationProgress.FromJson(jsonObject); variable
113 EXPECT_NE(nullptr, progress);
114 if (progress != nullptr) {
115 delete progress;
/base/update/updateservice/services/firmware/upgrade/install/src/
Dfirmware_sys_installer_callback.cpp35 installProgress.progress.status = UpgradeStatus::INSTALLING; in OnUpgradeProgress()
38 installProgress.progress.status = UpgradeStatus::INSTALL_SUCCESS; in OnUpgradeProgress()
41 installProgress.progress.status = UpgradeStatus::INSTALL_FAIL; in OnUpgradeProgress()
46 installProgress.progress.percent = static_cast<uint32_t>(percent); in OnUpgradeProgress()
Dfirmware_sys_installer_install.cpp78 sysInstallProgress_ = installProgress.progress; in DoSysInstall()
80 sysComponent.status = installProgress.progress.status; in DoSysInstall()
81 sysComponent.progress = installProgress.progress.percent; in DoSysInstall()
83 sysComponent.status, sysComponent.progress); in DoSysInstall()
/base/update/updateservice/services/firmware/upgrade/flow/src/
Dfirmware_flow_manager.cpp94 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/request/src/service/notify/
Dmanager.rs167 if data.progress.common_data.index >= data.progress.sizes.len() { in notify()
171 let common_data = &data.progress.common_data; in notify()
206 parcel.write(&(data.progress.common_data.state as u32))?; in write_parcel()
208 let index = data.progress.common_data.index; in write_parcel()
210 parcel.write(&(data.progress.processed[index] as u64))?; in write_parcel()
212 parcel.write(&(data.progress.common_data.total_processed as u64))?; in write_parcel()
213 parcel.write(&(data.progress.sizes))?; in write_parcel()
214 parcel.write(&(data.progress.extras.len() as u32))?; in write_parcel()
216 for (k, v) in data.progress.extras.iter() { in write_parcel()
/base/update/updateservice/frameworks/js/napi/update/include/
Dupdate_result.h30 Progress *progress; member
44 ReleaseValue<Progress>(result.progress); in Release()
74 AssignValue<Progress>(updateResult.result.progress, result.progress);
/base/request/request/services/service/request/src/task/
Drequest_task.rs97 pub(crate) progress: Mutex<Progress>, field
163 progress: Mutex::new(Progress::new(sizes)), in constructor()
204 let progress_index = info.progress.common_data.index; in restore_task()
225 progress: Mutex::new(info.progress.clone()), in restore_task()
230 state: State::from(info.progress.common_data.state), in restore_task()
260 .store(info.progress.sizes[progress_index], Ordering::SeqCst), in restore_task()
278 progress: self.progress.lock().unwrap().clone(), in build_notify_data()
451 let mut progress_guard = self.progress.lock().unwrap(); in clear_downloaded_file()
471 let progress_guard = self.progress.lock().unwrap(); in build_download_request()
495 begins += self.progress.lock().unwrap().processed[0] as u64; in build_download_request()
[all …]
Dffi.rs141 pub(crate) progress: CProgress, field
161 progress: self in to_c_struct()
162 .progress in to_c_struct()
171 let progress = Progress::from_c_struct(&c_struct.progress); in from_c_struct() localVariable
172 let extras = progress.extras.clone(); in from_c_struct()
199 progress, in from_c_struct()
222 pub(crate) progress: CProgress, field
240 progress: self.progress.to_c_struct(sizes, processed, extras), in to_c_struct()
/base/update/updateservice/services/core/ability/callback/src/
Dbase_callback_utils.cpp40 …BaseCallbackUtils::ProgressCallback(const std::string &versionDigestInfo, const Progress &progress) in ProgressCallback() argument
43 versionDigestInfo.c_str(), progress.status); in ProgressCallback()
60 if (iter->first == progress.status) { in ProgressCallback()
68 UpdateServiceUtil::BuildTaskBody(progress, taskBody); in ProgressCallback()
/base/request/request/services/service/request/c_wrapper/include/
Dc_task_info.h68 CProgress progress; member
84 Progress progress; member
94 CProgress progress; member
/base/update/updateservice/services/firmware/upgrade/executor/include/
Dfirmware_download_executor.h38 void DownloadCallback(std::string serverUrl, std::string packageName, Progress progress);
39 bool VerifyDownloadPkg(const std::string &pkgName, Progress &progress);
Dfirmware_iexecutor.h32 using ProgressCallback = std::function<void(const Progress &progress)>;
38 Progress progress; member
/base/update/update_app/common/src/main/ets/manager/
DUpgradeInterface.ets165 * @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/update/updater/test/unittest/applypatch_test/
Dupdate_progress_unittest.cpp64 float progress = 1.0f; variable
65 SetUpdateProgress(progress);
/base/update/update_app/feature/ota/src/main/ets/components/
DProgressContent.ets21 * @param progress 进度值
24 function getDisplayProgress(progress): number {
26 if (!isNaN(progress)) {
27 displayProgress = (progress).toFixed(0);
/base/request/request/
DREADME.md72 …perations on the download task, for example, adding listeners for the **progress**, **complete**, …
73 …perations on the download task, for example, adding listeners for the **progress**, **complete**, …
74 … operations on the upload task, for example, adding listeners for the **progress**, **headerReceiv…
75 … operations on the upload task, for example, adding listeners for the **progress**, **headerReceiv…
76 …perations on the download task, for example, adding listeners for the **progress**, **complete**, …
77 …perations on the download task, for example, adding listeners for the **progress**, **complete**, …
78 … operations on the upload task, for example, adding listeners for the **progress**, **headerReceiv…
79 … operations on the upload task, for example, adding listeners for the **progress**, **headerReceiv…
85progress', callback:(receivedSize: number, totalSize: number) => void): void | Enables listening f…
88 | off(type: 'progress', callback?:(receivedSize: number, totalSize: number) => void): void | Disabl…
[all …]

12345