CompanionAllocator
public
abstract
class
CompanionAllocator
extends BaseTargetPreparer
java.lang.Object | ||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
↳ | com.android.tradefed.targetprep.companion.CompanionAllocator |
負責分配及釋出隨附裝置的基本類別
應實作 getCompanionDeviceSelectionOptions()
,以說明分配伴隨裝置所需的條件
摘要
公用建構函式 | |
---|---|
CompanionAllocator()
|
公用方法 | |
---|---|
void
|
setUp(ITestDevice device, IBuildInfo buildInfo)
設定裝置。 |
void
|
tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e)
|
受保護的方法 | |
---|---|
abstract
DeviceSelectionOptions
|
getCompanionDeviceSelectionOptions()
說明隨附裝置的 |
公用建構函式
CompanionAllocator
public CompanionAllocator ()
公用方法
setUp
public void setUp (ITestDevice device, IBuildInfo buildInfo)
設定裝置。
這個方法的內部實作項目會要求配搭裝置,並分配該裝置。
參數 | |
---|---|
device |
ITestDevice |
buildInfo |
IBuildInfo |
擲回 | |
---|---|
BuildError |
|
DeviceNotAvailableException |
|
TargetSetupError |
tearDown
public void tearDown (ITestDevice device, IBuildInfo buildInfo, Throwable e)
參數 | |
---|---|
device |
ITestDevice |
buildInfo |
IBuildInfo |
e |
Throwable |
擲回 | |
---|---|
DeviceNotAvailableException |
受保護的方法
getCompanionDeviceSelectionOptions
protected abstract DeviceSelectionOptions getCompanionDeviceSelectionOptions ()
說明隨附裝置的 DeviceSelectionOptions
傳回 | |
---|---|
DeviceSelectionOptions |