Home
last modified time | relevance | path

Searched refs:remaining (Results 1 – 25 of 152) sorted by relevance

1234567

/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/request/uri/
H A Dpercent_encoding.rs59 remaining: origin.chars(), in parse()
62 let remaining = encoder.parse_double_slash(remaining)?; in parse() localVariable
63 let remaining = encoder.parse_userinfo(remaining)?; in parse() localVariable
64 let remaining = encoder.parse_authority(remaining)?; in parse() localVariable
65 let remaining = encoder.parse_path(remaining)?; in parse() localVariable
149 Ok(remaining) in parse_userinfo()
205 remaining = chars; in parse_query_and_fragment()
209 remaining = origin; in parse_query_and_fragment()
294 remaining: Chars<'a>, field
304 self.remaining in first_valid()
[all …]
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/io/
H A Dread_buf.rs93 let rsize = std::cmp::min(n, self.remaining()); in take()
138 pub fn remaining(&self) -> usize { in remaining() method
150 let remaining = self.remaining(); in initialize_unfilled_to() localVariable
151 …assert!(n <= remaining, "overflowed: try to initialize more bytes than the buffer's capacity, n: {… in initialize_unfilled_to()
169 self.initialize_unfilled_to(self.remaining()) in initialize_unfilled()
231 let remaining = self.remaining(); in append() localVariable
233 buf.len() <= remaining, in append()
236 remaining in append()
H A Dstdio.rs59 let len = cmp::min(buf.remaining(), MAX_BUF); in set_len()
75 let n = cmp::min(self.len(), buf.remaining()); in clone_into()
/ohos5.0/foundation/resourceschedule/resource_schedule_service/cgroup_sched/framework/process_group/src/
H A Dprocess_group_util.cpp85 ssize_t remaining = sb.st_size; in ReadFileToString() local
89 while (remaining > 0) { in ReadFileToString()
90 ssize_t n = read(fd, p, remaining); in ReadFileToString()
96 remaining -= n; in ReadFileToString()
138 size_t remaining = content.size(); in WriteStringToFile() local
139 while (remaining > 0) { in WriteStringToFile()
140 ssize_t n = write(fd, p, remaining); in WriteStringToFile()
145 remaining -= n; in WriteStringToFile()
/ohos5.0/base/hiviewdfx/hilog/services/hilogd/
H A Dmain.cpp67 size_t remaining = content.size(); in WriteStringToFile() local
68 while (remaining > 0) { in WriteStringToFile()
69 ssize_t n = write(fd, p, remaining); in WriteStringToFile()
74 remaining -= static_cast<size_t>(n); in WriteStringToFile()
H A Dlog_compress.cpp162 size_t const remaining = ZSTD_compressStream2(cctx, &output, &input, mode); in Compress() local
167 finished = flag ? (remaining == 0) : (input.pos == input.size); in Compress()
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/fs/
H A Dfile_buf.rs33 pub(crate) fn remaining(&self) -> usize { in remaining() method
38 let n = std::cmp::min(self.remaining(), buf.remaining()); in append_to()
/ohos5.0/docs/en/application-dev/task-management/
H A Dtransient-task.md15 …nymore. The system also provides an API for an application to query the remaining duration of a tr…
38 | getRemainingDelayTime(requestId: number): Promise&lt;number&gt; | Obtains the remaining time of a…
72remaining time of the transient task. Based on the remaining time, the application determines whet…
79 console.info('Succeeded in getting remaining delay time.');
81 … console.error(`Failed to get remaining delay time. Code: ${err.code}, message: ${err.message}`);
H A Dnative-transient-task.md15 …emainingDelayTime(int32_t requestId, int32_t *delayTime); | Obtains the remaining time of a transi…
49 // Obtain the remaining time.
137 Button('Obtain remaining time').onClick(event =>{
185 3. Touch the **Obtain remaining time** button. The console prints a log. The following is an exampl…
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-universal-attributes-renderfit.md50 …en there is remaining space in the width direction of the component, the content is left-aligned w…
51 …en there is remaining space in the width direction of the component, the content is right-aligned …
53 …is remaining space in the width direction, the content is left-aligned with the component, so that…
54 …s remaining space in the width direction, the content is right-aligned with the component, so that…
H A Dts-universal-attributes-flex-layout.md30 Sets the percentage of the parent container's remaining space that is allocated to the component.
42 | value | number | Yes | Percentage of the parent container's remaining space that is allocated t…
110 // flexGrow() indicates the percentage of the remaining space allocated to the component.
113 ….flexGrow(2) // The width allocated to the Text component is 2/3 of the remaining width of the par…
118 ….flexGrow(1) // The width allocated to the Text component is 1/3 of the remaining width of the par…
/ohos5.0/base/update/updater/utils/
H A Dutils.cpp310 size_t remaining = size; in ReadFully() local
311 while (remaining > 0) { in ReadFully()
312 ssize_t sread = read(fd, p, remaining); in ReadFully()
322 remaining -= static_cast<size_t>(sread); in ReadFully()
336 while (remaining > 0) { in ReadFileToString()
337 n = read(fd, p, remaining); in ReadFileToString()
342 remaining -= static_cast<size_t>(n); in ReadFileToString()
350 size_t remaining = content.size(); in WriteStringToFile() local
351 while (remaining > 0) { in WriteStringToFile()
352 ssize_t n = write(fd, p, remaining); in WriteStringToFile()
[all …]
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/source/http_source/download/
H A Ddownloader.cpp282 int64_t remaining = static_cast<int64_t>(currentRequest_->headerInfo_.fileContentLen) - in HandleRetOK() local
284 if (currentRequest_->headerInfo_.fileContentLen > 0 && remaining <= 0) { // 检查是否播放结束 in HandleRetOK()
294 if (currentRequest_->headerInfo_.fileContentLen == 0 && remaining <= 0) { in HandleRetOK()
303 if (remaining < PER_REQUEST_SIZE) { in HandleRetOK()
304 currentRequest_->requestSize_ = remaining; in HandleRetOK()
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/
H A Dkey_backup.cpp635 ssize_t remaining = sb.st_size; in ReadFileToString() local
639 while (remaining > 0) { in ReadFileToString()
640 ssize_t n = read(fd, p, remaining); in ReadFileToString()
646 remaining -= n; in ReadFileToString()
666 size_t remaining = content.size(); in WriteStringToFd() local
667 while (remaining > 0) { in WriteStringToFd()
668 ssize_t n = write(fd, p, remaining); in WriteStringToFd()
673 remaining -= n; in WriteStringToFd()
/ohos5.0/docs/zh-cn/application-dev/task-management/
H A Dtransient-task.md78 console.info('Succeeded in getting remaining delay time.');
80 … console.error(`Failed to get remaining delay time. Code: ${err.code}, message: ${err.message}`);
/ohos5.0/docs/en/device-dev/kernel/
H A Dkernel-small-basic-softtimer.md24 - Obtaining the number of remaining ticks of a software timer
73 | Obtaining remaining ticks of a software timer| **LOS_SwtmrTimeGet**: obtains the remaining ticks …
91 4. Call **LOS_SwtmrTimeGet** to obtain the remaining number of ticks of the software timer.
163 …LOS_SwtmrTimeGet(id1, &uwTick); // Obtain the number of remaining ticks of the one-short software …
H A Dkernel-mini-basic-soft.md22 - Obtaining the number of remaining ticks of a software timer
71 | Obtaining remaining ticks of a software timer| **LOS_SwtmrTimeGet**: obtains the remaining ticks …
89 4. Call **LOS_SwtmrTimeGet** to obtain the remaining number of ticks of the software timer.
/ohos5.0/docs/en/application-dev/reference/apis-basic-services-kit/
H A Djs-apis-system-battery.md3 The **battery** module allows you to query the charging status and remaining power of a device.
59 Defines a response that returns the charging status and remaining power of the device.
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/benchmarks/benchmark_dcl/
H A Ddrawing_playback.cpp75 ssize_t remaining = static_cast<ssize_t>(str.size()); in WriteStringToFilefd() local
76 while (remaining > 0) { in WriteStringToFilefd()
77 ssize_t n = write(fd, p, remaining); in WriteStringToFilefd()
82 remaining -= n; in WriteStringToFilefd()
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/plugins/source/http_source/download/
H A Ddownloader.cpp609 int64_t remaining = 0; in HandleRetOK() local
611 remaining = static_cast<int64_t>(currentRequest_->headerInfo_.fileContentLen) - in HandleRetOK()
614 remaining = currentRequest_->endPos_ - currentRequest_->startPos_ + 1; in HandleRetOK()
616 …if (currentRequest_->headerInfo_.fileContentLen > 0 && remaining <= 0) { // Check whether the play… in HandleRetOK()
622 if (currentRequest_->headerInfo_.fileContentLen == 0 && remaining <= 0) { in HandleRetOK()
628 if (remaining < PER_REQUEST_SIZE) { in HandleRetOK()
629 currentRequest_->requestSize_ = remaining; in HandleRetOK()
/ohos5.0/docs/en/application-dev/reference/apis-backgroundtasks-kit/
H A D_transient_task.md48 …ainingdelaytime) (int32_t requestId, int32_t \*delayTime) | Obtains the remaining time of a transi…
164 Obtains the remaining time of a transient task.
175 | time | Pointer to the remaining time. |
H A Dtransient__task__api_8h.md25 …ainingdelaytime) (int32_t requestId, int32_t \*delayTime) | Obtains the remaining time of a transi…
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/io/buffered/
H A Dasync_buf_reader.rs186 if self.filled == self.pos && buf.remaining() >= self.buf.len() { in poll_read()
192 let r_len = cmp::min(rem.len(), buf.remaining()); in poll_read()
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/conn/
H A Dhttp2.rs253 let unfilled_len = buf.remaining(); in match_channel_message()
313 let unfilled_len = buf.remaining(); in read_remaining_data()
352 if buf.remaining() == 0 || text_io.is_closed { in poll_read()
355 while buf.remaining() != 0 { in poll_read()
/ohos5.0/docs/en/application-dev/reference/apis-localization-kit/
H A Draw__file_8h.md43 …nglength) (const [RawFile](rawfile.md#rawfile) \*rawFile) | Obtains the remaining length of the ra…
51 …th64) (const [RawFile64](rawfile.md#rawfile64) \*rawFile) | Obtains the remaining length of a larg…

1234567