VisibleBackgroundUserPreparer

public class VisibleBackgroundUserPreparer
extends BaseTargetPreparer

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


Target 準備器用於在後台可見的用戶中運行測試。

概括

常量

int DEFAULT_DISPLAY

int INVALID_DISPLAY

公共構造函數

VisibleBackgroundUserPreparer ()

公共方法

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

常量

默認顯示

public static final int DEFAULT_DISPLAY

常數值:0 (0x00000000)

INVALID_DISPLAY

public static final int INVALID_DISPLAY

常數值:-1 (0xffffffff)

公共構造函數

VisibleBackgroundUserPreparer

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