Searched refs:to_write (Results 1 – 6 of 6) sorted by relevance
/system/update_engine/payload_consumer/ |
D | mtd_file_descriptor.cc | 246 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/ |
D | fiemap_writer_test.cpp | 342 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/ |
D | output_file.cpp | 267 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/ |
D | fastboot_driver.cpp | 540 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/ |
D | commandline.cpp | 928 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/ |
D | delta_diff_utils_unittest.cc | 59 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()
|