Home
last modified time | relevance | path

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

12

/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 …]
Dblock_extent_writer.cc115 const auto bytes_written = ConsumeWithBuffer(data, count); in Write() local
116 TEST_AND_RETURN_FALSE(bytes_written > 0); in Write()
117 data += bytes_written; in Write()
118 count -= bytes_written; in Write()
Dinstall_operation_executor.cc65 bool Write(const void* buf, size_t count, size_t* bytes_written) override { in Write() argument
67 *bytes_written = count; in Write()
/system/update_engine/lz4diff/
Dlz4diff_compress.cc95 const uint64_t bytes_written = ret; in TryCompressBlob() local
97 TEST_LE(bytes_written, block.compressed_length); in TryCompressBlob()
98 if (bytes_written < block.compressed_length) { in TryCompressBlob()
100 const auto padding = block.compressed_length - bytes_written; in TryCompressBlob()
102 block_buffer.data() + padding, block_buffer.data(), bytes_written); in TryCompressBlob()
106 std::fill(block_buffer.data() + bytes_written, in TryCompressBlob()
/system/update_engine/common/
Dutils.cc154 ssize_t bytes_written = 0; in WriteAll() local
155 while (bytes_written < static_cast<ssize_t>(count)) { in WriteAll()
156 ssize_t rc = write(fd, c_buf + bytes_written, count - bytes_written); in WriteAll()
158 bytes_written += rc; in WriteAll()
165 size_t bytes_written = 0; in PWriteAll() local
167 while (bytes_written < count) { in PWriteAll()
170 c_buf + bytes_written, in PWriteAll()
171 count - bytes_written, in PWriteAll()
172 offset + bytes_written); in PWriteAll()
176 << " bytes_written=" << bytes_written << " count=" << count in PWriteAll()
[all …]
/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/core/fs_mgr/libfiemap/
Dfiemap_writer_test.cpp381 size_t bytes_written = 0; in TEST_F() local
382 while (bytes_written < kSize) { in TEST_F()
383 size_t to_write = std::min(kSize - bytes_written, (size_t)1000); in TEST_F()
384 char* data = reinterpret_cast<char*>(buffer.get()) + bytes_written; in TEST_F()
386 bytes_written += to_write; in TEST_F()
408 size_t bytes_written = 0; in TEST_F() local
409 while (bytes_written < kSize) { in TEST_F()
410 size_t to_write = std::min(kSize - bytes_written, kChunkSize); in TEST_F()
411 char* data = reinterpret_cast<char*>(buffer.get()) + bytes_written; in TEST_F()
413 bytes_written += to_write; in TEST_F()
/system/unwinding/libunwindstack/tools/
Dunwind_for_offline.cpp167 size_t bytes_written = fwrite(buffer.data(), 1, bytes, output.get()); in CopyElf() local
168 if (bytes_written != bytes) { in CopyElf()
170 bytes_written); in CopyElf()
205 size_t bytes_written = fwrite(buffer.data(), 1, bytes, output.get()); in CreateElfFromMemory() local
206 if (bytes_written != bytes) { in CreateElfFromMemory()
208 bytes_written); in CreateElfFromMemory()
/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/update_engine/liburing_cpp/tests/
DBasicTests.cpp148 size_t bytes_written = 0; in WriteTestData() local
150 while (bytes_written < size) { in WriteTestData()
153 bytes_written += ret; in WriteTestData()
/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/chre/apps/nearby/third_party/nanopb/
Dpb_encode.h41 size_t bytes_written; /* Number of bytes written so far. */ member
/system/chre/apps/nearby/location/lbs/contexthub/nanoapps/nearby/
Dapp_manager.cc385 *encode_arg->msg_size = stream->bytes_written; in EncodeFilterResultCallback()
412 CHRE_ASSERT(stream->bytes_written == 0); in EncodeFilterResults()
435 CHRE_ASSERT(stream->bytes_written == 0); in EncodeFilterResult()
446 *msg_size = stream->bytes_written; in EncodeFilterResult()
/system/logging/logd/
Dlogd_test.cpp53 ssize_t bytes_written = TEMP_FAILURE_RETRY(write(sock, command, command_length)); in write_command() local
54 if (bytes_written != static_cast<ssize_t>(command_length)) { in write_command()
55 if (bytes_written == -1) { in write_command()
59 command, bytes_written, command_length); in write_command()
/system/nvram/messages/
Dmessage_codec.cpp40 return EncodeData(&writer) ? counting_stream.bytes_written() : 0; in GetSize()
/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/core/libsparse/
Doutput_file.cpp326 uint64_t bytes_written = 0; in write_fd_chunk_range() local
328 while (bytes_written < len) { in write_fd_chunk_range()
329 size_t mmap_size = std::min(static_cast<uint64_t>(kMaxMmapSize), len - bytes_written); in write_fd_chunk_range()
338 bytes_written += mmap_size; in write_fd_chunk_range()
/system/libbase/
Dfile.cpp356 DWORD bytes_written; in pwrite() local
362 static_cast<DWORD>(byte_count), &bytes_written, &overlapped)) { in pwrite()
367 return static_cast<ssize_t>(bytes_written); in pwrite()
/system/chre/platform/slpi/see/
Dsns_qmi_client.c237 req_msg->payload_len = stream.bytes_written; in sns_client_send()

12