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
115 output, _ = device.shell([ps_script])
136 def get_pids(device, process_name): argument
137 processes = get_processes(device)
141 def start_gdbserver(device, gdbserver_local_path, gdbserver_remote_path, argument
163 device.push(gdbserver_local_path, gdbserver_remote_path)
174 device.forward("tcp:{}".format(port),
176 atexit.register(lambda: device.forward_remove("tcp:{}".format(port)))
184 return device.shell_popen(gdbserver_cmd, stdout=gdbclient_output,
188 def find_file(device, executable_path, sysroot, user=None): argument
219 target = device.shell(['readlink', '-e', '-n', executable_path])[0]
231 device.shell(cmd)
235 device.pull(remote_temp_path, local_path)
244 def find_binary(device, pid, sysroot, user=None): argument
246 return find_file(device, "/proc/{}/exe".format(pid), sysroot, user)