Home
last modified time | relevance | path

Searched refs:bytes_to_write (Results 1 – 6 of 6) 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.cc118 size_t bytes_to_write = min(data.size() - bytes_written, chunk_size); in WriteAlignedExtents() local
120 bytes_to_write = min(data.size() - bytes_written, first_chunk_size); in WriteAlignedExtents()
122 EXPECT_TRUE(direct_writer.Write(&data[bytes_written], bytes_to_write)); in WriteAlignedExtents()
123 bytes_written += bytes_to_write; in WriteAlignedExtents()
159 size_t bytes_to_write = in TEST_F() local
161 EXPECT_TRUE(direct_writer.Write(data.data(), bytes_to_write)); in TEST_F()
162 bytes_written += bytes_to_write; in TEST_F()
/system/core/adb/client/
Dmain.cpp186 const DWORD bytes_to_write = arraysize(ack) - 1; in adb_server_main() local
188 if (!WriteFile(ack_reply_handle, ack, bytes_to_write, &written, NULL)) { in adb_server_main()
192 if (written != bytes_to_write) { in adb_server_main()
193 LOG(FATAL) << "cannot write " << bytes_to_write << " bytes of ACK: only wrote " in adb_server_main()
/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.cpp279 auto bytes_to_write = std::min(len - bytes_written_total, kFbFfsNumBufs * kFbFfsBufSize); in Write() local
280 auto bytes_written_now = handle_->write(handle_.get(), data, bytes_to_write); in Write()
286 if (static_cast<size_t>(bytes_written_now) < bytes_to_write) { in Write()
/system/extras/simpleperf/
Drecord_file_writer.cpp147 uint32_t bytes_to_write = std::min(RECORD_SIZE_LIMIT - Record::header_size(), left_bytes); in WriteRecord() local
148 header.size = bytes_to_write + Record::header_size(); in WriteRecord()
154 if (!WriteData(p, bytes_to_write)) { in WriteRecord()
157 p += bytes_to_write; in WriteRecord()
158 left_bytes -= bytes_to_write; in WriteRecord()