Searched refs:read_length (Results 1 – 8 of 8) sorted by relevance
/system/core/adb/ |
D | shell_service_protocol.cpp | 45 size_t read_length = std::min(bytes_left_, data_capacity()); in Read() local 46 if (read_length && !ReadFdExactly(fd_, data(), read_length)) { in Read() 50 bytes_left_ -= read_length; in Read() 51 data_length_ = read_length; in Read()
|
/system/core/fastboot/device/ |
D | tcp_client.cpp | 81 size_t read_length = len - total_read; in Read() local 82 if (read_length > message_bytes_left_) { in Read() 83 read_length = message_bytes_left_; in Read() 86 socket_->ReceiveAll(reinterpret_cast<char*>(data) + total_read, read_length, 0); in Read()
|
/system/update_engine/scripts/ |
D | blockdiff.py | 54 read_length = min(max_length, block_size) 55 data1 = file1.read(read_length) 56 data2 = file2.read(read_length)
|
/system/keymaster/android_keymaster/ |
D | serializable.cpp | 138 bool Buffer::read(uint8_t* dest, size_t read_length) { in read() argument 139 if (available_read() < read_length) in read() 141 memcpy(dest, buffer_.get() + read_position_, read_length); in read() 142 read_position_ += read_length; in read()
|
/system/update_engine/scripts/update_payload/ |
D | applier.py | 76 read_length = min(max_length, block_length) 77 data = file_obj.read(read_length) 115 read_length = min(max_length, ex.num_blocks * block_size) 118 data.fromfile(file_obj, read_length) 120 max_length -= read_length
|
/system/core/libunwindstack/ |
D | Memory.cpp | 361 uint64_t read_length = std::min(static_cast<uint64_t>(size), length_ - read_offset); in Read() local 367 return memory_->Read(read_addr, dst, read_length); in Read() 425 size_t read_length = std::min(size, static_cast<size_t>(end_ - addr)); in Read() local 426 memcpy(dst, &data_[addr - start_], read_length); in Read() 427 return read_length; in Read()
|
/system/keymaster/include/keymaster/ |
D | serializable.h | 232 bool read(uint8_t* dest, size_t read_length);
|
/system/core/debuggerd/ |
D | debuggerd_test.cpp | 275 constexpr size_t read_length = PAGE_SIZE; in ConsumeFd() local 281 ssize_t rc = TEMP_FAILURE_RETRY(read(fd.get(), &result[offset], read_length)); in ConsumeFd()
|