设备所有者目标准备者
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) 注入正在使用的 |
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 |