VisibleBackgroundUserPreparer
public
class
VisibleBackgroundUserPreparer
extends BaseTargetPreparer
java.lang.Object | ||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
↳ | com.android.tradefed.targetprep.VisibleBackgroundUserPreparer |
Target preparer for running tests in a user that is started in the visible in the background.
Summary
Constants | |
---|---|
int |
DEFAULT_DISPLAY
|
int |
INVALID_DISPLAY
|
Public constructors | |
---|---|
VisibleBackgroundUserPreparer()
|
Public methods | |
---|---|
Integer
|
getDisplayId()
|
void
|
setDisplayId(int displayId)
|
void
|
setUp(TestInformation testInfo)
|
void
|
tearDown(TestInformation testInfo, Throwable e)
|
Constants
DEFAULT_DISPLAY
public static final int DEFAULT_DISPLAY
Constant Value: 0 (0x00000000)
INVALID_DISPLAY
public static final int INVALID_DISPLAY
Constant Value: -1 (0xffffffff)
Public constructors
VisibleBackgroundUserPreparer
public VisibleBackgroundUserPreparer ()
Public methods
getDisplayId
public Integer getDisplayId ()
Returns | |
---|---|
Integer |
setDisplayId
public void setDisplayId (int displayId)
Parameters | |
---|---|
displayId |
int |
setUp
public void setUp (TestInformation testInfo)
Parameters | |
---|---|
testInfo |
TestInformation |
Throws | |
---|---|
BuildError |
|
DeviceNotAvailableException |
|
TargetSetupError |
tearDown
public void tearDown (TestInformation testInfo, Throwable e)
Parameters | |
---|---|
testInfo |
TestInformation |
e |
Throwable |
Throws | |
---|---|
DeviceNotAvailableException |