可見背景使用者準備器

public class VisibleBackgroundUserPreparer
extends BaseTargetPreparer

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


用於在背景可見啟動的使用者中執行測試的目標準備器。

概括

常數

int DEFAULT_DISPLAY

int INVALID_DISPLAY

公共構造函數

VisibleBackgroundUserPreparer ()

公共方法

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

常數

DEFAULT_DISPLAY

public static final int DEFAULT_DISPLAY

常量值:0 (0x00000000)

INVALID_DISPLAY

public static final int INVALID_DISPLAY

常量值:-1 (0xffffffff)

公共構造函數

可見背景使用者準備器

public VisibleBackgroundUserPreparer ()

公共方法

取得顯示ID

public Integer getDisplayId ()

退貨
Integer

設定顯示ID

public void setDisplayId (int displayId)

參數
displayId int

設定

public void setUp (TestInformation testInfo)

參數
testInfo TestInformation

投擲
BuildError
DeviceNotAvailableException
TargetSetupError

拆除

public void tearDown (TestInformation testInfo, 
                Throwable e)

參數
testInfo TestInformation

e Throwable

投擲
DeviceNotAvailableException