Searched refs:read_length (Results 1 – 7 of 7) 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/update_engine/scripts/ |
D | blockdiff.py | 53 read_length = min(max_length, block_size) 54 data1 = file1.read(read_length) 55 data2 = file2.read(read_length)
|
/system/keymaster/android_keymaster/ |
D | serializable.cpp | 130 bool Buffer::read(uint8_t* dest, size_t read_length) { in read() argument 131 if (available_read() < read_length) in read() 133 memcpy(dest, buffer_.get() + read_position_, read_length); in read() 134 read_position_ += read_length; in read()
|
/system/core/libunwindstack/ |
D | Memory.cpp | 318 uint64_t read_length = std::min(static_cast<uint64_t>(size), length_ - read_offset); in Read() local 324 return memory_->Read(read_addr, dst, read_length); in Read() 382 size_t read_length = std::min(size, static_cast<size_t>(end_ - addr)); in Read() local 383 memcpy(dst, &data_[addr - start_], read_length); in Read() 384 return read_length; in Read()
|
/system/update_engine/scripts/update_payload/ |
D | applier.py | 78 read_length = min(max_length, block_length) 79 data = file_obj.read(read_length) 117 read_length = min(max_length, ex.num_blocks * block_size) 121 data.extend(itertools.repeat('\0', read_length)) 124 data.fromfile(file_obj, read_length) 126 max_length -= read_length
|
/system/keymaster/include/keymaster/ |
D | serializable.h | 232 bool read(uint8_t* dest, size_t read_length);
|
/system/core/debuggerd/ |
D | debuggerd_test.cpp | 265 constexpr size_t read_length = PAGE_SIZE; in ConsumeFd() local 271 ssize_t rc = TEMP_FAILURE_RETRY(read(fd.get(), &result[offset], read_length)); in ConsumeFd()
|