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 |
|