ModuleTestTypeUtil

public class ModuleTestTypeUtil
extends Object

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


包含用于检查模块的常用实用程序方法。

摘要

常量

String TEST_TYPE_KEY

String TEST_TYPE_VALUE_PERFORMANCE

公共构造函数

ModuleTestTypeUtil()

公共方法

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

获取配置中与允许列表匹配的已声明测试类型。

static boolean isPerformanceModule(IConfiguration config)

检查配置是否为性能模块。

常量

TEST_TYPE_KEY

public static final String TEST_TYPE_KEY

常量值: “test-type”

TEST_TYPE_VALUE_PERFORMANCE

public static final String TEST_TYPE_VALUE_PERFORMANCE

常量值: "performance"

公共构造函数

ModuleTestTypeUtil

public ModuleTestTypeUtil ()

公共方法

getMatchedConfigTestTypes

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

获取配置中与允许列表中的内容匹配的已声明测试类型。

参数
config IConfiguration:要检查的配置。

testTypesToMatch List:要匹配的测试类型。

返回
List<String> 配置的匹配测试类型,如果没有匹配项,则为空列表。

isPerformanceModule

public static boolean isPerformanceModule (IConfiguration config)

检查配置是否为性能模块。

参数
config IConfiguration:要检查的配置。

返回
boolean 如果配置是性能模块,则为 true。