CompanionAwarePreparer

public abstract class CompanionAwarePreparer
extends BaseTargetPreparer

java.lang.オブジェクト
com.android.tradefed.targetprep.BaseTargetPreparer
com.android.tradefed.targetprep.companion.CompanionAwarePreparer


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

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

まとめ

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

CompanionAwarePreparer ()

保護されたメソッド

ITestDevice getCompanion ( ITestDevice primary)

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

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

CompanionAwarePreparer

public CompanionAwarePreparer ()

保護されたメソッド

getコンパニオン

protected ITestDevice getCompanion (ITestDevice primary)

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

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

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