IDeviceConfiguration

public interface IDeviceConfiguration

com.android.tradefed.config.IDeviceConfiguration
Known Indirect Subclasses
DeviceConfigurationHolder A concrete IDeviceConfiguration implementation that stores the loaded device configuration objects in its attributes. 


Device Configuration Holder Interface. Use to represent an object that can hold the information for the configuration of a device.

Summary

Public methods

abstract void addSpecificConfig(Object config)

Pass one of the allowed objects that the Configuration Holder can keep track of.

abstract IDeviceConfiguration clone()

Return a shallow copy of this IDeviceConfiguration object.

abstract List<Object> getAllObjects()

Return The list of all the configuration objects held the instance of IDeviceConfiguration

abstract IBuildProvider getBuildProvider()

Return IBuildProvider that the device configuration holder has reference to.

abstract String getDeviceName()

Return The Name of the device specified in the field "name" of the configuration.

abstract TestDeviceOptions getDeviceOptions()

Return TestDeviceOptions that the device configuration holder has.

abstract IDeviceRecovery getDeviceRecovery()

Return IDeviceRecovery that the device configuration holder has.

abstract IDeviceSelection getDeviceRequirements()

Return IDeviceSelection that the device configuration holder has.

abstract List<ITargetPreparer> getTargetPreparers()

Return a list of ITargetPreparer that the device configuration holder has.

Public methods

addSpecificConfig

void addSpecificConfig (Object config)

Pass one of the allowed objects that the Configuration Holder can keep track of.

Complete list of allowed objects are: IBuildProvider, ITargetPreparer, IDeviceRecovery, IDeviceSelection, TestDeviceOptions

Parameters
config Object: object from a type above.
Throws
ConfigurationException in case the object passed doesn't match the allowed types.

clone

IDeviceConfiguration clone ()

Return a shallow copy of this IDeviceConfiguration object.

Returns
IDeviceConfiguration

getAllObjects

List<Object> getAllObjects ()

Return The list of all the configuration objects held the instance of IDeviceConfiguration

Returns
List<Object>

getBuildProvider

IBuildProvider getBuildProvider ()

Return IBuildProvider that the device configuration holder has reference to.

Returns
IBuildProvider

getDeviceName

String getDeviceName ()

Return The Name of the device specified in the field "name" of the configuration.

Returns
String

getDeviceOptions

TestDeviceOptions getDeviceOptions ()

Return TestDeviceOptions that the device configuration holder has.

Returns
TestDeviceOptions

getDeviceRecovery

IDeviceRecovery getDeviceRecovery ()

Return IDeviceRecovery that the device configuration holder has.

Returns
IDeviceRecovery

getDeviceRequirements

IDeviceSelection getDeviceRequirements ()

Return IDeviceSelection that the device configuration holder has.

Returns
IDeviceSelection

getTargetPreparers

List<ITargetPreparer> getTargetPreparers ()

Return a list of ITargetPreparer that the device configuration holder has.

Returns
List<ITargetPreparer>