Home
last modified time | relevance | path

Searched refs:to_write (Results 1 – 6 of 6) sorted by relevance

/system/update_engine/payload_consumer/
Dmtd_file_descriptor.cc246 uint64_t to_write = volume_size_ - nr_written_; in Close() local
247 if (to_write > sizeof(buf)) { in Close()
248 to_write = sizeof(buf); in Close()
250 ssize_t nr_chunk = EintrSafeFileDescriptor::Write(buf, to_write); in Close()
/system/core/fs_mgr/libfiemap_writer/
Dfiemap_writer_test.cpp342 size_t to_write = std::min(kSize - bytes_written, (size_t)1000); in TEST_F() local
344 ASSERT_TRUE(ptr->Write(data, to_write)); in TEST_F()
345 bytes_written += to_write; in TEST_F()
369 size_t to_write = std::min(kSize - bytes_written, kChunkSize); in TEST_F() local
371 ASSERT_TRUE(ptr->Write(data, to_write)); in TEST_F()
372 bytes_written += to_write; in TEST_F()
/system/core/libsparse/
Doutput_file.cpp267 int to_write; in callback_file_skip() local
271 to_write = min(off, (int64_t)INT_MAX); in callback_file_skip()
272 ret = outc->write(outc->priv, nullptr, to_write); in callback_file_skip()
276 off -= to_write; in callback_file_skip()
/system/core/fastboot/
Dfastboot_driver.cpp540 size_t to_write = std::min(TRANSPORT_CHUNK_SIZE - tpbuf.size(), len); in SparseWriteCallback() local
543 tpbuf.insert(tpbuf.end(), data, data + to_write); in SparseWriteCallback()
553 total += to_write; in SparseWriteCallback()
/system/core/adb/client/
Dcommandline.cpp928 size_t to_write = SIDELOAD_HOST_BLOCK_SIZE; in adb_sideload_install() local
930 to_write = sb.st_size - offset; in adb_sideload_install()
937 if (!ReadFdExactly(package_fd, buf, to_write)) { in adb_sideload_install()
942 if (!WriteFdExactly(device_fd, buf, to_write)) { in adb_sideload_install()
947 xfer += to_write; in adb_sideload_install()
/system/update_engine/payload_generator/
Ddelta_diff_utils_unittest.cc59 uint64_t to_write = in WriteExtents() local
62 TEST_AND_RETURN_FALSE(fwrite(data.data() + offset, 1, to_write, fp.get()) == in WriteExtents()
63 to_write); in WriteExtents()