Home
last modified time | relevance | path

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

12

/tools/acloud/internal/lib/
Dcvd_compute_client_multi_stage.py167 avd_spec=None, extra_scopes=None, argument
206 if avd_spec and avd_spec.instance_name_to_reuse:
207 self._ip = self._ReusingGceInstance(avd_spec)
212 avd_spec)
220 if avd_spec:
221 if avd_spec.instance_name_to_reuse:
245 def _GetLaunchCvdArgs(self, avd_spec=None, blank_data_disk_size_gb=None, argument
266 if avd_spec:
268 "-x_res=" + avd_spec.hw_property[constants.HW_X_RES])
270 "-y_res=" + avd_spec.hw_property[constants.HW_Y_RES])
[all …]
Dcvd_compute_client.py74 avd_spec=None, extra_scopes=None, argument
128 metadata["cvd_01_launch"] = self._GetLaunchCvdArgs(avd_spec)
133 if avd_spec and avd_spec.image_source == constants.IMAGE_SRC_LOCAL:
149 if avd_spec:
150 metadata[constants.INS_KEY_AVD_TYPE] = avd_spec.avd_type
151 metadata[constants.INS_KEY_AVD_FLAVOR] = avd_spec.flavor
152 metadata["cvd_01_x_res"] = avd_spec.hw_property[constants.HW_X_RES]
153 metadata["cvd_01_y_res"] = avd_spec.hw_property[constants.HW_Y_RES]
154 metadata["cvd_01_dpi"] = avd_spec.hw_property[constants.HW_ALIAS_DPI]
155 if constants.HW_ALIAS_DISK in avd_spec.hw_property:
[all …]
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 …]
Dcheeps_compute_client_test.py102 avd_spec = mock.MagicMock()
103 avd_spec.hw_property = {constants.HW_X_RES: str(self.X_RES),
106 avd_spec.username = self.USER
107 avd_spec.password = self.PASSWORD
108 avd_spec.remote_image = {
118 avd_spec)
149 avd_spec = mock.MagicMock()
150 avd_spec.hw_property = {constants.HW_X_RES: str(self.X_RES),
153 avd_spec.username = None
154 avd_spec.password = None
[all …]
Dgoldfish_compute_client.py152 avd_spec=None, argument
213 if avd_spec:
214 metadata[constants.INS_KEY_AVD_FLAVOR] = avd_spec.flavor
215 metadata["cvd_01_x_res"] = avd_spec.hw_property[constants.HW_X_RES]
216 metadata["cvd_01_y_res"] = avd_spec.hw_property[constants.HW_Y_RES]
217 metadata["cvd_01_dpi"] = avd_spec.hw_property[constants.HW_ALIAS_DPI]
219 avd_spec.hw_property[constants.HW_X_RES],
220 avd_spec.hw_property[constants.HW_Y_RES],
221 avd_spec.hw_property[constants.HW_ALIAS_DPI]))
/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.py35 def _CreateAVD(self, avd_spec, no_prompts): argument
45 if avd_spec.avd_type == constants.TYPE_CF:
47 avd_spec,
48 avd_spec.local_image_artifact,
51 elif avd_spec.avd_type == constants.TYPE_FVP:
53 avd_spec)
57 command, avd_spec.cfg, device_factory,
58 avd_spec.num,
59 report_internal_ip=avd_spec.report_internal_ip,
60 autoconnect=avd_spec.autoconnect,
[all …]
Dlocal_image_local_instance.py82 def _CreateAVD(self, avd_spec, no_prompts): argument
101 local_image_path, host_bins_path = self.GetImageArtifactsPath(avd_spec)
106 avd_spec.hw_property,
107 avd_spec.connect_adb,
109 avd_spec.local_instance_id,
110 avd_spec.connect_webrtc,
111 avd_spec.gpu)
115 avd_spec.local_instance_id)
118 cmd, host_bins_path, avd_spec.local_instance_id,
119 local_image_path, avd_spec.connect_webrtc, no_prompts,
[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 …]
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,
75 avd_spec.autoconnect = False
76 avd_spec.report_internal_ip = False
77 avd_spec.stable_cheeps_host_image_name = stable_cheeps_host_image_name
78 avd_spec.stable_cheeps_host_image_project = stable_cheeps_host_image_project
79 return avd_spec
83 avd_spec = self._CreateAvdSpec()
85 report = instance.Create(avd_spec, no_prompts=False)
[all …]
Dremote_image_remote_instance.py33 def _CreateAVD(self, avd_spec, no_prompts): argument
44 avd_spec)
46 "create_cf", avd_spec.cfg, device_factory, avd_spec.num,
47 report_internal_ip=avd_spec.report_internal_ip,
48 autoconnect=avd_spec.autoconnect,
50 boot_timeout_secs=avd_spec.boot_timeout_secs,
51 unlock_screen=avd_spec.unlock_screen,
53 connect_webrtc=avd_spec.connect_webrtc,
54 client_adb_port=avd_spec.client_adb_port)
56 if avd_spec.connect_vnc:
[all …]
Dgoldfish_local_image_local_instance.py149 def _CreateAVD(self, avd_spec, no_prompts): argument
171 emulator_path = self._FindEmulatorBinary(avd_spec.local_tool_dirs)
174 image_dir = os.path.abspath(avd_spec.local_image_dir)
189 instance_id = avd_spec.local_instance_id
191 avd_flavor=avd_spec.flavor)
201 extra_args = self._ConvertAvdSpecToArgs(avd_spec, instance_dir)
208 boot_timeout_secs = (avd_spec.boot_timeout_secs or
379 def _ConvertAvdSpecToArgs(self, avd_spec, instance_dir): argument
391 if avd_spec.gpu:
392 args.extend(("-gpu", avd_spec.gpu))
[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_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)
59 if avd_spec.connect_vnc:
60 utils.LaunchVNCFromReport(report, avd_spec, no_prompts)
Dlocal_image_remote_host.py35 def _CreateAVD(self, avd_spec, no_prompts): argument
46 avd_spec,
47 avd_spec.local_image_artifact,
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)
59 if avd_spec.connect_vnc:
[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)
70 avd_spec = mock.MagicMock()
71 avd_spec.cfg = mock.MagicMock()
72 avd_spec.remote_image = self._fake_remote_image
73 avd_spec.image_download_dir = "/tmp"
76 remote_image_local_instance.DownloadAndProcessImageFiles(avd_spec)
87 mock.call(avd_spec.cfg, build_target, build_id, checkfile1,
[all …]
Dremote_image_local_instance.py51 def DownloadAndProcessImageFiles(avd_spec): argument
65 cfg = avd_spec.cfg
66 build_id = avd_spec.remote_image[constants.BUILD_ID]
67 build_target = avd_spec.remote_image[constants.BUILD_TARGET]
70 avd_spec.image_download_dir,
133 def GetImageArtifactsPath(self, avd_spec): argument
150 avd_spec.image_download_dir = ConfirmDownloadRemoteImageDir(
151 avd_spec.image_download_dir)
153 image_dir = DownloadAndProcessImageFiles(avd_spec)
Dcreate_common_test.py106 avd_spec = mock.MagicMock()
107 avd_spec.cfg = mock.MagicMock()
108 avd_spec.remote_image = {"build_target" : "aosp_cf_x86_phone-userdebug",
117 avd_spec.cfg,
118 avd_spec.remote_image["build_target"],
119 avd_spec.remote_image["build_id"],
135 avd_spec.cfg,
136 avd_spec.remote_image["build_target"],
137 avd_spec.remote_image["build_id"],
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/
Dcreate_goldfish_action_test.py71 self.avd_spec = mock.MagicMock()
72 self.avd_spec.cfg = self._CreateCfg()
73 self.avd_spec.remote_image = {constants.BUILD_ID: self.BUILD_ID,
76 self.avd_spec.emulator_build_id = self.EMULATOR_BUILD_ID
77 self.avd_spec.gpu = self.GPU
78 self.avd_spec.serial_log_file = None
79 self.avd_spec.autoconnect = False
146 avd_spec=none_avd_spec,
186 report = create_goldfish_action.CreateDevices(avd_spec=self.avd_spec)
202 avd_spec=self.avd_spec,
[all …]
Dcreate_goldfish_action.py72 avd_spec=None, argument
102 self._avd_spec = avd_spec
167 avd_spec=self._avd_spec,
230 def CreateDevices(avd_spec=None, argument
278 if avd_spec:
279 cfg = avd_spec.cfg
280 build_target = avd_spec.remote_image[constants.BUILD_TARGET]
281 build_id = avd_spec.remote_image[constants.BUILD_ID]
282 branch = avd_spec.remote_image[constants.BUILD_BRANCH]
283 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
42 self.credentials = auth.CreateCredentials(avd_spec.cfg)
45 acloud_config=avd_spec.cfg,
47 ins_timeout_secs=avd_spec.ins_timeout_secs,
48 report_internal_ip=avd_spec.report_internal_ip,
49 gpu=avd_spec.gpu)
90 avd_spec=self._avd_spec)
Dremote_instance_cf_device_factory_test.py26 from acloud.create import avd_spec
67 avd_spec_local_img = avd_spec.AVDSpec(args)
88 avd_spec_remote_img = avd_spec.AVDSpec(args)
106 fake_avd_spec = avd_spec.AVDSpec(args)
150 fake_avd_spec = avd_spec.AVDSpec(args)
182 fake_avd_spec = avd_spec.AVDSpec(args)
210 avd_spec_local_image = avd_spec.AVDSpec(args)
228 avd_spec_remote_image = avd_spec.AVDSpec(args)
261 avd_spec_local_image = avd_spec.AVDSpec(args)
/tools/acloud/public/
Ddevice_driver.py168 avd_spec=None, argument
230 avd_spec=avd_spec,
347 avd_spec=None): argument
389 avd_spec=avd_spec,
407 client_adb_port=avd_spec.client_adb_port,
411 if avd_spec.unlock_screen:

12