SuiteTestFilter
  public
  
  
  
  class
  SuiteTestFilter
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | com.android.tradefed.testtype.suite.SuiteTestFilter | 
Reprezentuje filtr uwzględniania i wykluczania testów.
Podsumowanie
| Konstruktory publiczne | |
|---|---|
| 
      SuiteTestFilter(Integer shardIndex, String abi, String name, String test)
      Tworzy nową wartość  | |
| 
      SuiteTestFilter(String abi, String name, String test)
      Tworzy nową wartość  | |
| Metody publiczne | |
|---|---|
| 
        
        
        static
        
        
        SuiteTestFilter | 
      createFrom(String filter)
      Tworzy nowy obiekt  | 
| 
        
        
        
        
        
        boolean | 
      equals(Object obj)
       | 
| 
        
        
        
        
        
        String | 
      getAbi()
       | 
| 
        
        
        
        
        
        String | 
      getBaseName()
      Zwraca nazwę podstawową modułu bez parametrów. | 
| 
        
        
        
        
        
        String | 
      getModuleId()
       | 
| 
        
        
        
        
        
        String | 
      getName()
       | 
| 
        
        
        
        
        
        String | 
      getParameterName()
      Jeśli moduł jest parametryczny, zwraca wartość parametru. | 
| 
        
        
        
        
        
        Integer | 
      getShardIndex()
      Zwraca indeks fragmentu testu lub wartość null, jeśli nie jest określony. | 
| 
        
        
        
        
        
        String | 
      getTest()
       | 
| 
        
        
        
        
        
        int | 
      hashCode()
       | 
| 
        
        
        
        
        
        String | 
      toString()
      Zwraca reprezentację ciągu tekstowego tego filtra. | 
Konstruktory publiczne
SuiteTestFilter
public SuiteTestFilter (Integer shardIndex, 
                String abi, 
                String name, 
                String test)Tworzy nową wartość SuiteTestFilter z podanych części.
| Parametry | |
|---|---|
| shardIndex | Integer | 
| abi | String: interfejs ABI musi być obsługiwanyAbiUtils.isAbiSupportedByCompatibility(String) | 
| name | String: nazwa modułu | 
| test | String: identyfikator testu, np. | 
SuiteTestFilter
public SuiteTestFilter (String abi, 
                String name, 
                String test)Tworzy nową wartość SuiteTestFilter z podanych części.
| Parametry | |
|---|---|
| abi | String: interfejs ABI musi być obsługiwanyAbiUtils.isAbiSupportedByCompatibility(String) | 
| name | String: nazwa modułu | 
| test | String: identyfikator testu, np. | 
Metody publiczne
createFrom
public static SuiteTestFilter createFrom (String filter)
Tworzy nowy obiekt SuiteTestFilter z podanego ciągu znaków. Filtry mogą mieć jedną z 4 form. Instancja zostanie zainicjowana w ten sposób: -"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..."
 
Identyfikator testu może zawierać kilka części, np. testy parametryczne.
| Parametry | |
|---|---|
| filter | String: filtr do przeanalizowania | 
| Zwroty | |
|---|---|
| SuiteTestFilter | SuiteTestFilter | 
równa się
public boolean equals (Object obj)
| Parametry | |
|---|---|
| obj | Object | 
| Zwroty | |
|---|---|
| boolean | |
getAbi
public String getAbi ()
| Zwroty | |
|---|---|
| String | interfejs ABI tego filtra lub wartość null, jeśli nie został podany. | 
getBaseName
public String getBaseName ()
Zwraca nazwę podstawową modułu bez parametrów. Jeśli nie ma parametrów, zwraca getName();
| Zwroty | |
|---|---|
| String | |
getModuleId
public String getModuleId ()
| Zwroty | |
|---|---|
| String | |
getName
public String getName ()
| Zwroty | |
|---|---|
| String | nazwa modułu tego filtra lub null, jeśli nie jest określony. | 
getParameterName
public String getParameterName ()
Jeśli moduł jest parametryczny, zwraca wartość parametru. Wartość null, jeśli nie ma parametrów.
| Zwroty | |
|---|---|
| String | |
getShardIndex
public Integer getShardIndex ()
Zwraca indeks fragmentu testu lub wartość null, jeśli nie jest określony.
| Zwroty | |
|---|---|
| Integer | |
getTest
public String getTest ()
| Zwroty | |
|---|---|
| String | identyfikator testu tego filtra lub wartość null, jeśli nie podano; | 
hashCode
public int hashCode ()
| Zwroty | |
|---|---|
| int | |
toString
public String toString ()
Zwraca reprezentację ciągu tekstowego tego filtra. Ta funkcja jest odwrotnością funkcji createFrom(String).
 
W przypadku prawidłowego filtra f;
new TestFilter(f).toString().equals(f)
 | Zwroty | |
|---|---|
| String | |
