Home
last modified time | relevance | path

Searched refs:avd_spec (Results 1 – 25 of 28) 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 …]
Dlocal_image_remote_instance.py66 def __init__(self, avd_spec, local_image_artifact, cvd_host_package_artifact): argument
68 self._avd_spec = avd_spec
69 self._cfg = avd_spec.cfg
72 self._report_internal_ip = avd_spec.report_internal_ip
73 self.credentials = auth.CreateCredentials(avd_spec.cfg)
75 avd_spec.cfg, self.credentials)
149 avd_spec=self._avd_spec)
267 def _CreateAVD(self, avd_spec, no_prompts): argument
276 if avd_spec.local_image_artifact:
277 local_image_artifact = avd_spec.local_image_artifact
[all …]
Dcheeps_remote_image_remote_instance.py36 def _CreateAVD(self, avd_spec, no_prompts): argument
46 build_id = avd_spec.remote_image[constants.BUILD_ID]
49 avd_spec.cfg.project, build_id)
51 device_factory = CheepsDeviceFactory(avd_spec.cfg, build_id, avd_spec)
55 cfg=avd_spec.cfg,
57 num=avd_spec.num,
58 report_internal_ip=avd_spec.report_internal_ip,
59 autoconnect=avd_spec.autoconnect,
63 if avd_spec.autoconnect:
64 utils.LaunchVNCFromReport(report, avd_spec, no_prompts)
[all …]
Dremote_image_local_instance_test.py52 avd_spec = mock.MagicMock()
57 avd_spec)
64 self.RemoteImageLocalInstance.GetImageArtifactsPath(avd_spec)
65 mock_proc.assert_called_once_with(avd_spec)
72 avd_spec = mock.MagicMock()
73 avd_spec.cfg = mock.MagicMock()
74 avd_spec.remote_image = self._fake_remote_image
75 avd_spec.image_download_dir = "/tmp"
78 self.RemoteImageLocalInstance._DownloadAndProcessImageFiles(avd_spec)
82 avd_spec.cfg,
[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.autoconnect:
57 utils.LaunchVNCFromReport(report, avd_spec, no_prompts)
Dgce_remote_image_remote_instance.py35 def _CreateAVD(self, avd_spec, no_prompts): argument
46 avd_spec.cfg,
47 avd_spec.remote_image[constants.BUILD_TARGET],
48 avd_spec.remote_image[constants.BUILD_ID],
49 num=avd_spec.num,
50 autoconnect=avd_spec.autoconnect,
51 report_internal_ip=avd_spec.report_internal_ip,
52 avd_spec=avd_spec)
55 if avd_spec.autoconnect:
56 utils.LaunchVNCFromReport(report, avd_spec, no_prompts)
Dremote_image_local_instance.py68 def GetImageArtifactsPath(self, avd_spec): argument
85 avd_spec.image_download_dir = self._ConfirmDownloadRemoteImageDir(
86 avd_spec.image_download_dir)
88 image_dir = self._DownloadAndProcessImageFiles(avd_spec)
98 def _DownloadAndProcessImageFiles(self, avd_spec): argument
110 cfg = avd_spec.cfg
111 build_id = avd_spec.remote_image[constants.BUILD_ID]
112 build_target = avd_spec.remote_image[constants.BUILD_TARGET]
115 avd_spec.image_download_dir,
Dcheeps_remote_image_remote_instance_test.py71 avd_spec = mock.MagicMock()
72 avd_spec.cfg = self._CreateCfg()
73 avd_spec.remote_image = {constants.BUILD_ID: self.ANDROID_BUILD_ID}
74 avd_spec.autoconnect = False
75 avd_spec.report_internal_ip = False
77 report = instance.Create(avd_spec, no_prompts=False)
85 avd_spec=avd_spec)
Dlocal_image_local_instance.py55 def _CreateAVD(self, avd_spec, no_prompts): argument
69 local_image_path, host_bins_path = self.GetImageArtifactsPath(avd_spec)
74 avd_spec.hw_property,
88 if avd_spec.autoconnect:
89 utils.LaunchVNCFromReport(result_report, avd_spec, no_prompts)
93 def GetImageArtifactsPath(avd_spec): argument
115 return avd_spec.local_image_dir, host_bins_path
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.autoconnect:
44 utils.LaunchVNCFromReport(report, avd_spec, no_prompts)
Dremote_image_remote_instance.py32 def _CreateAVD(self, avd_spec, no_prompts): argument
42 report = create_cuttlefish_action.CreateDevices(avd_spec=avd_spec)
44 if avd_spec.autoconnect:
45 utils.LaunchVNCFromReport(report, avd_spec, no_prompts)
Davd_spec_test.py23 from acloud.create import avd_spec
41 self.AvdSpec = avd_spec.AVDSpec(self.args)
108 @mock.patch.object(avd_spec.AVDSpec, "_GetGitRemote")
129 self.AvdSpec._remote_image[avd_spec._BUILD_BRANCH] = "git_branch"
136 self.AvdSpec._remote_image[avd_spec._BUILD_BRANCH] = "aosp-master"
143 self.AvdSpec._remote_image[avd_spec._BUILD_BRANCH] = "git_branch"
241 self.AvdSpec = avd_spec.AVDSpec(self.args)
249 self.assertEqual(avd_spec.EscapeAnsi(test_string), expected_result)
Dlocal_image_remote_instance_test.py32 from acloud.create import avd_spec
119 fake_avd_spec = avd_spec.AVDSpec(args)
Dcreate.py31 from acloud.create import avd_spec
206 spec = avd_spec.AVDSpec(args)
/tools/acloud/public/actions/
Dcreate_goldfish_action.py68 avd_spec=None): argument
95 self._avd_spec = avd_spec
130 avd_spec=self._avd_spec,
190 def CreateDevices(avd_spec=None, argument
223 if avd_spec:
224 cfg = avd_spec.cfg
225 build_target = avd_spec.remote_image[constants.BUILD_TARGET]
226 build_id = avd_spec.remote_image[constants.BUILD_ID]
227 branch = avd_spec.remote_image[constants.BUILD_BRANCH]
228 num = avd_spec.num
[all …]
Dcreate_cuttlefish_action.py55 avd_spec=None, kernel_branch=None): argument
69 self._avd_spec = avd_spec
125 avd_spec=self._avd_spec,
131 def CreateDevices(avd_spec=None, argument
162 if avd_spec:
163 cfg = avd_spec.cfg
164 build_target = avd_spec.remote_image[constants.BUILD_TARGET]
165 build_id = avd_spec.remote_image[constants.BUILD_ID]
166 kernel_build_id = avd_spec.kernel_build_id
167 num = avd_spec.num
[all …]
Dcreate_goldfish_action_test.py68 self.avd_spec = mock.MagicMock()
69 self.avd_spec.cfg = self._CreateCfg()
70 self.avd_spec.remote_image = {constants.BUILD_ID: self.BUILD_ID,
73 self.avd_spec.emulator_build_id = self.EMULATOR_BUILD_ID
74 self.avd_spec.gpu = self.GPU
75 self.avd_spec.serial_log_file = None
76 self.avd_spec.autoconnect = False
130 avd_spec=none_avd_spec,
154 report = create_goldfish_action.CreateDevices(avd_spec=self.avd_spec)
167 avd_spec=self.avd_spec,
[all …]
/tools/acloud/internal/lib/
Dcvd_compute_client.py64 blank_data_disk_size_gb=None, avd_spec=None, argument
112 if avd_spec and avd_spec.image_source == constants.IMAGE_SRC_LOCAL:
127 if avd_spec:
128 metadata[constants.INS_KEY_AVD_TYPE] = avd_spec.avd_type
129 metadata[constants.INS_KEY_AVD_FLAVOR] = avd_spec.flavor
130 metadata["cvd_01_x_res"] = avd_spec.hw_property[constants.HW_X_RES]
131 metadata["cvd_01_y_res"] = avd_spec.hw_property[constants.HW_Y_RES]
132 metadata["cvd_01_dpi"] = avd_spec.hw_property[constants.HW_ALIAS_DPI]
133 metadata["cvd_01_blank_data_disk_size"] = avd_spec.hw_property[
139 avd_spec.hw_property[constants.HW_X_RES],
[all …]
Dgoldfish_compute_client.py137 avd_spec=None, argument
185 if avd_spec:
186 metadata[constants.INS_KEY_AVD_FLAVOR] = avd_spec.flavor
187 metadata["cvd_01_x_res"] = avd_spec.hw_property[constants.HW_X_RES]
188 metadata["cvd_01_y_res"] = avd_spec.hw_property[constants.HW_Y_RES]
189 metadata["cvd_01_dpi"] = avd_spec.hw_property[constants.HW_ALIAS_DPI]
191 avd_spec.hw_property[constants.HW_X_RES],
192 avd_spec.hw_property[constants.HW_Y_RES],
193 avd_spec.hw_property[constants.HW_ALIAS_DPI]))
Dcheeps_compute_client.py66 build_id=None, avd_spec=None): argument
83 if avd_spec:
84 metadata["cvd_01_x_res"] = avd_spec.hw_property[constants.HW_X_RES]
85 metadata["cvd_01_y_res"] = avd_spec.hw_property[constants.HW_Y_RES]
86 metadata["cvd_01_dpi"] = avd_spec.hw_property[constants.HW_ALIAS_DPI]
88 avd_spec.hw_property[constants.HW_X_RES],
89 avd_spec.hw_property[constants.HW_Y_RES],
90 avd_spec.hw_property[constants.HW_ALIAS_DPI]))
Dandroid_compute_client.py241 avd_spec=None, argument
272 metadata[constants.INS_KEY_AVD_TYPE] = avd_spec.avd_type
278 avd_spec.hw_property[constants.HW_X_RES],
279 avd_spec.hw_property[constants.HW_Y_RES],
280 avd_spec.hw_property[constants.HW_ALIAS_DPI]))
Dcheeps_compute_client_test.py95 avd_spec = mock.MagicMock()
96 avd_spec.hw_property = {constants.HW_X_RES: str(self.X_RES),
105 avd_spec)
Dcvd_compute_client_test.py23 from acloud.create import avd_spec
140 fake_avd_spec = avd_spec.AVDSpec(args)
Dutils.py897 def LaunchVNCFromReport(report, avd_spec, no_prompts=False): argument
908 avd_width=avd_spec.hw_property["x_res"],
909 avd_height=avd_spec.hw_property["y_res"],
/tools/acloud/public/
Ddevice_driver.py170 avd_spec=None, argument
232 avd_spec=avd_spec,
350 avd_spec=None): argument
393 avd_spec=avd_spec,

12