Searched refs:adb_path (Results 1 – 3 of 3) sorted by relevance
/development/python-packages/adb/ |
D | device.py | 50 def get_devices(adb_path='adb'): argument 52 subprocess.check_call([adb_path, 'start-server'], stdout=devnull, 55 subprocess.check_output([adb_path, 'devices']).decode('utf-8')) 71 def _get_unique_device(product=None, adb_path='adb'): argument 72 devices = get_devices(adb_path=adb_path) 75 return AndroidDevice(devices[0], product, adb_path) 78 def _get_device_by_serial(serial, product=None, adb_path='adb'): argument 79 for device in get_devices(adb_path=adb_path): 81 return AndroidDevice(serial, product, adb_path) 85 def get_device(serial=None, product=None, adb_path='adb'): argument [all …]
|
/development/python-packages/gdbrunner/ |
D | __init__.py | 55 adb_path = result.adb_path or "adb" 59 subprocess.check_output([adb_path, "version"], 63 if not result.adb_path: 65 sys.exit(msg.format(adb_path)) 69 result.device = adb.get_device(adb_path=adb_path) 71 result.device = adb.get_usb_device(adb_path=adb_path) 73 result.device = adb.get_emulator_device(adb_path=adb_path) 75 result.device = adb.get_device(result.serial, adb_path=adb_path)
|
/development/tools/privapp_permissions/ |
D | privapp_permissions.py | 168 def __init__(self, adb_path=None, aapt_path=None, use_device=None, argument 172 self.adb = Resources._resolve_adb(adb_path) 233 def _resolve_adb(adb_path): argument 243 if adb_path: 244 if os.path.isfile(adb_path): 245 adb = adb_path 248 '"%s" exists.' % adb_path) 789 adb_path=args.adb,
|