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 |
|