동반자 할당자

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

분해

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

매개변수
device ITestDevice

buildInfo IBuildInfo

e Throwable

던지기
DeviceNotAvailableException

보호된 방법

getCompanionDeviceSelectionOptions

protected abstract DeviceSelectionOptions getCompanionDeviceSelectionOptions ()

컴패니언 장치에 대한 DeviceSelectionOptions 설명

보고
DeviceSelectionOptions