Searched refs:bytes_read (Results 1 - 25 of 43) sorted by relevance

12

/system/bt/vendor_libs/linux/interface/
H A Dhci_packetizer.cc58 size_t bytes_read = TEMP_FAILURE_RETRY( local
61 CHECK(bytes_read > 0);
62 bytes_read_ += bytes_read;
76 size_t bytes_read = TEMP_FAILURE_RETRY(read( local
80 CHECK(bytes_read > 0);
81 bytes_remaining_ -= bytes_read;
82 bytes_read_ += bytes_read;
H A Dh4_protocol.cc97 size_t bytes_read = TEMP_FAILURE_RETRY(read(fd, tpkt.data(), max_plen)); local
99 hci_packetizer_.CbHciPacket(tpkt.data()+1, bytes_read-1);
/system/update_engine/payload_generator/
H A Dblob_file_writer_unittest.cc49 ssize_t bytes_read; local
54 &bytes_read));
55 EXPECT_EQ(bytes_read, blob_size);
H A Dblock_mapping.cc49 ssize_t bytes_read = 0; local
50 if (!utils::PReadAll(fd, blob.data(), block_size_, byte_offset, &bytes_read))
52 if (static_cast<size_t>(bytes_read) != block_size_)
121 ssize_t bytes_read = 0; local
122 if (!utils::PReadAll(fd, blob.data(), block_size, byte_offset, &bytes_read))
124 if (static_cast<size_t>(bytes_read) != block_size)
H A Dfull_update_generator.cc97 ssize_t bytes_read = -1; local
102 &bytes_read));
103 TEST_AND_RETURN_FALSE(bytes_read == static_cast<ssize_t>(size_));
H A Dab_generator_unittest.cc156 ssize_t bytes_read; local
161 &bytes_read));
162 ASSERT_EQ(bytes_read, static_cast<ssize_t>(first_op.data_length()));
189 &bytes_read));
190 ASSERT_EQ(bytes_read, static_cast<ssize_t>(second_op.data_length()));
323 ssize_t bytes_read; local
328 &bytes_read));
329 ASSERT_EQ(static_cast<ssize_t>(new_op.data_length()), bytes_read); local
H A Dgenerate_delta_main.cc226 ssize_t bytes_read; local
227 CHECK(utils::PReadAll(fd, buf.data(), buf.size(), offset, &bytes_read));
228 if (bytes_read == 0)
230 CHECK_EQ(performer.Write(buf.data(), bytes_read), bytes_read);
/system/core/libbacktrace/
H A DBacktracePtrace.cpp77 size_t bytes_read = 0;
89 bytes_read += copy_bytes;
95 return bytes_read;
100 bytes_read += sizeof(word_t);
106 return bytes_read;
109 bytes_read += left_over;
111 return bytes_read;
/system/core/libunwindstack/
H A DMemory.cpp39 uint64_t bytes_read = 0; local
40 while (bytes_read < max_read) {
50 bytes_read++;
158 size_t bytes_read = 0; local
170 bytes_read += copy_bytes;
180 bytes_read += sizeof(long);
189 bytes_read += left_over;
213 ssize_t bytes_read = process_vm_readv(getpid(), &local_io, 1, &remote_io, 1, 0); local
214 if (bytes_read == -1) {
217 return static_cast<size_t>(bytes_read)
[all...]
/system/update_engine/common/
H A Dfile_fetcher.cc133 void FileFetcher::OnReadDoneCallback(size_t bytes_read) { argument
135 if (bytes_read == 0) {
140 bytes_copied_ += bytes_read;
142 delegate_->ReceivedBytes(this, buffer_.data(), bytes_read);
H A Dutils.cc201 size_t bytes_read = 0; local
203 while (bytes_read < count) {
204 ssize_t rc = HANDLE_EINTR(read(fd, c_buf + bytes_read, count - bytes_read));
210 *out_bytes_read = bytes_read;
220 bytes_read += rc;
223 *out_bytes_read = bytes_read;
281 ssize_t bytes_read = 0; local
282 while (bytes_read < static_cast<ssize_t>(count)) {
283 ssize_t rc = pread(fd, c_buf + bytes_read, coun
300 ssize_t bytes_read = 0; local
1055 ssize_t bytes_read = 0; local
[all...]
H A Dsubprocess.cc119 size_t bytes_read; local
121 bytes_read = 0;
124 record->stdout_fd, buf, arraysize(buf), &bytes_read, &eof);
125 record->stdout.append(buf, bytes_read);
133 } while (bytes_read);
H A Dfile_fetcher.h87 void OnReadDoneCallback(size_t bytes_read);
/system/core/fastboot/
H A Dtcp.cpp146 ssize_t bytes_read = socket_->ReceiveAll(data, length, 0); local
147 if (bytes_read == -1) {
150 message_bytes_left_ -= bytes_read;
152 return bytes_read;
/system/nvram/hal/
H A Dfake_nvram.cpp117 ssize_t bytes_read = local
119 if (bytes_read == 0) {
123 if (bytes_read < 0) {
129 if (!nvram::Decode(command_buffer, bytes_read, &request)) {
/system/update_engine/payload_consumer/
H A Dfilesystem_verifier_action.h77 void OnReadDoneCallback(size_t bytes_read);
H A Dfilesystem_verifier_action.cc156 void FilesystemVerifierAction::OnReadDoneCallback(size_t bytes_read) { argument
157 if (bytes_read == 0) {
160 remaining_size_ -= bytes_read;
162 if (!hasher_->Update(buffer_.data(), bytes_read)) {
H A Dpostinstall_runner_action.cc221 size_t bytes_read; local
223 bytes_read = 0;
226 utils::ReadAll(progress_fd_, buf, arraysize(buf), &bytes_read, &eof);
227 progress_buffer_.append(buf, bytes_read);
245 } while (bytes_read);
/system/extras/tests/directiotest/
H A Ddirectiotest.c74 size_t bytes_read = 0; local
79 ret = read(fd, (char *)buf + bytes_read, count - bytes_read);
87 bytes_read += ret;
88 } while (bytes_read < count);
90 return bytes_read;
/system/media/brillo/audio/audioservice/
H A Daudio_daemon.cpp150 int bytes_read = local
152 if (bytes_read != sizeof(event)) {
H A Daudio_device_handler.cpp112 int bytes_read = file.ReadAtCurrentPos(reinterpret_cast<char*>(&state), 1); local
114 if (bytes_read == 0) {
/system/nvram/hal/tests/
H A Dscoped_nvram_device.cc203 uint64_t bytes_read = 0; local
206 authorization_value.size(), StringToMutableBytePtr(data), &bytes_read);
210 data->resize(bytes_read);
/system/core/trusty/storage/lib/
H A Dstorage.c205 size_t bytes_read = 0; local
219 bytes_read += rc;
222 return bytes_read;
/system/extras/ioshark/
H A Dioshark_bench.h63 u_int64_t bytes_read; member in struct:rw_bytes_s
H A Dioshark_bench_mmap.c118 rw_bytes->bytes_read += len;
149 rw_bytes->bytes_read += len;

Completed in 309 milliseconds

12