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.cc186 size_t bytes_to_read = in ScheduleRead() local
188 if (!bytes_to_read) { in ScheduleRead()
195 bytes_to_read, in ScheduleRead()
/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.cc288 off_t bytes_to_read = sizeof(buf); in Read() local
289 if (size > 0 && bytes_to_read > size) { in Read()
290 bytes_to_read = size; in Read()
292 size_t nbytes = fread(buf, 1, bytes_to_read, fp); in Read()
/system/core/fastboot/device/
Dusb_client.cpp257 auto bytes_to_read = std::min(len - bytes_read_total, kFbFfsNumBufs * kFbFfsBufSize); in Read() local
259 handle_->read(handle_.get(), char_data, bytes_to_read, true /* allow_partial */); in Read()
265 if (static_cast<size_t>(bytes_read_now) < bytes_to_read) { in Read()
/system/memory/libmeminfo/
Dprocmeminfo.cpp241 size_t bytes_to_read = sizeof(uint64_t) * nr_pages; in PageMap() local
243 ssize_t bytes_read = pread64(pagemap_fd, pagemap->data(), bytes_to_read, start_addr); in PageMap()
247 } else if (static_cast<size_t>(bytes_read) != bytes_to_read) { in PageMap()
249 << ": read bytes " << bytes_read << " expected bytes " << bytes_to_read; in PageMap()
/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/core/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/extras/simpleperf/
Drecord_file_reader.cpp268 size_t bytes_to_read = header.size - Record::header_size(); in ReadRecord() local
269 buf.resize(cur_size + bytes_to_read); in ReadRecord()
270 if (!Read(&buf[cur_size], bytes_to_read)) { in ReadRecord()
273 cur_size += bytes_to_read; in ReadRecord()
/system/bt/bta/hearing_aid/
Dhearing_aid.cc1327 uint32_t bytes_to_read = 0; in GapCallback() local
1328 GAP_GetRxQueueCnt(gap_handle, &bytes_to_read); in GapCallback()
1329 std::vector<uint8_t> buffer(bytes_to_read); in GapCallback()