设备所有者目标准备者

public class DeviceOwnerTargetPreparer
extends BaseTargetPreparer implements IConfigurationReceiver

java.lang.Object
com.android.tradefed.targetprep.BaseTargetPreparer
com.android.tradefed.targetprep.DeviceOwnerTargetPreparer


用于设置设备所有者组件的ITargetPreparer

在设置新设备所有者之前,现有设备和配置文件所有者以及辅助用户将被删除。

在拆卸过程中,设备所有者被删除。

概括

公共构造函数

DeviceOwnerTargetPreparer ()

公共方法

void setConfiguration ( IConfiguration configuration)

注入正在使用的IConfiguration

void setUp ( TestInformation testInfo)
void tearDown ( TestInformation testInfo, Throwable e)

公共构造函数

设备所有者目标准备者

public DeviceOwnerTargetPreparer ()

公共方法

设置配置

public void setConfiguration (IConfiguration configuration)

注入正在使用的IConfiguration

参数
configuration IConfiguration

设置

public void setUp (TestInformation testInfo)

参数
testInfo TestInformation

投掷
DeviceNotAvailableException
TargetSetupError

拆除

public void tearDown (TestInformation testInfo, 
                Throwable e)

参数
testInfo TestInformation

e Throwable

投掷
DeviceNotAvailableException