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 |