Home
last modified time | relevance | path

Searched refs:instances (Results 1 – 13 of 13) sorted by relevance

/tools/acloud/list/
Dlist.py183 def ChooseInstancesFromList(instances): argument
192 if len(instances) > 1:
194 return utils.GetAnswerFromList(instances, enable_choose_all=True)
195 return instances
212 instances = GetInstances(cfg)
214 return ChooseInstancesFromList(instances)
215 return instances
240 instances = utils.GetAnswerFromList(instances_list,
242 return instances[0]
247 def FilterInstancesByNames(instances, names): argument
[all …]
Dinstance_test.py141 instances = instance.LocalGoldfishInstance.GetExistingInstances()
147 self.assertEqual(len(instances), 2)
148 self.assertEqual(instances[0].console_port, 5554)
149 self.assertEqual(instances[0].createtime, "test createtime")
150 self.assertEqual(instances[0].fullname,
154 self.assertEqual(instances[1].console_port, 5558)
155 self.assertEqual(instances[1].createtime, "test createtime")
156 self.assertEqual(instances[1].fullname,
Dinstance.py548 instances = []
557 instances.append(LocalGoldfishInstance(instance_id,
559 return instances
/tools/acloud/delete/
Ddelete.py219 def DeleteInstanceByNames(cfg, instances): argument
231 ins for ins in instances if ins.startswith(_LOCAL_INSTANCE_PREFIX)
233 remote_instances = list(set(instances) - set(local_instances))
267 instances = list_instances.GetLocalInstances()
269 instances.extend(list_instances.GetRemoteInstances(cfg))
272 instances = list_instances.FilterInstancesByAdbPort(instances,
277 instances = list_instances.ChooseInstancesFromList(instances)
279 return DeleteInstances(cfg, instances)
Ddelete_test.py104 instances = ["local-instance-1", "local-instance-2"]
107 delete.DeleteInstanceByNames(cfg, instances)
111 instances = ["ins-id1-cf-x86-phone-userdebug",
113 delete.DeleteInstanceByNames(cfg, instances)
/tools/acloud/internal/lib/
Dgcompute_client.py547 api = self.service.instances().get(
578 api = self.service.instances().setMachineResources(
637 api = self.service.instances().attachDisk(
665 api = self.service.instances().detachDisk(
691 api = self.service.instances().start(
704 def StartInstances(self, instances, zone): argument
720 self.service.instances().start, project=self._project, zone=zone)
721 return self._BatchExecuteOnInstances(instances, zone, action)
733 api = self.service.instances().stop(
746 def StopInstances(self, instances, zone): argument
[all …]
Dgcompute_client_test.py477 self.compute_client._service.instances = mock.MagicMock(
496 self.compute_client._service.instances = mock.MagicMock(
499 instances = self.compute_client.ListInstances()
507 self.assertEqual(instances, [instance_1, instance_2])
532 instances = ["instance_1", "instance_2"]
539 self.assertEqual(self.compute_client.GetZonesByInstances(instances),
549 self.assertEqual(self.compute_client.GetZonesByInstances(instances),
567 self.compute_client._service.instances = mock.MagicMock(
643 self.compute_client._service.instances = mock.MagicMock(
719 self.compute_client._service.instances = mock.MagicMock(
[all …]
/tools/acloud/
DREADME.md118 List will retrieve all the remote instances you've created in addition to
119 any local instances created as well.
134 Delete will stop your remote and local instances. Acloud will find all
135 instances created by you and stop them. If more than one instance is found
141 * Delete sole instance or prompt user with list of instances to delete.
145 * Delete all instances
162 * Reconnect sole instance or prompt user with list of instances to reconnect.
166 * Reconnect all instances
183 are more than one active instances.
206 * Run setup for remote/local instances
[all …]
/tools/acloud/internal/script/
Dcreate_extradisk.sh21 gcloud compute instances attach-disk instance-disk-creation --disk "${DISK_NAME}" --zone=${ZONE} --…
28 gcloud compute instances detach-disk instance-disk-creation --disk "${DISK_NAME}" --zone=${ZONE} --…
/tools/acloud/public/
Ddevice_driver.py459 for zone, instances in zone_instances.items():
461 instances, zone)
/tools/acloud/internal/proto/
Duser_config.proto99 …// https://cloud.google.com/compute/docs/access/create-enable-service-accounts-for-instances#chang…
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DGceManager.java652 compute.instances().getSerialPortOutput(project, zone, instanceName); in getInstanceSerialLog()
/tools/metalava/
DREADME.md326 filtered model instead of passing around PsiClass and PsiMethod instances