Lines Matching refs:delete_report
61 delete_report = report.Report(command="delete")
66 DeleteLocalGoldfishInstance(instance, delete_report)
68 DeleteLocalCuttlefishInstance(instance, delete_report)
70 delete_report.AddError("Deleting %s is not supported." %
72 delete_report.SetStatus(report.Status.FAIL)
83 return DeleteRemoteInstances(cfg, remote_instance_list, delete_report)
85 return delete_report
91 def DeleteRemoteInstances(cfg, instances_to_delete, delete_report=None): argument
118 delete_report = device_driver.DeleteAndroidVirtualDevices(
119 cfg, instances_to_delete, delete_report)
121 return delete_report
126 def DeleteLocalCuttlefishInstance(instance, delete_report): argument
141 delete_report.SetStatus(report.Status.SUCCESS)
143 delete_report, [instance.name], failed=[],
147 delete_report.AddError(str(e))
148 delete_report.SetStatus(report.Status.FAIL)
150 return delete_report
155 def DeleteLocalGoldfishInstance(instance, delete_report): argument
168 delete_report.SetStatus(report.Status.SUCCESS)
170 delete_report, [instance.name], failed=[],
174 delete_report.AddError("Cannot kill %s." % instance.device_serial)
175 delete_report.SetStatus(report.Status.FAIL)
178 return delete_report
195 delete_report = report.Report(command="delete")
207 delete_report.SetStatus(report.Status.SUCCESS)
209 delete_report, [remote_host], failed=[],
213 delete_report.AddError(str(e))
214 delete_report.SetStatus(report.Status.FAIL)
216 return delete_report
229 delete_report = report.Report(command="delete")
236 delete_report = DeleteInstances(cfg, list_instances.FilterInstancesByNames(
239 delete_report = DeleteRemoteInstances(cfg,
241 delete_report)
242 return delete_report