CompanionAllocator

public abstract class CompanionAllocator
extends BaseTargetPreparer

java.lang.객체
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 ()

공개 방법

설정

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