Lines Matching refs:device
67 if result.device == "-a":
68 result.device = adb.get_device(adb_path=adb_path)
69 elif result.device == "-d":
70 result.device = adb.get_usb_device(adb_path=adb_path)
71 elif result.device == "-e":
72 result.device = adb.get_emulator_device(adb_path=adb_path)
74 result.device = adb.get_device(result.serial, adb_path=adb_path)
77 result.device = None
93 def get_processes(device): argument
120 output, _ = device.shell([ps_script])
143 def get_pids(device, process_name): argument
144 processes = get_processes(device)
148 def start_gdbserver(device, gdbserver_local_path, gdbserver_remote_path, argument
170 device.push(gdbserver_local_path, gdbserver_remote_path)
181 device.forward("tcp:{}".format(port),
183 atexit.register(lambda: device.forward_remove("tcp:{}".format(port)))
190 return device.shell_popen(gdbserver_cmd, stdout=gdbserver_output,
194 def find_file(device, executable_path, sysroot, user=None): argument
225 target = device.shell(['readlink', '-e', '-n', executable_path])[0]
237 device.shell(cmd)
241 device.pull(remote_temp_path, local_path)
250 def find_binary(device, pid, sysroot, user=None): argument
252 return find_file(device, "/proc/{}/exe".format(pid), sysroot, user)