Lines Matching refs:args

41         self.args = mock.MagicMock()
42 self.args.flavor = ""
43 self.args.local_image = None
44 self.args.local_kernel_image = None
45 self.args.local_system_image = None
46 self.args.local_vendor_boot_image = None
47 self.args.config_file = ""
48 self.args.build_target = "fake_build_target"
49 self.args.adb_port = None
50 self.args.launch_args = None
59 self.AvdSpec = avd_spec.AVDSpec(self.args)
76 self.args.local_image = "/path/cf_x86_phone-img-eng.user.zip"
79 self.AvdSpec._ProcessLocalImageArgs(self.args)
86 self.args.local_image = "/path-to-image-dir"
89 self.AvdSpec._ProcessLocalImageArgs(self.args)
93 self.args.local_image = constants.FIND_IN_BUILD_ENV
96 self.AvdSpec._ProcessLocalImageArgs(self.args)
103 self.args.local_image = "/path-to-image-dir"
106 self.AvdSpec._ProcessLocalImageArgs(self.args)
122 self.args.local_kernel_image = expected_image_dir
123 self.args.local_system_image = expected_image_dir
124 self.args.local_system_dlkm_image = expected_image_dir
125 self.args.local_vendor_image = expected_image_dir
126 self.AvdSpec._ProcessImageArgs(self.args)
133 self.args.local_kernel_image = expected_image_file
134 self.args.local_system_image = expected_image_file
135 self.args.local_system_dlkm_image = expected_image_file
136 self.args.local_vendor_boot_image = expected_image_file
137 self.AvdSpec._ProcessImageArgs(self.args)
144 self.args.local_kernel_image = constants.FIND_IN_BUILD_ENV
145 self.args.local_system_image = constants.FIND_IN_BUILD_ENV
146 self.args.local_system_dlkm_image = constants.FIND_IN_BUILD_ENV
147 self.args.local_vendor_image = constants.FIND_IN_BUILD_ENV
151 self.AvdSpec._ProcessImageArgs(self.args)
181 self.AvdSpec._ProcessImageArgs(self.args)
189 self.args.local_image = "/test_path/cf_x86_phone-img-eng.user.zip"
192 self.AvdSpec._ProcessImageArgs(self.args)
200 self.args.local_image = "/test_path_to_dir/"
202 self.AvdSpec._ProcessImageArgs(self.args)
262 self.args.avd_type = constants.TYPE_GCE
264 self.AvdSpec._GetBuildTarget(self.args, branch),
269 self.args.avd_type = constants.TYPE_CF
271 self.AvdSpec._GetBuildTarget(self.args, branch),
276 self.args.avd_type = constants.TYPE_CF
278 self.AvdSpec._GetBuildTarget(self.args, branch),
283 self.args.avd_type = constants.TYPE_CF
285 self.AvdSpec._GetBuildTarget(self.args, branch),
292 args = mock.MagicMock()
293 args.hw_property = "cpu:3,resolution:1280"
294 args.reuse_instance_name = None
296 self.AvdSpec._ProcessHWPropertyArgs(args)
299 args = mock.MagicMock()
300 args.hw_property = "cpu:3,dpi:fake"
302 self.AvdSpec._ProcessHWPropertyArgs(args)
305 args = mock.MagicMock()
306 args.hw_property = "cpu:3,disk:2"
308 self.AvdSpec._ProcessHWPropertyArgs(args)
311 args = mock.MagicMock()
312 args.hw_property = "cpu:3,memory:2"
314 self.AvdSpec._ProcessHWPropertyArgs(args)
369 self.args.branch = "git_master"
370 self.args.build_id = "1234"
371 self.args.launch_args = None
374 self.args.build_target = "aosp_gce_x86_phone-userdebug"
375 self.AvdSpec._ProcessRemoteBuildArgs(self.args)
379 self.args.build_target = "gce_x86_phone-userdebug"
380 self.AvdSpec._ProcessRemoteBuildArgs(self.args)
384 self.args.build_target = "aosp_cf_x86_64_phone-userdebug"
385 self.AvdSpec._ProcessRemoteBuildArgs(self.args)
389 self.args.build_target = "cf_x86_phone-userdebug"
390 self.AvdSpec._ProcessRemoteBuildArgs(self.args)
394 self.args.build_target = "sdk_phone_armv7-sdk"
395 self.AvdSpec._ProcessRemoteBuildArgs(self.args)
399 self.args.build_target = "aosp_sdk_phone_armv7-sdk"
400 self.AvdSpec._ProcessRemoteBuildArgs(self.args)
404 self.args.system_branch = "system_branch"
405 self.args.system_build_target = "system_build_target"
406 self.args.system_build_id = "system_build_id"
407 self.args.ota_branch = "ota_branch"
408 self.args.ota_build_target = "ota_build_target"
409 self.args.ota_build_id = "ota_build_id"
410 self.args.kernel_branch = "kernel_branch"
411 self.args.kernel_build_target = "kernel_build_target"
412 self.args.kernel_build_id = "kernel_build_id"
413 self.args.boot_branch = "boot_branch"
414 self.args.boot_build_target = "boot_build_target"
415 self.args.boot_build_id = "boot_build_id"
416 self.args.boot_artifact = "boot_artifact"
417 self.AvdSpec._ProcessRemoteBuildArgs(self.args)
441 self.args.build_target = "mini_emulator_arm64-userdebug"
442 self.args.avd_type = "cuttlefish"
444 self.AvdSpec = avd_spec.AVDSpec(self.args)
445 self.AvdSpec._ProcessRemoteBuildArgs(self.args)
489 self.args.remote_host = None
490 self.args.local_instance = None
491 self.AvdSpec._ProcessMiscArgs(self.args)
494 self.args.remote_host = None
495 self.args.local_instance = 0
496 self.AvdSpec._ProcessMiscArgs(self.args)
499 self.args.remote_host = "1.1.1.1"
500 self.args.local_instance = None
501 self.AvdSpec._ProcessMiscArgs(self.args)
504 self.args.remote_host = "1.1.1.1"
505 self.args.local_instance = 1
506 self.AvdSpec._ProcessMiscArgs(self.args)
509 self.args.oxygen = True
510 self.AvdSpec._ProcessMiscArgs(self.args)
514 self.args.autoconnect = False
515 self.AvdSpec._ProcessMiscArgs(self.args)
521 self.args.autoconnect = constants.INS_KEY_VNC
522 self.AvdSpec._ProcessMiscArgs(self.args)
528 self.args.autoconnect = constants.INS_KEY_ADB
529 self.AvdSpec._ProcessMiscArgs(self.args)
535 self.args.autoconnect = constants.INS_KEY_WEBRTC
536 self.AvdSpec._ProcessMiscArgs(self.args)
543 self.args.stable_host_image_name = "fake_host_image"
544 self.AvdSpec._ProcessMiscArgs(self.args)
550 self.args.cheeps_betty_image = 'from-cmdline'
551 self.AvdSpec._ProcessMiscArgs(self.args)
554 self.args.cheeps_betty_image = None
555 self.AvdSpec._ProcessMiscArgs(self.args)
559 self.args.cheeps_features = ['a', 'b', 'c']
560 self.AvdSpec._ProcessMiscArgs(self.args)
561 self.assertEqual(self.args.cheeps_features, ['a', 'b', 'c'])
565 self.AvdSpec._ProcessMiscArgs(self.args)
567 self.args.connect_hostname = True
572 self.args.fetch_cvd_build_id = None
573 self.AvdSpec._ProcessMiscArgs(self.args)
576 self.args.fetch_cvd_build_id = "23456"
577 self.AvdSpec._ProcessMiscArgs(self.args)