Home
last modified time | relevance | path

Searched refs:bytes_left (Results 1 – 7 of 7) sorted by relevance

/system/nfc/utils/test/ringbuffer_fuzzer/
Dringbuffer_fuzzer.cpp25 size_t bytes_left = Size - i - 1; in LLVMFuzzerTestOneInput() local
36 if (bytes_left < 2) { in LLVMFuzzerTestOneInput()
40 size_t bytes_to_insert = std::min(bytes_left - 1, (size_t)Data[i++]); in LLVMFuzzerTestOneInput()
46 if (bytes_left < 2) { in LLVMFuzzerTestOneInput()
62 if (bytes_left < 1) { in LLVMFuzzerTestOneInput()
73 if (bytes_left < 1) { in LLVMFuzzerTestOneInput()
/system/core/libunwindstack/
DMemory.cpp223 size_t bytes_left = size_ - static_cast<size_t>(addr); in Read() local
225 size_t actual_len = std::min(bytes_left, size); in Read()
294 size_t bytes_left = size_ - static_cast<size_t>(addr); in Read() local
296 size_t actual_len = std::min(bytes_left, size); in Read()
/system/core/init/
Dproperty_service.cpp351 size_t bytes_left = size; in RecvFully() local
353 while (*timeout_ms > 0 && bytes_left > 0) { in RecvFully()
358 int result = TEMP_FAILURE_RETRY(recv(socket_, data, bytes_left, MSG_DONTWAIT)); in RecvFully()
364 bytes_left -= result; in RecvFully()
368 if (bytes_left != 0) { in RecvFully()
372 return bytes_left == 0; in RecvFully()
/system/core/adb/client/
Dcommandline.cpp1115 ssize_t bytes_left = sizeof(buf); in adb_root() local
1116 while (bytes_left > 0) { in adb_root()
1117 ssize_t bytes_read = adb_read(fd, cur, bytes_left); in adb_root()
1125 bytes_left -= bytes_read; in adb_root()
1128 if (bytes_left == 0) { in adb_root()
1133 fwrite(buf, 1, sizeof(buf) - bytes_left, stdout); in adb_root()
/system/core/adb/daemon/
Dusb.cpp586 size_t bytes_left = incoming_header_->data_length - incoming_payload_.size(); in ProcessRead() local
588 if (block->payload.size() > bytes_left) { in ProcessRead()
/system/apex/apexd/
Dapexd.cpp336 size_t bytes_left = device_size; in readVerityDevice() local
337 while (bytes_left > 0) { in readVerityDevice()
338 size_t to_read = std::min(bytes_left, kBufSize); in readVerityDevice()
342 bytes_left -= to_read; in readVerityDevice()
/system/chre/platform/slpi/see/
Dsee_helper.cc404 data->bufLen = stream->bytes_left; in decodeStringField()
407 bool success = pb_read(stream, nullptr /* buf */, stream->bytes_left); in decodeStringField()