Home
last modified time | relevance | path

Searched refs:bytes_written (Results 1 – 25 of 25) 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, count - bytes_written); in Write()
40 bytes_written += rc; in Write()
42 CHECK_EQ(bytes_written, count); in Write()
43 return bytes_written == count; in Write()
Dextent_writer.cc36 size_t bytes_written = 0; in Write() local
37 while (bytes_written < count) { in Write()
43 static_cast<size_t>(min(static_cast<uint64_t>(count - bytes_written), in Write()
53 utils::WriteAll(fd_, c_bytes + bytes_written, bytes_to_write)); in Write()
55 bytes_written += bytes_to_write; in Write()
Dextent_writer_unittest.cc113 size_t bytes_written = 0; in WriteAlignedExtents() local
114 while (bytes_written < data.size()) { in WriteAlignedExtents()
115 size_t bytes_to_write = min(data.size() - bytes_written, chunk_size); in WriteAlignedExtents()
116 if (bytes_written == 0) { in WriteAlignedExtents()
117 bytes_to_write = min(data.size() - bytes_written, first_chunk_size); in WriteAlignedExtents()
119 EXPECT_TRUE(direct_writer.Write(&data[bytes_written], bytes_to_write)); in WriteAlignedExtents()
120 bytes_written += bytes_to_write; in WriteAlignedExtents()
153 size_t bytes_written = 0; in TEST_F() local
154 while (bytes_written < (block_count * kBlockSize)) { in TEST_F()
156 min(block_count * kBlockSize - bytes_written, data.size()); in TEST_F()
[all …]
Dsnapshot_extent_writer.cc111 auto bytes_written = ConsumeWithBuffer(data, count); in Write() local
112 TEST_AND_RETURN_FALSE(bytes_written > 0); in Write()
113 data += bytes_written; in Write()
114 count -= bytes_written; in Write()
Dpartition_writer.cc127 bool Write(const void* buf, size_t count, size_t* bytes_written) override { in Write() argument
129 *bytes_written = count; in Write()
/system/update_engine/common/
Dutils.cc153 ssize_t bytes_written = 0; in WriteAll() local
154 while (bytes_written < static_cast<ssize_t>(count)) { in WriteAll()
155 ssize_t rc = write(fd, c_buf + bytes_written, count - bytes_written); in WriteAll()
157 bytes_written += rc; in WriteAll()
164 size_t bytes_written = 0; in PWriteAll() local
166 while (bytes_written < count) { in PWriteAll()
169 c_buf + bytes_written, in PWriteAll()
170 count - bytes_written, in PWriteAll()
171 offset + bytes_written); in PWriteAll()
175 << " bytes_written=" << bytes_written << " count=" << count in PWriteAll()
[all …]
/system/core/fs_mgr/libfiemap/
Dfiemap_writer_test.cpp346 size_t bytes_written = 0; in TEST_F() local
347 while (bytes_written < kSize) { in TEST_F()
348 size_t to_write = std::min(kSize - bytes_written, (size_t)1000); in TEST_F()
349 char* data = reinterpret_cast<char*>(buffer.get()) + bytes_written; in TEST_F()
351 bytes_written += to_write; in TEST_F()
373 size_t bytes_written = 0; in TEST_F() local
374 while (bytes_written < kSize) { in TEST_F()
375 size_t to_write = std::min(kSize - bytes_written, kChunkSize); in TEST_F()
376 char* data = reinterpret_cast<char*>(buffer.get()) + bytes_written; in TEST_F()
378 bytes_written += to_write; in TEST_F()
/system/unwinding/libunwindstack/tools/
Dunwind_for_offline.cpp156 size_t bytes_written = fwrite(buffer.data(), 1, bytes, output.get()); in CreateElfFromMemory() local
157 if (bytes_written != bytes) { in CreateElfFromMemory()
158 printf("Failed to write all data to file: bytes read %zu, written %zu\n", bytes, bytes_written); in CreateElfFromMemory()
189 size_t bytes_written = fwrite(buffer.data(), 1, bytes, output.get()); in CopyElfFromFile() local
190 if (bytes_written != bytes) { in CopyElfFromFile()
192 bytes_written); in CopyElfFromFile()
/system/gatekeeper/
Dgatekeeper_messages.cpp111 uint32_t bytes_written = 0; in Serialize() local
120 bytes_written += sizeof(*header); in Serialize()
125 bytes_written += sizeof(retry_timeout); in Serialize()
130 bytes_written += serialized_size; in Serialize()
132 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.c135 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()
327 (int)(rw_bytes->bytes_written / (1024 * 1024))); in print_bytes()
331 (int)(rw_bytes->bytes_written / (1024 * 1024))); in print_bytes()
Dioshark_bench_mmap.c134 rw_bytes->bytes_written += len; in mmap_do_io()
/system/update_engine/cros/
Ddownload_action_chromeos.cc158 ssize_t bytes_written = write(p2p_sharing_fd_, data, length); in WriteToP2PFile() local
159 if (bytes_written != static_cast<ssize_t>(length)) { in WriteToP2PFile()
/system/bt/audio_hal_interface/
Dle_audio_software.cc273 void LogBytesWritten(size_t bytes_written) override { in LogBytesWritten() argument
274 transport_->LogBytesProcessed(bytes_written); in LogBytesWritten()
Dclient_interface.h177 virtual void LogBytesWritten(size_t bytes_written) = 0;
Dclient_interface_unittest.cc204 void LogBytesWritten(size_t bytes_written __unused) override{}; in LogBytesWritten()
/system/chre/platform/slpi/see/
Dsns_qmi_client.c237 req_msg->payload_len = stream.bytes_written; in sns_client_send()
Dsee_helper.cc353 *msgLen = stream.bytes_written; in encodeSnsRemoteProcSensorConfig()
/system/bt/gd/hal/
Dhci_hal_host.cc375 auto bytes_written = write(this->sock_fd_, (void*)packet_to_send.data(), packet_to_send.size()); in send_packet_ready() local
377 if (bytes_written == -1) { in send_packet_ready()