Lines Matching refs:serial
29 def __init__(self, serial): argument
30 self.serial = serial
32 'No device with serial {}'.format(serial))
66 serial, _ = re.split(r'\s+', line, maxsplit=1)
67 devices.append(serial)
78 def _get_device_by_serial(serial, product=None, adb_path='adb'): argument
80 if device == serial:
81 return AndroidDevice(serial, product, adb_path)
82 raise DeviceNotFoundError(serial)
85 def get_device(serial=None, product=None, adb_path='adb'): argument
106 if serial is not None:
107 return _get_device_by_serial(serial, product, adb_path)
121 serial = subprocess.check_output(
125 if serial == 'unknown':
127 return _get_device_by_serial(serial, adb_path=adb_path)
262 def __init__(self, serial, product=None, adb_path='adb'): argument
263 self.serial = serial
268 if self.serial is not None:
269 self.adb_cmd.extend(['-s', serial])