Home
last modified time | relevance | path

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

123

/system/logging/liblog/
Dlogd_reader.cpp233 size_t remaining = len; in android_logger_get_statistics() local
236 n = snprintf(cp, remaining, "getStatistics"); in android_logger_get_statistics()
237 n = MIN(n, remaining); in android_logger_get_statistics()
238 remaining -= n; in android_logger_get_statistics()
243 n = snprintf(cp, remaining, " %zu", log_id); in android_logger_get_statistics()
244 n = MIN(n, remaining); in android_logger_get_statistics()
245 remaining -= n; in android_logger_get_statistics()
251 snprintf(cp, remaining, " pid=%u", logger_list->pid); in android_logger_get_statistics()
277 int ret, remaining, sock; in logdOpen() local
298 remaining = sizeof(buffer) - (cp - buffer); in logdOpen()
[all …]
/system/security/identity/
DUtil.cpp67 size_t remaining = data.size(); in fileGetContents() local
68 while (remaining > 0) { in fileGetContents()
69 ssize_t numRead = TEMP_FAILURE_RETRY(read(fd, p, remaining)); in fileGetContents()
76 remaining -= numRead; in fileGetContents()
101 size_t remaining = data.size(); in fileSetContents() local
102 while (remaining > 0) { in fileSetContents()
103 ssize_t numWritten = TEMP_FAILURE_RETRY(write(fd, p, remaining)); in fileSetContents()
110 remaining -= numWritten; in fileSetContents()
/system/security/keystore/
Dkeystore_utils.cpp40 size_t remaining = size; in readFully() local
41 while (remaining > 0) { in readFully()
42 ssize_t n = TEMP_FAILURE_RETRY(read(fd, data, remaining)); in readFully()
44 return size - remaining; in readFully()
47 remaining -= n; in readFully()
53 size_t remaining = size; in writeFully() local
54 while (remaining > 0) { in writeFully()
55 ssize_t n = TEMP_FAILURE_RETRY(write(fd, data, remaining)); in writeFully()
58 return size - remaining; in writeFully()
61 remaining -= n; in writeFully()
/system/media/audio_utils/
Dtinysndfile.c35 size_t remaining; // frames unread for SFM_READ, frames written for SFM_WRITE member
110 size_t remaining = riffSize - 4; in sf_open_read() local
114 while (remaining >= 8) { in sf_open_read()
123 remaining -= 8; in sf_open_read()
125 if (chunkSize > remaining) { in sf_open_read()
127 fprintf(stderr, "chunkSize %u > remaining %zu\n", chunkSize, remaining); in sf_open_read()
243 handle->remaining = chunkSize / handle->bytesPerFrame; in sf_open_read()
244 handle->info.frames = handle->remaining; in sf_open_read()
265 remaining -= chunkSize; in sf_open_read()
267 if (remaining > 0) { in sf_open_read()
[all …]
/system/extras/boot_control_copy/
Dboot_control_copy.cpp92 size_t remaining; in copy_data() local
94 remaining = num_bytes; in copy_data()
95 while (remaining > 0) { in copy_data()
96 size_t num_to_read = remaining > COPY_BUF_SIZE ? COPY_BUF_SIZE : remaining; in copy_data()
119 remaining -= num_read; in copy_data()
/system/media/audio_utils/include/audio_utils/
DBiquadFilter.h548 out + offset, in + offset, frames, stride, remaining, \
580 size_t remaining = channelCount - offset; in biquad_filter_func() local
584 switch (remaining) { in biquad_filter_func()
586 if (remaining >= 16) { in biquad_filter_func()
587 remaining &= ~15; in biquad_filter_func()
593 out + offset, in + offset, frames, stride, remaining, in biquad_filter_func()
595 offset += remaining; in biquad_filter_func()
617 switch (remaining) { in biquad_filter_func()
619 if (remaining >= 8) { in biquad_filter_func()
620 remaining &= ~7; in biquad_filter_func()
[all …]
/system/keymaster/key_blob_utils/
Docb.c810 unsigned i, k, tz, remaining; in process_ad() local
864 remaining = ((unsigned)ad_len) % (BPI * 16); in process_ad()
865 if (remaining) { in process_ad()
868 if (remaining >= 64) { in process_ad()
877 remaining -= 64; in process_ad()
881 if (remaining >= 32) { in process_ad()
886 remaining -= 32; in process_ad()
889 if (remaining >= 16) { in process_ad()
892 remaining = remaining - 16; in process_ad()
895 if (remaining) { in process_ad()
[all …]
/system/gsid/
Dpartition_installer.cpp202 uint64_t remaining = bytes; in CommitGsiChunk() local
203 while (remaining) { in CommitGsiChunk()
204 size_t max_to_read = std::min(static_cast<uint64_t>(kBlockSize), remaining); in CommitGsiChunk()
217 CHECK(static_cast<uint64_t>(rv) <= remaining); in CommitGsiChunk()
218 remaining -= rv; in CommitGsiChunk()
222 int new_progress = ((size_ - remaining) * 1000) / size_; in CommitGsiChunk()
224 service_->UpdateProgress(IGsiService::STATUS_WORKING, size_ - remaining); in CommitGsiChunk()
/system/libbase/
Dfile.cpp313 size_t remaining = byte_count; in ReadFully() local
314 while (remaining > 0) { in ReadFully()
315 ssize_t n = TEMP_FAILURE_RETRY(read(fd.get(), p, remaining)); in ReadFully()
318 remaining -= n; in ReadFully()
371 size_t remaining = byte_count; in WriteFullyAtOffset() local
372 while (remaining > 0) { in WriteFullyAtOffset()
373 ssize_t n = TEMP_FAILURE_RETRY(pwrite(fd.get(), p, remaining, offset)); in WriteFullyAtOffset()
376 remaining -= n; in WriteFullyAtOffset()
384 size_t remaining = byte_count; in WriteFully() local
385 while (remaining > 0) { in WriteFully()
[all …]
/system/core/fs_mgr/libsnapshot/
Dsnapshot_reader.cpp140 *actual = std::min(remaining(), requested); in GetBuffer()
154 size_t remaining() const { return end_ - pos_; } in remaining() function in android::snapshot::MemoryByteSink
172 size_t initial_bytes = std::min(block_size_ - start_offset, sink.remaining()); in Read()
187 if (sink.remaining()) { in Read()
188 ssize_t rv = ReadBlock(end_chunk, &sink, 0, {sink.remaining()}); in Read()
215 if (remaining() == 0) { in GetBuffer()
Dtest_helpers.cpp142 uint64_t remaining = reader->BlockDevSize(); in HashSnapshot() local
144 while (remaining) { in HashSnapshot()
146 static_cast<size_t>(std::min(remaining, static_cast<uint64_t>(sizeof(buffer)))); in HashSnapshot()
156 remaining -= static_cast<size_t>(read); in HashSnapshot()
/system/core/debuggerd/client/
Ddebuggerd_client.cpp140 auto remaining = end - std::chrono::steady_clock::now(); in debuggerd_trigger_dump() local
141 if (remaining < decltype(remaining)::zero()) { in debuggerd_trigger_dump()
147 populate_timeval(&timeout, remaining); in debuggerd_trigger_dump()
253 auto remaining = end - std::chrono::steady_clock::now(); in debuggerd_trigger_dump() local
254 auto remaining_ms = std::chrono::duration_cast<std::chrono::milliseconds>(remaining).count(); in debuggerd_trigger_dump()
/system/extras/libfec/
Dfec_read.cpp479 size_t remaining = count; in raw_pread() local
481 while (remaining > 0) { in raw_pread()
482 ssize_t n = TEMP_FAILURE_RETRY(pread64(fd, p, remaining, offset)); in raw_pread()
489 remaining -= n; in raw_pread()
501 size_t remaining = count; in raw_pwrite() local
503 while (remaining > 0) { in raw_pwrite()
504 ssize_t n = TEMP_FAILURE_RETRY(pwrite64(fd, p, remaining, offset)); in raw_pwrite()
511 remaining -= n; in raw_pwrite()
/system/nfc/src/nfc/tags/
Dce_t3t.cc631 uint16_t block_list_start_offset, remaining; in ce_t3t_data_cback() local
707 remaining = p_msg->len - block_list_start_offset; in ce_t3t_data_cback()
711 if (remaining < 2) { in ce_t3t_data_cback()
734 (remaining < 3)) { in ce_t3t_data_cback()
747 remaining -= entry_len; in ce_t3t_data_cback()
756 if (remaining) { in ce_t3t_data_cback()
760 (unsigned int)remaining); in ce_t3t_data_cback()
767 if (remaining < p_cb->cur_cmd.num_blocks * T3T_MSG_BLOCKSIZE) { in ce_t3t_data_cback()
/system/extras/iotop/
Dtaskstats.cpp91 int remaining = genlmsg_attrlen(gnlh, 0); in ParseTaskStats() local
93 nla_for_each_attr(attr, attr, remaining, remaining) { in ParseTaskStats()
/system/core/fs_mgr/liblp/
Dimages.cpp368 uint64_t remaining = file_length; in AddPartitionImage() local
369 while (remaining) { in AddPartitionImage()
387 size_t read_size = remaining >= sizeof(buffer) ? sizeof(buffer) : size_t(remaining); in AddPartitionImage()
406 remaining -= read_size; in AddPartitionImage()
/system/extras/tests/lib/testUtil/
DtestUtil.c265 struct timespec remaining; in testDelay() local
279 remaining = double2ts(amt - ts2double(&delta)); in testDelay()
280 (void) nanosleep(&remaining, NULL); in testDelay()
/system/extras/taskstats/
Dtaskstats.c74 int remaining = genlmsg_attrlen(gnlh, 0); in parse_task_stats() local
76 nla_for_each_attr(attr, attr, remaining, remaining) { in parse_task_stats()
/system/extras/boottime_tools/bootio/
Dbootio_collector.cpp333 int remaining = samples + 1; in StartDataCollection() local
338 while (remaining > 0) { in StartDataCollection()
346 remaining--; in StartDataCollection()
347 if (remaining == 0) { in StartDataCollection()
/system/extras/tests/workloads/
Dpwrtest.sh172 ((remaining=totalSamples-garbage))
173 if [ $remaining -gt 0 ]; then
174 tail -$remaining $collectOutput > $powerOutput
/system/core/fs_mgr/libfiemap/
Dimage_manager.cpp246 uint64_t remaining; in ZeroFillNewImage() local
248 remaining = bytes; in ZeroFillNewImage()
250 remaining = get_block_device_size(device->fd()); in ZeroFillNewImage()
251 if (!remaining) { in ZeroFillNewImage()
256 while (remaining) { in ZeroFillNewImage()
257 uint64_t to_write = std::min(static_cast<uint64_t>(zeroes.size()), remaining); in ZeroFillNewImage()
263 remaining -= to_write; in ZeroFillNewImage()
/system/core/fastboot/
Dfastboot_driver.cpp331 uint64_t remaining = total_size - current_offset; in RunAndReadBuffer() local
332 uint64_t chunk_size = std::min(buf_size, remaining); in RunAndReadBuffer()
534 uint32_t remaining = size; in SendBuffer() local
537 while (remaining) { in SendBuffer()
539 size_t len = std::min(remaining, MAX_MAP_SIZE); in SendBuffer()
550 remaining -= len; in SendBuffer()
/system/core/fs_mgr/
DREADME.overlayfs.md59 a probe of the file-system types and space remaining.
113 - Space remaining threshold is hard coded. If 1% or more space
115 space remaining is problematic.
118 override content remaining. adb enable-verity to wipe.
Dfile_wait.cpp212 auto remaining = (std::chrono::steady_clock::now() - start_time_); in RemainingMs() local
213 auto elapsed = std::chrono::duration_cast<std::chrono::milliseconds>(remaining); in RemainingMs()
/system/vold/
DEncryptInplace.cpp185 uint64_t remaining = aux_info.len_blocks - FirstBlockInGroup(group); in NumBlocksInGroup() local
186 return std::min<uint64_t>(info.blocks_per_group, remaining); in NumBlocksInGroup()

123