/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 | 66 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 …]
|
D | cheeps_remote_image_remote_instance.py | 36 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 …]
|
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) 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 …]
|
D | gce_local_image_remote_instance.py | 35 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)
|
D | gce_remote_image_remote_instance.py | 35 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)
|
D | remote_image_local_instance.py | 68 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,
|
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} 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)
|
D | local_image_local_instance.py | 55 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
|
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.autoconnect: 44 utils.LaunchVNCFromReport(report, avd_spec, no_prompts)
|
D | remote_image_remote_instance.py | 32 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)
|
D | avd_spec_test.py | 23 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)
|
D | local_image_remote_instance_test.py | 32 from acloud.create import avd_spec 119 fake_avd_spec = avd_spec.AVDSpec(args)
|
D | create.py | 31 from acloud.create import avd_spec 206 spec = avd_spec.AVDSpec(args)
|
/tools/acloud/public/actions/ |
D | create_goldfish_action.py | 68 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 …]
|
D | create_cuttlefish_action.py | 55 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 …]
|
D | create_goldfish_action_test.py | 68 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/ |
D | cvd_compute_client.py | 64 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 …]
|
D | goldfish_compute_client.py | 137 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]))
|
D | cheeps_compute_client.py | 66 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]))
|
D | android_compute_client.py | 241 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]))
|
D | cheeps_compute_client_test.py | 95 avd_spec = mock.MagicMock() 96 avd_spec.hw_property = {constants.HW_X_RES: str(self.X_RES), 105 avd_spec)
|
D | cvd_compute_client_test.py | 23 from acloud.create import avd_spec 140 fake_avd_spec = avd_spec.AVDSpec(args)
|
D | utils.py | 897 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/ |
D | device_driver.py | 170 avd_spec=None, argument 232 avd_spec=avd_spec, 350 avd_spec=None): argument 393 avd_spec=avd_spec,
|