Home
last modified time | relevance | path

Searched refs:bytes_to_read (Results 1 – 11 of 11) sorted by relevance

/system/update_engine/payload_consumer/
Dextent_reader.cc76 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()
Dfilesystem_verifier_action_unittest.cc160 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/
Dsnapshot_reader.cpp150 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/
Dfile_fetcher.cc116 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()
Dhash_calculator.cc56 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()
Dutils.cc293 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/
Dusb_client.cpp261 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/
Dota_extractor.cc81 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/
Dpayload_generation_config_android.cc99 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/
DDwarfOp.cpp1627 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/
Dprocmeminfo.cpp379 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()