SuiteModuleLoader

public class SuiteModuleLoader
extends Object

java.lang.Object
   ↳ com.android.tradefed.testtype.suite.SuiteModuleLoader


リポジトリから互換性テスト モジュールの定義を取得します。TODO: モジュールの読み込み時にスイートの展開を追加します。

概要

ネストされたクラス

class SuiteModuleLoader.ConfigFilter

ディレクトリ内のすべての構成ファイルを検索する FilenameFilter。 

定数

String CONFIG_EXT

パブリック コンストラクタ

SuiteModuleLoader(Map<String, LinkedHashSet<SuiteTestFilter>> includeFilters, Map<String, LinkedHashSet<SuiteTestFilter>> excludeFilters, List<String> testArgs, List<String> moduleArgs)

SuiteModuleLoader のコンストラクタ。

パブリック メソッド

static void addFilters(Set<String> stringFilters, Map<String, LinkedHashSet<SuiteTestFilter>> filters, Set<IAbi> abis, Set<DeviceFoldableState> foldableStates)

オプション フィルタを使用して構造を解析して作成できるユーティリティ メソッド。

void addFiltersToTest(IRemoteTest test, IAbi abi, String moduleId, Map<String, LinkedHashSet<SuiteTestFilter>> includeFilters, Map<String, LinkedHashSet<SuiteTestFilter>> excludeFilters)

フィルタを IRemoteTest に渡します。

static Set<File> getModuleNamesMatching(File directory, String suitePrefix, String pattern)
LinkedHashMap<String, IConfiguration> loadConfigsFromDirectory(List<File> testsDirs, Set<IAbi> abis, String suitePrefix, String suiteTag, List<String> patterns)

構成のメイン読み込み、フォルダの検索

LinkedHashMap<String, IConfiguration> loadConfigsFromJars(Set<IAbi> abis, String suitePrefix, String suiteTag)

構成のメインの読み込み。クラスパス上のリソースを調べます。

LinkedHashMap<String, IConfiguration> loadConfigsFromSpecifiedPaths(List<File> listConfigFiles, Set<IAbi> abis, String suiteTag)

指定されたファイルから構成を読み込むメイン処理

LinkedHashMap<String, IConfiguration> loadTfConfigsFromSpecifiedPaths(List<String> configs, Set<IAbi> abis, String suiteTag)

構成のメインの読み込み。クラスパスで指定されたリソースを調べます。

final void setExcludedModuleParameters(Set<ModuleParameters> excludedParams)

まったく考慮すべきでない ModuleParameters のセットを設定します。

final void setFoldableStates(Set<DeviceFoldableState> foldableStates)

実行する DeviceFoldableState のセットを設定します。

final void setIgnoreNonPreloadedMainlineModule(boolean ignore)

モジュールがプリロードされていない場合に、モジュールのインストールを無視するかどうかを設定します。

final void setInvocationContext(IInvocationContext context)
final void setLoadConfigsWithIncludeFilters(boolean allowed)

指定された include-filter に基づいてテスト設定を読み込むかどうかを設定します。

final void setMainlineParameterizedModules(boolean allowed)

パラメータ化されたメインライン モジュールを許可するかどうかを設定します。

final void setModuleParameter(ModuleParameters param)

実行する ModuleParameters タイプを 1 つだけ設定します。

final void setOptimizeMainlineTest(boolean allowed)

Mainline テストを最適化するかどうかを設定します。

final void setOptionalParameterizedModules(boolean allowed)

オプションのパラメータ化されたモジュールを許可するかどうかを設定します。

final void setParameterizedModules(boolean allowed)

パラメータ化されたモジュールを許可するかどうかを設定します。

final void setUseIncludeFilterOrder(boolean useIncludeFilterOrder)

include フィルタで指定された順序でテスト実行を整理するかどうかを設定します。

定数

CONFIG_EXT

public static final String CONFIG_EXT

定数値: ".config"

パブリック コンストラクタ

SuiteModuleLoader

public SuiteModuleLoader (Map<String, LinkedHashSet<SuiteTestFilter>> includeFilters, 
                Map<String, LinkedHashSet<SuiteTestFilter>> excludeFilters, 
                List<String> testArgs, 
                List<String> moduleArgs)

SuiteModuleLoader のコンストラクタ。

パラメータ
includeFilters Map: 形式設定と解析済みのインクルード フィルタ。

excludeFilters Map: フォーマットされ、解析された除外フィルタ。

testArgs List: テスト(IRemoteTest)引数のリスト。

moduleArgs List: モジュール引数のリスト。

パブリック メソッド

addFilters

public static void addFilters (Set<String> stringFilters, 
                Map<String, LinkedHashSet<SuiteTestFilter>> filters, 
                Set<IAbi> abis, 
                Set<DeviceFoldableState> foldableStates)

オプション フィルタを使用して構造を解析して作成できるユーティリティ メソッド。

パラメータ
stringFilters Set: 元のオプション フィルタの形式。

filters Map: 文字列形式から解析されたフィルタ。

abis Set: フィルタリングで考慮する Abi。

