設備所有者目標準備者

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