CompanionAwarePreparer
public
abstract
class
CompanionAwarePreparer
extends BaseTargetPreparer
| java.lang.Object | ||
| ↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
| ↳ | com.android.tradefed.targetprep.companion.CompanionAwarePreparer | |
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 |
Public constructors
CompanionAwarePreparer
public CompanionAwarePreparer ()
Protected methods
getCompanion
protected 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 |