Home
last modified time | relevance | path

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

/system/update_engine/common/
Dhash_calculator.cc57 off_t bytes_to_read = buffer.size(); in UpdateFile() local
58 if (length >= 0 && bytes_to_read > length - bytes_processed) { in UpdateFile()
59 bytes_to_read = length - bytes_processed; in UpdateFile()
61 ssize_t rc = HANDLE_EINTR(read(fd, buffer.data(), bytes_to_read)); in UpdateFile()
Dutils.cc332 off_t bytes_to_read = sizeof(buf); in Read() local
333 if (size > 0 && bytes_to_read > size) { in Read()
334 bytes_to_read = size; in Read()
336 size_t nbytes = fread(buf, 1, bytes_to_read, fp); in Read()
/system/bt/osi/test/
Deager_reader_test.cpp106 size_t bytes_to_read = (length - i) > 28 ? 28 : (length - i); in expect_data_multibyte() local
107 size_t bytes_read = eager_reader_read(reader, buffer, bytes_to_read); in expect_data_multibyte()
108 EXPECT_LE(bytes_read, bytes_to_read); in expect_data_multibyte()
/system/update_engine/payload_consumer/
Dfilesystem_verifier_action.cc183 size_t bytes_to_read = std::min(static_cast<int64_t>(buffer_.size()), in ScheduleRead() local
185 if (!bytes_to_read) { in ScheduleRead()
192 bytes_to_read, in ScheduleRead()
Ddelta_performer.cc1184 ssize_t bytes_to_read = blocks_to_read * block_size_; in PerformSourceBsdiffOperation() local
1187 utils::PReadAll(source_fd_, buf.data(), bytes_to_read, in PerformSourceBsdiffOperation()
1190 TEST_AND_RETURN_FALSE(bytes_read_this_iteration == bytes_to_read); in PerformSourceBsdiffOperation()
1191 TEST_AND_RETURN_FALSE(source_hasher.Update(buf.data(), bytes_to_read)); in PerformSourceBsdiffOperation()
/system/core/adb/
Dusb_linux_client.cpp309 int bytes_to_read = len < 4096 ? len : 4096; in usb_adb_read() local
310 int n = unix_read(h->fd, data, bytes_to_read); in usb_adb_read()
311 if (n != bytes_to_read) { in usb_adb_read()