ModuleTestTypeUtil
public
class
ModuleTestTypeUtil
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.ModuleTestTypeUtil |
包含用於檢查模組的常用公用方法。
摘要
欄位 | |
---|---|
public
static
final
String |
TEST_TYPE_KEY
|
public
static
final
String |
TEST_TYPE_VALUE_PERFORMANCE
|
公用建構函式 | |
---|---|
ModuleTestTypeUtil()
|
公用方法 | |
---|---|
static
|
getMatchedConfigTestTypes(IConfiguration config,
取得設定的宣告測試類型,並在允許清單中比對。 |
static
boolean
|
isPerformanceModule(IConfiguration config)
檢查設定是否為效能模組。 |
欄位
TEST_TYPE_KEY
public static final String TEST_TYPE_KEY
TEST_TYPE_VALUE_PERFORMANCE
public static final String TEST_TYPE_VALUE_PERFORMANCE
公用建構函式
ModuleTestTypeUtil
public ModuleTestTypeUtil ()
公用方法
getMatchedConfigTestTypes
public staticgetMatchedConfigTestTypes (IConfiguration config, testTypesToMatch)
取得設定的宣告測試類型,並在允許清單中比對。
參數 | |
---|---|
config |
IConfiguration :要檢查的設定。 |
testTypesToMatch |
:要比對的測試類型。 |
傳回 | |
---|---|
|
符合設定的測試類型,如果沒有符合的項目,則為空白清單。 |
isPerformanceModule
public static boolean isPerformanceModule (IConfiguration config)
檢查設定是否為效能模組。
參數 | |
---|---|
config |
IConfiguration :要檢查的設定。 |
傳回 | |
---|---|
boolean |
如果設定檔是效能模組,則為 true。 |