CompanionAllocator

public abstract class CompanionAllocator
extends BaseTargetPreparer

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


Arkadaş cihazı ayırma ve serbest bırakma işlemlerini yapan temel sınıf

Tamamlayıcı cihazı tahsis etmek için gereken ölçütleri tanımlamak üzere getCompanionDeviceSelectionOptions() uygulanmalıdır

Özet

Herkese açık kurucular

CompanionAllocator()

Herkese açık yöntemler

void setUp(ITestDevice device, IBuildInfo buildInfo)

Cihazı kurar.

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

Korunan yöntemler

abstract DeviceSelectionOptions getCompanionDeviceSelectionOptions()

Tamamlayıcı cihaz için DeviceSelectionOptions hakkında bilgi ver

Herkese açık kurucular

CompanionAllocator

public CompanionAllocator ()

Herkese açık yöntemler

setUp

public void setUp (ITestDevice device, 
                IBuildInfo buildInfo)

Cihazı kurar.

Bu yöntemin dahili olarak uygulanması, bir tamamlayıcı cihaz ister ve bu cihazı ayırır.

Parametreler
device ITestDevice

buildInfo IBuildInfo

Atışlar
BuildError
DeviceNotAvailableException
TargetSetupError

tearDown

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

Parametreler
device ITestDevice

buildInfo IBuildInfo

e Throwable

Atışlar
DeviceNotAvailableException

Korunan yöntemler

getCompanionDeviceSelectionOptions

protected abstract DeviceSelectionOptions getCompanionDeviceSelectionOptions ()

Tamamlayıcı cihaz için DeviceSelectionOptions hakkında bilgi ver

İlerlemeler
DeviceSelectionOptions