DeviceOwnerTargetPreparer
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)
|
公共构造函数
DeviceOwnerTargetPreparer
public DeviceOwnerTargetPreparer ()
公共方法
setConfiguration
public void setConfiguration (IConfiguration configuration)
注入正在使用的 IConfiguration
。
参数 | |
---|---|
configuration |
IConfiguration |
setUp
public void setUp (TestInformation testInfo)
参数 | |
---|---|
testInfo |
TestInformation |
抛出 | |
---|---|
DeviceNotAvailableException |
|
TargetSetupError |
tearDown
public void tearDown (TestInformation testInfo, Throwable e)
参数 | |
---|---|
testInfo |
TestInformation |
e |
Throwable |
抛出 | |
---|---|
DeviceNotAvailableException |