ProfileTargetPreparer
public
abstract
class
ProfileTargetPreparer
extends BaseTargetPreparer
| java.lang.Object | ||
| ↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
| ↳ | com.android.tradefed.targetprep.ProfileTargetPreparer | |
用于为任何配置文件用户 android.os.usertype.profile.XXX 设置目标准备程序的基准类。
摘要
公共方法 | |
|---|---|
void
|
setUp(TestInformation testInfo)
|
void
|
tearDown(TestInformation testInfo, Throwable e)
|
受保护的方法 | |
|---|---|
boolean
|
canCreateAdditionalUsers(ITestDevice device, int numberOfUsers)
检查是否可以创建所需数量的用户。 |
公共方法
setUp
public void setUp (TestInformation testInfo)
| 参数 | |
|---|---|
testInfo |
TestInformation |
| 抛出 | |
|---|---|
DeviceNotAvailableException |
|
TargetSetupError |
|
tearDown
public void tearDown (TestInformation testInfo, Throwable e)
| 参数 | |
|---|---|
testInfo |
TestInformation |
e |
Throwable |
| 抛出 | |
|---|---|
DeviceNotAvailableException |
|
受保护的方法
canCreateAdditionalUsers
protected boolean canCreateAdditionalUsers (ITestDevice device, int numberOfUsers)
检查是否可以创建所需数量的用户。
| 参数 | |
|---|---|
device |
ITestDevice |
numberOfUsers |
int |
| 返回 | |
|---|---|
boolean |
|
| 抛出 | |
|---|---|
DeviceNotAvailableException |
|