Lines Matching refs:serial_number
334 def __init__(self, serial_number, output_root, test_events, expected_result): argument
351 self.serial_number = serial_number
356 self.cmd_string_replacements["serial_number"] = serial_number
379 self.name = "%s_%s" % (self.device_type, self.serial_number)
385 self.serial_number)
410 "adb", "-s", self.serial_number, "logcat", "-v", "usec", ""
413 name = "logcat_" + self.serial_number
416 "adb", "-s", self.serial_number, "shell",
420 file_to_watch.source), self.serial_number)
442 name = "%s_%s" % (daemon_process.name, self.serial_number)
594 logging.info("Removing %s from the test", self.serial_number)
639 ["adb", "-s", self.serial_number] + command)
646 ["adb", "-s", self.serial_number, "shell", "ls", command[1]]
658 subprocess.check_output(["adb", "-s", self.serial_number, "pull",
662 "adb", "-s", self.serial_number, "shell", "rm", "-rf", source_file
792 for serial_number in self.GetActiveSerialNumbers():
794 Device(serial_number, output_root, self.events, self.expected_result))
813 device_pb.serial_number = device.serial_number
823 serial_number = line.split()[0].strip()
824 if FLAGS.devices and serial_number not in FLAGS.devices:
826 serial_numbers.append(serial_number.decode("utf-8"))
916 if device.serial_number in active_devices:
929 if device.serial_number in active_devices:
935 if d.serial_number not in active_devices]