DeviceConfigurationHolder

public class DeviceConfigurationHolder
extends Object implements IDeviceConfiguration

java.lang.객체
com.android.tradefed.config.DeviceConfigurationHolder


로드된 장치 구성 개체를 속성에 저장하는 구체적인 IDeviceConfiguration 구현입니다.

요약

공개 생성자

DeviceConfigurationHolder ()
DeviceConfigurationHolder (String deviceName)
DeviceConfigurationHolder (String deviceName, boolean isFake)

공개 방법

void addFrequency (Object config, Integer frequency)

객체에 대한 옵션을 적절하게 주입할 수 있도록 객체의 빈도를 추적합니다.

void addSpecificConfig (Object config, String type)

구성 홀더가 추적할 수 있는 허용된 개체 중 하나를 전달합니다.

void addSpecificConfig (Object config)

구성 홀더가 추적할 수 있는 허용된 개체 중 하나를 전달합니다.

IDeviceConfiguration clone (String newName)

새 이름으로 이 IDeviceConfiguration 개체의 단순 복사본을 반환합니다.

IDeviceConfiguration clone ()

getAllObjectOfType (String configType)

반환 요청된 구성 유형과 일치하는 IDeviceConfiguration 인스턴스를 보유한 모든 구성 개체의 목록입니다.

getAllObjects ()

반환 IDeviceConfiguration 의 인스턴스를 보유한 모든 구성 객체의 목록

IBuildProvider getBuildProvider ()

장치 구성 홀더가 참조하는 IBuildProvider 반환합니다.

String getDeviceName ()

구성의 "이름" 필드에 지정된 장치의 이름을 반환합니다.

TestDeviceOptions getDeviceOptions ()

장치 구성 홀더가 가지고 있는 TestDeviceOptions 반환합니다.

IDeviceRecovery getDeviceRecovery ()

장치 구성 홀더가 가지고 있는 IDeviceRecovery 반환합니다.

IDeviceSelection getDeviceRequirements ()

장치 구성 홀더가 가진 IDeviceSelection 반환합니다.

Integer getFrequency (Object config)

개체의 빈도를 반환합니다.

getLabPreparers ()

장치 구성 홀더가 가지고 있는 ITargetPreparer 목록을 반환합니다.

getTargetPreparers ()

장치 구성 홀더가 가지고 있는 ITargetPreparer 목록을 반환합니다.

boolean isFake ()

컨테이너가 DUT용인지 여부를 반환합니다.

void removeObjectType (String type)

장치 구성 홀더에서 지정된 개체 유형을 제거합니다.

공개 생성자

DeviceConfigurationHolder

public DeviceConfigurationHolder ()

DeviceConfigurationHolder

public DeviceConfigurationHolder (String deviceName)

매개변수
deviceName String

DeviceConfigurationHolder

public DeviceConfigurationHolder (String deviceName, 
                boolean isFake)

매개변수
deviceName String

isFake boolean

공개 방법

주파수 추가

public void addFrequency (Object config, 
                Integer frequency)

객체에 대한 옵션을 적절하게 주입할 수 있도록 객체의 빈도를 추적합니다.

매개변수
config Object : 주파수를 추적하는 객체입니다.

frequency Integer : 개체와 관련된 빈도입니다.

addSpecificConfig

public void addSpecificConfig (Object config, 
                String type)

구성 홀더가 추적할 수 있는 허용된 개체 중 하나를 전달합니다.

허용되는 개체의 전체 목록은 다음과 같습니다. IBuildProvider , ITargetPreparer , IDeviceRecovery , IDeviceSelection , TestDeviceOptions

매개변수
config Object : 위 유형의 객체입니다.

type String : 전달되는 구성 개체의 유형입니다.

던지기
ConfigurationException

addSpecificConfig

public void addSpecificConfig (Object config)

구성 홀더가 추적할 수 있는 허용된 개체 중 하나를 전달합니다.

허용되는 개체의 전체 목록은 다음과 같습니다. IBuildProvider , ITargetPreparer , IDeviceRecovery , IDeviceSelection , TestDeviceOptions

매개변수
config Object : 위 유형의 객체입니다.

던지기
ConfigurationException

클론

public IDeviceConfiguration clone (String newName)

새 이름으로 이 IDeviceConfiguration 개체의 단순 복사본을 반환합니다.

매개변수
newName String

보고
IDeviceConfiguration

클론

public IDeviceConfiguration clone ()

보고
IDeviceConfiguration

getAllObjectOfType

public  getAllObjectOfType (String configType)

반환 요청된 구성 유형과 일치하는 IDeviceConfiguration 인스턴스를 보유한 모든 구성 개체의 목록입니다.

매개변수
configType String

보고

getAllObjects

public  getAllObjects ()

반환 IDeviceConfiguration 의 인스턴스를 보유한 모든 구성 객체의 목록

보고

getBuildProvider

public IBuildProvider getBuildProvider ()

장치 구성 홀더가 참조하는 IBuildProvider 반환합니다.

보고
IBuildProvider

getDeviceName

public String getDeviceName ()

구성의 "이름" 필드에 지정된 장치의 이름을 반환합니다.

보고
String

getDeviceOptions

public TestDeviceOptions getDeviceOptions ()

장치 구성 홀더가 가지고 있는 TestDeviceOptions 반환합니다.

보고
TestDeviceOptions

getDeviceRecovery

public IDeviceRecovery getDeviceRecovery ()

장치 구성 홀더가 가지고 있는 IDeviceRecovery 반환합니다.

보고
IDeviceRecovery

getDevice요구 사항

public IDeviceSelection getDeviceRequirements ()

장치 구성 홀더가 가진 IDeviceSelection 반환합니다.

보고
IDeviceSelection

getFrequency

public Integer getFrequency (Object config)

개체의 빈도를 반환합니다.

매개변수
config Object

보고
Integer

getLabPreparers

public  getLabPreparers ()

장치 구성 홀더가 가지고 있는 ITargetPreparer 목록을 반환합니다.

보고

getTargetPreparers

public  getTargetPreparers ()

장치 구성 홀더가 가지고 있는 ITargetPreparer 목록을 반환합니다.

보고

isFake

public boolean isFake ()

컨테이너가 DUT용인지 여부를 반환합니다.

보고
boolean

removeObjectType

public void removeObjectType (String type)

디바이스 구성 홀더에서 지정된 개체 유형을 제거합니다.

매개변수
type String : 제거할 개체의 유형입니다.

던지기
ConfigurationException