ModuleTestTypeUtil
public
class
ModuleTestTypeUtil
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.ModuleTestTypeUtil |
Contains common utility methods for checking module.
Summary
Fields | |
---|---|
public
static
final
String |
TEST_TYPE_KEY
|
public
static
final
String |
TEST_TYPE_VALUE_PERFORMANCE
|
Public constructors | |
---|---|
ModuleTestTypeUtil()
|
Public methods | |
---|---|
static
|
getMatchedConfigTestTypes(IConfiguration config,
Get the declared test types of the configuration with a match in the allowed list. |
static
boolean
|
isPerformanceModule(IConfiguration config)
Check whether the configuration is a performance module. |
Fields
TEST_TYPE_KEY
public static final String TEST_TYPE_KEY
TEST_TYPE_VALUE_PERFORMANCE
public static final String TEST_TYPE_VALUE_PERFORMANCE
Public constructors
ModuleTestTypeUtil
public ModuleTestTypeUtil ()
Public methods
getMatchedConfigTestTypes
public staticgetMatchedConfigTestTypes (IConfiguration config, testTypesToMatch)
Get the declared test types of the configuration with a match in the allowed list.
Parameters | |
---|---|
config |
IConfiguration : The config to check. |
testTypesToMatch |
: The test types to match. |
Returns | |
---|---|
|
matched test types of the config or an empty list if none matches. |
isPerformanceModule
public static boolean isPerformanceModule (IConfiguration config)
Check whether the configuration is a performance module.
Parameters | |
---|---|
config |
IConfiguration : The config to check. |
Returns | |
---|---|
boolean |
true if the config is a performance module. |