Home
last modified time | relevance | path

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

/system/core/fastboot/
Dprotocol.cpp278 int to_write; in fb_download_data_sparse_write() local
282 to_write = std::min(TRANSPORT_BUF_SIZE - transport_buf_len, len); in fb_download_data_sparse_write()
284 memcpy(transport_buf + transport_buf_len, ptr, to_write); in fb_download_data_sparse_write()
285 transport_buf_len += to_write; in fb_download_data_sparse_write()
286 ptr += to_write; in fb_download_data_sparse_write()
287 len -= to_write; in fb_download_data_sparse_write()
303 to_write = round_down(len, TRANSPORT_BUF_SIZE); in fb_download_data_sparse_write()
304 r = _command_write_data(transport, ptr, to_write); in fb_download_data_sparse_write()
305 if (r != to_write) { in fb_download_data_sparse_write()
308 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.c283 int to_write; in callback_file_skip() local
287 to_write = min(off, (int64_t)INT_MAX); in callback_file_skip()
288 ret = outc->write(outc->priv, NULL, to_write); in callback_file_skip()
292 off -= to_write; in callback_file_skip()
/system/update_engine/payload_generator/
Ddelta_diff_utils_unittest.cc59 uint64_t to_write = in WriteExtents() local
63 fwrite(data.data() + offset, 1, to_write, fp.get()) == to_write); in WriteExtents()
/system/core/adb/
Dcommandline.cpp895 size_t to_write = SIDELOAD_HOST_BLOCK_SIZE; in adb_sideload_host() local
897 to_write = sb.st_size - offset; in adb_sideload_host()
904 if (!ReadFdExactly(package_fd, buf, to_write)) { in adb_sideload_host()
909 if (!WriteFdExactly(device_fd, buf, to_write)) { in adb_sideload_host()
914 xfer += to_write; in adb_sideload_host()