IDeviceConfiguration
public
interface
IDeviceConfiguration
| com.android.tradefed.config.IDeviceConfiguration |
设备配置持有器接口。 用于表示可存储设备配置信息的对象。
摘要
公共方法 | |
|---|---|
abstract
void
|
addFrequency(Object config, Integer frequency)
跟踪对象的频率,以便我们能够针对该对象正确注入选项。 |
abstract
void
|
addSpecificConfig(Object config, String type)
传递 Configuration Holder 可以跟踪的允许对象之一。 |
abstract
void
|
addSpecificConfig(Object config)
传递 Configuration Holder 可以跟踪的允许对象之一。 |
abstract
IDeviceConfiguration
|
clone(String newName)
返回此 |
abstract
IDeviceConfiguration
|
clone()
返回此 |
abstract
|
getAllObjectOfType(String configType)
返回包含与请求的配置类型匹配的 |
abstract
|
getAllObjects()
返回包含 |
abstract
IBuildProvider
|
getBuildProvider()
返回设备配置持有者引用的 |
abstract
String
|
getDeviceName()
返回配置的“name”字段中指定的设备名称。 |
abstract
TestDeviceOptions
|
getDeviceOptions()
返回设备配置持有者拥有的 |
abstract
IDeviceRecovery
|
getDeviceRecovery()
返回设备配置持有者拥有的 |
abstract
IDeviceSelection
|
getDeviceRequirements()
返回设备配置持有者拥有的 |
abstract
Integer
|
getFrequency(Object config)
返回对象的频率。 |
abstract
|
getLabPreparers()
返回设备配置持有者拥有的 |
abstract
|
getTargetPreparers()
返回设备配置持有者拥有的 |
abstract
boolean
|
isFake()
返回容器是否适用于受测设备。 |
abstract
void
|
removeObjectType(String type)
从设备配置持有器中移除指定的对象类型。 |
公共方法
addFrequency
public abstract void addFrequency (Object config,
Integer frequency)跟踪对象的频率,以便我们能够针对该对象正确注入选项。
| 参数 | |
|---|---|
config |
Object:我们要跟踪频率的对象。 |
frequency |
Integer:与对象关联的频率。 |
addSpecificConfig
public abstract void addSpecificConfig (Object config,
String type)传递 Configuration Holder 可以跟踪的允许对象之一。
允许的对象的完整列表包括:IBuildProvider、ITargetPreparer、IDeviceRecovery、IDeviceSelection、TestDeviceOptions
| 参数 | |
|---|---|
config |
Object:上述类型的对象。 |
type |
String:传递的配置对象的类型。 |
| 抛出 | |
|---|---|
ConfigurationException |
以防传递的对象与允许的类型不匹配。 |
addSpecificConfig
public abstract void addSpecificConfig (Object config)
传递 Configuration Holder 可以跟踪的允许对象之一。
允许的对象的完整列表包括:IBuildProvider、ITargetPreparer、IDeviceRecovery、IDeviceSelection、TestDeviceOptions
| 参数 | |
|---|---|
config |
Object:上述类型的对象。 |
| 抛出 | |
|---|---|
ConfigurationException |
以防传递的对象与允许的类型不匹配。 |
clone
public abstract IDeviceConfiguration clone (String newName)
返回此 IDeviceConfiguration 对象的浅层副本(采用新名称)。
| 参数 | |
|---|---|
newName |
String |
| 返回 | |
|---|---|
IDeviceConfiguration |
|
clone
public abstract IDeviceConfiguration clone ()
返回此 IDeviceConfiguration 对象的浅层副本。
| 返回 | |
|---|---|
IDeviceConfiguration |
|
getAllObjectOfType
public abstractgetAllObjectOfType (String configType)
返回包含与请求的配置类型匹配的 IDeviceConfiguration 实例的所有配置对象的列表。
| 参数 | |
|---|---|
configType |
String |
| 返回 | |
|---|---|
|
|
getBuildProvider
public abstract IBuildProvider getBuildProvider ()
返回设备配置持有者引用的 IBuildProvider。
| 返回 | |
|---|---|
IBuildProvider |
|
getDeviceName
public abstract String getDeviceName ()
返回配置的“name”字段中指定的设备名称。
| 返回 | |
|---|---|
String |
|
getDeviceOptions
public abstract TestDeviceOptions getDeviceOptions ()
返回设备配置持有者拥有的 TestDeviceOptions。
| 返回 | |
|---|---|
TestDeviceOptions |
|
getDeviceRecovery
public abstract IDeviceRecovery getDeviceRecovery ()
返回设备配置持有者拥有的 IDeviceRecovery。
| 返回 | |
|---|---|
IDeviceRecovery |
|
getDeviceRequirements
public abstract IDeviceSelection getDeviceRequirements ()
返回设备配置持有者拥有的 IDeviceSelection。
| 返回 | |
|---|---|
IDeviceSelection |
|
getFrequency
public abstract Integer getFrequency (Object config)
返回对象的频率。
| 参数 | |
|---|---|
config |
Object |
| 返回 | |
|---|---|
Integer |
|
isFake
public abstract boolean isFake ()
返回容器是否适用于受测设备。
| 返回 | |
|---|---|
boolean |
|
removeObjectType
public abstract void removeObjectType (String type)
从设备配置持有者中移除指定的对象类型。
| 参数 | |
|---|---|
type |
String:要移除的对象的类型。 |
| 抛出 | |
|---|---|
ConfigurationException |
以防类型不受支持。 |