CompanionAllocator

public abstract class CompanionAllocator
extends BaseTargetPreparer

java.lang.Object
com.android.tradefed.targetprep.BaseTargetPreparer
com.android.tradefed.targetprep.companion.CompanionAllocator


Eşlik eden aygıtı ayırma ve serbest bırakmayla ilgilenen temel sınıf

Eşlik eden cihazı tahsis etmek için gerekli kriterleri açıklamak için getCompanionDeviceSelectionOptions() uygulanmalıdır.

Özet

kamu inşaatçılar

CompanionAllocator ()

Genel yöntemler

void setUp ( ITestDevice device, IBuildInfo buildInfo)

Cihazı kurar.

void tearDown ( ITestDevice device, IBuildInfo buildInfo, Throwable e)

Korumalı yöntemler

abstract DeviceSelectionOptions getCompanionDeviceSelectionOptions ()

Yardımcı cihaz için DeviceSelectionOptions tanımlayın

kamu inşaatçılar

CompanionAllocator

public CompanionAllocator ()

Genel yöntemler

kurmak

public void setUp (ITestDevice device, 
                IBuildInfo buildInfo)

Cihazı kurar.

Bu yöntemin dahili uygulaması, eşlik eden bir cihaz isteyecek ve onu tahsis edecektir.

parametreler
device ITestDevice

buildInfo IBuildInfo

Atar
BuildError
DeviceNotAvailableException
TargetSetupError

sökmek

public void tearDown (ITestDevice device, 
                IBuildInfo buildInfo, 
                Throwable e)

parametreler
device ITestDevice

buildInfo IBuildInfo

e Throwable

Atar
DeviceNotAvailableException

Korumalı yöntemler

getCompanionDeviceSelectionOptions

protected abstract DeviceSelectionOptions getCompanionDeviceSelectionOptions ()

Yardımcı cihaz için DeviceSelectionOptions tanımlayın

İadeler
DeviceSelectionOptions