Home
last modified time | relevance | path

Searched refs:bytes_written (Results 1 – 18 of 18) sorted by relevance

/system/update_engine/payload_consumer/
Dfile_writer.cc35 size_t bytes_written = 0; in Write() local
36 while (bytes_written < count) { in Write()
37 ssize_t rc = write(fd_, char_bytes + bytes_written, in Write()
38 count - bytes_written); in Write()
41 bytes_written += rc; in Write()
43 CHECK_EQ(bytes_written, count); in Write()
44 return bytes_written == count; in Write()
Dextent_writer.cc36 size_t bytes_written = 0; in Write() local
37 while (count - bytes_written > 0) { in Write()
44 static_cast<size_t>(min(static_cast<uint64_t>(count - bytes_written), in Write()
55 utils::WriteAll(fd_, c_bytes + bytes_written, bytes_to_write)); in Write()
57 bytes_written += bytes_to_write; in Write()
Dextent_writer_unittest.cc138 size_t bytes_written = 0; in WriteAlignedExtents() local
139 while (bytes_written < data.size()) { in WriteAlignedExtents()
140 size_t bytes_to_write = min(data.size() - bytes_written, chunk_size); in WriteAlignedExtents()
141 if (bytes_written == 0) { in WriteAlignedExtents()
142 bytes_to_write = min(data.size() - bytes_written, first_chunk_size); in WriteAlignedExtents()
144 EXPECT_TRUE(direct_writer.Write(&data[bytes_written], bytes_to_write)); in WriteAlignedExtents()
145 bytes_written += bytes_to_write; in WriteAlignedExtents()
239 size_t bytes_written = 0; in TEST_F() local
240 while (bytes_written < (block_count * kBlockSize)) { in TEST_F()
241 size_t bytes_to_write = min(block_count * kBlockSize - bytes_written, in TEST_F()
[all …]
Ddownload_action.cc157 ssize_t bytes_written = write(p2p_sharing_fd_, data, length); in WriteToP2PFile() local
158 if (bytes_written != static_cast<ssize_t>(length)) { in WriteToP2PFile()
Ddelta_performer.cc1020 ssize_t bytes_written = 0; in PerformMoveOperation() local
1026 &buf[bytes_written], in PerformMoveOperation()
1029 bytes_written += bytes; in PerformMoveOperation()
1031 DCHECK_EQ(bytes_written, bytes_read); in PerformMoveOperation()
1032 DCHECK_EQ(bytes_written, static_cast<ssize_t>(buf.size())); in PerformMoveOperation()
/system/update_engine/common/
Dutils.cc229 ssize_t bytes_written = 0; in WriteAll() local
230 while (bytes_written < static_cast<ssize_t>(count)) { in WriteAll()
231 ssize_t rc = write(fd, c_buf + bytes_written, count - bytes_written); in WriteAll()
233 bytes_written += rc; in WriteAll()
240 size_t bytes_written = 0; in PWriteAll() local
242 while (bytes_written < count) { in PWriteAll()
244 ssize_t rc = pwrite(fd, c_buf + bytes_written, count - bytes_written, in PWriteAll()
245 offset + bytes_written); in PWriteAll()
249 << " bytes_written=" << bytes_written in PWriteAll()
253 bytes_written += rc; in PWriteAll()
[all …]
/system/core/adb/
Dsocket_test.cpp108 size_t bytes_written; member
115 arg->bytes_written = 0; in CloseWithPacketThreadFunc()
119 arg->bytes_written += p->len; in CloseWithPacketThreadFunc()
181 std::vector<char> buf(arg.bytes_written); in TEST_F()
182 ASSERT_NE(0u, arg.bytes_written); in TEST_F()
Dadb.cpp625 const size_t bytes_written = fwrite(buf, 1, bytes_read, stream.get()); in _redirect_pipe_thread() local
626 if (bytes_written != bytes_read) { in _redirect_pipe_thread()
627 fprintf(stderr, "adb: error: only wrote %zu of %lu bytes to %s\n", bytes_written, in _redirect_pipe_thread()
/system/gatekeeper/
Dgatekeeper_messages.cpp80 uint32_t bytes_written = 0; in Serialize() local
90 bytes_written += sizeof(*header); in Serialize()
93 bytes_written += sizeof(retry_timeout); in Serialize()
101 bytes_written += sizeof(*header) + nonErrorSerializedSize(); in Serialize()
104 return bytes_written; in Serialize()
/system/nvram/messages/tests/
Dio_test.cpp303 EXPECT_EQ(0U, buf.bytes_written()); in TEST()
307 EXPECT_EQ(15U, buf.bytes_written()); in TEST()
311 EXPECT_EQ(16U, buf.bytes_written()); in TEST()
315 EXPECT_EQ(1040U, buf.bytes_written()); in TEST()
/system/nvram/messages/include/nvram/messages/
Dio.h158 size_t bytes_written() const { return pos_ - data_; } in bytes_written() function
171 size_t bytes_written() const { in bytes_written() function
/system/core/trusty/storage/lib/
Dstorage.c242 size_t bytes_written = 0; in storage_write() local
262 bytes_written += chunk; in storage_write()
265 return bytes_written; in storage_write()
/system/nvram/messages/
Dmessage_codec.cpp40 return EncodeData(&writer) ? counting_stream.bytes_written() : 0; in GetSize()
Dnvram_messages.cpp188 *size = stream.bytes_written(); in Encode()
/system/extras/ioshark/
Dioshark_bench.c134 dest->bytes_written += delta->bytes_written; in update_byte_counts()
259 rw_bytes->bytes_written += file_op->prw_len; in do_one_io()
289 rw_bytes->bytes_written += file_op->rw_len; in do_one_io()
Dioshark_bench.h64 u_int64_t bytes_written; member
Dioshark_bench_subr.c291 rw_bytes->bytes_written += n; in create_file()
328 (int)(rw_bytes->bytes_written / (1024 * 1024))); in print_bytes()
332 (int)(rw_bytes->bytes_written / (1024 * 1024))); in print_bytes()
Dioshark_bench_mmap.c134 rw_bytes->bytes_written += len; in mmap_do_io()