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)

使用中の IConfiguration を挿入します。

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