夥伴分配

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()

說明配對裝置的 DeviceSelectionOptions

公用建構函式

夥伴分配

public CompanionAllocator ()

公用方法

設定

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