Home
last modified time | relevance | path

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

12

/system/core/liblog/
Dlogd_reader.cpp220 size_t remaining = len; in android_logger_get_statistics() local
223 n = snprintf(cp, remaining, "getStatistics"); in android_logger_get_statistics()
224 n = MIN(n, remaining); in android_logger_get_statistics()
225 remaining -= n; in android_logger_get_statistics()
230 n = snprintf(cp, remaining, " %zu", log_id); in android_logger_get_statistics()
231 n = MIN(n, remaining); in android_logger_get_statistics()
232 remaining -= n; in android_logger_get_statistics()
238 snprintf(cp, remaining, " pid=%u", logger_list->pid); in android_logger_get_statistics()
264 int ret, remaining, sock; in logdOpen() local
285 remaining = sizeof(buffer) - (cp - buffer); in logdOpen()
[all …]
/system/core/trusty/confirmationui/
DTrustyApp.cpp38 uint32_t remaining; member
62 .remaining = uint32_t(oend - obegin), in TrustyRpc()
64 uint32_t body_size = std::min(kPayloadSize, header.remaining); in TrustyRpc()
89 if (header.type != PacketType::ACK || header.remaining != oend - obegin) { in TrustyRpc()
95 ssize_t remaining = 0; in TrustyRpc() local
100 .remaining = 0, in TrustyRpc()
126 uint32_t body_size = std::min(kPayloadSize, header.remaining); in TrustyRpc()
132 remaining = header.remaining - body_size; in TrustyRpc()
134 } while (remaining); in TrustyRpc()
/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/bt/gd/cert/
Devent_stream.py191 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 …]
Dbehavior.py95 remaining = static_remaining_time_delta(end_time)
98 self._invoked_condition.wait(remaining.total_seconds())
/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.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/core/adb/
Dadb_utils.h115 inline bool ParseUint(T* result, std::string_view str, std::string_view* remaining = nullptr) {
121 if (res.ptr != str.end() && !remaining) {
124 if (remaining) {
125 *remaining = std::string_view(res.ptr, str.end() - res.ptr);
/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.cpp204 uint64_t remaining = bytes; in CommitGsiChunk() local
205 while (remaining) { in CommitGsiChunk()
206 size_t max_to_read = std::min(static_cast<uint64_t>(kBlockSize), remaining); in CommitGsiChunk()
219 CHECK(static_cast<uint64_t>(rv) <= remaining); in CommitGsiChunk()
220 remaining -= rv; in CommitGsiChunk()
224 int new_progress = ((size_ - remaining) * 1000) / size_; in CommitGsiChunk()
226 service_->UpdateProgress(IGsiService::STATUS_WORKING, size_ - remaining); in CommitGsiChunk()
/system/libbase/
Dfile.cpp312 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/
Dfec_read.cpp475 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/fs_mgr/libsnapshot/
Dpower_test.cpp192 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()
/system/connectivity/wifilogd/tests/
Dos_unittest.cpp155 .WillOnce(Invoke([](const timespec* /* desired */, timespec* remaining) { in TEST_F() argument
156 *remaining = {0, 100}; in TEST_F()
167 .WillOnce(Invoke([](const timespec* /* desired */, timespec* remaining) { in TEST_F() argument
168 *remaining = {0, 100}; in TEST_F()
173 .WillOnce(Invoke([](const timespec* /* desired */, timespec* remaining) { in TEST_F() argument
174 *remaining = {0, 50}; in TEST_F()
185 .WillOnce(Invoke([](const timespec* /* desired */, timespec* remaining) { in TEST_F() argument
186 *remaining = {0, 0}; in TEST_F()
/system/core/debuggerd/client/
Ddebuggerd_client.cpp137 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/
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/core/fs_mgr/liblp/
Dimages.cpp363 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/core/fs_mgr/libfiemap/
Dimage_manager.cpp232 uint64_t remaining; in ZeroFillNewImage() local
234 remaining = bytes; in ZeroFillNewImage()
236 remaining = get_block_device_size(device->fd()); in ZeroFillNewImage()
237 if (!remaining) { in ZeroFillNewImage()
242 while (remaining) { in ZeroFillNewImage()
243 uint64_t to_write = std::min(static_cast<uint64_t>(zeroes.size()), remaining); in ZeroFillNewImage()
249 remaining -= to_write; in ZeroFillNewImage()
/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/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/core/adb/fastdeploy/deployagent/src/com/android/fastdeploy/
DApkArchive.java124 if (buf.remaining() < CD_ENTRY_HEADER_SIZE_BYTES) { in findCDRecord()
127 + " bytes, available: " + buf.remaining() + "bytes."); in findCDRecord()
/system/extras/boottime_tools/bootio/
Dbootio_collector.cpp328 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/
Dpwrtest.sh172 ((remaining=totalSamples-garbage))
173 if [ $remaining -gt 0 ]; then
174 tail -$remaining $collectOutput > $powerOutput

12