Lines Matching refs:serial
50 static int install_app(transport_type t, const char* serial, int argc, const char** argv);
51 static int install_multiple_app(transport_type t, const char* serial, int argc, const char** argv);
52 static int uninstall_app(transport_type t, const char* serial, int argc, const char** argv);
435 static std::string format_host_command(const char* command, transport_type type, const char* serial… in format_host_command() argument
436 if (serial) { in format_host_command()
437 return android::base::StringPrintf("host-serial:%s:%s", serial, command); in format_host_command()
677 static bool wait_for_device(const char* service, transport_type t, const char* serial) { in wait_for_device() argument
690 std::string cmd = format_host_command(service, t, serial); in wait_for_device()
701 static int send_shell_command(transport_type transport_type, const char* serial, in send_shell_command() argument
712 wait_for_device("wait-for-device", transport_type, serial); in send_shell_command()
723 static int logcat(transport_type transport, const char* serial, int argc, const char** argv) { in logcat() argument
739 return send_shell_command(transport, serial, cmd); in logcat()
959 const char* serial = NULL; in adb_commandline() local
973 serial = getenv("ANDROID_SERIAL"); in adb_commandline()
1016 serial = argv[0] + 2; in adb_commandline()
1019 serial = argv[1]; in adb_commandline()
1071 adb_set_transport(ttype, serial); in adb_commandline()
1094 if (!wait_for_device(service, ttype, serial)) { in adb_commandline()
1193 wait_for_device("wait-for-device", ttype, serial); in adb_commandline()
1269 return send_shell_command(ttype, serial, "shell:bugreport"); in adb_commandline()
1307 if (serial) { in adb_commandline()
1309 serial); in adb_commandline()
1389 return install_app(ttype, serial, argc, argv); in adb_commandline()
1393 return install_multiple_app(ttype, serial, argc, argv); in adb_commandline()
1397 return uninstall_app(ttype, serial, argc, argv); in adb_commandline()
1449 return adb_query_command(format_host_command(argv[0], ttype, serial)); in adb_commandline()
1453 return logcat(ttype, serial, argc, argv); in adb_commandline()
1489 static int pm_command(transport_type transport, const char* serial, in pm_command() argument
1498 return send_shell_command(transport, serial, cmd); in pm_command()
1501 static int uninstall_app(transport_type transport, const char* serial, int argc, in uninstall_app() argument
1517 return pm_command(transport, serial, argc, argv); in uninstall_app()
1520 static int delete_file(transport_type transport, const char* serial, char* filename) in delete_file() argument
1523 return send_shell_command(transport, serial, cmd); in delete_file()
1537 static int install_app(transport_type transport, const char* serial, int argc, in install_app() argument
1584 err = pm_command(transport, serial, argc, argv); in install_app()
1587 delete_file(transport, serial, apk_dest); in install_app()
1591 static int install_multiple_app(transport_type transport, const char* serial, int argc, in install_multiple_app() argument