TestInfo
public
class
TestInfo
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.util.testmapping.TestInfo |
將測試資訊集儲存在 TEST_MAPPING 檔案中。
摘要
公用建構函式 | |
|---|---|
TestInfo(String name, String source, boolean hostOnly)
|
|
TestInfo(String name, String source, boolean hostOnly,
|
|
公用方法 | |
|---|---|
void
|
addImportPaths(
|
void
|
addOption(TestOption option)
|
void
|
addSources(
|
boolean
|
equals(Object o)
|
boolean
|
getHostOnly()
|
|
getImportPaths()
|
|
getKeywords(
取得測試支援的關鍵字 |
|
getKeywords()
取得測試支援的關鍵字 |
String
|
getName()
|
String
|
getNameAndHostOnly()
取得 |
String
|
getNameOption()
取得 |
|
getOptions()
|
|
getSources()
|
int
|
hashCode()
|
void
|
merge(TestInfo test)
與其他測試合併。 |
String
|
toString()
|
公用建構函式
TestInfo
public TestInfo (String name,
String source,
boolean hostOnly)| 參數 | |
|---|---|
name |
String |
source |
String |
hostOnly |
boolean |
TestInfo
public TestInfo (String name,
String source,
boolean hostOnly,
keywords) | 參數 | |
|---|---|
name |
String |
source |
String |
hostOnly |
boolean |
keywords |
|
公用方法
addImportPaths
public void addImportPaths (paths)
| 參數 | |
|---|---|
paths |
|
addSources
public void addSources (sources)
| 參數 | |
|---|---|
sources |
|
等於
public boolean equals (Object o)
| 參數 | |
|---|---|
o |
Object |
| 傳回 | |
|---|---|
boolean |
|
getHostOnly
public boolean getHostOnly ()
| 傳回 | |
|---|---|
boolean |
|
getImportPaths
publicgetImportPaths ()
| 傳回 | |
|---|---|
|
|
getKeywords
publicgetKeywords ( ignoreKeywords)
取得測試支援的關鍵字 ERROR(/Set)。
| 參數 | |
|---|---|
ignoreKeywords |
:一組要忽略的 String 關鍵字。 |
| 傳回 | |
|---|---|
|
|
getName
public String getName ()
| 傳回 | |
|---|---|
String |
|
getNameAndHostOnly
public String getNameAndHostOnly ()
取得 String 代表測試名稱及其主機設定。這樣一來,TestInfo 就能依裝置上的規定名稱進行分組。
| 傳回 | |
|---|---|
String |
|
getOptions
publicgetOptions ()
| 傳回 | |
|---|---|
|
|
getSources
publicgetSources ()
| 傳回 | |
|---|---|
|
|
hashCode
public int hashCode ()
| 傳回 | |
|---|---|
int |
|
合併
public void merge (TestInfo test)
與其他測試合併。
更新測試選項,讓測試涵蓋兩項測試的最佳範圍。
TODO(b/113616538): 實作更強大的選項合併機制。
| 參數 | |
|---|---|
test |
TestInfo:要合併的 TestInfo 物件。 |
toString
public String toString ()
| 傳回 | |
|---|---|
String |
|