ModuleTestTypeUtil

public class ModuleTestTypeUtil
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.ModuleTestTypeUtil


Contains common utility methods for checking module.

Summary

Constants

String TEST_TYPE_KEY

String TEST_TYPE_VALUE_PERFORMANCE

Public constructors

ModuleTestTypeUtil()

Public methods

static List<String> getMatchedConfigTestTypes(IConfiguration config, List<String> testTypesToMatch)

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.

Constants

TEST_TYPE_KEY

public static final String TEST_TYPE_KEY

Constant Value: "test-type"

TEST_TYPE_VALUE_PERFORMANCE

public static final String TEST_TYPE_VALUE_PERFORMANCE

Constant Value: "performance"

Public constructors

ModuleTestTypeUtil

public ModuleTestTypeUtil ()

Public methods

getMatchedConfigTestTypes

public static List<String> getMatchedConfigTestTypes (IConfiguration config, 
                List<String> testTypesToMatch)

Get the declared test types of the configuration with a match in the allowed list.

Parameters
config IConfiguration: The config to check.

testTypesToMatch List: The test types to match.

Returns
List<String> 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.