Lines Matching refs:serial
79 def __init__(self, path, serial=None): argument
81 self.serial = serial
108 command = '%s -s %s %s' % (self.path, self.serial, cmdline)
139 serial=None, apks=None): argument
145 use_device = use_device or serial or \
148 self.adb.serial = self._resolve_serial(use_device, serial)
150 if self.adb.serial:
154 if self.adb.serial is None and not self._is_android_env:
223 def _resolve_serial(self, device, serial): argument
235 if serial:
238 (self.adb.path, serial))
243 'device mode?' % serial)
247 'into device mode and try again.' % serial)
248 return serial
251 serial = os.environ['ANDROID_SERIAL']
252 command = '%s -s %s get-state' % (self.adb, serial)
258 'found.' % serial)
260 return serial
303 (device_apk, self.adb.serial))
322 'device "%s".' % self.adb.serial)
572 serial=args.serial,