/system/update_engine/payload_consumer/ |
D | extent_reader.cc | 76 uint64_t bytes_to_read = in Read() local 83 bytes_to_read, in Read() 87 static_cast<ssize_t>(bytes_to_read)); in Read() 89 bytes_read += bytes_to_read; in Read() 90 cur_extent_bytes_read_ += bytes_to_read; in Read() 91 offset_ += bytes_to_read; in Read()
|
D | filesystem_verifier_action_unittest.cc | 160 auto bytes_to_read = HASH_TREE_START_OFFSET; in SetHashWithVerity() local 162 while (bytes_to_read > 0) { in SetHashWithVerity() 164 buffer.data(), std::min<size_t>(buffer.size(), bytes_to_read)); in SetHashWithVerity() 166 << "offset: " << offset << " bytes to read: " << bytes_to_read in SetHashWithVerity() 169 bytes_to_read -= bytes_read; in SetHashWithVerity()
|
/system/core/fs_mgr/libsnapshot/libsnapshot_cow/ |
D | snapshot_reader.cpp | 150 size_t bytes_to_read = std::min(static_cast<size_t>(block_size_), buffer_size); in ReadBlock() local 154 CHECK(start_offset + bytes_to_read <= block_size_); in ReadBlock() 178 if (!android::base::ReadFullyAtOffset(fd, buffer, bytes_to_read, offset)) { in ReadBlock() 184 memset(buffer, 0, bytes_to_read); in ReadBlock() 199 std::memcpy(buffer, (char*)temp_buffer + block_offset + start_offset, bytes_to_read); in ReadBlock() 214 std::string data(bytes_to_read, '\0'); in ReadBlock() 221 if (cow_->ReadData(op, buffer, bytes_to_read, start_offset) < bytes_to_read) { in ReadBlock() 227 for (size_t i = 0; i < bytes_to_read; i++) { in ReadBlock() 237 return bytes_to_read; in ReadBlock()
|
/system/update_engine/common/ |
D | file_fetcher.cc | 116 size_t bytes_to_read = buffer_.size(); in ScheduleRead() local 118 bytes_to_read = std::min(static_cast<uint64_t>(bytes_to_read), in ScheduleRead() 122 if (!bytes_to_read) { in ScheduleRead() 129 bytes_to_read, in ScheduleRead()
|
D | hash_calculator.cc | 56 off_t bytes_to_read = buffer.size(); in UpdateFile() local 57 if (length >= 0 && bytes_to_read > length - bytes_processed) { in UpdateFile() 58 bytes_to_read = length - bytes_processed; in UpdateFile() 60 ssize_t rc = HANDLE_EINTR(read(fd, buffer.data(), bytes_to_read)); in UpdateFile()
|
D | utils.cc | 293 off_t bytes_to_read = sizeof(buf); in Read() local 294 if (size > 0 && bytes_to_read > size) { in Read() 295 bytes_to_read = size; in Read() 297 size_t nbytes = fread(buf, 1, bytes_to_read, fp); in Read()
|
/system/core/fastboot/device/ |
D | usb_client.cpp | 261 auto bytes_to_read = std::min(len - bytes_read_total, kFbFfsNumBufs * kFbFfsBufSize); in Read() local 263 handle_->read(handle_.get(), char_data, bytes_to_read, true /* allow_partial */); in Read() 270 if (static_cast<size_t>(bytes_read_now) < bytes_to_read) { in Read()
|
/system/update_engine/aosp/ |
D | ota_extractor.cc | 81 const auto bytes_to_read = in WriteVerity() local 85 utils::ReadAll(fd, buffer.data(), bytes_to_read, offset, &bytes_read)); in WriteVerity() 86 CHECK_EQ(bytes_read, bytes_to_read) in WriteVerity()
|
/system/update_engine/payload_generator/ |
D | payload_generation_config_android.cc | 99 size_t bytes_to_read = std::min(kBufferSize, data_end - offset); in VerifyVerityConfig() local 101 utils::ReadFileChunk(part.path, offset, bytes_to_read, &buffer)); in VerifyVerityConfig()
|
/system/unwinding/libunwindstack/ |
D | DwarfOp.cpp | 1627 AddressType bytes_to_read = OperandAt(0); in op_deref_size() local 1628 if (bytes_to_read > sizeof(AddressType) || bytes_to_read == 0) { in op_deref_size() 1635 if (!regular_memory()->ReadFully(addr, &value, bytes_to_read)) { in op_deref_size()
|
/system/memory/libmeminfo/ |
D | procmeminfo.cpp | 379 size_t bytes_to_read = sizeof(uint64_t) * nr_pages; in PageMap() local 381 ssize_t bytes_read = pread64(pagemap_fd, pagemap->data(), bytes_to_read, start_addr); in PageMap() 385 } else if (static_cast<size_t>(bytes_read) != bytes_to_read) { in PageMap() 387 << ": read bytes " << bytes_read << " expected bytes " << bytes_to_read; in PageMap()
|