Home
last modified time | relevance | path

Searched refs:adb_path (Results 1 – 3 of 3) sorted by relevance

/development/python-packages/adb/
Ddevice.py50 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__.py54 adb_path = result.adb_path or "adb"
58 subprocess.check_output([adb_path, "version"],
62 if not result.adb_path:
64 sys.exit(msg.format(adb_path))
68 result.device = adb.get_device(adb_path=adb_path)
70 result.device = adb.get_usb_device(adb_path=adb_path)
72 result.device = adb.get_emulator_device(adb_path=adb_path)
74 result.device = adb.get_device(result.serial, adb_path=adb_path)
/development/tools/privapp_permissions/
Dprivapp_permissions.py138 def __init__(self, adb_path=None, aapt_path=None, use_device=None, argument
140 self.adb = Resources._resolve_adb(adb_path)
166 def _resolve_adb(adb_path): argument
176 if adb_path:
177 if os.path.isfile(adb_path):
178 adb = adb_path
181 '"%s" exists.' % adb_path)
570 adb_path=args.adb,