Home
last modified time | relevance | path

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

/system/core/adb/
Dshell_service_protocol.cpp45 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/
Dblockdiff.py53 read_length = min(max_length, block_size)
54 data1 = file1.read(read_length)
55 data2 = file2.read(read_length)
/system/keymaster/android_keymaster/
Dserializable.cpp130 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/
DMemory.cpp318 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/
Dapplier.py78 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/
Dserializable.h232 bool read(uint8_t* dest, size_t read_length);
/system/core/debuggerd/
Ddebuggerd_test.cpp265 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()