ProfileTargetPreparer
public
abstract
class
ProfileTargetPreparer
extends BaseTargetPreparer
java.lang.Object | ||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
↳ | com.android.tradefed.targetprep.ProfileTargetPreparer |
Base class for setting up target preparer for any profile user android.os.usertype.profile.XXX
.
Summary
Public methods | |
---|---|
void
|
setUp(TestInformation testInfo)
|
void
|
tearDown(TestInformation testInfo, Throwable e)
|
Protected methods | |
---|---|
boolean
|
canCreateAdditionalUsers(ITestDevice device, int numberOfUsers)
Checks whether it is possible to create the desired number of users. |
Public methods
setUp
public void setUp (TestInformation testInfo)
Parameters | |
---|---|
testInfo |
TestInformation |
Throws | |
---|---|
DeviceNotAvailableException |
|
TargetSetupError |
tearDown
public void tearDown (TestInformation testInfo, Throwable e)
Parameters | |
---|---|
testInfo |
TestInformation |
e |
Throwable |
Throws | |
---|---|
DeviceNotAvailableException |
Protected methods
canCreateAdditionalUsers
protected boolean canCreateAdditionalUsers (ITestDevice device, int numberOfUsers)
Checks whether it is possible to create the desired number of users.
Parameters | |
---|---|
device |
ITestDevice |
numberOfUsers |
int |
Returns | |
---|---|
boolean |
Throws | |
---|---|
DeviceNotAvailableException |