TestInfo

public class TestInfo
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.testmapping.TestInfo


Przechowuje informacje o teście ustawione w pliku TEST_MAPPING.

Podsumowanie

Konstruktory publiczne

TestInfo(String name, String source, boolean hostOnly)
TestInfo(String name, String source, boolean hostOnly, Set<String> keywords)

Metody publiczne

void addImportPaths(Set<String> paths)
void addOption(TestOption option)
void addSources(Set<String> sources)
boolean equals(Object o)
boolean getHostOnly()
Set<String> getImportPaths()
Set<String> getKeywords()

Uzyskaj Set słów kluczowych obsługiwanych przez test.

Set<String> getKeywords(Set<String> ignoreKeywords)

Uzyskaj Set słów kluczowych obsługiwanych przez test.

String getName()
String getNameAndHostOnly()

Pobierz String, aby reprezentować nazwę testu i jego ustawienie hosta.

String getNameOption()

Uzyskaj String reprezentującą nazwę testu i jego opcje.

List<TestOption> getOptions()
Set<String> getSources()
int hashCode()
void merge(TestInfo test)

Połącz z innym testem.

String toString()

Konstruktory publiczne

TestInfo

public TestInfo (String name, 
                String source, 
                boolean hostOnly)

Parametry
name String

source String

hostOnly boolean

TestInfo

public TestInfo (String name, 
                String source, 
                boolean hostOnly, 
                Set<String> keywords)

Parametry
name String

source String

hostOnly boolean

keywords Set

Metody publiczne

addImportPaths

public void addImportPaths (Set<String> paths)

Parametry
paths Set

addOption

public void addOption (TestOption option)

Parametry
option TestOption

addSources

public void addSources (Set<String> sources)

Parametry
sources Set

równa się

public boolean equals (Object o)

Parametry
o Object

Zwraca
boolean

getHostOnly

public boolean getHostOnly ()

Zwraca
boolean

getImportPaths

public Set<String> getImportPaths ()

Zwraca
Set<String>

getKeywords

public Set<String> getKeywords ()

Uzyskaj Set słów kluczowych obsługiwanych przez test.

Zwraca
Set<String>

getKeywords

public Set<String> getKeywords (Set<String> ignoreKeywords)

Uzyskaj Set słów kluczowych obsługiwanych przez test.

Parametry
ignoreKeywords Set: zestaw String słów kluczowych, które mają być ignorowane.

Zwraca
Set<String>

getName

public String getName ()

Zwraca
String

getNameAndHostOnly

public String getNameAndHostOnly ()

Pobierz String, aby reprezentować nazwę testu i jego ustawienie hosta. Umożliwia to grupowanie informacji o teście według nazwy wymagania na urządzeniu.

Zwraca
String

getNameOption

public String getNameOption ()

Uzyskaj String reprezentującą nazwę testu i jego opcje.

Zwraca
String

getOptions

public List<TestOption> getOptions ()

Zwraca
List<TestOption>

getSources

public Set<String> getSources ()

Zwraca
Set<String>

hashCode

public int hashCode ()

Zwraca
int

scalić

public void merge (TestInfo test)

Połącz z innym testem.

Zaktualizuj opcje testu, aby zapewnić jak najlepsze pokrycie obu testów.

TODO(b/113616538): Wdróż bardziej niezawodny mechanizm scalania opcji.

Parametry
test TestInfo: obiekt TestInfo, z którym ma zostać scalony.

toString

public String toString ()

Zwraca
String