简介目标准备者
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) 检查是否可以创建所需数量的用户。 |
公共方法
设置
public void setUp (TestInformation testInfo)
参数 | |
---|---|
testInfo | TestInformation |
投掷 | |
---|---|
DeviceNotAvailableException | |
TargetSetupError |
拆除
public void tearDown (TestInformation testInfo, Throwable e)
参数 | |
---|---|
testInfo | TestInformation |
e | Throwable |
投掷 | |
---|---|
DeviceNotAvailableException |
受保护的方法
可以创建其他用户
protected boolean canCreateAdditionalUsers (ITestDevice device, int numberOfUsers)
检查是否可以创建所需数量的用户。
参数 | |
---|---|
device | ITestDevice |
numberOfUsers | int |
退货 | |
---|---|
boolean |
投掷 | |
---|---|
DeviceNotAvailableException |