Home
last modified time | relevance | path

Searched refs:to_write (Results 1 – 5 of 5) 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.cpp257 uint64_t to_write = std::min(static_cast<uint64_t>(zeroes.size()), remaining); in ZeroFillNewImage() local
259 static_cast<size_t>(to_write))) { in ZeroFillNewImage()
263 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.cpp594 size_t to_write = std::min(TRANSPORT_CHUNK_SIZE - tpbuf.size(), len); in SparseWriteCallback() local
597 tpbuf.insert(tpbuf.end(), data, data + to_write); in SparseWriteCallback()
607 total += to_write; in SparseWriteCallback()