Home
last modified time | relevance | path

Searched refs:progress (Results 1 - 25 of 104) sorted by relevance

12345

/base/update/updateservice/services/firmware/upgrade/executor/src/
H A Dfirmware_install_executor.cpp43 Progress progress; in DoInstall() local
44 progress.status = UpgradeStatus::UPDATE_FAIL; in DoInstall()
45 progress.endReason = "no task"; in DoInstall()
46 installCallbackInfo_.progress = progress; in DoInstall()
56 Progress progress; in DoInstall() local
58 progress.status = UpgradeStatus::INSTALLING; in DoInstall()
60 progress.status = UpgradeStatus::UPDATING; in DoInstall()
65 FirmwareTaskOperator().UpdateProgressByTaskId(tasks_.taskId, progress.status, progress in DoInstall()
71 Progress progress; DoInstall() local
100 HandleInstallProgress(const FirmwareComponent &component, const Progress &progress) HandleInstallProgress() argument
[all...]
H A 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()
102 DownloadCallback(serverUrl, fileName, progress); in PerformDownload()
122 DownloadCallback(std::string serverUrl, std::string packageName, Progress progress) DownloadCallback() argument
162 VerifyDownloadPkg(const std::string &pkgName, Progress &progress) VerifyDownloadPkg() argument
[all...]
/base/update/updateservice/services/engine/src/
H A 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/notification/distributed_notification_service/frameworks/ans/src/
H A 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()
[all...]
/base/print/print_fwk/frameworks/helper/scan_helper/src/
H A Dscan_progress.cpp22 ScanProgress::ScanProgress() : progress(0), in ScanProgress()
28 progress = right.progress; in ScanProgress()
39 progress = right.progress; in operator =()
52 void ScanProgress::SetScanProgress(const int32_t progress) in SetScanProgress() argument
54 this->progress = progress; in SetScanProgress()
84 return progress; in GetScanProgress()
123 parcel.WriteInt32(progress); in Marshalling()
[all...]
/base/update/updateservice/services/firmware/upgrade/data_processor/src/
H A Dfirmware_install_data_processor.cpp71 Progress progress = installCallbackInfo.progress; in SetInstallResult() local
72 FIRMWARE_LOGI("SetInstallResult status: %{public}d progress: %{public}d", progress.status, progress.percent); in SetInstallResult()
74 if (progress.status == UpgradeStatus::UPDATE_FAIL || progress.status == UpgradeStatus::INSTALL_FAIL) { in SetInstallResult()
78 progress.status, installCallbackInfo.errorMessage); in SetInstallResult()
82 DelayedSingleton<FirmwareCallbackUtils>::GetInstance()->ProgressCallback(tasks_.taskId, progress); in SetInstallResult()
H A Dfirmware_download_data_processor.cpp57 requireTotalSize += (Firmware::ONE_HUNDRED - component.progress) * component.size / Firmware::ONE_HUNDRED; in IsSpaceEnough()
71 void FirmwareDownloadDataProcessor::SetDownloadProgress(const Progress &progress) in SetDownloadProgress() argument
73 FIRMWARE_LOGI("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/services/src/manage/
H A Dnotifier.rs53 pub(crate) fn progress(client_manager: &ClientManagerEntry, notify_data: NotifyData) {
54 let total_processed = notify_data.progress.common_data.total_processed;
55 let file_total_size: i64 = notify_data.progress.sizes.iter().sum();
169 assert!(!data.progress.extras.is_empty()); in ut_notify_progress()
170 assert_eq!(data.progress.common_data.state, State::Running.repr); in ut_notify_progress()
171 assert_eq!(data.progress.common_data.index, 0); in ut_notify_progress()
173 data.progress.processed[0], in ut_notify_progress()
174 data.progress.common_data.total_processed in ut_notify_progress()
177 assert!(data.progress.common_data.total_processed >= previous); in ut_notify_progress()
178 previous = data.progress in ut_notify_progress()
[all...]
H A Dmod.rs99 task_into(task_id).progress.common_data.state, in ut_manager_task_state_and_reason()
107 task_into(task_id).progress.common_data.state, in ut_manager_task_state_and_reason()
117 task_into(task_id).progress.common_data.state, in ut_manager_task_state_and_reason()
127 task_into(task_id).progress.common_data.state, in ut_manager_task_state_and_reason()
137 task_into(task_id).progress.common_data.state, in ut_manager_task_state_and_reason()
147 task_into(task_id).progress.common_data.state, in ut_manager_task_state_and_reason()
157 task_into(task_id).progress.common_data.state, in ut_manager_task_state_and_reason()
167 task_into(task_id).progress.common_data.state, in ut_manager_task_state_and_reason()
180 task_into(task_id).progress.common_data.state, in ut_manager_task_state_and_reason()
218 task_into(task_id).progress in ut_manager_state_change_error()
[all...]
/base/update/updateservice/services/firmware/upgrade/install/src/
H A 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()
H A Dfirmware_sys_installer_install.cpp82 sysInstallProgress_ = installProgress.progress; in DoSysInstall()
84 sysComponent.status = installProgress.progress.status; in DoSysInstall()
85 sysComponent.progress = installProgress.progress.percent; in DoSysInstall()
86 FIRMWARE_LOGI("SysInstallerExecutorCallback status=%{public}d , progress=%{public}d", in DoSysInstall()
87 sysComponent.status, sysComponent.progress); in DoSysInstall()
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
H A Dnotification_local_live_view_content_test.cpp77 NotificationProgress progress; in HWTEST_F() local
78 progress.SetMaxValue(1); in HWTEST_F()
79 liveViewContent->SetProgress(progress); in HWTEST_F()
99 nlohmann::json jsonObject = nlohmann::json{"typeCode", "capsule", "button", "progress", "time"}; in HWTEST_F()
116 {"progress", ""}, {"text", ""}, {"time", ""}, {"title", ""}, {"typeCode", 1}}; in HWTEST_F()
190 NotificationProgress progress; in HWTEST_F() local
191 progress.SetMaxValue(1); in HWTEST_F()
192 liveViewContent->SetProgress(progress); in HWTEST_F()
222 NotificationProgress progress; in HWTEST_F() local
223 progress in HWTEST_F()
254 NotificationProgress progress; HWTEST_F() local
[all...]
H A Dnotification_progress_test.cpp112 NotificationProgress *progress = notificationProgress.FromJson(jsonObject); in HWTEST_F() local
113 EXPECT_NE(nullptr, progress); in HWTEST_F()
114 if (progress != nullptr) { in HWTEST_F()
115 delete progress; in HWTEST_F()
/base/print/print_fwk/test/fuzztest/scancapi_fuzzer/
H A Dscancapi_fuzzer.cpp71 Scan_PictureScanProgress progress; in OHScanGetScanPictureProgressFuzzTest() local
72 progress.progress = dataProvider->ConsumeIntegralInRange<int32_t>(0, MAX_SET_NUMBER); in OHScanGetScanPictureProgressFuzzTest()
73 progress.fd = dataProvider->ConsumeIntegralInRange<int32_t>(0, MAX_SET_NUMBER); in OHScanGetScanPictureProgressFuzzTest()
74 progress.isFinal = dataProvider->ConsumeBool(); in OHScanGetScanPictureProgressFuzzTest()
75 OH_Scan_GetPictureScanProgress(scannerId.c_str(), &progress); in OHScanGetScanPictureProgressFuzzTest()
/base/update/updateservice/services/firmware/upgrade/flow/src/
H A 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 FirmwareProgressCallback downloadCallback{[=](const Progress &progress) { OnDownloadCallback(progress); }}; in CreateInstance()
/base/request/request/services/src/service/
H A Dnotification_bar.rs33 let index = task.progress.lock().unwrap().common_data.index;
39 task.progress.lock().unwrap().clone(),
52 info.file_specs[info.progress.common_data.index]
67 info.file_specs[info.progress.common_data.index]
142 progress: Progress,
144 let extras = progress.extras;
151 index: progress.common_data.index,
152 processed: progress.processed,
153 sizes: progress.sizes,
/base/request/request/frameworks/js/napi/src/
H A Djs_notify_data_listener.cpp60 && notifyData->progress.state == State::COMPLETED in IsHeaderReceive()
69 uint32_t index = notifyData->progress.index; in ProcessHeaderReceive()
87 NapiUtils::ReadBytesFromFile(filePath, notifyData->progress.bodyBytes); in ProcessHeaderReceive()
103 value[0] = NapiUtils::Convert2JSValue(this->env_, notifyData->progress); in NotifyDataProcess()
109 value[0] = NapiUtils::Convert2JSValue(this->env_, notifyData->progress.processed); in NotifyDataProcess()
110 if (!notifyData->progress.sizes.empty()) { in NotifyDataProcess()
111 value[1] = NapiUtils::Convert2JSValue(this->env_, notifyData->progress.sizes[0]); in NotifyDataProcess()
133 std::accumulate(notifyData->progress.sizes.begin(), notifyData->progress.sizes.end(), 0); in NotifyDataProcess()
134 value[0] = NapiUtils::Convert2JSValue(this->env_, notifyData->progress in NotifyDataProcess()
[all...]
/base/request/request/services/src/task/
H A Ddownload.rs102 let mut progress = self.progress.lock().unwrap(); variables
103 progress.common_data.index = 0;
104 progress.common_data.total_processed = downloaded;
105 progress.common_data.state = State::Running.repr;
106 progress.processed = vec![downloaded];
107 progress.sizes = vec![-1];
199 let mut guard = task.progress.lock().unwrap();
210 .update_task_sizes(task.task_id(), &task.progress.lock().unwrap().sizes);
216 task.progress
562 let mut progress = task.progress.lock().unwrap(); ut_download_invalid_task() variables
609 let mut progress = task.progress.lock().unwrap(); ut_download_sizes() variables
[all...]
H A Drequest_task.rs52 pub(crate) progress: Mutex<Progress>,
161 let progress = Progress::new(sizes);
170 progress: Mutex::new(progress),
212 Action::Download => *info.progress.sizes.first().unwrap_or(&-1),
222 state: State::from(info.progress.common_data.state),
225 let progress = info.progress;
234 progress: Mutex::new(progress),
420 let mut progress = self.progress.lock().unwrap(); global() variables
[all...]
/base/update/updateservice/services/firmware/upgrade/executor/include/
H A Dfirmware_download_executor.h38 void DownloadCallback(std::string serverUrl, std::string packageName, Progress progress);
39 bool VerifyDownloadPkg(const std::string &pkgName, Progress &progress);
H A Dfirmware_iexecutor.h23 #include "progress.h"
34 using ProgressCallback = std::function<void(const Progress &progress)>;
40 Progress progress; member
/base/request/request/services/src/cxx/
H A Dnotification_bar.cpp108 Notification::NotificationProgress progress; in SetProgress() local
119 progress.SetIsPercentage(true); in SetProgress()
120 progress.SetCurrentValue(msg.processed[0] / BINARY_SCALE); in SetProgress()
121 progress.SetMaxValue(msg.sizes[0] / BINARY_SCALE); in SetProgress()
129 progress.SetCurrentValue(msg.index); in SetProgress()
130 progress.SetMaxValue(msg.sizes.size()); in SetProgress()
133 progress.SetCurrentValue(msg.processed[0] / BINARY_SCALE); in SetProgress()
134 progress.SetMaxValue(msg.sizes[0] / BINARY_SCALE); in SetProgress()
139 localLiveViewContent->SetProgress(progress); in SetProgress()
172 // set title and progress in RequestProgressNotification()
[all...]
/base/update/updateservice/services/core/ability/callback/src/
H A Dbase_callback_utils.cpp40 void BaseCallbackUtils::ProgressCallback(const std::string &versionDigestInfo, const Progress &progress) in ProgressCallback() argument
42 ENGINE_LOGI("ProgressCallback progress versionDigestInfo %{public}s status:%{public}d", in ProgressCallback()
43 versionDigestInfo.c_str(), progress.status); in ProgressCallback()
60 if (iter->first == progress.status) { in ProgressCallback()
68 UpdateServiceUtil::BuildTaskBody(progress, taskBody); in ProgressCallback()
/base/update/updateservice/frameworks/js/napi/update/include/
H A Dupdate_result.h23 #include "progress.h"
37 Progress *progress; member
51 ReleaseValue<Progress>(result.progress); in Release()
81 AssignValue<Progress>(updateResult.result.progress, result.progress); in operator =()
/base/update/updater/test/unittest/applypatch_test/
H A Dupdate_progress_unittest.cpp64 float progress = 1.0f; in HWTEST_F() local
65 SetUpdateProgress(progress); in HWTEST_F()

Completed in 15 milliseconds

12345