Lines Matching refs:fn
453 int adb_download_buffer(const char *service, const char *fn, const void* data, int sz, in adb_download_buffer() argument
489 printf("sending: '%s' %4d%% \r", fn, (int)(100LL - ((100LL * sz) / (total)))); in adb_download_buffer()
514 int adb_download(const char *service, const char *fn, unsigned progress) in adb_download() argument
519 data = load_file(fn, &sz); in adb_download()
521 fprintf(stderr,"* cannot read '%s' *\n", fn); in adb_download()
525 int status = adb_download_buffer(service, fn, data, sz, progress); in adb_download()
551 int adb_sideload_host(const char* fn) { in adb_sideload_host() argument
557 printf("loading: '%s'", fn); in adb_sideload_host()
559 data = load_file(fn, &sz); in adb_sideload_host()
562 fprintf(stderr, "* cannot read '%s' *\n", fn); in adb_sideload_host()
573 status = adb_download_buffer("sideload", fn, data, sz, 1); in adb_sideload_host()
625 printf("\rserving: '%s' (~%d%%) ", fn, percent); in adb_sideload_host()
631 printf("\rTotal xfer: %.2fx%*s\n", (double)xfer / (sz ? sz : 1), (int)strlen(fn)+10, ""); in adb_sideload_host()