Searched refs:bytes_to_read (Results 1 – 11 of 11) sorted by relevance
/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.cc | 186 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/ |
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 | 288 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/ |
D | usb_client.cpp | 257 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/ |
D | procmeminfo.cpp | 241 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/ |
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/core/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/extras/simpleperf/ |
D | record_file_reader.cpp | 268 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/ |
D | hearing_aid.cc | 1327 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()
|