컬렉션을 사용해 정리하기 내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.

장치 선택 옵션

public class DeviceSelectionOptions
extends Object implements IDeviceSelection

java.lang.객체
com.android.tradefed.device.DeviceSelectionOptions


장치 선택 기준에 대한 컨테이너입니다.

요약

중첩 클래스

enum DeviceSelectionOptions.DeviceRequestedType

다른 가능한 유형의 자리 표시자 장치가 지원됩니다.

공개 생성자

DeviceSelectionOptions ()

공개 메서드

void addExcludeSerial (String serialNumber)

제외 목록에 일련 번호를 추가합니다.

void addProductType (String productType)

장치 선택 옵션에 제품 유형을 추가합니다.

void addProperty (String propertyKey, String propValue)

장치 선택 옵션에 속성 기준 추가

void addSerial (String serialNumber)

장치 선택 옵션에 일련 번호를 추가합니다.

static IDeviceSelection createForSerial (String serial)

만들 수있는 도우미 팩토리 메소드 IDeviceSelection 에만 해당 시리얼로 장치와 일치합니다

boolean deviceRequested ()

boolean emulatorRequested ()

String fetchEnvironmentVariable (String name)

환경 변수를 가져오는 데 사용되는 도우미 함수입니다.

boolean gceDeviceRequested ()

Integer getBatteryLevel (IDevice device)

주어진 장치의 배터리 수준을 검색합니다.

String getDeviceProductType (IDevice device)

지정된 장치 제품 유형을 가져옵니다.

String getDeviceProductVariant (IDevice device)

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

DeviceSelectionOptions.DeviceRequestedType getDeviceTypeRequested ()
getExcludeSerials ()

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

Integer getMaxBatteryLevel ()

요청된 최대 배터리 수준을 가져옵니다.

Integer getMaxBatteryTemperature ()

요청된 최대 배터리 수준을 가져옵니다.

Integer getMinBatteryLevel ()

요청된 최소 배터리 수준을 가져옵니다.

getNoMatchReason ()

장치가 일치하지 않는 이유를 반환합니다.

getProductTypes ()

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

getProperties ()

속성 목록의 지도를 반환합니다.

boolean getRequireBatteryCheck ()

알 수 없는 배터리 수준이 있는 장치에 배터리 확인이 필요한지 여부를 가져옵니다.

boolean getRequireBatteryTemperatureCheck ()

알 수 없는 배터리 온도가 있는 장치에 배터리 온도 확인이 필요한지 여부를 가져옵니다.

getSerials (IDevice device)

일련 번호의 사본을 얻습니다.

getSerials ()

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

boolean localVirtualDeviceRequested ()
boolean matches (IDevice device)
boolean nullDeviceRequested ()

boolean remoteDeviceRequested ()
void setDeviceRequested (boolean deviceRequested)

에뮬레이터 요청 플래그를 설정합니다.

void setDeviceTypeRequested ( DeviceSelectionOptions.DeviceRequestedType requestedType)
void setEmulatorRequested (boolean emulatorRequested)

에뮬레이터 요청 플래그를 설정합니다.

void setGceDeviceRequested (boolean gceDeviceRequested)
void setMaxBatteryLevel (Integer maxBattery)

최대 배터리 수준을 설정합니다.

void setMaxBatteryTemperature (Integer maxBatteryTemperature)

최대 배터리 수준을 설정합니다.

void setMinBatteryLevel (Integer minBattery)

최소 배터리 수준을 설정합니다.

void setNullDeviceRequested (boolean nullDeviceRequested)

null 장치 요청 플래그를 설정합니다.

void setRequireBatteryCheck (boolean requireCheck)

알 수 없는 배터리 잔량을 가진 장치에 대해 배터리 확인이 필요한지 여부를 설정합니다.

void setRequireBatteryTemperatureCheck (boolean requireCheckTemprature)

