Home
last modified time | relevance | path

Searched refs:bytes_left (Results 1 – 6 of 6) 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/chre/apps/test/common/chre_cross_validator_wifi/src/
Dwifi_scan_result.cc66 return pb_read(stream, strPtr, stream->bytes_left); in decodeString()
/system/core/init/
Dproperty_service.cpp359 size_t bytes_left = size; in RecvFully() local
361 while (*timeout_ms > 0 && bytes_left > 0) { in RecvFully()
366 int result = TEMP_FAILURE_RETRY(recv(socket_, data, bytes_left, MSG_DONTWAIT)); in RecvFully()
372 bytes_left -= result; in RecvFully()
376 if (bytes_left != 0) { in RecvFully()
380 return bytes_left == 0; in RecvFully()
/system/unwinding/libunwindstack/
DMemory.cpp246 size_t bytes_left = size_ - static_cast<size_t>(addr); in Read() local
248 size_t actual_len = std::min(bytes_left, size); in Read()
317 size_t bytes_left = size_ - static_cast<size_t>(addr); in Read() local
319 size_t actual_len = std::min(bytes_left, size); in Read()
/system/apex/apexd/
Dapexd.cpp392 size_t bytes_left = device_size; in ReadVerityDevice() local
393 while (bytes_left > 0) { in ReadVerityDevice()
394 size_t to_read = std::min(bytes_left, kBufSize); in ReadVerityDevice()
398 bytes_left -= to_read; in ReadVerityDevice()
/system/chre/platform/slpi/see/
Dsee_helper.cc405 data->bufLen = stream->bytes_left; in decodeStringField()
408 bool success = pb_read(stream, nullptr /* buf */, stream->bytes_left); in decodeStringField()