Lines Matching refs:args
120 def _CheckForAutoconnect(args): argument
130 if not args.autoconnect or utils.FindExecutable(constants.ADB_BIN):
134 answer = _YES if args.no_prompt else utils.InteractWithQuestion(
163 args.autoconnect = False
166 def _CheckForSetup(args): argument
177 args.gcp_init = False
178 args.host = False
179 args.host_base = False
180 args.force = False
181 args.update_config = None
182 args.host_local_ca = False
184 if args.local_instance is None or args.local_image is None:
185 gcp_setup = gcp_setup_runner.GcpTaskRunner(args.config_file)
187 args.gcp_init = True
196 if args.local_instance is not None:
199 args.host = True
204 args.host = True
207 if args.mkcert and args.autoconnect == constants.INS_KEY_WEBRTC:
210 args.host_local_ca = True
216 args.host_base = True
220 args.force, args.gcp_init, args.host, args.host_base, args.host_local_ca])
226 setup.Run(args)
232 def PreRunCheck(args): argument
238 _CheckForSetup(args)
239 _CheckForAutoconnect(args)
242 def Run(args): argument
251 if not args.skip_pre_run_check:
252 PreRunCheck(args)
253 spec = avd_spec.AVDSpec(args)
258 report = avd_creator.Create(spec, args.no_prompt)