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

List<String> getMetaData(String name)

Get the named metadata entries

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 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

ConfigurationDescriptor ()

Public methods

getAbi

IAbi getAbi ()

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

Returns
IAbi

getAllMetaData

MultiMap<String, String> getAllMetaData ()

Retrieves all configured metadata

Returns
MultiMap<String, String>

getMetaData

List<String> getMetaData (String name)

Get the named metadata entries

Parameters
name String

Returns
List<String>

getSuiteTags

List<String> getSuiteTags ()

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

Returns
List<String>

isNotShardable

boolean isNotShardable ()

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

Returns
boolean

isNotStrictShardable

boolean isNotStrictShardable ()

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

Returns
boolean

setAbi

void setAbi (IAbi abi)

Sets the abi the configuration is going to run against.

Parameters
abi IAbi

setMetaData

void setMetaData (MultiMap<String, String> metadata)

Parameters
metadata MultiMap

setSandboxed

void setSandboxed (boolean useSandboxed)

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

Parameters
useSandboxed boolean

setSuiteTags

void setSuiteTags (List<String> suiteTags)

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

Parameters
suiteTags List

shouldUseSandbox

boolean shouldUseSandbox ()

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

Returns
boolean