DeviceConfigurationHolder
public
class
DeviceConfigurationHolder
extends Object
implements
IDeviceConfiguration
| java.lang.Object | |
| ↳ | 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
|
clone()
|
|
getAllObjectOfType(String configType)
요청된 구성 유형과 일치하는 |
|
getAllObjects()
|
IBuildProvider
|
getBuildProvider()
기기 구성 홀더가 참조하는 |
String
|
getDeviceName()
구성의 'name' 필드에 지정된 기기의 이름을 반환합니다. |
TestDeviceOptions
|
getDeviceOptions()
기기 구성 홀더에 있는 |
IDeviceRecovery
|
getDeviceRecovery()
기기 구성 홀더에 있는 |
IDeviceSelection
|
getDeviceRequirements()
기기 구성 홀더에 있는 |
Integer
|
getFrequency(Object config)
객체의 빈도를 반환합니다. |
|
getLabPreparers()
기기 구성 홀더에 있는 |
|
getTargetPreparers()
기기 구성 홀더에 있는 |
boolean
|
isFake()
컨테이너가 테스트 대상 기기용인지 여부를 반환합니다. |
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 |
공개 메서드
addFrequency
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 |
|
clone
public IDeviceConfiguration clone (String newName)
새 이름으로 이 IDeviceConfiguration 객체의 단순 복사본을 반환합니다.
| 매개변수 | |
|---|---|
newName |
String |
| 반환 값 | |
|---|---|
IDeviceConfiguration |
|
getAllObjectOfType
publicgetAllObjectOfType (String configType)
요청된 구성 유형과 일치하는 IDeviceConfiguration 인스턴스를 보유한 모든 구성 객체 목록을 반환합니다.
| 매개변수 | |
|---|---|
configType |
String |
| 반환 값 | |
|---|---|
|
|
getBuildProvider
public IBuildProvider getBuildProvider ()
기기 구성 홀더가 참조하는 IBuildProvider를 반환합니다.
| 반환 값 | |
|---|---|
IBuildProvider |
|
getDeviceName
public String getDeviceName ()
구성의 'name' 필드에 지정된 기기의 이름을 반환합니다.
| 반환 값 | |
|---|---|
String |
|
getDeviceOptions
public TestDeviceOptions getDeviceOptions ()
기기 구성 홀더에 있는 TestDeviceOptions를 반환합니다.
| 반환 값 | |
|---|---|
TestDeviceOptions |
|
getDeviceRecovery
public IDeviceRecovery getDeviceRecovery ()
기기 구성 홀더에 있는 IDeviceRecovery를 반환합니다.
| 반환 값 | |
|---|---|
IDeviceRecovery |
|
getDeviceRequirements
public IDeviceSelection getDeviceRequirements ()
기기 구성 홀더에 있는 IDeviceSelection를 반환합니다.
| 반환 값 | |
|---|---|
IDeviceSelection |
|
getFrequency
public Integer getFrequency (Object config)
객체의 빈도를 반환합니다.
| 매개변수 | |
|---|---|
config |
Object |
| 반환 값 | |
|---|---|
Integer |
|
isFake
public boolean isFake ()
컨테이너가 테스트 대상 기기용인지 여부를 반환합니다.
| 반환 값 | |
|---|---|
boolean |
|
removeObjectType
public void removeObjectType (String type)
기기 구성 홀더에서 지정된 객체 유형을 삭제합니다.
| 매개변수 | |
|---|---|
type |
String: 삭제할 객체의 유형입니다. |
| 생성 값 | |
|---|---|
ConfigurationException |
|