/ohos5.0/base/request/request/services/src/task/ |
H A D | notify.rs | 54 pub(crate) sizes: Vec<i64>, 68 pub(crate) fn new(sizes: Vec<i64>) -> Self { in new() 69 let len = sizes.len(); in new() 76 sizes, in new() 83 self.sizes.iter().all(|a| *a != -1) in is_finish() 84 && self.processed.iter().sum::<usize>() == self.sizes.iter().sum::<i64>() as usize in is_finish()
|
H A D | files.rs | 27 pub(crate) sizes: Vec<i64>, 34 let (files, sizes) = cvt_res_error!( in open() 48 sizes, in open() 60 let mut sizes = Vec::new(); in open_task_files() localVariable 92 sizes.push(size as i64); in open_task_files() 112 sizes.push(-1) in open_task_files() 117 Ok((Files::new(files), sizes)) in open_task_files()
|
H A D | ffi.rs | 107 pub(crate) sizes: CStringWrapper, 113 pub(crate) fn to_c_struct(&self, sizes: &str, processed: &str, extras: &str) -> CProgress { in to_c_struct() 116 sizes: CStringWrapper::from(sizes), in to_c_struct() 125 sizes: split_string(&mut c_struct.sizes.to_string()) in from_c_struct() 171 .to_c_struct(&info.sizes, &info.processed, &info.extras), in to_c_struct() 244 sizes: &str, in to_c_struct() 254 progress: self.progress.to_c_struct(sizes, processed, extras), in to_c_struct()
|
H A D | download.rs | 107 progress.sizes = vec![-1]; in prepare_download() 210 .update_task_sizes(task.task_id(), &task.progress.lock().unwrap().sizes); in download_inner() 216 task.progress.lock().unwrap().sizes[0] in download_inner() 230 guard.sizes = vec![guard.processed[0] as i64]; in download_inner() 560 progress.sizes = vec![0]; in ut_download_invalid_task() 583 task.progress.lock().unwrap().sizes[0] as u64 in ut_download_invalid_task() 607 progress.sizes = vec![0, 1, 2, 3]; in ut_download_sizes() 616 let sizes = task.progress.lock().unwrap().sizes.clone(); in ut_download_sizes() localVariable 617 assert_eq!(sizes, vec![-1]); in ut_download_sizes()
|
H A D | request_task.rs | 143 for size in files.sizes.iter() { in new() 152 let mut sizes = files.sizes.clone(); in new() localVariable 154 if action == Action::Upload && config.common_data.index < sizes.len() as u32 { in new() 155 sizes[config.common_data.index as usize] = change_upload_size( in new() 158 sizes[config.common_data.index as usize], in new() 164 let progress = Progress::new(sizes); in new() 208 for size in files.sizes.iter() { in new_by_info() 213 Action::Download => *info.progress.sizes.first().unwrap_or(&-1), in new_by_info() 422 progress.sizes = vec![v + progress.processed[0] as i64]; in get_file_info()
|
H A D | info.rs | 80 pub(crate) sizes: String, 147 sizes: format!("{:?}", self.progress.sizes), in build_info_set()
|
H A D | upload.rs | 67 progress_guard.sizes[index] as usize - uploaded in poll_read() 69 progress_guard.sizes[index] as usize - progress_guard.processed[index] in poll_read() 158 upload_length = progress.sizes[index] as u64 - progress.processed[index] as u64; in build_stream_request() 193 upload_length = progress.sizes[index] as u64 - progress.processed[index] as u64; in build_multipart_request() 262 if metadata.len() > self.progress.lock().unwrap().sizes[index] as u64 { in prepare_single_upload() 277 .update_task_sizes(task.task_id(), &task.progress.lock().unwrap().sizes); in upload() 368 task.progress.lock().unwrap().sizes[index] in upload_one_file()
|
/ohos5.0/base/startup/init/test/benchmark/ |
H A D | benchmark_fwk.cpp | 189 static args_vector GetArgs(const std::vector<int> &sizes) in GetArgs() argument 192 for (int size : sizes) { in GetArgs() 198 static args_vector GetArgs(const std::vector<int> &sizes, int value) in GetArgs() argument 201 for (int size : sizes) { in GetArgs() 207 static args_vector GetArgs(const std::vector<int> &sizes, int value1, int value2) in GetArgs() argument 210 for (int size : sizes) { in GetArgs() 216 static args_vector GetArgs(const std::vector<int> &sizes, const std::vector<int> &limits, int value) in GetArgs() argument 219 for (int size : sizes) { in GetArgs()
|
/ohos5.0/base/request/request/frameworks/cj/ffi/src/ |
H A D | cj_request_common.cpp | 123 if (in.sizes.size() > 0) { in Convert2CProgress() 124 out.sizeArr = static_cast<int64_t *>(malloc(sizeof(int64_t) * in.sizes.size())); in Convert2CProgress() 128 for (std::vector<long>::size_type i = 0; i < in.sizes.size(); ++i) { in Convert2CProgress() 129 out.sizeArr[i] = in.sizes[i]; in Convert2CProgress() 131 out.sizeArrLen = static_cast<int64_t>(in.sizes.size()); in Convert2CProgress()
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-js/ |
H A D | js-components-basic-label.md | 46 … font size can be changed dynamically. After the maximum and minimum font sizes are set, **font-si… 47 … font size can be changed dynamically. After the maximum and minimum font sizes are set, **font-si… 48 …mically adjusting the font size in the text. The minimum and maximum font sizes must be set. … 49 …sizes | <array> | - | No | Preset preferred font sizes. For dynamic …
|
H A D | js-components-basic-text.md | 46 … font size can be changed dynamically. After the maximum and minimum font sizes are set, **font-si… 47 … font size can be changed dynamically. After the maximum and minimum font sizes are set, **font-si… 48 …mically adjusting the font size in the text. The minimum and maximum font sizes must be set. … 49 …sizes | <array> | - … 56 …sizes are used to adjust the font size to display the text within the maximum number of lines. The…
|
H A D | js-components-grid-basic-concepts.md | 7 … rules for layout design and resolves issues of dynamic layout across devices with different sizes. 20 …d edges of a screen. You can define different margins based on the screen sizes to serve as the un… 24 …ween elements. You can define different gutter values based on the screen sizes to serve as the un… 28 …Columns are used for positioning in the layout. The positioning for different screen sizes is dete…
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/js-service-widget-ui/ |
H A D | js-service-widget-basic-text.md | 38 … font size can be changed dynamically. After the maximum and minimum font sizes are set, **font-si… 39 … font size can be changed dynamically. After the maximum and minimum font sizes are set, **font-si… 40 …r dynamically adjusting the font size in the text. The minimum and maximum font sizes must be set.| 41 …sizes | <array> | - | No| Preset preferred font sizes. For dynamic font size adjustment, the… 45 …sizes are used to adjust the font size to display the text within the maximum number of lines. The…
|
H A D | js-service-widget-basic-clock.md | 39 … position in components of different sizes. You do not need to change the position for components … 40 …ive size in components of different sizes. You do not need to change the font size for components …
|
/ohos5.0/foundation/ability/form_fwk/test/fuzztest/formproviderdata_fuzzer/ |
H A D | formproviderdata_fuzzer.cpp | 46 int32_t sizes = static_cast<int32_t>(GetU32Data(data)); in DoSomethingInterestingWithMyAPI() local 47 formProviderData.AddImageData(picName, datas, sizes); in DoSomethingInterestingWithMyAPI() 65 formProviderData.WriteImageDataToParcel(parcel, picName, datas, sizes); in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/base/request/request/services/include/ |
H A D | c_progress.h | 32 CStringWrapper sizes; member 39 std::string sizes; member
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_5.0.0.33/ |
H A D | changelogs-bundlemanager.md | 41 …can provide no widget. However, if a widget is provided, snapshots of all sizes configured for the… 45 …mpatible change. After the change, if there is a widget, snapshots of all sizes configured for the… 61 Provide snapshots of all sizes configured for the widget.
|
/ohos5.0/foundation/ability/form_fwk/test/fuzztest/formashmem_fuzzer/ |
H A D | formashmem_fuzzer.cpp | 42 int32_t sizes = static_cast<int32_t>(GetU32Data(data)); in DoSomethingInterestingWithMyAPI() local 43 formAshmem.WriteToAshmem(name, nullptr, sizes); in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/base/update/update_app/common/src/main/ets/util/ |
H A D | FormatUtils.ts | 45 let sizes = ['Bytes', 'KB', 'MB', 'GB']; 47 return parseFloat((bytes / Math.pow(ONE_KB, index)).toFixed(point)) + ' ' + sizes[index];
|
/ohos5.0/base/request/request/frameworks/js/napi/src/ |
H A D | js_notify_data_listener.cpp | 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()
|
/ohos5.0/base/request/request/services/src/manage/ |
H A D | database.rs | 275 let sizes = format!("{:?}", update_info.progress.sizes); in update_task() localVariable 283 let c_update_info = update_info.to_c_struct(&sizes, &processed, &extras, &each_file_status); in update_task() 310 …update_info.progress.sizes, update_info.progress.processed, hashmap_to_string(&update_info.progres… in update_task() 327 pub(crate) fn update_task_sizes(&self, task_id: u32, sizes: &Vec<i64>) { in update_task_sizes() 330 sizes, task_id in update_task_sizes()
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-js/ |
H A D | js-components-basic-label.md | 48 …sizes | <array> | - | 否 | 预设的字号集合,在动态尺寸调整时,优先使用预设字号集合中的字号匹配设置的最大行数,…
|
/ohos5.0/docs/en/design/ux-design/ |
H A D | multimodal-slidable-panel.md | 10 - Adjust the position and display mode of panels in different scenarios, because the screen sizes o… 14 - There are three sizes for a panel: small, medium (half screen), and large (full screen). The init…
|
H A D | design-specifications.md | 7 …fications document displays the effect of the same UI in different screen sizes side by side and d…
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/js-service-widget-ui/ |
H A D | js-service-widget-basic-text.md | 41 …sizes | <array> | - | 否 | 预设的字号集合,在动态尺寸调整时,优先使用预设字号集合中的字号匹配设置的最大行数,如果预设字号集合未设置,则使用最大最小和步长调整字…
|