Home
last modified time | relevance | path

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

12

/system/security/keystore/
Dkeystore_utils.cpp37 size_t remaining = size; in readFully() local
38 while (remaining > 0) { in readFully()
39 ssize_t n = TEMP_FAILURE_RETRY(read(fd, data, remaining)); in readFully()
41 return size - remaining; in readFully()
44 remaining -= n; in readFully()
50 size_t remaining = size; in writeFully() local
51 while (remaining > 0) { in writeFully()
52 ssize_t n = TEMP_FAILURE_RETRY(write(fd, data, remaining)); in writeFully()
55 return size - remaining; in writeFully()
58 remaining -= n; in writeFully()
/system/core/liblog/
Dlogd_reader.cpp280 size_t remaining = len; in logdGetStats() local
283 n = snprintf(cp, remaining, "getStatistics"); in logdGetStats()
284 n = min(n, remaining); in logdGetStats()
285 remaining -= n; in logdGetStats()
289 n = snprintf(cp, remaining, " %d", logger->logId); in logdGetStats()
290 n = min(n, remaining); in logdGetStats()
291 remaining -= n; in logdGetStats()
296 snprintf(cp, remaining, " pid=%u", logger_list->pid); in logdGetStats()
333 int e, ret, remaining, sock; in logdOpen() local
364 remaining = sizeof(buffer) - (cp - buffer); in logdOpen()
[all …]
/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.cpp101 size_t remaining; in copy_data() local
103 remaining = num_bytes; in copy_data()
104 while (remaining > 0) { in copy_data()
105 size_t num_to_read = remaining > COPY_BUF_SIZE ? COPY_BUF_SIZE : remaining; in copy_data()
129 remaining -= num_read; in copy_data()
/system/keymaster/key_blob_utils/
Docb.c799 unsigned i, k, tz, remaining; in process_ad() local
853 remaining = ((unsigned)ad_len) % (BPI * 16); in process_ad()
854 if (remaining) { in process_ad()
857 if (remaining >= 64) { in process_ad()
866 remaining -= 64; in process_ad()
870 if (remaining >= 32) { in process_ad()
875 remaining -= 32; in process_ad()
878 if (remaining >= 16) { in process_ad()
881 remaining = remaining - 16; in process_ad()
884 if (remaining) { in process_ad()
[all …]
/system/core/base/
Dfile.cpp274 size_t remaining = byte_count; in ReadFully() local
275 while (remaining > 0) { in ReadFully()
276 ssize_t n = TEMP_FAILURE_RETRY(read(fd, p, remaining)); in ReadFully()
279 remaining -= n; in ReadFully()
317 size_t remaining = byte_count; in WriteFully() local
318 while (remaining > 0) { in WriteFully()
319 ssize_t n = TEMP_FAILURE_RETRY(write(fd, p, remaining)); in WriteFully()
322 remaining -= n; in WriteFully()
/system/core/adb/
Dadb_utils.h113 inline bool ParseUint(T* result, std::string_view str, std::string_view* remaining = nullptr) {
136 if (remaining) {
137 *remaining = str.substr(it - str.begin());
/system/netd/resolv/
DDnsTlsSocket.cpp473 size_t remaining = buffer.size(); in sslRead() local
474 while (remaining > 0) { in sslRead()
475 int ret = SSL_read(mSsl.get(), buffer.limit() - remaining, remaining); in sslRead()
477 ALOGW_IF(remaining < buffer.size(), "SSL closed with %zu of %zu bytes remaining", in sslRead()
478 remaining, buffer.size()); in sslRead()
496 remaining -= ret; in sslRead()
/system/connectivity/wifilogd/tests/
Dos_unittest.cpp154 .WillOnce(Invoke([](const timespec* /* desired */, timespec* remaining) { in TEST_F() argument
155 *remaining = {0, 100}; in TEST_F()
166 .WillOnce(Invoke([](const timespec* /* desired */, timespec* remaining) { in TEST_F() argument
167 *remaining = {0, 100}; in TEST_F()
172 .WillOnce(Invoke([](const timespec* /* desired */, timespec* remaining) { in TEST_F() argument
173 *remaining = {0, 50}; in TEST_F()
184 .WillOnce(Invoke([](const timespec* /* desired */, timespec* remaining) { in TEST_F() argument
185 *remaining = {0, 0}; in TEST_F()
/system/extras/libfec/
Dfec_read.cpp478 size_t remaining = count; in raw_pread() local
480 while (remaining > 0) { in raw_pread()
481 ssize_t n = TEMP_FAILURE_RETRY(pread64(f->fd, p, remaining, offset)); in raw_pread()
488 remaining -= n; in raw_pread()
502 size_t remaining = count; in raw_pwrite() local
504 while (remaining > 0) { in raw_pwrite()
505 ssize_t n = TEMP_FAILURE_RETRY(pwrite64(f->fd, p, remaining, offset)); in raw_pwrite()
512 remaining -= n; in raw_pwrite()
/system/core/debuggerd/client/
Ddebuggerd_client.cpp91 auto remaining = time_left(); in debuggerd_trigger_dump() local
92 if (remaining < decltype(remaining)::zero()) { in debuggerd_trigger_dump()
98 populate_timeval(&timeout, remaining); in debuggerd_trigger_dump()
/system/core/fs_mgr/liblp/
Dimages.cpp329 uint64_t remaining = file_length; in AddPartitionImage() local
330 while (remaining) { in AddPartitionImage()
348 size_t read_size = remaining >= sizeof(buffer) ? sizeof(buffer) : size_t(remaining); in AddPartitionImage()
367 remaining -= read_size; in AddPartitionImage()
/system/extras/iotop/
Dtaskstats.cpp95 int remaining = genlmsg_attrlen(gnlh, 0); in ParseTaskStats() local
97 nla_for_each_attr(attr, attr, remaining, remaining) { in ParseTaskStats()
/system/nfc/src/nfc/tags/
Dce_t3t.cc632 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/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/tests/lib/testUtil/
DtestUtil.c264 struct timespec remaining; in testDelay() local
278 remaining = double2ts(amt - ts2double(&delta)); in testDelay()
279 (void) nanosleep(&remaining, NULL); in testDelay()
/system/extras/boottime_tools/bootio/
Dbootio_collector.cpp330 int remaining = samples + 1; in StartDataCollection() local
335 while (remaining > 0) { in StartDataCollection()
343 remaining--; in StartDataCollection()
344 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/update_engine/update_manager/
Devaluation_context.cc101 TimeDelta remaining = monotonic_deadline - clock_->GetMonotonicTime(); in RemainingTime() local
102 return std::max(remaining, TimeDelta()); in RemainingTime()
/system/gsid/
Dgsi_service.cpp804 uint64_t remaining = bytes; in CommitGsiChunk() local
805 while (remaining) { in CommitGsiChunk()
807 size_t max_to_read = std::min(system_block_size_, remaining); in CommitGsiChunk()
820 CHECK(static_cast<uint64_t>(rv) <= remaining); in CommitGsiChunk()
821 remaining -= rv; in CommitGsiChunk()
825 int new_progress = ((gsi_size_ - remaining) * 1000) / gsi_size_; in CommitGsiChunk()
827 UpdateProgress(STATUS_WORKING, gsi_size_ - remaining); in CommitGsiChunk()
/system/core/fastboot/
Dfastboot_driver.cpp470 uint32_t remaining = size; in SendBuffer() local
473 while (remaining) { in SendBuffer()
475 size_t len = std::min(remaining, MAX_MAP_SIZE); in SendBuffer()
486 remaining -= len; in SendBuffer()
/system/bt/gd/packet/
Dpacket_view_unittest.cc278 size_t remaining = all.NumBytesRemaining(); in TYPED_TEST() local
279 for (size_t n = remaining; n > 0; n--) { in TYPED_TEST()
280 ASSERT_EQ(remaining, all.NumBytesRemaining()); in TYPED_TEST()
282 remaining--; in TYPED_TEST()
/system/bt/vendor_libs/test_vendor_lib/packets/test/
Dpacket_view_test.cc275 size_t remaining = all.NumBytesRemaining(); in TYPED_TEST() local
276 for (size_t n = remaining; n > 0; n--) { in TYPED_TEST()
277 ASSERT_EQ(remaining, all.NumBytesRemaining()); in TYPED_TEST()
279 remaining--; in TYPED_TEST()
/system/core/fs_mgr/
DREADME.overlayfs.md16 little or no utility because of remaining space limitations or
70 a probe of the filesystem types and space remaining.
/system/bt/audio_hearing_aid_hw/src/
Daudio_hearing_aid_hw.cc372 size_t remaining = length; in ha_ctrl_send() local
378 OSI_NO_INTR(sent = send(common->ctrl_fd, buffer, remaining, MSG_NOSIGNAL)); in ha_ctrl_send()
379 if (sent == static_cast<ssize_t>(remaining)) { in ha_ctrl_send()
380 remaining = 0; in ha_ctrl_send()
385 remaining -= sent; in ha_ctrl_send()
400 if (remaining > 0) { in ha_ctrl_send()

12