Lines Matching refs:instance
62 for instance in instances_to_delete:
63 if instance.islocal:
64 if instance.avd_type == constants.TYPE_GF:
65 DeleteLocalGoldfishInstance(instance, delete_report)
66 elif instance.avd_type == constants.TYPE_CF:
67 DeleteLocalCuttlefishInstance(instance, delete_report)
70 instance.avd_type)
73 remote_instance_list.append(instance.name)
75 if instance.vnc_port:
76 utils.CleanupSSVncviewer(instance.vnc_port)
109 for instance in instances_to_delete:
110 utils.PrintColorString(" - %s" % instance, utils.TextColors.WARNING)
125 def DeleteLocalCuttlefishInstance(instance, delete_report): argument
138 ins_lock = instance.GetLock()
141 instance.name)
147 instance.Delete()
150 delete_report, [instance.name], failed=[],
164 def DeleteLocalGoldfishInstance(instance, delete_report): argument
174 lock = instance.GetLock()
177 instance.name)
183 if instance.adb.EmuCommand("kill") == 0:
186 delete_report, [instance.name], failed=[],
190 delete_report.AddError("Cannot kill %s." % instance.device_serial)