/base/update/updateservice/services/firmware/upgrade/executor/src/ |
H A D | firmware_install_executor.cpp | 43 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 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() 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 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/notification/distributed_notification_service/frameworks/ans/src/ |
H A D | notification_progress.cpp | 86 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 D | scan_progress.cpp | 22 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 D | firmware_install_data_processor.cpp | 71 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 D | firmware_download_data_processor.cpp | 57 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 D | notifier.rs | 53 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 D | mod.rs | 99 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 D | firmware_sys_installer_callback.cpp | 35 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 D | firmware_sys_installer_install.cpp | 82 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 D | notification_local_live_view_content_test.cpp | 77 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 D | notification_progress_test.cpp | 112 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 D | scancapi_fuzzer.cpp | 71 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 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 FirmwareProgressCallback downloadCallback{[=](const Progress &progress) { OnDownloadCallback(progress); }}; in CreateInstance()
|
/base/request/request/services/src/service/ |
H A D | notification_bar.rs | 33 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 D | js_notify_data_listener.cpp | 60 && 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 D | download.rs | 102 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 D | request_task.rs | 52 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 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);
|
H A D | firmware_iexecutor.h | 23 #include "progress.h" 34 using ProgressCallback = std::function<void(const Progress &progress)>; 40 Progress progress; member
|
/base/request/request/services/src/cxx/ |
H A D | notification_bar.cpp | 108 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 D | base_callback_utils.cpp | 40 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 D | update_result.h | 23 #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 D | update_progress_unittest.cpp | 64 float progress = 1.0f; in HWTEST_F() local 65 SetUpdateProgress(progress); in HWTEST_F()
|