SuiteTestFilter

public class SuiteTestFilter
extends Object

java.lang.Object
com.android.tradefed.testtype.suite.SuiteTestFilter


テストを含めたり除外したりするためのフィルターを表します。

概要

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

SuiteTestFilter (String abi, String name, String test)

新しい作成SuiteTestFilter与えられた部分からを。

SuiteTestFilter (Integer shardIndex, String abi, String name, String test)

新しい作成SuiteTestFilter与えられた部分からを。

パブリックメソッド

static SuiteTestFilter createFrom (String filter)

新しいビルドSuiteTestFilter与えられた文字列からを。

boolean equals (Object obj)
String getAbi ()
String getBaseName ()

パラメータ化せずにモジュールのベース名を返します。

String getName ()
String getParameterName ()

モジュールがパラメータ化されている場合は、パラメータ値を返します。

Integer getShardIndex ()

テストのシャードインデックスを返します。指定されていない場合はnullを返します。

String getTest ()
int hashCode ()
String toString ()

このフィルターの文字列表現を返します。

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

SuiteTestFilter

public SuiteTestFilter (String abi, 
                String name, 
                String test)

新しい作成SuiteTestFilter与えられた部分からを。

パラメーター
abi String :ABIがサポートされている必要がありAbiUtils#isAbiSupportedByCompatibility(String)

name String :モジュールの名前

test String :テストの識別子など

SuiteTestFilter

public SuiteTestFilter (Integer shardIndex, 
                String abi, 
                String name, 
                String test)

新しい作成SuiteTestFilter与えられた部分からを。

パラメーター
shardIndex Integer

abi String :ABIがサポートされている必要がありAbiUtils#isAbiSupportedByCompatibility(String)

name String :モジュールの名前

test String :テストの識別子など

パブリックメソッド

createFrom

public static SuiteTestFilter createFrom (String filter)

新しいビルドSuiteTestFilter与えられた文字列からを。フィルタは4つの形式のいずれかになります。インスタンスは次のように初期化されます。 -"name"-> abi = null、name = "name"、test = null- "name" "test ..."-> abi = null、name = "name"、test = "test ..."- "abi" "name"-> abi = "abi"、name = "name"、test = null- "abi" "name" "test ..."-> abi = "abi"、name = "name"、 test = "test ..."

テスト識別子には、パラメータ化されたテストなど、複数の部分を含めることができます。

パラメーター
filter String :パースへのフィルタ

戻り値
SuiteTestFilter SuiteTestFilter

等しい

public boolean equals (Object obj)

パラメーター
obj Object

戻り値
boolean

getAbi

public String getAbi ()

戻り値
Stringこのフィルターのabi、または指定されていない場合はnull。

getBaseName

public String getBaseName ()

パラメータ化せずにモジュールのベース名を返します。パラメータ化されていない場合、それが返されますgetName() ;

戻り値
String

getName

public String getName ()

戻り値
Stringこのフィルターのモジュール名。指定されていない場合はnull。

getParameterName

public String getParameterName ()

モジュールがパラメータ化されている場合は、パラメータ値を返します。パラメータ化されていない場合はnull。

戻り値
String

getShardIndex

public Integer getShardIndex ()

テストのシャードインデックスを返します。指定されていない場合はnullを返します。

戻り値
Integer

getTest

public String getTest ()

戻り値
StringこのフィルターのテストID、または指定されていない場合はnull。

ハッシュコード

public int hashCode ()

戻り値
int

toString

public String toString ()

このフィルターの文字列表現を返します。この関数は、の逆ですcreateFrom(String)

有効なフィルターの場合f;

new TestFilter(f).toString().equals(f)
 

戻り値
String