Lines Matching refs:adb
7 # Runs an android build of d8 over adb, with any given arguments. Files
12 # adb-d8.py <build_dir> [<d8_args>...]
18 # Run adb-d8.py --help for complete usage information.
63 def TransferD8ToDevice(adb, build_dir, device_d8_dir, verbose):
75 adb, "shell",
91 adb, "push",
97 def AdbForwardDeviceToLocal(adb, device_port, server_port, verbose):
103 adb, "reverse",
109 def AdbRunD8(adb, device_d8_dir, device_port, d8_args, verbose):
119 # Run adb shell with -t to have a tty if we run d8 without a script.
120 cmd = [adb, "shell", "-t", d8_str]
122 cmd = [adb, "shell", d8_str]
130 print("Usage: adb-d8.py [-v|--verbose] [--] <build_dir> [<d8 args>...]",
136 adb-d8.py [options] [--] <build_dir> [<d8_args>...]
137 adb-d8.py -h|--help
157 # Use the platform-tools version of adb so that we know it has the reverse
159 adb = os.path.join(
161 "../third_party/android_sdk/public/platform-tools/adb"
166 # the adb-d8 options from the passthrough d8 options.
206 TransferD8ToDevice(adb, build_dir, device_d8_dir, verbose)
227 AdbForwardDeviceToLocal(adb, device_port, server_port, verbose)
229 # Run d8 over adb with the remaining arguments, using the given device
232 adb, device_d8_dir, device_port, sys.argv[arg_index+1:], verbose)