/tools/acloud/create/ |
D | base_avd_create.py | 28 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 …]
|
D | local_image_remote_instance.py | 34 def _CreateAVD(self, avd_spec, no_prompts): argument 45 avd_spec, 46 avd_spec.local_image_artifact, 49 "create_cf", avd_spec.cfg, device_factory, avd_spec.num, 50 report_internal_ip=avd_spec.report_internal_ip, 51 autoconnect=avd_spec.autoconnect, 53 boot_timeout_secs=avd_spec.boot_timeout_secs, 54 unlock_screen=avd_spec.unlock_screen, 57 if avd_spec.connect_vnc: 58 utils.LaunchVNCFromReport(report, avd_spec, no_prompts) [all …]
|
D | gce_remote_image_remote_instance.py | 36 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)
|
D | remote_image_remote_instance.py | 33 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, 54 if avd_spec.connect_vnc: 55 utils.LaunchVNCFromReport(report, avd_spec, no_prompts) 56 if avd_spec.connect_webrtc:
|
D | cheeps_remote_image_remote_instance.py | 38 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 …]
|
D | remote_image_remote_host.py | 39 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, 58 if avd_spec.connect_vnc: 59 utils.LaunchVNCFromReport(report, avd_spec, no_prompts)
|
D | local_image_remote_host.py | 35 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, 58 if avd_spec.connect_vnc: 59 utils.LaunchVNCFromReport(report, avd_spec, no_prompts)
|
D | cheeps_remote_image_remote_instance_test.py | 71 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 …]
|
D | remote_image_local_instance.py | 51 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)
|
D | goldfish_remote_image_remote_instance.py | 30 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)
|
D | local_image_local_instance.py | 75 def _CreateAVD(self, avd_spec, no_prompts): argument 95 local_image_path, host_bins_path = self.GetImageArtifactsPath(avd_spec) 100 avd_spec.hw_property, 101 avd_spec.connect_adb, 103 avd_spec.local_instance_id) 107 avd_spec.local_instance_id) 110 cmd, host_bins_path, avd_spec.local_instance_id, local_image_path, 111 no_prompts, avd_spec.boot_timeout_secs or _LAUNCH_CVD_TIMEOUT_SECS) 119 active_ins = list_instance.GetActiveCVD(avd_spec.local_instance_id) 125 if avd_spec.connect_vnc: [all …]
|
D | remote_image_local_instance_test.py | 52 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 …]
|
D | create_common_test.py | 106 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"],
|
D | goldfish_local_image_local_instance.py | 149 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 …]
|
/tools/acloud/internal/lib/ |
D | cheeps_compute_client.py | 66 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 …]
|
D | cvd_compute_client.py | 74 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 …]
|
D | cvd_compute_client_multi_stage.py | 159 avd_spec=None, extra_scopes=None, argument 198 if avd_spec and avd_spec.instance_name_to_reuse: 199 self._ip = self._ReusingGceInstance(avd_spec) 203 avd_spec) 211 if avd_spec: 212 if avd_spec.instance_name_to_reuse: 236 def _GetLaunchCvdArgs(self, avd_spec=None, blank_data_disk_size_gb=None, argument 257 if avd_spec: 259 "-x_res=" + avd_spec.hw_property[constants.HW_X_RES]) 261 "-y_res=" + avd_spec.hw_property[constants.HW_Y_RES]) [all …]
|
D | goldfish_compute_client.py | 152 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]))
|
D | cheeps_compute_client_test.py | 100 avd_spec = mock.MagicMock() 101 avd_spec.hw_property = {constants.HW_X_RES: str(self.X_RES), 104 avd_spec.username = self.USER 105 avd_spec.password = self.PASSWORD 106 avd_spec.remote_image = { 115 avd_spec)
|
D | android_compute_client.py | 263 avd_spec=None, argument 296 metadata[constants.INS_KEY_AVD_TYPE] = avd_spec.avd_type 302 avd_spec.hw_property[constants.HW_X_RES], 303 avd_spec.hw_property[constants.HW_Y_RES], 304 avd_spec.hw_property[constants.HW_ALIAS_DPI]))
|
/tools/acloud/public/actions/ |
D | create_goldfish_action_test.py | 71 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 …]
|
D | remote_instance_cf_device_factory.py | 53 def __init__(self, avd_spec, local_image_artifact=None, argument 56 self._avd_spec = avd_spec 57 self._cfg = avd_spec.cfg 60 self._report_internal_ip = avd_spec.report_internal_ip 61 self.credentials = auth.CreateCredentials(avd_spec.cfg) 64 acloud_config=avd_spec.cfg, 66 ins_timeout_secs=avd_spec.ins_timeout_secs, 67 report_internal_ip=avd_spec.report_internal_ip, 68 gpu=avd_spec.gpu) 281 avd_spec=self._avd_spec)
|
D | remote_instance_cf_device_factory_test.py | 25 from acloud.create import avd_spec 66 avd_spec_local_img = avd_spec.AVDSpec(args) 87 avd_spec_remote_img = avd_spec.AVDSpec(args) 105 fake_avd_spec = avd_spec.AVDSpec(args) 147 fake_avd_spec = avd_spec.AVDSpec(args) 179 fake_avd_spec = avd_spec.AVDSpec(args) 204 avd_spec_local_image = avd_spec.AVDSpec(args) 222 avd_spec_remote_image = avd_spec.AVDSpec(args) 255 avd_spec_local_image = avd_spec.AVDSpec(args)
|
/tools/acloud/public/ |
D | device_driver.py | 168 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:
|
D | device_driver_test.py | 101 cfg, fake_build_target, fake_build_id, avd_spec=self.fake_avd_spec) 112 avd_spec=self.fake_avd_spec, 145 avd_spec=self.fake_avd_spec)
|