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

호환 기기의 DeviceSelectionOptions 설명

공개 생성자

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