DeviceConfigurationHolder

public class DeviceConfigurationHolder
extends Object implements IDeviceConfiguration

java.lang.Object
   ↳ com.android.tradefed.config.DeviceConfigurationHolder


A concrete IDeviceConfiguration implementation that stores the loaded device configuration objects in its attributes.

Summary

Public constructors

DeviceConfigurationHolder()
DeviceConfigurationHolder(String deviceName)

Public methods

void addSpecificConfig(Object config)

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

IDeviceConfiguration clone()

List<Object> getAllObjects()

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

IBuildProvider getBuildProvider()

Return IBuildProvider that the device configuration holder has reference to.

String getDeviceName()

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

TestDeviceOptions getDeviceOptions()

Return TestDeviceOptions that the device configuration holder has.

IDeviceRecovery getDeviceRecovery()

Return IDeviceRecovery that the device configuration holder has.

IDeviceSelection getDeviceRequirements()

Return IDeviceSelection that the device configuration holder has.

List<ITargetPreparer> getTargetPreparers()

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

Public constructors

DeviceConfigurationHolder

DeviceConfigurationHolder ()

DeviceConfigurationHolder

DeviceConfigurationHolder (String deviceName)

Parameters
deviceName String

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

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>