foldableStates Set

addFiltersToTest

public void addFiltersToTest (IRemoteTest test, 
                IAbi abi, 
                String moduleId, 
                Map<String, LinkedHashSet<SuiteTestFilter>> includeFilters, 
                Map<String, LinkedHashSet<SuiteTestFilter>> excludeFilters)

フィルタを IRemoteTest に渡します。IRemoteTest が ITestFileFilterReceiver を実装していない場合、デフォルトの動作は無視です。この動作はオーバーライドして、より制限の厳しい動作にすることができます。

パラメータ
test IRemoteTest: 検討中の IRemoteTest

abi IAbi: 現在取り組んでいる Abi。

moduleId String: モジュールの ID(通常は abi + モジュール名)。

includeFilters Map: 形式設定と解析済みのインクルード フィルタ。

excludeFilters Map: フォーマットされ、解析された除外フィルタ。

getModuleNamesMatching

public static Set<File> getModuleNamesMatching (File directory, 
                String suitePrefix, 
                String pattern)

パラメータ
directory File

suitePrefix String

pattern String

戻り値
Set<File> 名前に指定されたパターンが含まれるモジュールの Set

loadConfigsFromDirectory

public LinkedHashMap<String, IConfiguration> loadConfigsFromDirectory (List<File> testsDirs, 
                Set<IAbi> abis, 
                String suitePrefix, 
                String suiteTag, 
                List<String> patterns)

構成のメイン読み込み、フォルダの検索

パラメータ
testsDirs List

abis Set

suitePrefix String

suiteTag String

patterns List

戻り値
LinkedHashMap<String, IConfiguration>

loadConfigsFromJars

public LinkedHashMap<String, IConfiguration> loadConfigsFromJars (Set<IAbi> abis, 
                String suitePrefix, 
                String suiteTag)

構成のメインの読み込み。クラスパス上のリソースを調べます。(TF 構成など)。

パラメータ
abis Set

suitePrefix String

suiteTag String

戻り値
LinkedHashMap<String, IConfiguration>

loadConfigsFromSpecifiedPaths

public LinkedHashMap<String, IConfiguration> loadConfigsFromSpecifiedPaths (List<File> listConfigFiles, 
                Set<IAbi> abis, 
                String suiteTag)

指定されたファイルを参照して構成を読み込むメイン処理

パラメータ
listConfigFiles List

abis Set

suiteTag String

戻り値
LinkedHashMap<String, IConfiguration>

loadTfConfigsFromSpecifiedPaths

public LinkedHashMap<String, IConfiguration> loadTfConfigsFromSpecifiedPaths (List<String> configs, 
                Set<IAbi> abis, 
                String suiteTag)

構成のメインの読み込み。クラスパスで指定されたリソースを調べます。

パラメータ
configs List

abis Set

suiteTag String

戻り値
LinkedHashMap<String, IConfiguration>

setExcludedModuleParameters

public final void setExcludedModuleParameters (Set<ModuleParameters> excludedParams)

まったく考慮すべきでない ModuleParameters のセットを設定します。

パラメータ
excludedParams Set

setFoldableStates

public final void setFoldableStates (Set<DeviceFoldableState> foldableStates)

実行する DeviceFoldableState のセットを設定します。

パラメータ
foldableStates Set

setIgnoreNonPreloadedMainlineModule

public final void setIgnoreNonPreloadedMainlineModule (boolean ignore)

モジュールがプリロードされていない場合に、モジュールのインストールを無視するかどうかを設定します。

パラメータ
ignore boolean

setInvocationContext

public final void setInvocationContext (IInvocationContext context)

パラメータ
context IInvocationContext

setLoadConfigsWithIncludeFilters

public final void setLoadConfigsWithIncludeFilters (boolean allowed)

指定された include-filter に基づいてテスト設定を読み込むかどうかを設定します。

パラメータ
allowed boolean

setMainlineParameterizedModules

public final void setMainlineParameterizedModules (boolean allowed)

パラメータ化されたメインライン モジュールを許可するかどうかを設定します。

パラメータ
allowed boolean

setModuleParameter

public final void setModuleParameter (ModuleParameters param)

実行する ModuleParameters タイプを 1 つだけ設定します。

パラメータ
param ModuleParameters

setOptimizeMainlineTest

public final void setOptimizeMainlineTest (boolean allowed)

Mainline テストを最適化するかどうかを設定します。

パラメータ
allowed boolean

setOptionalParameterizedModules

public final void setOptionalParameterizedModules (boolean allowed)

オプションのパラメータ化されたモジュールを許可するかどうかを設定します。

パラメータ
allowed boolean

setParameterizedModules

public final void setParameterizedModules (boolean allowed)

パラメータ化されたモジュールを許可するかどうかを設定します。

パラメータ
allowed boolean

setUseIncludeFilterOrder

public final void setUseIncludeFilterOrder (boolean useIncludeFilterOrder)

インクルード フィルタで指定された順序でテスト実行を整理するかどうかを設定します。

パラメータ
useIncludeFilterOrder boolean