可见背景用户准备器

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