Lines Matching refs:device

68             if result.device == "-a":
69 result.device = adb.get_device(adb_path=adb_path)
70 elif result.device == "-d":
71 result.device = adb.get_usb_device(adb_path=adb_path)
72 elif result.device == "-e":
73 result.device = adb.get_emulator_device(adb_path=adb_path)
75 result.device = adb.get_device(result.serial, adb_path=adb_path)
78 result.device = None
83 def get_processes(device): argument
115 output, _ = device.shell([ps_script])
139 def get_pids(device, process_name): argument
140 processes = get_processes(device)
144 def start_gdbserver(device, gdbserver_local_path, gdbserver_remote_path, argument
169 device.shell_nocheck(rm_cmd)
173 device.push(gdbserver_local_path, gdbserver_remote_path)
187 forward_gdbserver_port(device, local=port, remote="localfilesystem:{}".format(debug_socket))
201 return device.shell_popen(gdbserver_cmd, stdout=gdbserver_output,
205 def get_uid(device): argument
207 line, _ = device.shell(["id", "-u"])
211 def forward_gdbserver_port(device, local, remote): argument
213 if get_uid(device) != 0:
219 device.forward("tcp:{}".format(local), remote)
220 atexit.register(lambda: device.forward_remove("tcp:{}".format(local)))
223 def find_file(device, executable_path, sysroot, run_as_cmd=None): argument
254 target = device.shell(['readlink', '-e', '-n', executable_path])[0]
269 device.shell(cmd)
273 device.pull(remote_temp_path, local_path)
281 def find_executable_path(device, executable_name, run_as_cmd=None): argument
303 output, _ = device.shell(cmd)
309 def find_binary(device, pid, sysroot, run_as_cmd=None): argument
311 return find_file(device, "/proc/{}/exe".format(pid), sysroot, run_as_cmd)