Home
last modified time | relevance | path

Searched refs:bytes_to_write (Results 1 – 5 of 5) sorted by relevance

/system/update_engine/payload_consumer/
Dextent_writer.cc42 size_t bytes_to_write = in Write() local
45 TEST_AND_RETURN_FALSE(bytes_to_write > 0); in Write()
53 utils::WriteAll(fd_, c_bytes + bytes_written, bytes_to_write)); in Write()
55 bytes_written += bytes_to_write; in Write()
56 extent_bytes_written_ += bytes_to_write; in Write()
57 if (bytes_remaining_cur_extent == bytes_to_write) { in Write()
Dextent_writer_unittest.cc115 size_t bytes_to_write = min(data.size() - bytes_written, chunk_size); in WriteAlignedExtents() local
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()
155 size_t bytes_to_write = in TEST_F() local
157 EXPECT_TRUE(direct_writer.Write(data.data(), bytes_to_write)); in TEST_F()
158 bytes_written += bytes_to_write; in TEST_F()
/system/core/fs_mgr/libfiemap/
Dsplit_fiemap_writer.cpp259 uint64_t bytes_to_write = std::min(file_bytes_left, bytes_remaining); in Write() local
260 if (!android::base::WriteFully(cursor_fd_, data_ptr, bytes_to_write)) { in Write()
264 data_ptr += bytes_to_write; in Write()
265 bytes_remaining -= bytes_to_write; in Write()
266 cursor_file_pos_ += bytes_to_write; in Write()
/system/core/fastboot/device/
Dusb_client.cpp285 auto bytes_to_write = std::min(len - bytes_written_total, kFbFfsNumBufs * kFbFfsBufSize); in Write() local
286 auto bytes_written_now = handle_->write(handle_.get(), char_data, bytes_to_write); in Write()
292 if (static_cast<size_t>(bytes_written_now) < bytes_to_write) { in Write()
/system/extras/simpleperf/
Drecord_file_writer.cpp150 uint32_t bytes_to_write = std::min(RECORD_SIZE_LIMIT - Record::header_size(), left_bytes); in WriteRecord() local
151 header.size = bytes_to_write + Record::header_size(); in WriteRecord()
157 if (!WriteData(p, bytes_to_write)) { in WriteRecord()
160 p += bytes_to_write; in WriteRecord()
161 left_bytes -= bytes_to_write; in WriteRecord()