/system/logging/liblog/ |
D | logd_reader.cpp | 238 size_t remaining = len; in android_logger_get_statistics() local 241 n = snprintf(cp, remaining, "getStatistics"); in android_logger_get_statistics() 242 n = MIN(n, remaining); in android_logger_get_statistics() 243 remaining -= n; in android_logger_get_statistics() 248 n = snprintf(cp, remaining, " %zu", log_id); in android_logger_get_statistics() 249 n = MIN(n, remaining); in android_logger_get_statistics() 250 remaining -= n; in android_logger_get_statistics() 256 snprintf(cp, remaining, " pid=%u", logger_list->pid); in android_logger_get_statistics() 282 int ret, remaining, sock; in logdOpen() local 303 remaining = sizeof(buffer) - (cp - buffer); in logdOpen() [all …]
|
/system/security/identity/ |
D | Util.cpp | 67 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/bt/gd/cert/ |
D | event_stream.py | 191 remaining = static_remaining_time_delta(end_time) 192 … logging.debug("Waiting for event iteration (%fs remaining)" % (remaining.total_seconds())) 194 current_event = self.event_queue.get(timeout=remaining.total_seconds()) 206 remaining = end_time - datetime.now() 207 if remaining < timedelta(milliseconds=0): 208 remaining = timedelta(milliseconds=0) 209 return remaining 220 remaining = static_remaining_time_delta(end_time) 221 logging.debug("Waiting for event (%fs remaining)" % (remaining.total_seconds())) 223 current_event = istream.get_event_queue().get(timeout=remaining.total_seconds()) [all …]
|
D | behavior.py | 95 remaining = static_remaining_time_delta(end_time) 98 self._invoked_condition.wait(remaining.total_seconds())
|
/system/security/keystore/ |
D | keystore_utils.cpp | 40 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/ |
D | tinysndfile.c | 35 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/bt/gd/rust/link/src/acl/ |
D | fragment.rs | 19 remaining: usize, field 26 Self { buffer: None, remaining: 0, out } in new() 52 self.remaining = full_size - (payload.len() - L2CAP_BASIC_FRAME_HEADER_LEN); in on_packet() 53 if self.remaining > 0 { in on_packet() 64 …Some(_) if self.remaining < payload.len() => warn!("remote sent unexpected L2CAP PDU - dropping en… in on_packet() 66 self.remaining -= payload.len(); in on_packet() 68 if self.remaining == 0 { in on_packet()
|
/system/media/audio_utils/include/audio_utils/ |
D | BiquadFilter.h | 259 out + offset, in + offset, frames, stride, remaining, \ 278 size_t remaining = channelCount - offset; in biquad_filter_neon() local 281 switch (remaining) { in biquad_filter_neon() 283 if (remaining >= 16) { in biquad_filter_neon() 284 remaining &= ~15; in biquad_filter_neon() 286 out + offset, in + offset, frames, stride, remaining, in biquad_filter_neon() 288 offset += remaining; in biquad_filter_neon() 315 switch (remaining) { in biquad_filter_neon() 317 if (remaining >= 8) { in biquad_filter_neon() 318 remaining &= ~7; in biquad_filter_neon() [all …]
|
/system/extras/boot_control_copy/ |
D | boot_control_copy.cpp | 92 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/keymaster/key_blob_utils/ |
D | ocb.c | 810 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/core/fs_mgr/libsnapshot/ |
D | snapshot_reader.cpp | 140 *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()
|
D | power_test.cpp | 192 uint64_t remaining = s.st_size - written; in Create() local 193 size_t bytes = (size_t)std::min((uint64_t)sizeof(chunk), remaining); in Create() 293 uint64_t remaining = s1.st_size - written; in SetupImages() local 294 size_t bytes = (size_t)std::min((uint64_t)sizeof(chunk), remaining); in SetupImages() 514 uint64_t remaining = canonical_size; in Check() local 516 while (remaining) { in Check() 517 size_t bytes = (size_t)std::min((uint64_t)kBlockSize, remaining); in Check() 539 remaining -= bytes; in Check()
|
D | test_helpers.cpp | 182 uint64_t remaining = reader->BlockDevSize(); in HashSnapshot() local 184 while (remaining) { in HashSnapshot() 186 static_cast<size_t>(std::min(remaining, static_cast<uint64_t>(sizeof(buffer)))); in HashSnapshot() 196 remaining -= static_cast<size_t>(read); in HashSnapshot()
|
/system/gsid/ |
D | partition_installer.cpp | 198 uint64_t remaining = bytes; in CommitGsiChunk() local 199 while (remaining) { in CommitGsiChunk() 200 size_t max_to_read = std::min(static_cast<uint64_t>(kBlockSize), remaining); in CommitGsiChunk() 213 CHECK(static_cast<uint64_t>(rv) <= remaining); in CommitGsiChunk() 214 remaining -= rv; in CommitGsiChunk() 218 int new_progress = ((size_ - remaining) * 1000) / size_; in CommitGsiChunk() 220 service_->UpdateProgress(IGsiService::STATUS_WORKING, size_ - remaining); in CommitGsiChunk()
|
/system/libbase/ |
D | file.cpp | 312 size_t remaining = byte_count; in ReadFully() local 313 while (remaining > 0) { in ReadFully() 314 ssize_t n = TEMP_FAILURE_RETRY(read(fd.get(), p, remaining)); in ReadFully() 317 remaining -= n; in ReadFully() 355 size_t remaining = byte_count; in WriteFully() local 356 while (remaining > 0) { in WriteFully() 357 ssize_t n = TEMP_FAILURE_RETRY(write(fd.get(), p, remaining)); in WriteFully() 360 remaining -= n; in WriteFully()
|
/system/extras/libfec/ |
D | fec_read.cpp | 475 size_t remaining = count; in raw_pread() local 477 while (remaining > 0) { in raw_pread() 478 ssize_t n = TEMP_FAILURE_RETRY(pread64(fd, p, remaining, offset)); in raw_pread() 485 remaining -= n; in raw_pread() 497 size_t remaining = count; in raw_pwrite() local 499 while (remaining > 0) { in raw_pwrite() 500 ssize_t n = TEMP_FAILURE_RETRY(pwrite64(fd, p, remaining, offset)); in raw_pwrite() 507 remaining -= n; in raw_pwrite()
|
/system/core/debuggerd/client/ |
D | debuggerd_client.cpp | 137 auto remaining = time_left(); in debuggerd_trigger_dump() local 138 if (remaining < decltype(remaining)::zero()) { in debuggerd_trigger_dump() 144 populate_timeval(&timeout, remaining); in debuggerd_trigger_dump()
|
/system/extras/iotop/ |
D | taskstats.cpp | 91 int remaining = genlmsg_attrlen(gnlh, 0); in ParseTaskStats() local 93 nla_for_each_attr(attr, attr, remaining, remaining) { in ParseTaskStats()
|
/system/nfc/src/nfc/tags/ |
D | ce_t3t.cc | 632 uint16_t block_list_start_offset, remaining; in ce_t3t_data_cback() local 709 remaining = p_msg->len - block_list_start_offset; in ce_t3t_data_cback() 713 if (remaining < 2) { in ce_t3t_data_cback() 736 (remaining < 3)) { in ce_t3t_data_cback() 749 remaining -= entry_len; in ce_t3t_data_cback() 758 if (remaining) { in ce_t3t_data_cback() 762 (unsigned int)remaining); in ce_t3t_data_cback() 769 if (remaining < p_cb->cur_cmd.num_blocks * T3T_MSG_BLOCKSIZE) { in ce_t3t_data_cback()
|
/system/core/fs_mgr/liblp/ |
D | images.cpp | 363 uint64_t remaining = file_length; in AddPartitionImage() local 364 while (remaining) { in AddPartitionImage() 382 size_t read_size = remaining >= sizeof(buffer) ? sizeof(buffer) : size_t(remaining); in AddPartitionImage() 401 remaining -= read_size; in AddPartitionImage()
|
/system/extras/tests/lib/testUtil/ |
D | testUtil.c | 265 struct timespec remaining; in testDelay() local 279 remaining = double2ts(amt - ts2double(&delta)); in testDelay() 280 (void) nanosleep(&remaining, NULL); in testDelay()
|
/system/core/fs_mgr/libfiemap/ |
D | image_manager.cpp | 246 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/extras/taskstats/ |
D | taskstats.c | 74 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/ |
D | bootio_collector.cpp | 328 int remaining = samples + 1; in StartDataCollection() local 333 while (remaining > 0) { in StartDataCollection() 341 remaining--; in StartDataCollection() 342 if (remaining == 0) { in StartDataCollection()
|
/system/extras/tests/workloads/ |
D | pwrtest.sh | 172 ((remaining=totalSamples-garbage)) 173 if [ $remaining -gt 0 ]; then 174 tail -$remaining $collectOutput > $powerOutput
|