Lines Matching full:serial
110 def adb_connect(unittest, serial): argument
116 output = subprocess.check_output(["adb", "connect", serial])
118 "connected to {}".format(serial).encode("utf8"))
124 subprocess.Popen(["adb", "disconnect", serial],
301 with adb_connect(self, serial="localhost:{}".format(port)):
390 serial = "emulator-{}".format(port - 1)
394 "-s", serial, "get-state"],
400 "error: device '{}' not found".format(serial).encode("utf8"))
411 "-s", serial, "wait-for-device"])
413 "-s", serial, "get-state"])
428 serial = "localhost:{}".format(port)
429 with adb_connect(self, serial):
439 serial = "localhost:{}".format(port)
440 with adb_connect(self, serial):
442 output = subprocess.check_output(["adb", "connect", serial])
445 "already connected to {}".format(serial).encode("utf8"))
452 serial = "localhost:{}".format(port)
453 with adb_connect(self, serial):
457 output = subprocess.check_output(["adb", "-s", serial,
462 proc = subprocess.Popen(["adb", "-s", serial, "shell", "true"],
468 subprocess.check_call(["adb", "-s", serial, "wait-for-device"])
470 output = subprocess.check_output(["adb", "-s", serial,
476 output = subprocess.check_output(["adb", "disconnect", serial])
479 "disconnected {}".format(serial).encode("utf8"))
481 subprocess.check_output(["adb", "-s", serial, "get-state"],
487 "error: device '{}' not found".format(serial).encode("utf8"))
542 serial = subprocess.check_output(["adb", "get-serialno"]).strip()
549 if serial != usb_serial:
653 def _adb_mdns_connect(self, server_port, mdns_instance, serial, should_connect): argument
661 self.assertEqual(output.strip(), "connected to {}".format(serial).encode("utf8"))
670 subprocess.Popen(["adb", "disconnect", serial],