Searched refs:ins_id (Results 1 – 5 of 5) sorted by relevance
/tools/acloud/list/ |
D | list.py | 152 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))
|
D | instance.py | 178 ins_id = int(min(instances.keys())) if instances else 1 179 return ins_id 193 ins_id = GetInstanceId(cfg_path) 196 if ins_id not in id_set: 197 id_set.add(ins_id) 198 id_cfg_pairs.append((ins_id, cfg_path)) 203 ins_id = GetLocalInstanceIdByName(ins_name) 204 if ins_id is not None and ins_id not in id_set: 205 cfg_path = GetLocalInstanceConfig(ins_id) 207 id_set.add(ins_id) [all …]
|
/tools/acloud/create/ |
D | goldfish_local_image_local_instance.py | 105 ins_id, ins_lock = self._LockInstance(avd_spec) 113 ins = instance.LocalGoldfishInstance(ins_id, 144 ins_id = avd_spec.local_instance_id 145 ins_lock = instance.LocalGoldfishInstance.GetLockById(ins_id) 147 return ins_id, ins_lock 149 "process." % ins_id) 152 for ins_id in range(1, max_id + 1): 153 ins_lock = instance.LocalGoldfishInstance.GetLockById(ins_id) 155 logger.info("Selected instance id: %d", ins_id) 156 return ins_id, ins_lock
|
D | local_image_local_instance.py | 168 for ins_id, ins_lock in zip(ins_ids, ins_locks): 169 if not self._CheckRunningCvd(ins_id, no_prompts): 200 ins_id, ins_lock = self._SelectOneFreeInstance() 201 ins_ids.append(ins_id) 220 ins_id = avd_spec.local_instance_id 221 ins_lock = instance.GetLocalInstanceLock(ins_id) 223 return ins_id, ins_lock 225 "process." % ins_id) 239 for ins_id in range(1, _MAX_INSTANCE_ID + 1): 240 ins_lock = instance.GetLocalInstanceLock(ins_id) [all …]
|
D | local_image_local_instance_test.py | 215 ins_id, _ = self.local_image_local_instance._SelectAndLockInstance( 217 self.assertEqual(2, ins_id) 224 ins_id, _ = self.local_image_local_instance._SelectAndLockInstance( 226 self.assertEqual(1, ins_id)
|