Home | History | Annotate | Download | only in controllers

Lines Matching refs:adb

30 from vts.utils.python.controllers import adb
45 # Key name for adb logcat extra params in config file.
132 generated by calling either adb or fastboot.
135 device_list_str: Output of adb or fastboot.
151 """List all target devices connected to the host and detected by adb.
156 out = adb.AdbProxy().devices()
322 handles to adb, fastboot, and various RPC clients.
327 for adb port forwarding (for command-response sessions).
329 for adb port reverse forwarding (for callback sessions).
334 adb_logcat_process: A process that collects the adb logcat.
335 adb_logcat_file_path: A string that's the full path to the adb logcat
338 adb: An AdbProxy object used for interacting with the device via adb.
366 self.adb = adb.AdbProxy(serial)
371 self.host_callback_port = adb.get_available_host_port()
372 self.adb.reverse_tcp_forward(self.device_callback_port,
391 self.adb.forward("--remove tcp:%s" % self.host_command_port)
394 self.adb.forward("--remove tcp:%s" % self.sl4a_host_port)
404 """True if adb is running as root for this device."""
405 id_str = self.adb.shell("id -u").decode("utf-8")
415 except adb.AdbError:
454 out = self.adb.shell('uname -m')
469 """Whether there is an ongoing adb logcat collection.
493 """Changes adb to root mode for this device."""
496 self.adb.root()
497 self.adb.wait_for_device()
498 self.adb.remount()
499 self.adb.wait_for_device()
500 except adb.AdbError as e:
501 # adb wait-for-device is not always possible in the lab
506 """Starts a standing adb logcat collection in separate subprocesses and
510 raise AndroidDeviceError(("Android device %s already has an adb "
520 cmd = "adb -s %s logcat -v threadtime %s >> %s" % (
526 """Stops the adb logcat collection subprocess.
530 "Android device %s does not have an ongoing adb logcat collection."
549 self.adb.bugreport(" > %s" % full_out_path)
559 self.adb.wait_for_device()
560 except adb.AdbError as e:
561 # adb wait-for-device is not always possible in the lab
576 except adb.AdbError:
577 # adb shell calls may fail during certain period of booting
584 self.adb.shell("start")
591 self.adb.shell("stop")
619 self.adb.shell("setprop %s \"%s\"" % (name, value))
640 out = self.adb.shell("getprop %s" % name)
665 self.adb.reboot()
678 1. Start adb logcat capture.
687 self.log.exception("Failed to start adb logcat!")
692 self.adb.shell("cat /data/local/tmp/vts_tcp_server_port"))
695 self.host_command_port = adb.get_available_host_port()
696 self.adb.tcp_forward(self.host_command_port, self.device_command_port)
744 self.adb.shell(cmd)
745 except adb.AdbError as e:
755 'adb -s {s} shell LD_LIBRARY_PATH={path}/{bitness} '
806 if not self.sl4a_host_port or not adb.is_port_available(self.sl4a_host_port):
807 self.sl4a_host_port = adb.get_available_host_port()
808 self.adb.tcp_forward(self.sl4a_host_port, self.sl4a_target_port)
812 sl4a_client.start_sl4a(self.adb)
823 stdout = self.adb.shell('"lshal --init-vintf 2> /dev/null"')
825 except adb.AdbError as e:
926 self.adb.forward("--remove tcp:%d" % self.sl4a_host_port)