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: テストの ID(例: |
SuiteTestFilter
public SuiteTestFilter (String abi,
String name,
String test)指定された部分から新しい SuiteTestFilter を作成します。
| パラメータ | |
|---|---|
abi |
String: ABI がサポートされている必要があります AbiUtils.isAbiSupportedByCompatibility(String) |
name |
String: モジュールの名前 |
test |
String: テストの ID(例: |
パブリック メソッド
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 |
equals
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 |
このフィルタのテスト ID。指定されていない場合は null。 |
hashCode
public int hashCode ()
| 戻り値 | |
|---|---|
int |
|
toString
public String toString ()
このフィルタの文字列表現を返します。この関数は createFrom(String) の逆数です。
有効なフィルタ f の場合:
new TestFilter(f).toString().equals(f)
| 戻り値 | |
|---|---|
String |
|