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:
232 def _resolve_serial(self, device, serial): argument
244 if serial:
247 (self.adb.path, serial))
252 'device mode?' % serial)
256 'into device mode and try again.' % serial)
257 return serial
260 serial = os.environ['ANDROID_SERIAL']
261 command = '%s -s %s get-state' % (self.adb, serial)
267 'found.' % serial)
269 return serial
313 (device_apk, self.adb.serial))
333 'device "%s".' % self.adb.serial)
353 '"/system/product/priv-app"' % self.adb.serial,
361 'pulled from on device "%s".' % self.adb.serial)
381 % (file_path, self.adb.serial), file=sys.stderr)
387 'device "%s".' % (fallback_file_path, self.adb.serial))
652 serial=args.serial,