CompanionAwarePreparer

public abstract class CompanionAwarePreparer
extends Object implements ITargetPreparer

java.lang.Object
   ↳ com.android.tradefed.targetprep.companion.CompanionAwarePreparer
Known Direct Subclasses
CheckPairingPreparer A CompanionAwarePreparer that verifies BT bonding between primary and companion devices  


An ITargetPreparer that encapsulates the logic of getting an already allocated companion device.

Note: that this must be used in conjunction with a CompanionAllocator.

Summary

Public constructors

CompanionAwarePreparer()

Protected methods

ITestDevice getCompanion(ITestDevice primary)

Retrieves the ITestDevice instance of companion device allocated for the primary ITestDevice

Public constructors

CompanionAwarePreparer

CompanionAwarePreparer ()

Protected methods

getCompanion

ITestDevice getCompanion (ITestDevice primary)

Retrieves the ITestDevice instance of companion device allocated for the primary ITestDevice

Returns
ITestDevice the ITestDevice instance of companion device allocated

Throws
TargetSetupError if no companion device has been allocated for the primary device