Home
last modified time | relevance | path

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

/system/core/fastboot/
Dprotocol.cpp197 int to_write; in fb_download_data_sparse_write() local
201 to_write = std::min(TRANSPORT_BUF_SIZE - transport_buf_len, len); in fb_download_data_sparse_write()
203 memcpy(transport_buf + transport_buf_len, ptr, to_write); in fb_download_data_sparse_write()
204 transport_buf_len += to_write; in fb_download_data_sparse_write()
205 ptr += to_write; in fb_download_data_sparse_write()
206 len -= to_write; in fb_download_data_sparse_write()
222 to_write = round_down(len, TRANSPORT_BUF_SIZE); in fb_download_data_sparse_write()
223 r = _command_data(transport, ptr, to_write); in fb_download_data_sparse_write()
224 if (r != to_write) { in fb_download_data_sparse_write()
227 ptr += to_write; in fb_download_data_sparse_write()
[all …]
/system/update_engine/payload_consumer/
Dmtd_file_descriptor.cc248 uint64_t to_write = volume_size_ - nr_written_; in Close() local
249 if (to_write > sizeof(buf)) { in Close()
250 to_write = sizeof(buf); in Close()
252 ssize_t nr_chunk = EintrSafeFileDescriptor::Write(buf, to_write); in Close()
/system/core/libsparse/
Doutput_file.c276 int to_write; in callback_file_skip() local
280 to_write = min(off, (int64_t)INT_MAX); in callback_file_skip()
281 ret = outc->write(outc->priv, NULL, to_write); in callback_file_skip()
285 off -= to_write; in callback_file_skip()
/system/update_engine/payload_generator/
Ddelta_diff_utils_unittest.cc59 uint64_t to_write = std::min(extent.num_blocks() * block_size, in WriteExtents() local
62 fwrite(data.data() + offset, 1, to_write, fp.get()) == to_write); in WriteExtents()
/system/core/adb/
Dcommandline.cpp942 size_t to_write = SIDELOAD_HOST_BLOCK_SIZE; in adb_sideload_host() local
944 to_write = sz - offset; in adb_sideload_host()
947 if(!WriteFdExactly(fd, start, to_write)) { in adb_sideload_host()
953 xfer += to_write; in adb_sideload_host()