Lines Matching refs:serial
11 def am(serial, cmd, args): argument
15 __call_adb(serial, full_args, False)
17 def pm(serial, cmd, args): argument
21 __call_adb(serial, full_args, False)
23 def dumpsys(serial, topic): argument
24 return __call_adb(serial, ["dumpsys"] + [topic], True)
26 def trace(serial, argument
29 args = [ATRACE_PATH, "-e", serial, "-t" + time, "-b32768"] + tags
32 def wake(serial): argument
33 output = dumpsys(serial, "power")
36 __call_adb(serial, ["input", "keyevent", "KEYCODE_POWER"], False)
38 def root(serial): argument
39 subprocess.call(["adb", "-s", serial, "root"])
41 def pull(serial, path, dest): argument
42 subprocess.call(["adb", "-s", serial, "wait-for-device", "pull"] + [path] + [dest])
44 def shell(serial, cmd): argument
45 __call_adb(serial, cmd, False)
47 def track_logcat(serial, awaited_string, callback): argument
48 …threading.Thread(target=__track_logcat, name=serial + "-waiter", args=(serial, awaited_string, cal…
50 def __call_adb(serial, args, block): argument
51 full_args = ["adb", "-s", serial, "wait-for-device", "shell"] + args