DeviceCleaner

public class DeviceCleaner
extends BaseTargetPreparer

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


Thực hiện khởi động lại hoặc định dạng dưới dạng thao tác dọn dẹp sau khi kiểm thử và có thể tắt màn hình

Tóm tắt

Hàm khởi tạo công khai

DeviceCleaner()

Phương thức công khai

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

Phương thức được bảo vệ

void clean(ITestDevice device)

Thực thi thao tác dọn dẹp, theo sau là thao tác dọn dẹp sau

Hàm khởi tạo công khai

DeviceCleaner

public DeviceCleaner ()

Phương thức công khai

setUp

public void setUp (TestInformation testInfo)

Tham số
testInfo TestInformation

Gửi
BuildError
DeviceNotAvailableException
TargetSetupError

tearDown

public void tearDown (TestInformation testInfo, 
                Throwable e)

Tham số
testInfo TestInformation

e Throwable

Gửi
DeviceNotAvailableException

Phương thức được bảo vệ

sạch sẽ

protected void clean (ITestDevice device)

Thực thi thao tác dọn dẹp, theo sau là thao tác dọn dẹp sau

Tham số
device ITestDevice

Gửi
DeviceNotAvailableException