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。