IDeviceSelection

public interface IDeviceSelection
implements IMatcher<IDevice>

com.android.tradefed.device.IDeviceSelection


기기 선택 기준 인터페이스

요약

공개 메서드

abstract boolean deviceRequested()
abstract boolean emulatorRequested()
abstract boolean gceDeviceRequested()
abstract IDeviceSelection.BaseDeviceType getBaseDeviceTypeRequested()

사용해야 하는 기기 유형을 반환합니다.

abstract Integer getBatteryLevel(IDevice device)

지정된 기기의 배터리 잔량을 가져옵니다.

abstract String getDeviceProductType(IDevice device)

지정된 기기의 제품 유형을 가져옵니다.

abstract String getDeviceProductVariant(IDevice device)

지정된 기기 제품 옵션을 가져옵니다.

abstract Collection<String> getExcludeSerials()

일련번호 제외 목록의 사본을 가져옵니다.

abstract Map<String, String> getNoMatchReason()

기기가 일치하지 않은 이유를 반환합니다.

abstract Collection<String> getProductTypes()

제품 유형 목록의 사본을 가져옵니다.

abstract Map<String, String> getProperties()

속성 목록의 맵을 반환합니다.

abstract Collection<String> getSerials(IDevice device)

일련번호 사본을 가져옵니다.

abstract List<String> getSerials()

요청된 일련번호 목록을 반환합니다.

abstract boolean nullDeviceRequested()
abstract void setBaseDeviceTypeRequested(IDeviceSelection.BaseDeviceType type)

사용해야 하는 기기 유형을 설정합니다.

abstract void setRequireBatteryCheck(boolean requireCheck)

배터리 확인을 할지 여부를 설정합니다.

abstract void setSerial(String... serialNumber)

기존 값을 대체하여 일련번호 포함 목록을 설정합니다.

abstract boolean shouldCreateTemporarilyPlaceholder()

메타데이터로 임시 자리표시자를 만듭니다.

abstract boolean stubEmulatorRequested()
default boolean tcpDeviceRequested()

공개 메서드

deviceRequested

public abstract boolean deviceRequested ()

반환
boolean true 기기가 요청된 경우

emulatorRequested

public abstract boolean emulatorRequested ()

반환
boolean 에뮬레이터가 요청된 경우 true

gceDeviceRequested

public abstract boolean gceDeviceRequested ()

반환
boolean gce 기기 (원격 기기)가 요청된 경우 true

getBaseDeviceTypeRequested

public abstract IDeviceSelection.BaseDeviceType getBaseDeviceTypeRequested ()

사용해야 하는 기기 유형을 반환합니다.

반환
IDeviceSelection.BaseDeviceType

getBatteryLevel

public abstract Integer getBatteryLevel (IDevice device)

지정된 기기의 배터리 잔량을 가져옵니다.

매개변수
device IDevice: IDevice

반환
Integer 기기 배터리 잔량 또는 알 수 없는 경우 null

getDeviceProductType

public abstract String getDeviceProductType (IDevice device)

지정된 기기의 제품 유형을 가져옵니다.

매개변수
device IDevice: IDevice

반환
String 기기 제품 유형 또는 알 수 없는 경우 null

getDeviceProductVariant

public abstract String getDeviceProductVariant (IDevice device)

지정된 기기 제품 옵션을 가져옵니다.

매개변수
device IDevice: IDevice

반환
String 기기 제품 옵션 또는 알 수 없는 경우 null

getExcludeSerials

public abstract Collection<String> getExcludeSerials ()

일련번호 제외 목록의 사본을 가져옵니다.

반환
Collection<String> Collection개의 일련번호

getNoMatchReason

public abstract Map<String, String> getNoMatchReason ()

기기가 일치하지 않은 이유를 반환합니다.

반환
Map<String, String> 할당되지 않은 이유에 대한 일련번호의 지도

getProductTypes

public abstract Collection<String> getProductTypes ()

제품 유형 목록의 사본을 가져옵니다.

반환
Collection<String> 제품 유형 Collection

getProperties

public abstract Map<String, String> getProperties ()

속성 목록의 맵을 반환합니다.

반환
Map<String, String> 기기 속성 이름과 값의 Map

getSerials

public abstract Collection<String> getSerials (IDevice device)

일련번호 사본을 가져옵니다.

매개변수
device IDevice: 선택 대상으로 간주되는 기기를 나타내는 IDevice입니다.

반환
Collection<String> Collection개의 일련번호

getSerials

public abstract List<String> getSerials ()

요청된 일련번호 목록을 반환합니다.

반환
List<String>

nullDeviceRequested

public abstract boolean nullDeviceRequested ()

반환
boolean true null 기기 (즉, 기기가 필요하지 않음)가 요청된 경우

setBaseDeviceTypeRequested

public abstract void setBaseDeviceTypeRequested (IDeviceSelection.BaseDeviceType type)

사용해야 하는 기기 유형을 설정합니다.

매개변수
type IDeviceSelection.BaseDeviceType

setRequireBatteryCheck

public abstract void setRequireBatteryCheck (boolean requireCheck)

배터리 확인을 할지 여부를 설정합니다.

매개변수
requireCheck boolean

setSerial

public abstract void setSerial (String... serialNumber)

기존 값을 대체하여 일련번호 포함 목록을 설정합니다.

매개변수
serialNumber String

shouldCreateTemporarilyPlaceholder

public abstract boolean shouldCreateTemporarilyPlaceholder ()

메타데이터로 임시 자리표시자를 만듭니다.

반환
boolean

stubEmulatorRequested

public abstract boolean stubEmulatorRequested ()

반환
boolean 스텁 에뮬레이터가 요청된 경우 true 스텁 에뮬레이터는 구성에서 에뮬레이터를 실행해야 할 때 사용할 자리표시자입니다.

tcpDeviceRequested

public boolean tcpDeviceRequested ()

반환
boolean tcp 기기 (adb 연결 기기)가 요청된 경우 true