SuiteTestFilter
public
class
SuiteTestFilter
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.testtype.suite.SuiteTestFilter |
テストを含めるか除外するフィルタを表します。
概要
パブリック コンストラクタ | |
|---|---|
SuiteTestFilter(Integer shardIndex, String abi, String name, String test)
指定されたパーツから新しい |
|
SuiteTestFilter(String abi, String name, String test)
指定されたパーツから新しい |
|
パブリック メソッド | |
|---|---|
static
SuiteTestFilter
|
createFrom(String filter)
指定された文字列から新しい |
boolean
|
equals(Object obj)
|
String
|
getAbi()
|
String
|
getBaseName()
パラメータ化されていないモジュールのベース名を返します。 |
String
|
getModuleId()
|
String
|
getName()
|
String
|
getParameterName()
モジュールがパラメータ化されている場合、パラメータ値を返します。 |
Integer
|
getShardIndex()
テストのシャード インデックスを返します。指定されていない場合は null を返します。 |
String
|
getTest()
|
int
|
hashCode()
|
String
|
toString()
このフィルタの文字列表現を返します。 |
パブリック コンストラクタ
SuiteTestFilter
public SuiteTestFilter (Integer shardIndex,
String abi,
String name,
String test)指定されたパーツから新しい SuiteTestFilter を作成します。
| パラメータ | |
|---|---|
shardIndex |
Integer |
abi |
String: ABI はサポートされている AbiUtils.isAbiSupportedByCompatibility(String) でなければなりません |
name |
String: モジュールの名前 |
test |
String: テストの識別子( |
SuiteTestFilter
public SuiteTestFilter (String abi,
String name,
String test)指定されたパーツから新しい SuiteTestFilter を作成します。
| パラメータ | |
|---|---|
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 |
|
getModuleId
public String getModuleId ()
| 戻り値 | |
|---|---|
String |
|
getName
public String getName ()
| 戻り値 | |
|---|---|
String |
このフィルタのモジュール名。指定されていない場合は null。 |
getParameterName
public String getParameterName ()
モジュールがパラメータ化されている場合は、パラメータ値を返します。パラメータ化されていない場合は null。
| 戻り値 | |
|---|---|
String |
|
getShardIndex
public Integer getShardIndex ()
テストのシャード インデックスを返します。指定されていない場合は null を返します。
| 戻り値 | |
|---|---|
Integer |
|
getTest
public String getTest ()
| 戻り値 | |
|---|---|
String |
このフィルタのテスト識別子。指定されていない場合は null。 |
hashCode
public int hashCode ()
| 戻り値 | |
|---|---|
int |
|
toString
public String toString ()
このフィルタの文字列表現を返します。この関数は SuiteTestFilter.createFrom(String) の逆関数です。
有効なフィルタ f の場合:
new TestFilter(f).toString().equals(f)
| 戻り値 | |
|---|---|
String |
|