Trình chuẩn bị của người dùng trong nền tảng chung

public class VisibleBackgroundUserPreparer
extends BaseTargetPreparer

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


Trình chuẩn bị mục tiêu để chạy kiểm thử trong một người dùng được bắt đầu ở chế độ hiển thị trong nền.

Tóm tắt

Hằng số

int DEFAULT_DISPLAY

int INVALID_DISPLAY

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

VisibleBackgroundUserPreparer()

Phương thức công khai

Integer getDisplayId()
void setDisplayId(int displayId)
void setUp(TestInformation testInfo)
void tearDown(TestInformation testInfo, Throwable e)

Hằng số

DEFAULT_DISPLAY

public static final int DEFAULT_DISPLAY

Giá trị hằng số: 0 (0x00000000)

INVALID_DISPLAY

public static final int INVALID_DISPLAY

Giá trị hằng số: -1 (0xffffffff)

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

Trình chuẩn bị của người dùng trong nền tảng chung

public VisibleBackgroundUserPreparer ()

Phương thức công khai

getDisplayId

public Integer getDisplayId ()

Giá trị trả về
Integer

setDisplayId

public void setDisplayId (int displayId)

Tham số
displayId int

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