알 수 없는 배터리 온도가 있는 장치에 대해 배터리 온도 확인이 필요한지 여부를 설정합니다.

void setSerial (String... serialNumber)

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

void setStubEmulatorRequested (boolean stubEmulatorRequested)

스텁 에뮬레이터 요청 플래그를 설정합니다.

void setTcpDeviceRequested (boolean tcpDeviceRequested)

tcp 장치 요청 플래그를 설정합니다.

boolean stubEmulatorRequested ()

boolean tcpDeviceRequested ()

공개 생성자

장치 선택 옵션

public DeviceSelectionOptions ()

공개 메서드

addExcludeSerial

public void addExcludeSerial (String serialNumber)

제외 목록에 일련 번호를 추가합니다.

제품 유형 추가

public void addProductType (String productType)

장치 선택 옵션에 제품 유형을 추가합니다.

속성 추가

public void addProperty (String propertyKey, 
                String propValue)

장치 선택 옵션에 속성 기준 추가

매개변수
propertyKey String

propValue String

직렬 추가

public void addSerial (String serialNumber)

장치 선택 옵션에 일련 번호를 추가합니다.

createForSerial

public static IDeviceSelection createForSerial (String serial)

만들 수있는 도우미 팩토리 메소드 IDeviceSelection 에만 해당 시리얼로 장치와 일치합니다

매개변수
serial String

보고
IDeviceSelection

장치 요청

public boolean deviceRequested ()

보고
boolean

에뮬레이터 요청

public boolean emulatorRequested ()

보고
boolean

fetchEnvironmentVariable

public String fetchEnvironmentVariable (String name)

환경 변수를 가져오는 데 사용되는 도우미 함수입니다. 그것은 본질적으로 주위의 래퍼입니다 System.getenv(String) 이 단위 테스트 목적으로 수행된다.

매개변수
name String : 환경 변수를 가져 오기합니다.

보고
String String 환경 변수의 값 또는 null을 사용할 수없는 경우.

gce장치 요청됨

public boolean gceDeviceRequested ()

보고
boolean

getBatteryLevel

public Integer getBatteryLevel (IDevice device)

주어진 장치의 배터리 수준을 검색합니다.

매개변수
device IDevice 다음 IDevice

보고
Integer 장치의 배터리 레벨 또는 null 경우, 알 수없는

getDevice 제품 유형

public String getDeviceProductType (IDevice device)

지정된 장치 제품 유형을 가져옵니다.

매개변수
device IDevice 다음 IDevice

보고
String 장치 제품 유형 또는 null 경우, 알 수없는

getDeviceProductVariant

public String getDeviceProductVariant (IDevice device)

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

매개변수
device IDevice 다음 IDevice

보고
String 장치 제품 변형 또는 null 경우, 알 수없는

getDeviceType 요청됨

public DeviceSelectionOptions.DeviceRequestedType getDeviceTypeRequested ()

보고
DeviceSelectionOptions.DeviceRequestedType

getExcludeSerials

public  getExcludeSerials ()

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

보고
ERROR(/Collection) 일련 번호

getMaxBatteryLevel

public Integer getMaxBatteryLevel ()

요청된 최대 배터리 수준을 가져옵니다.

보고
Integer

getMaxBatteryTemperature

public Integer getMaxBatteryTemperature ()

요청된 최대 배터리 수준을 가져옵니다.

보고
Integer

getMinBatteryLevel

public Integer getMinBatteryLevel ()

요청된 최소 배터리 수준을 가져옵니다.

보고
Integer

getNoMatch 이유

public  getNoMatchReason ()

장치가 일치하지 않는 이유를 반환합니다.

보고
할당되지 않은 이유에 대한 일련 번호 맵

getProductTypes

public  getProductTypes ()

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

보고
ERROR(/Collection) 제품 유형의

getProperties

public  getProperties ()

속성 목록의 지도를 반환합니다.

보고
ERROR(/Map) 값 디바이스 속성 이름

