InfoTest

public class TestInfo
extends Object

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


Memorizza le informazioni sul test impostate in un file TEST_MAPPING.

Riepilogo

Costruttori pubblici

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

Metodi pubblici

void addImportPaths ( paths) addImportPaths ( paths)
void addOption ( TestOption option)
void addSources ( sources) addSources ( sources)
boolean equals (Object o)
boolean getHostOnly ()
getImportPaths ()
getKeywords ( ignoreKeywords) getKeywords ( ignoreKeywords)

Ottieni un ERROR(/Set) delle parole chiave supportate dal test.

getKeywords ()

Ottieni un ERROR(/Set) delle parole chiave supportate dal test.

String getName ()
String getNameAndHostOnly ()

Ottieni una String che rappresenta il nome del test e la relativa impostazione host.

String getNameOption ()

Ottieni una String che rappresenta il nome del test e le sue opzioni.

getOptions ()
getSources ()
int hashCode ()
void merge ( TestInfo test)

Unisci con un altro test.

String toString ()

Costruttori pubblici

InfoTest

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

Parametri
name String

source String

hostOnly boolean

InfoTest

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

Parametri
name String

source String

hostOnly boolean

keywords

Metodi pubblici

addImportPaths

public void addImportPaths ( paths)

Parametri
paths

addOpzione

public void addOption (TestOption option)

Parametri
option TestOption

addSources

public void addSources ( sources)

Parametri
sources

equivale

public boolean equals (Object o)

Parametri
o Object

ritorna
boolean

getHostOnly

public boolean getHostOnly ()

ritorna
boolean

getImportPaths

public  getImportPaths ()

ritorna

getKeywords

public  getKeywords ( ignoreKeywords)

Ottieni un ERROR(/Set) delle parole chiave supportate dal test.

Parametri
ignoreKeywords : un insieme di String di parole chiave da ignorare.

ritorna

getKeywords

public  getKeywords ()

Ottieni un ERROR(/Set) delle parole chiave supportate dal test.

ritorna

getNome

public String getName ()

ritorna
String

getNameAndHostOnly

public String getNameAndHostOnly ()

Ottieni una String che rappresenta il nome del test e la relativa impostazione host. Ciò consente di raggruppare TestInfo per nome in base al requisito sul dispositivo.

ritorna
String

getNomeOpzione

public String getNameOption ()

Ottieni una String che rappresenta il nome del test e le sue opzioni.

ritorna
String

getOpzioni

public  getOptions ()

ritorna

getSources

public  getSources ()

ritorna

codice hash

public int hashCode ()

ritorna
int

unire

public void merge (TestInfo test)

Unisci con un altro test.

Aggiorna le opzioni del test in modo che il test abbia la migliore copertura possibile di entrambi i test.

TODO(b/113616538): implementa un meccanismo di fusione delle opzioni più robusto.

Parametri
test TestInfo : oggetto TestInfo con cui unire.

accordare

public String toString ()

ritorna
String