ConfigurationDescriptor

public class ConfigurationDescriptor
extends Object implements Serializable

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


Configuration Object that describes some aspect of the configuration itself. Like a membership test-suite-tag. This class cannot receive option values via command line. Only directly in the xml.

Summary

Public constructors

ConfigurationDescriptor()

Public methods

IAbi getAbi()

Returns the abi the configuration is running against if known, null otherwise.

MultiMap<String, String> getAllMetaData()

Retrieves all configured metadata and return a copy of the map.

List<String> getMetaData(String name)

Get the named metadata entries

String getModuleName()

Returns the module name of the module configuration.

List<String> getSuiteTags()

Returns the list of suite tags the test is part of.

boolean isNotShardable()

Returns if the configuration is shardable or not as part of a suite

boolean isNotStrictShardable()

Returns if the configuration is strict shardable or not as part of a suite

void setAbi(IAbi abi)

Sets the abi the configuration is going to run against.

void setMetaData(MultiMap<String, String> metadata)
void setModuleName(String name)

If this configuration represents a module, we can set the module name associated with it.

void setSandboxed(boolean useSandboxed)

Sets whether or not a config will run in sandboxed mode or not.

void setSuiteTags(List<String> suiteTags)

Sets the list of suite tags the test is part of.

boolean shouldUseSandbox()

Returns true if the invocation should run in sandboxed mode.

Public constructors

ConfigurationDescriptor

public ConfigurationDescriptor ()

Public methods

getAbi

public IAbi getAbi ()

Returns the abi the configuration is running against if known, null otherwise.

Returns
IAbi

getAllMetaData

public MultiMap<String, String> getAllMetaData ()

Retrieves all configured metadata and return a copy of the map.

Returns
MultiMap<String, String>

getMetaData

public List<String> getMetaData (String name)

Get the named metadata entries

Parameters
name String

Returns
List<String>

getModuleName

public String getModuleName ()

Returns the module name of the module configuration.

Returns
String

getSuiteTags

public List<String> getSuiteTags ()

Returns the list of suite tags the test is part of.

Returns
List<String>

isNotShardable

public boolean isNotShardable ()

Returns if the configuration is shardable or not as part of a suite

Returns
boolean

isNotStrictShardable

public boolean isNotStrictShardable ()

Returns if the configuration is strict shardable or not as part of a suite

Returns
boolean

setAbi

public void setAbi (IAbi abi)

Sets the abi the configuration is going to run against.

Parameters
abi IAbi

setMetaData

public void setMetaData (MultiMap<String, String> metadata)

Parameters
metadata MultiMap

setModuleName

public void setModuleName (String name)

If this configuration represents a module, we can set the module name associated with it.

Parameters
name String

setSandboxed

public void setSandboxed (boolean useSandboxed)

Sets whether or not a config will run in sandboxed mode or not.

Parameters
useSandboxed boolean

setSuiteTags

public void setSuiteTags (List<String> suiteTags)

Sets the list of suite tags the test is part of.

Parameters
suiteTags List

shouldUseSandbox

public boolean shouldUseSandbox ()

Returns true if the invocation should run in sandboxed mode. False otherwise.

Returns
boolean