Home
last modified time | relevance | path

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

/system/core/fs_mgr/libfiemap/
Dfiemap_writer_test.cpp348 size_t to_write = std::min(kSize - bytes_written, (size_t)1000); in TEST_F() local
350 ASSERT_TRUE(ptr->Write(data, to_write)); in TEST_F()
351 bytes_written += to_write; in TEST_F()
375 size_t to_write = std::min(kSize - bytes_written, kChunkSize); in TEST_F() local
377 ASSERT_TRUE(ptr->Write(data, to_write)); in TEST_F()
378 bytes_written += to_write; in TEST_F()
Dimage_manager.cpp243 uint64_t to_write = std::min(static_cast<uint64_t>(zeroes.size()), remaining); in ZeroFillNewImage() local
245 static_cast<size_t>(to_write))) { in ZeroFillNewImage()
249 remaining -= to_write; in ZeroFillNewImage()
/system/core/libsparse/
Doutput_file.cpp261 int to_write; in callback_file_skip() local
265 to_write = std::min(off, (int64_t)INT_MAX); in callback_file_skip()
266 ret = outc->write(outc->priv, nullptr, to_write); in callback_file_skip()
270 off -= to_write; in callback_file_skip()
/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()
/system/core/fastboot/
Dfastboot_driver.cpp549 size_t to_write = std::min(TRANSPORT_CHUNK_SIZE - tpbuf.size(), len); in SparseWriteCallback() local
552 tpbuf.insert(tpbuf.end(), data, data + to_write); in SparseWriteCallback()
562 total += to_write; in SparseWriteCallback()
/system/core/adb/client/
Dcommandline.cpp950 size_t to_write = SIDELOAD_HOST_BLOCK_SIZE; in adb_sideload_install() local
952 to_write = sb.st_size - offset; in adb_sideload_install()
959 if (!ReadFdExactly(package_fd, buf, to_write)) { in adb_sideload_install()
964 if (!WriteFdExactly(device_fd, buf, to_write)) { in adb_sideload_install()
969 xfer += to_write; in adb_sideload_install()