Home
last modified time | relevance | path

Searched refs:avd_spec (Results 1 – 25 of 47) sorted by relevance

12

/tools/acloud/create/
Dbase_avd_create.py28 def _CreateAVD(self, avd_spec, no_prompts): argument
37 def Create(self, avd_spec, no_prompts): argument
44 self.PrintAvdDetails(avd_spec)
45 results = self._CreateAVD(avd_spec, no_prompts)
50 def PrintAvdDetails(avd_spec): argument
68 avd_spec.instance_type)
69 if avd_spec.image_source == constants.IMAGE_SRC_LOCAL:
71 utils.PrintColorString(" %s" % (avd_spec.local_image_dir or
72 avd_spec.local_image_artifact))
73 elif avd_spec.image_source == constants.IMAGE_SRC_REMOTE:
[all …]
Dremote_image_remote_instance.py51 def _CreateAVD(self, avd_spec, no_prompts): argument
61 if avd_spec.oxygen:
62 return self._LeaseOxygenAVD(avd_spec)
63 if avd_spec.gce_only:
64 return self._CreateGceInstance(avd_spec)
66 avd_spec)
68 "create_cf", avd_spec.cfg, device_factory, avd_spec.num,
69 report_internal_ip=avd_spec.report_internal_ip,
70 autoconnect=avd_spec.autoconnect,
72 boot_timeout_secs=avd_spec.boot_timeout_secs,
[all …]
Dgoldfish_remote_host.py36 def _CreateAVD(self, avd_spec, no_prompts): argument
47 avd_spec=avd_spec)
48 if avd_spec.num != 1:
51 if avd_spec.connect_webrtc:
53 if avd_spec.serial_log_file:
57 "create", avd_spec.cfg, device_factory, avd_spec.num,
59 report_internal_ip=avd_spec.report_internal_ip,
60 autoconnect=avd_spec.autoconnect,
61 serial_log_file=avd_spec.serial_log_file,
62 client_adb_port=avd_spec.client_adb_port,
[all …]
Dlocal_image_remote_instance.py36 def _CreateAVD(self, avd_spec, no_prompts): argument
49 avd_spec,
50 avd_spec.local_image_artifact,
51 create_common.GetCvdHostPackage(avd_spec.cvd_host_package))
52 if avd_spec.avd_type == constants.TYPE_FVP:
54 avd_spec)
58 command, avd_spec.cfg, device_factory,
59 avd_spec.num,
60 report_internal_ip=avd_spec.report_internal_ip,
61 autoconnect=avd_spec.autoconnect,
[all …]
Dremote_image_local_instance.py59 def _ShouldClearFetchDir(fetch_dir, avd_spec, fetch_cvd_args_str, argument
77 if avd_spec.force_sync:
87 def DownloadAndProcessImageFiles(avd_spec): argument
106 cfg = avd_spec.cfg
107 build_id = avd_spec.remote_image[constants.BUILD_ID]
108 build_target = avd_spec.remote_image[constants.BUILD_TARGET]
111 avd_spec.image_download_dir,
120 avd_spec.remote_image,
121 avd_spec.system_build_info,
122 avd_spec.kernel_build_info,
[all …]
Dlocal_image_remote_host.py35 def _CreateAVD(self, avd_spec, no_prompts): argument
46 avd_spec,
47 avd_spec.local_image_artifact,
48 create_common.GetCvdHostPackage(avd_spec.cvd_host_package))
50 "create_cf", avd_spec.cfg, device_factory, num=1,
51 report_internal_ip=avd_spec.report_internal_ip,
52 autoconnect=avd_spec.autoconnect,
54 boot_timeout_secs=avd_spec.boot_timeout_secs,
55 unlock_screen=avd_spec.unlock_screen,
57 connect_webrtc=avd_spec.connect_webrtc,
[all …]
Dremote_image_remote_instance_test.py61 avd_spec = mock.Mock()
62 avd_spec.oxygen = False
63 avd_spec.connect_webrtc = True
64 avd_spec.connect_vnc = False
65 avd_spec.gce_only = False
71 avd_spec, no_prompts=True)
76 avd_spec.connect_webrtc = False
77 avd_spec.connect_vnc = True
79 avd_spec, no_prompts=True)
83 avd_spec.oxygen = True
[all …]
Dremote_image_remote_host.py39 def _CreateAVD(self, avd_spec, no_prompts): argument
48 avd_spec=avd_spec)
50 "create_cf", avd_spec.cfg, device_factory, num=1,
51 report_internal_ip=avd_spec.report_internal_ip,
52 autoconnect=avd_spec.autoconnect,
54 boot_timeout_secs=avd_spec.boot_timeout_secs,
55 unlock_screen=avd_spec.unlock_screen,
57 connect_webrtc=avd_spec.connect_webrtc,
58 ssh_private_key_path=avd_spec.host_ssh_private_key_path,
59 ssh_user=avd_spec.host_user)
[all …]
Dcheeps_remote_image_remote_instance.py38 def _CreateAVD(self, avd_spec, no_prompts): argument
50 avd_spec.cfg.project, avd_spec.remote_image[constants.BUILD_ID])
52 device_factory = CheepsDeviceFactory(avd_spec.cfg, avd_spec)
56 cfg=avd_spec.cfg,
58 num=avd_spec.num,
59 report_internal_ip=avd_spec.report_internal_ip,
60 autoconnect=avd_spec.autoconnect,
62 client_adb_port=avd_spec.client_adb_port,
63 boot_timeout_secs=avd_spec.boot_timeout_secs)
66 if avd_spec.connect_vnc:
[all …]
Dgce_local_image_remote_instance.py35 def _CreateAVD(self, avd_spec, no_prompts): argument
45 logger.info("GCE local image: %s", avd_spec.local_image_artifact)
48 avd_spec.cfg,
49 num=avd_spec.num,
50 local_disk_image=avd_spec.local_image_artifact,
51 autoconnect=avd_spec.autoconnect,
52 report_internal_ip=avd_spec.report_internal_ip,
53 avd_spec=avd_spec)
56 if avd_spec.connect_vnc:
57 utils.LaunchVNCFromReport(report, avd_spec, no_prompts)
Dgce_remote_image_remote_instance.py36 def _CreateAVD(self, avd_spec, no_prompts): argument
47 avd_spec.cfg,
48 avd_spec.remote_image[constants.BUILD_TARGET],
49 avd_spec.remote_image[constants.BUILD_ID],
50 num=avd_spec.num,
51 autoconnect=avd_spec.autoconnect,
52 report_internal_ip=avd_spec.report_internal_ip,
53 avd_spec=avd_spec)
56 if avd_spec.connect_vnc:
57 utils.LaunchVNCFromReport(report, avd_spec, no_prompts)
Dremote_image_local_instance_test.py61 avd_spec = mock.MagicMock()
62 avd_spec.local_system_image = None
63 avd_spec.local_kernel_image = None
64 avd_spec.local_vendor_image = None
65 avd_spec.local_vendor_boot_image = None
70 avd_spec)
79 paths = self.RemoteImageLocalInstance.GetImageArtifactsPath(avd_spec)
80 mock_proc.assert_called_once_with(avd_spec)
85 avd_spec.local_system_image = "/test_local_system_image_dir"
86 avd_spec.local_tool_dirs = "/test_local_tool_dirs"
[all …]
Dcheeps_remote_image_remote_instance_test.py74 avd_spec = mock.MagicMock()
75 avd_spec.cfg = self._CreateCfg()
76 avd_spec.remote_image = {constants.BUILD_ID: self.ANDROID_BUILD_ID,
78 avd_spec.autoconnect = False
79 avd_spec.report_internal_ip = False
80 avd_spec.stable_cheeps_host_image_name = stable_cheeps_host_image_name
81 avd_spec.stable_cheeps_host_image_project = stable_cheeps_host_image_project
82 return avd_spec
86 avd_spec = self._CreateAvdSpec()
88 report = instance.Create(avd_spec, no_prompts=False)
[all …]
Dlocal_image_local_instance.py138 def _CreateAVD(self, avd_spec, no_prompts): argument
159 artifact_paths = self.GetImageArtifactsPath(avd_spec)
162 ins_ids, ins_locks = self._SelectAndLockInstances(avd_spec)
175 avd_spec, no_prompts)
187 def _SelectAndLockInstances(self, avd_spec): argument
196 main_id, main_lock = self._SelectAndLockInstance(avd_spec)
199 for _ in range(2, avd_spec.num_avds_per_instance + 1):
206 def _SelectAndLockInstance(self, avd_spec): argument
219 if avd_spec.local_instance_id:
220 ins_id = avd_spec.local_instance_id
[all …]
Dgoldfish_local_image_local_instance.py89 def _CreateAVD(self, avd_spec, no_prompts): argument
105 ins_id, ins_lock = self._LockInstance(avd_spec)
114 avd_flavor=avd_spec.flavor)
120 result_report = self._CreateAVDForInstance(ins, avd_spec)
130 def _LockInstance(avd_spec): argument
143 if avd_spec.local_instance_id:
144 ins_id = avd_spec.local_instance_id
159 def _CreateAVDForInstance(self, ins, avd_spec): argument
176 avd_spec.local_tool_dirs +
180 image_dir = self._FindImageDir(avd_spec.local_image_dir)
[all …]
Dgoldfish_remote_image_remote_instance.py30 def _CreateAVD(self, avd_spec, no_prompts): argument
40 report = create_goldfish_action.CreateDevices(avd_spec=avd_spec)
43 if avd_spec.connect_vnc:
44 utils.LaunchVNCFromReport(report, avd_spec, no_prompts)
/tools/acloud/public/actions/
Dremote_instance_cf_device_factory.py48 def __init__(self, avd_spec, local_image_artifact=None, argument
50 super().__init__(avd_spec, local_image_artifact)
91 avd_spec = self._avd_spec
96 if cvd_utils.AreTargetFilesRequired(avd_spec):
100 if avd_spec.image_source == constants.IMAGE_SRC_LOCAL:
104 avd_spec.local_image_dir),
106 elif avd_spec.image_source == constants.IMAGE_SRC_REMOTE:
107 self._compute_client.UpdateFetchCvd(avd_spec.fetch_cvd_version)
109 avd_spec.remote_image,
110 avd_spec.system_build_info,
[all …]
Dcreate_goldfish_action.py72 avd_spec=None, argument
102 self._avd_spec = avd_spec
168 avd_spec=self._avd_spec,
232 def CreateDevices(avd_spec=None, argument
282 if avd_spec:
283 cfg = avd_spec.cfg
284 build_target = avd_spec.remote_image[constants.BUILD_TARGET]
285 build_id = avd_spec.remote_image[constants.BUILD_ID]
286 branch = avd_spec.remote_image[constants.BUILD_BRANCH]
287 num = avd_spec.num
[all …]
Dgce_device_factory.py36 def __init__(self, avd_spec, local_image_artifact=None): argument
38 self._avd_spec = avd_spec
39 self._cfg = avd_spec.cfg
41 self._report_internal_ip = avd_spec.report_internal_ip
43 self.credentials = auth.CreateCredentials(avd_spec.cfg)
46 acloud_config=avd_spec.cfg,
48 ins_timeout_secs=avd_spec.ins_timeout_secs,
49 report_internal_ip=avd_spec.report_internal_ip,
50 gpu=avd_spec.gpu)
90 avd_spec=self._avd_spec)
/tools/acloud/internal/lib/
Dcheeps_compute_client.py66 def CreateInstance(self, instance, image_name, image_project, avd_spec): argument
78 if avd_spec:
79 metadata["cvd_01_x_res"] = avd_spec.hw_property[constants.HW_X_RES]
80 metadata["cvd_01_y_res"] = avd_spec.hw_property[constants.HW_Y_RES]
81 metadata["cvd_01_dpi"] = avd_spec.hw_property[constants.HW_ALIAS_DPI]
83 avd_spec.hw_property[constants.HW_X_RES],
84 avd_spec.hw_property[constants.HW_Y_RES],
85 avd_spec.hw_property[constants.HW_ALIAS_DPI]))
87 if avd_spec.username:
88 metadata["user"] = avd_spec.username
[all …]
Dcvd_compute_client_multi_stage.py112 avd_spec, extra_scopes=None): argument
130 avd_spec.cfg.extra_data_disk_size_gb)
132 if avd_spec.instance_name_to_reuse:
133 self._ip = self._ReusingGceInstance(avd_spec)
138 avd_spec)
139 if avd_spec.connect_hostname:
151 if avd_spec.instance_name_to_reuse:
176 def LaunchCvd(self, instance, avd_spec, base_dir, extra_args): argument
197 base_dir, avd_spec, config, extra_args)
199 avd_spec.boot_timeout_secs or constants.DEFAULT_CF_BOOT_TIMEOUT)
[all …]
Dcheeps_compute_client_test.py105 avd_spec = mock.MagicMock()
106 avd_spec.hw_property = {constants.HW_X_RES: str(self.X_RES),
109 avd_spec.username = self.USER
110 avd_spec.password = self.PASSWORD
111 avd_spec.remote_image = {
115 avd_spec.cheeps_betty_image = self.CHEEPS_BETTY_IMAGE
116 avd_spec.cheeps_features = self.CHEEPS_FEATURES
122 avd_spec)
154 avd_spec = mock.MagicMock()
155 avd_spec.hw_property = {constants.HW_X_RES: str(self.X_RES),
[all …]
Dcvd_utils.py418 def _MixSuperImage(super_image_path, avd_spec, target_files_dir, ota): argument
440 if avd_spec.local_system_image:
445 ) = create_common.FindSystemImages(avd_spec.local_system_image)
447 if avd_spec.local_system_dlkm_image:
449 avd_spec.local_system_dlkm_image)
451 if avd_spec.local_vendor_image:
457 ) = FindVendorImages(avd_spec.local_vendor_image)
488 def AreTargetFilesRequired(avd_spec): argument
490 return bool(avd_spec.local_system_image or avd_spec.local_vendor_image or
491 avd_spec.local_system_dlkm_image)
[all …]
Dgoldfish_compute_client.py165 avd_spec=None, argument
234 if avd_spec:
235 metadata[constants.INS_KEY_AVD_FLAVOR] = avd_spec.flavor
236 metadata["cvd_01_x_res"] = avd_spec.hw_property[constants.HW_X_RES]
237 metadata["cvd_01_y_res"] = avd_spec.hw_property[constants.HW_Y_RES]
238 metadata["cvd_01_dpi"] = avd_spec.hw_property[constants.HW_ALIAS_DPI]
240 avd_spec.hw_property[constants.HW_X_RES],
241 avd_spec.hw_property[constants.HW_Y_RES],
242 avd_spec.hw_property[constants.HW_ALIAS_DPI]))
Dgoldfish_utils.py283 def ConvertAvdSpecToArgs(avd_spec): argument
293 if avd_spec.gpu:
294 args.extend(("-gpu", avd_spec.gpu))
296 if not avd_spec.hw_customize:
299 cores = avd_spec.hw_property.get(constants.HW_ALIAS_CPUS)
302 x_res = avd_spec.hw_property.get(constants.HW_X_RES)
303 y_res = avd_spec.hw_property.get(constants.HW_Y_RES)
306 dpi = avd_spec.hw_property.get(constants.HW_ALIAS_DPI)
309 memory_size_mb = avd_spec.hw_property.get(constants.HW_ALIAS_MEMORY)
312 userdata_size_mb = avd_spec.hw_property.get(constants.HW_ALIAS_DISK)

12