SuiteTestFilter
public
class
SuiteTestFilter
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.testtype.suite.SuiteTestFilter |
Rappresenta un filtro per includere ed escludere i test.
Riepilogo
Costruttori pubblici | |
|---|---|
SuiteTestFilter(Integer shardIndex, String abi, String name, String test)
Crea un nuovo |
|
SuiteTestFilter(String abi, String name, String test)
Crea un nuovo |
|
Metodi pubblici | |
|---|---|
static
SuiteTestFilter
|
createFrom(String filter)
Crea un nuovo |
boolean
|
equals(Object obj)
|
String
|
getAbi()
|
String
|
getBaseName()
Restituisce il nome di base del modulo senza alcuna parametrizzazione. |
String
|
getModuleId()
|
String
|
getName()
|
String
|
getParameterName()
Se il modulo è parametro, restituisce il valore del parametro. |
Integer
|
getShardIndex()
Restituisce l'indice del frammento del test o null se non specificato. |
String
|
getTest()
|
int
|
hashCode()
|
String
|
toString()
Restituisce una rappresentazione di stringa di questo filtro. |
Costruttori pubblici
SuiteTestFilter
public SuiteTestFilter (Integer shardIndex,
String abi,
String name,
String test)Crea un nuovo SuiteTestFilter dalle parti specificate.
| Parametri | |
|---|---|
shardIndex |
Integer |
abi |
String: l'ABI deve essere supportato AbiUtils.isAbiSupportedByCompatibility(String) |
name |
String: il nome del modulo |
test |
String: l'identificatore del test, ad esempio |
SuiteTestFilter
public SuiteTestFilter (String abi,
String name,
String test)Crea un nuovo SuiteTestFilter dalle parti specificate.
| Parametri | |
|---|---|
abi |
String: l'ABI deve essere supportato AbiUtils.isAbiSupportedByCompatibility(String) |
name |
String: il nome del modulo |
test |
String: l'identificatore del test, ad esempio |
Metodi pubblici
createFrom
public static SuiteTestFilter createFrom (String filter)
Crea un nuovo SuiteTestFilter dalla stringa specificata. I filtri possono essere in uno dei quattro modi seguenti. L'istanza verrà inizializzata come segue: -"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..."
L'identificatore del test può contenere più parti, ad esempio i test con parametri.
| Parametri | |
|---|---|
filter |
String: il filtro da analizzare |
| Ritorni | |
|---|---|
SuiteTestFilter |
SuiteTestFilter |
uguale
public boolean equals (Object obj)
| Parametri | |
|---|---|
obj |
Object |
| Ritorni | |
|---|---|
boolean |
|
getAbi
public String getAbi ()
| Ritorni | |
|---|---|
String |
l'abi di questo filtro o null se non specificato. |
getBaseName
public String getBaseName ()
Restituisce il nome di base del modulo senza alcuna parametrizzazione. Se non è parametro, restituirà getName().
| Ritorni | |
|---|---|
String |
|
getModuleId
public String getModuleId ()
| Ritorni | |
|---|---|
String |
|
getName
public String getName ()
| Ritorni | |
|---|---|
String |
il nome del modulo di questo filtro o null se non specificato. |
getParameterName
public String getParameterName ()
Se il modulo è parametro, restituisce il valore del parametro. Valore null se non è parametro.
| Ritorni | |
|---|---|
String |
|
getShardIndex
public Integer getShardIndex ()
Restituisce l'indice del frammento del test o null se non specificato.
| Ritorni | |
|---|---|
Integer |
|
getTest
public String getTest ()
| Ritorni | |
|---|---|
String |
L'identificatore del test di questo filtro o null se non specificato. |
hashCode
public int hashCode ()
| Ritorni | |
|---|---|
int |
|
toString
public String toString ()
Restituisce una rappresentazione di stringa di questo filtro. Questa funzione è l'inversa di createFrom(String).
Per un filtro valido f;
new TestFilter(f).toString().equals(f)
| Ritorni | |
|---|---|
String |
|