Home
last modified time | relevance | path

Searched refs:ins_id (Results 1 – 5 of 5) sorted by relevance

/tools/acloud/list/
Dlist.py152 for ins_id, cfg_path in id_cfg_pairs:
153 ins_lock = instance.GetLocalInstanceLock(ins_id)
156 "process.", ins_id)
167 "%d is not active.", cfg_path, ins_id)
349 ins_id = instance.GetLocalInstanceIdByName(name)
350 if ins_id is None:
352 cfg_path = instance.GetLocalInstanceConfig(ins_id)
354 id_cfg_pairs.append((ins_id, cfg_path))
355 if ins_id == 1:
358 id_cfg_pairs.append((ins_id, cfg_path))
Dinstance.py185 ins_id = GetLocalInstanceIdByName(ins_name)
186 if ins_id is not None:
187 cfg_path = GetLocalInstanceConfig(ins_id)
189 id_cfg_pairs.append((ins_id, cfg_path))
244 for ins_id in cf_runtime_cfg.instance_ids:
245 local_instances.append(LocalInstance(cf_config_path, ins_id))
500 def __init__(self, cf_config_path, ins_id=None): argument
510 self._local_instance_id = int(ins_id or self._cf_runtime_cfg.instance_id)
515 ins_info = self._cf_runtime_cfg.instances.get(ins_id, {})
/tools/acloud/create/
Dgoldfish_local_image_local_instance.py103 ins_id, ins_lock = self._LockInstance(avd_spec)
111 ins = instance.LocalGoldfishInstance(ins_id,
142 ins_id = avd_spec.local_instance_id
143 ins_lock = instance.LocalGoldfishInstance.GetLockById(ins_id)
145 return ins_id, ins_lock
147 "process." % ins_id)
150 for ins_id in range(1, max_id + 1):
151 ins_lock = instance.LocalGoldfishInstance.GetLockById(ins_id)
153 logger.info("Selected instance id: %d", ins_id)
154 return ins_id, ins_lock
Dlocal_image_local_instance.py170 for ins_id, ins_lock in zip(ins_ids, ins_locks):
171 if not self._CheckRunningCvd(ins_id, no_prompts):
202 ins_id, ins_lock = self._SelectOneFreeInstance()
203 ins_ids.append(ins_id)
222 ins_id = avd_spec.local_instance_id
223 ins_lock = instance.GetLocalInstanceLock(ins_id)
225 return ins_id, ins_lock
227 "process." % ins_id)
241 for ins_id in range(1, _MAX_INSTANCE_ID + 1):
242 ins_lock = instance.GetLocalInstanceLock(ins_id)
[all …]
Dlocal_image_local_instance_test.py212 ins_id, _ = self.local_image_local_instance._SelectAndLockInstance(
214 self.assertEqual(2, ins_id)
221 ins_id, _ = self.local_image_local_instance._SelectAndLockInstance(
223 self.assertEqual(1, ins_id)