Home
last modified time | relevance | path

Searched refs:instance (Results 1 – 25 of 100) sorted by relevance

1234

/tools/acloud/internal/lib/
Dgcompute_client.py536 def GetInstance(self, instance, zone): argument
548 project=self._project, zone=zone, instance=instance)
551 def AttachAccelerator(self, instance, zone, accelerator_count, argument
579 project=self._project, zone=zone, instance=instance, body=body)
587 logger.error("Attach instance failed: %s", instance)
590 accelerator_count, accelerator_type, instance)
592 def AttachDisk(self, instance, zone, **kwargs): argument
638 project=self._project, zone=zone, instance=instance, body=kwargs)
646 logger.error("Attach instance failed: %s", instance)
648 logger.info("Disk has been attached to instance %s.", instance)
[all …]
Dandroid_compute_client.py164 def GetDataDiskName(cls, instance): argument
173 name = cls.DATA_DISK_NAME_FMT.format(instance=instance)
253 instance, argument
292 disk_args = self._GetDiskArgs(instance, image_name)
307 instance, image_name, self._machine_type, metadata, self._network,
311 def CheckBootFailure(self, serial_out, instance): argument
326 def CheckBoot(self, instance): argument
337 serial_out = self.GetSerialPortOutput(instance=instance, port=1)
338 self.CheckBootFailure(serial_out, instance)
347 def WaitForBoot(self, instance, boot_timeout_secs=None): argument
[all …]
Dcvd_compute_client_multi_stage.py155 def CreateInstance(self, instance, image_name, image_project, argument
201 self._ip = self._CreateGceInstance(instance, image_name, image_project,
215 return instance
226 self.LaunchCvd(instance,
231 return instance
233 self._all_failures[instance] = e
234 return instance
346 def LaunchCvd(self, instance, avd_spec=None, argument
382 % (instance, boot_timeout_secs))
383 self._all_failures[instance] = error_msg
[all …]
Dgoldfish_compute_client.py102 def CheckBootFailure(self, serial_out, instance): argument
139 instance, argument
184 disk_args = self._GetDiskArgs(instance, image_name, image_project,
230 instance=instance,
Dcheeps_compute_client.py60 def CheckBootFailure(self, serial_out, instance): argument
66 def CreateInstance(self, instance, image_name, image_project, avd_spec): argument
99 instance=instance,
Dgcompute_client_test.py484 project=PROJECT, zone=self.ZONE, instance=self.INSTANCE)
607 instance=self.INSTANCE,
684 instance=self.INSTANCE,
758 instance=self.INSTANCE,
781 instance=self.INSTANCE, zone=self.ZONE)
783 project=PROJECT, zone=self.ZONE, instance=self.INSTANCE)
804 instance="fake_instance_1",
808 instance="fake_instance_2",
946 instance="fake_instance_1",
964 instance="fake_instance_1",
[all …]
/tools/acloud/reconnect/
Dreconnect.py83 instance, argument
107 if instance.avd_type not in utils.AVD_PORT_DICT:
110 (instance.name, instance.avd_type))
112 adb_cmd = AdbTools(instance.adb_port)
113 vnc_port = instance.vnc_port
114 adb_port = instance.adb_port
116 if instance.ssh_tunnel_is_connected and not adb_cmd.IsAdbConnectionAlive():
120 elif not instance.ssh_tunnel_is_connected and not instance.islocal:
123 ip_addr=instance.ip,
125 target_vnc_port=utils.AVD_PORT_DICT[instance.avd_type].vnc_port,
[all …]
/tools/acloud/list/
Dinstance_test.py33 from acloud.list import instance
77 local_instance = instance.LocalInstance(cf_config)
97 inst = instance.LocalGoldfishInstance(1)
141 instances = instance.LocalGoldfishInstance.GetExistingInstances()
165 self.assertEqual(instance._MSG_UNABLE_TO_CALCULATE,
166 instance._GetElapsedTime(start_time))
171 self.Patch(instance, "datetime")
172 instance.datetime.datetime.now.return_value = dateutil.parser.parse(now)
174 datetime.timedelta(hours=10), instance._GetElapsedTime(start_time))
179 instance.datetime.datetime.now.return_value = dateutil.parser.parse(
[all …]
Dlist_test.py25 from acloud.list import instance
110 self.Patch(instance, "GetAllLocalInstanceConfigs",
112 self.Patch(instance, "GetLocalInstanceRuntimeDir")
116 self.Patch(instance, "LocalInstance", return_value=local_ins)
123 self.Patch(instance, "LocalInstance", return_value=local_ins)
131 self.Patch(instance.Instance, "Summary")
142 ins = instance.LocalInstance("fake_cf_path")
144 instance.Instance.Summary.assert_called_once()
147 self.Patch(instance.Instance, "Summary")
149 instance.Instance.Summary.assert_not_called()
[all …]
Dlist.py30 from acloud.list import instance
49 return [instance.RemoteInstance(gce_instance) for gce_instance in instance_list]
125 for cf_runtime_config_path in instance.GetAllLocalInstanceConfigs():
126 ins = instance.LocalInstance(cf_runtime_config_path)
144 cfg_path = instance.GetLocalInstanceConfig(local_instance_id)
146 ins = instance.LocalInstance(cfg_path)
149 cfg_path = instance.GetDefaultCuttlefishConfig()
151 ins = instance.LocalInstance(cfg_path)
168 instance.LocalGoldfishInstance.GetExistingInstances())
/tools/acloud/
DREADME.md50 instance (running on a virtual machine in the cloud) and local instance
54 **Disclaimer: Creation of a cuttlefish local instance is not formally supported, please use at your…
58 * Remote instance using an Android Build image (LKGB (Last Known Good Build)
64 * Remote instance using a locally built image (use `m` to build the image)
68 * Local instance using an Android Build image (LKGB for cuttlefish phone
71 > $ acloud create --local-instance
73 * Local instance using a locally built image (use `m` to build the image)
75 > $ acloud create --local-instance --local-image
96 * `--autoconnect`: This defaults to true and upon creation of a remote instance,
97 creates a ssh tunnel to enable adb and vnc connection to the instance. For the
[all …]
/tools/acloud/delete/
Ddelete.py63 for instance in instances_to_delete:
64 if instance.islocal:
65 if instance.avd_type == constants.TYPE_GF:
66 DeleteLocalGoldfishInstance(instance, delete_report)
67 elif instance.avd_type == constants.TYPE_CF:
68 DeleteLocalCuttlefishInstance(instance, delete_report)
71 instance.avd_type)
74 remote_instance_list.append(instance.name)
76 if instance.vnc_port:
77 utils.CleanupSSVncviewer(instance.vnc_port)
[all …]
/tools/acloud/public/actions/
Dremote_instance_cf_device_factory.py90 instance = self._InitRemotehost()
92 self._LaunchCvd(instance=instance,
96 instance = self._CreateGceInstance()
98 if instance in self.GetFailures():
99 return instance
102 self._LaunchCvd(instance=instance,
105 self._SetFailures(instance, e)
107 return instance
132 instance = "%s-%s-%s-%s" % (constants.INSTANCE_TYPE_HOST,
145 return instance
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DTestSuiteInfoTest.java38 TestSuiteInfo instance = TestSuiteInfo.getInstance(); in testDefaultValues() local
39 if (instance.didLoadFromProperties()) { in testDefaultValues()
44 assertEquals("[stub build number]", instance.getBuildNumber()); in testDefaultValues()
45 assertEquals("[stub target arch]", instance.getTargetArchs().get(0)); in testDefaultValues()
46 assertEquals("[stub name]", instance.getName()); in testDefaultValues()
47 assertEquals("[stub fullname]", instance.getFullName()); in testDefaultValues()
48 assertEquals("[stub version]", instance.getVersion()); in testDefaultValues()
67 TestSuiteInfo instance = TestSuiteInfo.getInstance(); in testLoadConfig() local
69 Properties p = instance.loadSuiteInfo(stream); in testLoadConfig()
93 TestSuiteInfo instance = TestSuiteInfo.getInstance(); in testLoadConfig_multiArch() local
[all …]
/tools/test/connectivity/acts/framework/acts/
Dtest_decorators.py77 def __get__(self, instance, owner): argument
84 return _TestInfoBinding(self, instance)
171 def __init__(self, target, instance): argument
178 self.instance = instance
186 return self.target(self.instance, *args, **kwargs)
192 return self.target.gather(self.instance, *args, **kwargs)
/tools/acloud/internal/script/
Dcreate_extradisk.sh21 gcloud compute instances attach-disk instance-disk-creation --disk "${DISK_NAME}" --zone=${ZONE} --…
23 gcloud compute ssh instance-disk-creation --zone=${ZONE} --project=${PROJECT} --command "sudo mkfs.…
24 gcloud compute ssh instance-disk-creation --zone=${ZONE} --project=${PROJECT} --command "sudo mount…
25 gcloud compute ssh instance-disk-creation --zone=${ZONE} --project=${PROJECT} --command "ls /mnt"
26 gcloud compute ssh instance-disk-creation --zone=${ZONE} --project=${PROJECT} --command "sudo umoun…
28 gcloud compute instances detach-disk instance-disk-creation --disk "${DISK_NAME}" --zone=${ZONE} --…
/tools/test/connectivity/acts/framework/acts/libs/
Dversion_selector.py159 self.instance = None
230 if self.instance is not None:
233 level = self.get_version(self.instance, *args, **kwargs)
265 if self.instance is None:
269 return func(self.instance, *args, **kwargs)
271 def __get__(self, instance, owner): argument
290 self.instance = instance
/tools/acloud/pull/
Dpull.py44 def PullFileFromInstance(cfg, instance, file_name=None, no_prompts=False): argument
60 ssh = Ssh(ip=IP(ip=instance.ip),
65 download_folder = GetDownloadLogFolder(instance.name)
112 def GetDownloadLogFolder(instance): argument
121 log_folder = os.path.join(tempfile.gettempdir(), instance)
218 instance = list_instances.GetInstancesFromInstanceNames(
220 return PullFileFromInstance(cfg, instance[0], args.file_name, args.no_prompt)
Dpull_test.py40 instance = mock.MagicMock()
41 instance.ip = "1.1.1.1"
48 pull.PullFileFromInstance(cfg, instance)
54 pull.PullFileFromInstance(cfg, instance)
86 instance = "instance"
88 self.assertEqual(pull.GetDownloadLogFolder(instance), expected_path)
/tools/acloud/create/
Dcheeps_remote_image_remote_instance_test.py84 instance = cheeps_remote_image_remote_instance.CheepsRemoteImageRemoteInstance()
85 report = instance.Create(avd_spec, no_prompts=False)
89 instance=self.INSTANCE,
116 instance = cheeps_remote_image_remote_instance.CheepsRemoteImageRemoteInstance()
117 instance.Create(avd_spec, no_prompts=False)
121 instance=self.INSTANCE,
Dlocal_image_local_instance.py50 from acloud.list import instance
106 instance_name = instance.GetLocalInstanceName(
191 instance_dir = instance.GetLocalInstanceRuntimeDir(local_instance_id)
266 cvd_home_dir = instance.GetLocalInstanceHomeDir(local_instance_id)
267 cvd_runtime_dir = instance.GetLocalInstanceRuntimeDir(local_instance_id)
310 for cf_runtime_config_path in instance.GetAllLocalInstanceConfigs():
311 ins = instance.LocalInstance(cf_runtime_config_path)
Dcheeps_remote_image_remote_instance.py111 instance = self._compute_client.GenerateInstanceName(
127 instance=instance,
131 return instance
Dlocal_image_local_instance_test.py26 from acloud.list import instance
81 self.Patch(instance, "GetLocalInstanceName",
88 self.Patch(instance, "LocalInstance",
137 @mock.patch.object(instance, "GetLocalInstanceRuntimeDir")
217 self.Patch(instance, "GetLocalInstanceHomeDir",
/tools/test/connectivity/acts/framework/acts/event/
Dsubscription_handle.py39 def __get__(self, instance, owner): argument
42 if self._owner is not None or instance is None:
49 ret._owner = instance
53 setattr(instance, attr, ret)
/tools/acloud/public/
Ddevice_driver.py217 instance = self._compute_client.GenerateInstanceName(
222 instance)
227 instance=instance,
232 ip = self._compute_client.GetInstanceIP(instance)
234 ip=ip, instance_name=instance))
327 instance=instance_name, port=port)

1234