โปรแกรมทำความสะอาดอุปกรณ์

public class DeviceCleaner
extends BaseTargetPreparer

java.lang.Object
com.android.tradefed.targetprep.BaseTargetPreparer
  com.android.tradefed.targetprep.DeviceCleaner


รีบูตหรือฟอร์แมตเป็นการดำเนินการล้างข้อมูลหลังจากการทดสอบ และเลือกปิดหน้าจอได้

สรุป

ชั้นเรียนที่ซ้อนกัน

enum DeviceCleaner.CleanupAction

 

enum DeviceCleaner.PostCleanupAction

 

ช่างก่อสร้างสาธารณะ

DeviceCleaner()

วิธีการสาธารณะ

void setUp(TestInformation testInfo)
void tearDown(TestInformation testInfo, Throwable e)

วิธีการป้องกัน

void clean(ITestDevice device)

ดำเนินการทำความสะอาด ตามด้วยการดำเนินการหลังการล้างข้อมูล

ช่างก่อสร้างสาธารณะ

โปรแกรมทำความสะอาดอุปกรณ์

public DeviceCleaner ()

วิธีการสาธารณะ

ตั้งค่า

public void setUp (TestInformation testInfo)

พารามิเตอร์
testInfo TestInformation

การขว้าง
BuildError
DeviceNotAvailableException
TargetSetupError

ฉีกขาด

public void tearDown (TestInformation testInfo, 
                Throwable e)

พารามิเตอร์
testInfo TestInformation

e Throwable

การขว้าง
DeviceNotAvailableException

วิธีการป้องกัน

ทำความสะอาด

protected void clean (ITestDevice device)

ดำเนินการทำความสะอาด ตามด้วยการดำเนินการหลังการล้างข้อมูล

พารามิเตอร์
device ITestDevice

การขว้าง
DeviceNotAvailableException