Home
last modified time | relevance | path

Searched refs:xfer (Results 1 – 2 of 2) sorted by relevance

/packages/modules/adb/client/
Dusb_linux.cpp457 int xfer = len; in usb_read() local
459 D("[ usb read %d fd = %d], path=%s", xfer, h->fd, h->path.c_str()); in usb_read()
460 n = usb_bulk_read(h, data, xfer); in usb_read()
461 D("[ usb read %d ] = %d, path=%s", xfer, n, h->path.c_str()); in usb_read()
Dcommandline.cpp837 unsigned xfer = (size > CHUNK_SIZE) ? CHUNK_SIZE : size; in adb_sideload_legacy() local
838 if (!ReadFdExactly(in_fd, buf, xfer)) { in adb_sideload_legacy()
842 if (!WriteFdExactly(out_fd, buf, xfer)) { in adb_sideload_legacy()
848 size -= xfer; in adb_sideload_legacy()
921 int64_t xfer = 0; in adb_sideload_install() local
933 static_cast<double>(xfer) / (sb.st_size ? sb.st_size : 1), in adb_sideload_install()
970 xfer += to_write; in adb_sideload_install()
978 int percent = static_cast<int>(xfer * 47LL / (sb.st_size ? sb.st_size : 1)); in adb_sideload_install()