Lines Matching refs:args
230 args = parser.parse_args()
232 VERBOSE = args.verbose
244 if args.device:
246 if args.emulator:
251 if args.device_serial != '':
252 DEVICE_SERIAL = args.device_serial
257 if args.adb_cmd != None:
258 log('Using specific adb command: %s' % (args.adb_cmd))
259 ADB_CMD = args.adb_cmd
267 if args.project != None:
268 PROJECT = args.project
270 if args.start != None:
271 OPTION_START = args.start
273 if args.launch_name != None:
274 OPTION_LAUNCH = args.launch_name
276 if args.launch_list != None:
277 OPTION_LAUNCH_LIST = args.launch_list
279 if args.force != None:
280 OPTION_FORCE = args.force
282 if args.exec_file != None:
283 OPTION_EXEC = args.exec_file
285 if args.tui != False:
288 if args.delay != None:
289 DELAY = args.delay
291 if args.gnumake_flags != None:
292 GNUMAKE_FLAGS = args.gnumake_flags
294 if args.nowait == True:
299 OPTION_STDCXXPYPR = args.stdcxxpypr
344 def background_spawn(args, redirect_stderr, output_fn, redirect_stdin = None, input_fn = None): argument
368 p = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=used_stderr, stdin=used_stdin,
371 to = Thread(target=async_stdout, args=(p.stdout, qo, output_fn))
375 te = Thread(target=async_stderr, args=(p.stderr, qo, output_fn))
379 ti = Thread(target=async_stdin, args=(p.stdin, qo, input_fn))
383 def adb_cmd(redirect_stderr, args, log_command=False, adb_trace=False, background=False): argument
390 if isinstance(args, str):
391 fullargs.append(args)
393 fullargs += [arg for arg in args]
400 log('## COMMAND: adb_cmd %s [BACKGROUND]' % (' '.join(args)))
405 log('## COMMAND: adb_cmd %s' % (' '.join(args)))
422 def _adb_var_shell(args, redirect_stderr=False, log_command=True): argument
424 log('## COMMAND: adb_cmd shell %s' % (' '.join(args)))
425 arg_str = str(' '.join(args)+' ; echo $?')
427 args=['shell', arg_str], log_command=False)
432 def adb_var_shell(args, log_command=False): argument
433 return _adb_var_shell(args, redirect_stderr=False, log_command=log_command)
435 def adb_var_shell2(args, log_command=False): argument
436 return _adb_var_shell(args, redirect_stderr=True, log_command=log_command)