ConfigurationDef

public class ConfigurationDef
extends Object

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


Holds a record of a configuration, its associated objects and their options.

Summary

Nested classes

class ConfigurationDef.ConfigObjectDef

Object to hold info for a className and the appearance number it has (e.g. 

class ConfigurationDef.OptionDef

 

Constants

String DEFAULT_DEVICE_NAME

Public constructors

ConfigurationDef(String name)

Public methods

String addExpectedDevice(String deviceName, boolean isFake)

Add a device that needs to be tracked and whether or not it's real.

String getDescription()

Returns a short description of the configuration

Map<String, Boolean> getExpectedDevices()

Returns the current Map of tracked devices and if they are real or not.

String getName()

Gets the name of this configuration definition

boolean isMultiDeviceMode()

Returns whether or not the recorded configuration is multi-device or not.

void setMultiDeviceMode(boolean multiDeviceMode)

Constants

DEFAULT_DEVICE_NAME

public static final String DEFAULT_DEVICE_NAME

Constant Value: "DEFAULT_DEVICE"

Public constructors

ConfigurationDef

public ConfigurationDef (String name)

Parameters
name String

Public methods

addExpectedDevice

public String addExpectedDevice (String deviceName, 
                boolean isFake)

Add a device that needs to be tracked and whether or not it's real.

Parameters
deviceName String

isFake boolean

Returns
String

getDescription

public String getDescription ()

Returns a short description of the configuration

Returns
String

getExpectedDevices

public Map<String, Boolean> getExpectedDevices ()

Returns the current Map of tracked devices and if they are real or not.

Returns
Map<String, Boolean>

getName

public String getName ()

Gets the name of this configuration definition

Returns
String name of this configuration.

isMultiDeviceMode

public boolean isMultiDeviceMode ()

Returns whether or not the recorded configuration is multi-device or not.

Returns
boolean

setMultiDeviceMode

public void setMultiDeviceMode (boolean multiDeviceMode)

Parameters
multiDeviceMode boolean