配置文件目标准备器

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