Home | History | Annotate | Download | only in pylib

Lines Matching full:adb

23 def TakeScreenshot(adb, host_file):
27 adb: AndroidCommands instance.
33 device_file = '%s/screenshot.png' % adb.GetExternalStorage()
34 adb.RunShellCommand('/system/bin/screencap -p %s' % device_file)
35 adb.PullFileFromDevice(device_file, host_file)
36 adb.RunShellCommand('rm -f "%s"' % device_file)
44 adb: AndroidCommands instance.
52 def __init__(self, adb, host_file, megabits_per_second=4, size=None,
54 self._adb = adb
55 self._device_file = '%s/screen-recording.mp4' % adb.GetExternalStorage()
63 self._args = ['adb']