スイートモジュールローダー

public class SuiteModuleLoader
extends Object

java.lang.オブジェクト
com.android.tradefed.testtype.suite.SuiteModuleLoader


互換性テストモジュール定義をリポジトリから取得します。 TODO: モジュールをロードするときにスイートの拡張を追加します。

まとめ

入れ子になったクラス

class SuiteModuleLoader.ConfigFilter

ディレクトリ内のすべての構成ファイルを検索するときにERROR(/FilenameFilter)

田畑

public static final String CONFIG_EXT

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

SuiteModuleLoader ( includeFilters, excludeFilters, testArgs, moduleArgs) SuiteModuleLoader ( includeFilters, excludeFilters, testArgs, moduleArgs) SuiteModuleLoader ( includeFilters, excludeFilters, testArgs, moduleArgs) SuiteModuleLoader ( includeFilters, excludeFilters, testArgs, moduleArgs) SuiteModuleLoader ( includeFilters, excludeFilters, testArgs, moduleArgs)

SuiteModuleLoader の Ctor。

パブリックメソッド

static void addFilters ( stringFilters, filters, abis, foldableStates) addFilters ( stringFilters, filters, abis, foldableStates) addFilters ( stringFilters, filters, abis, foldableStates) addFilters ( stringFilters, filters, abis, foldableStates) addFilters ( stringFilters, filters, abis, foldableStates)

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

void addFiltersToTest ( IRemoteTest test, IAbi abi, String moduleId, includeFilters, excludeFilters) addFiltersToTest ( IRemoteTest test, IAbi abi, String moduleId, includeFilters, excludeFilters) addFiltersToTest ( IRemoteTest test, IAbi abi, String moduleId, includeFilters, excludeFilters)

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

static getModuleNamesMatching (File directory, String suitePrefix, String pattern)
loadConfigsFromDirectory ( testsDirs, abis, String suitePrefix, String suiteTag, patterns) loadConfigsFromDirectory ( testsDirs, abis, String suitePrefix, String suiteTag, patterns) loadConfigsFromDirectory ( testsDirs, abis, String suitePrefix, String suiteTag, patterns) loadConfigsFromDirectory ( testsDirs, abis, String suitePrefix, String suiteTag, patterns)

設定の主な読み込み、フォルダーの確認

loadConfigsFromJars ( abis, String suitePrefix, String suiteTag) loadConfigsFromJars ( abis, String suitePrefix, String suiteTag)

構成の主な読み込み、クラスパス上のリソースの調査。

loadConfigsFromSpecifiedPaths ( listConfigFiles, abis, String suiteTag) loadConfigsFromSpecifiedPaths ( listConfigFiles, abis, String suiteTag) loadConfigsFromSpecifiedPaths ( listConfigFiles, abis, String suiteTag)

設定の主な読み込み、指定されたファイルの調査

loadTfConfigsFromSpecifiedPaths ( configs, abis, String suiteTag) loadTfConfigsFromSpecifiedPaths ( configs, abis, String suiteTag) loadTfConfigsFromSpecifiedPaths ( configs, abis, String suiteTag)

構成の主な読み込み。クラスパス上の指定されたリソースを調べます。

final void setExcludedModuleParameters ( excludedParams) setExcludedModuleParameters ( excludedParams)

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

final void setFoldableStates ( foldableStates) setFoldableStates ( foldableStates)

実行する必要があるDeviceFoldableStateのセットを設定します。

final void setIgnoreNonPreloadedMainlineModule (boolean ignore)

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

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

指定されたインクルードフィルターに基づいてテスト構成をロードするかどうかを設定します。

final void setMainlineParameterizedModules (boolean allowed)

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

final void setModuleParameter ( ModuleParameters param)

実行する必要がある唯一のModuleParametersタイプを設定します。

final void setOptimizeMainlineTest (boolean allowed)

メインラインテストを最適化するかどうかを設定します。

final void setOptionalParameterizedModules (boolean allowed)

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

final void setParameterizedModules (boolean allowed)

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

田畑

CONFIG_EXT

public static final String CONFIG_EXT

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

スイートモジュールローダー

public SuiteModuleLoader ( includeFilters, 
                 excludeFilters, 
                 testArgs, 
                 moduleArgs)

SuiteModuleLoader の Ctor。

パラメーター
includeFilters : フォーマットおよび解析されたフィルターが含まれます。

excludeFilters : フォーマットおよび解析された除外フィルター。

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

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

パブリックメソッド

フィルタの追加

public static void addFilters ( stringFilters, 
                 filters, 
                 abis, 
                 foldableStates)

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

パラメーター
stringFilters : オリジナルのオプションフィルター形式。

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

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

foldableStates

テストにフィルターを追加

public void addFiltersToTest (IRemoteTest test, 
                IAbi abi, 
                String moduleId, 
                 includeFilters, 
                 excludeFilters)

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

パラメーター
test IRemoteTest : 検討されているIRemoteTest

abi IAbi : 現在開発中のアビです。

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

includeFilters : フォーマットおよび解析されたフィルターが含まれます。

excludeFilters : フォーマットおよび解析された除外フィルター。

getModuleNamesMatching

public static  getModuleNamesMatching (File directory, 
                String suitePrefix, 
                String pattern)

パラメーター
directory File

suitePrefix String

pattern String

戻り値
名前に指定されたパターンが含まれるモジュールのERROR(/Set)

loadConfigsFromDirectory

public  loadConfigsFromDirectory ( testsDirs, 
                 abis, 
                String suitePrefix, 
                String suiteTag, 
                 patterns)

設定の主な読み込み、フォルダーの確認

パラメーター
testsDirs

abis

suitePrefix String

suiteTag String

patterns

戻り値

JarsからのloadConfigs

public  loadConfigsFromJars ( abis, 
                String suitePrefix, 
                String suiteTag)

構成の主な読み込み、クラスパス上のリソースの調査。 (TF 構成など)。

パラメーター
abis

suitePrefix String

suiteTag String

戻り値

指定されたパスからのロード構成

public  loadConfigsFromSpecifiedPaths ( listConfigFiles, 
                 abis, 
                String suiteTag)

設定の主な読み込み、指定されたファイルの調査

パラメーター
listConfigFiles

abis

suiteTag String

戻り値

指定されたパスからのロードTfConfigs

public  loadTfConfigsFromSpecifiedPaths ( configs, 
                 abis, 
                String suiteTag)

構成の主な読み込み。クラスパス上の指定されたリソースを調べます。

パラメーター
configs

abis

suiteTag String

戻り値

setExcludedModuleParameters

public final void setExcludedModuleParameters ( excludedParams)

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

パラメーター
excludedParams

setFoldableStates

public final void setFoldableStates ( foldableStates)

実行する必要があるDeviceFoldableStateのセットを設定します。

パラメーター
foldableStates

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)

指定されたインクルードフィルターに基づいてテスト構成をロードするかどうかを設定します。

パラメーター
allowed boolean

setMainlineParameterizedModules

public final void setMainlineParameterizedModules (boolean allowed)

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

パラメーター
allowed boolean

setModuleParameter

public final void setModuleParameter (ModuleParameters param)

実行する必要がある唯一のModuleParametersタイプを設定します。

パラメーター
param ModuleParameters

setOptimizeMainlineTest

public final void setOptimizeMainlineTest (boolean allowed)

メインラインテストを最適化するかどうかを設定します。

パラメーター
allowed boolean

setOptionalParameterizedModules

public final void setOptionalParameterizedModules (boolean allowed)

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

パラメーター
allowed boolean

setParameterizedModules

public final void setParameterizedModules (boolean allowed)

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

パラメーター
allowed boolean