CompanionAwarePreparer

public abstract class CompanionAwarePreparer
extends BaseTargetPreparer

java.lang.Object
com.android.tradefed.targetprep.BaseTargetPreparer
com.android.tradefed.targetprep.companion.CompanionAwarePreparer


既に割り当てられているコンパニオン デバイスを取得するロジックをカプセル化するITargetPreparer

注: これはCompanionAllocatorと組み合わせて使用​​する必要があります。

まとめ

パブリック コンストラクター

CompanionAwarePreparer ()

保護されたメソッド

ITestDevice getCompanion ( ITestDevice primary)

プライマリITestDeviceに割り当てられたコンパニオン デバイスのITestDeviceインスタンスを取得します

パブリック コンストラクター

CompanionAwarePreparer

public CompanionAwarePreparer ()

保護されたメソッド

getCompanion

protected ITestDevice getCompanion (ITestDevice primary)

プライマリITestDeviceに割り当てられたコンパニオン デバイスのITestDeviceインスタンスを取得します

戻り値
ITestDevice割り当てられたコンパニオン デバイスのITestDeviceインスタンス

スロー
TargetSetupErrorコンパニオン デバイスがプライマリ デバイスに割り当てられていない場合