getRequireBatteryCheck

public boolean getRequireBatteryCheck ()

알 수 없는 배터리 잔량을 가진 장치에 배터리 확인이 필요한지 여부를 가져옵니다.

보고
boolean

getRequireBatteryTemperatureCheck

public boolean getRequireBatteryTemperatureCheck ()

알 수 없는 배터리 온도가 있는 장치에 배터리 온도 확인이 필요한지 여부를 가져옵니다.

보고
boolean

getSerials

public  getSerials (IDevice device)

일련 번호의 사본을 얻습니다.

매개변수
device IDevice 다음 IDevice 선택을위한 고려 장치를 나타내는.

보고
ERROR(/Collection) 일련 번호

getSerials

public  getSerials ()

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

보고

로컬 가상 장치 요청

public boolean localVirtualDeviceRequested ()

보고
boolean

성냥

public boolean matches (IDevice device)

매개변수
device IDevice

보고
boolean true 주어진 경우 IDevice 제공되는 옵션에 대한 일치이다. false 그렇지

nullDeviceRequested

public boolean nullDeviceRequested ()

보고
boolean

원격 장치 요청

public boolean remoteDeviceRequested ()

보고
boolean

setDeviceRequested

public void setDeviceRequested (boolean deviceRequested)

에뮬레이터 요청 플래그를 설정합니다.

매개변수
deviceRequested boolean

setDeviceType 요청됨

public void setDeviceTypeRequested (DeviceSelectionOptions.DeviceRequestedType requestedType)

매개변수
requestedType DeviceSelectionOptions.DeviceRequestedType

setEmulator요청됨

public void setEmulatorRequested (boolean emulatorRequested)

에뮬레이터 요청 플래그를 설정합니다.

매개변수
emulatorRequested boolean

setGceDeviceRequested

public void setGceDeviceRequested (boolean gceDeviceRequested)

매개변수
gceDeviceRequested boolean

setMaxBatteryLevel

public void setMaxBatteryLevel (Integer maxBattery)

최대 배터리 수준을 설정합니다.

매개변수
maxBattery Integer

setMaxBatteryTemperature

public void setMaxBatteryTemperature (Integer maxBatteryTemperature)

최대 배터리 수준을 설정합니다.

매개변수
maxBatteryTemperature Integer

setMinBatteryLevel

public void setMinBatteryLevel (Integer minBattery)

최소 배터리 수준을 설정합니다.

매개변수
minBattery Integer

setNullDeviceRequested

public void setNullDeviceRequested (boolean nullDeviceRequested)

null 장치 요청 플래그를 설정합니다.

매개변수
nullDeviceRequested boolean

setRequireBatteryCheck

public void setRequireBatteryCheck (boolean requireCheck)

알 수 없는 배터리 잔량을 가진 장치에 대해 배터리 확인이 필요한지 여부를 설정합니다.

매개변수
requireCheck boolean

setRequireBatteryTemperatureCheck

public void setRequireBatteryTemperatureCheck (boolean requireCheckTemprature)

알 수 없는 배터리 온도가 있는 장치에 대해 배터리 온도 확인이 필요한지 여부를 설정합니다.

매개변수
requireCheckTemprature boolean

setSerial

public void setSerial (String... serialNumber)

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

매개변수
serialNumber String

setStubEmulator요청됨

public void setStubEmulatorRequested (boolean stubEmulatorRequested)

스텁 에뮬레이터 요청 플래그를 설정합니다.

매개변수
stubEmulatorRequested boolean

setTcpDeviceRequested

public void setTcpDeviceRequested (boolean tcpDeviceRequested)

tcp 장치 요청 플래그를 설정합니다.

매개변수
tcpDeviceRequested boolean

stubEmulator요청됨

public boolean stubEmulatorRequested ()

보고
boolean

tcpDeviceRequested

public boolean tcpDeviceRequested ()

보고
boolean