VisibleBackgroundUserPreparer
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)
公共构造函数
VisibleBackgroundUserPreparer
public VisibleBackgroundUserPreparer ()
公共方法
getDisplayId
public Integer getDisplayId ()
| 返回 | |
|---|---|
Integer |
|
setDisplayId
public void setDisplayId (int displayId)
| 参数 | |
|---|---|
displayId |
int |
setUp
public void setUp (TestInformation testInfo)
| 参数 | |
|---|---|
testInfo |
TestInformation |
| 抛出 | |
|---|---|
BuildError |
|
DeviceNotAvailableException |
|
TargetSetupError |
|
tearDown
public void tearDown (TestInformation testInfo, Throwable e)
| 参数 | |
|---|---|
testInfo |
TestInformation |
e |
Throwable |
| 抛出 | |
|---|---|
DeviceNotAvailableException |
|