SandboxOptions
public
final
class
SandboxOptions
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.sandbox.SandboxOptions |
可接收及提供選項給 ISandbox 的類別。
摘要
常數 | |
|---|---|
String |
CHILD_GLOBAL_CONFIG
|
String |
ENABLE_DEBUG_THREAD
|
String |
PARENT_PREPARER_CONFIG
|
String |
SANDBOX_BUILD_ID
|
String |
TF_LOCATION
|
String |
USE_PROTO_REPORTER
|
String |
WAIT_FOR_EVENTS_TIMEOUT
|
公用建構函式 | |
|---|---|
SandboxOptions()
|
|
公用方法 | |
|---|---|
boolean
|
delayDownloadAfterSharding()
Returns whether or not to delay download after the sharding. |
boolean
|
downloadDefaultZips()
傳回是否要下載預設測試 zip 檔。 |
boolean
|
dumpTestTemplate()
傳回是否要在備援模式中傾印測試範本。 |
String
|
getChildGlobalConfig()
傳回子項沙箱要使用的設定。 |
|
getEnvVariables()
要傳遞至沙箱 Java 程序的環境變數對應。 |
|
getForcePartialDownloadFileRegexList()
傳回一組規則運算式,沙箱部分下載作業一律會下載符合規則運算式的檔案 |
|
getJavaOptions()
要傳遞至沙箱 Java 程序的選項清單。 |
String
|
getParentPreparerConfig()
傳回準備程序應在沙箱父項程序中執行的設定。 |
String
|
getSandboxBuildId()
傳回強制用於執行期間的沙箱建構 ID。 |
File
|
getSandboxTfDirectory()
傳回提供的目錄,其中包含用於執行沙箱的 Trade Federation 版本。 |
|
getTestsZips()
傳回要為沙箱準備的測試 ZIP 檔案集。 |
long
|
getWaitForEventsTimeout()
Returns the time we should wait for events to be processed after the sandbox is done running. |
boolean
|
shouldEnableDebugThread()
啟用偵錯執行緒。 |
boolean
|
shouldParallelSetup()
傳回是否要平行執行沙箱設定。 |
boolean
|
shouldUseParallelDownload()
傳回設定期間是否要使用平行下載。 |
boolean
|
shouldUsePartialDownload()
傳回是否要使用部分下載快取 |
boolean
|
shouldUseProtoReporter()
傳回是否應使用 protobuf 報表。 |
boolean
|
shouldUseSplitDiscovery()
傳回是否要使用獨立探索設定。 |
boolean
|
shouldUseTestDiscovery()
Returns whether or not to use tradefed observatory to optimize jar staging |
boolean
|
startAvdInParent()
傳回是否要在父項沙箱中啟動 AVD 裝置,或讓裝置位於子項中。 |
常數
CHILD_GLOBAL_CONFIG
public static final String CHILD_GLOBAL_CONFIG
常數值: "sub-global-config"
ENABLE_DEBUG_THREAD
public static final String ENABLE_DEBUG_THREAD
常數值: "sandbox-debug-thread"
PARENT_PREPARER_CONFIG
public static final String PARENT_PREPARER_CONFIG
常數值: "parent-preparer-config"
SANDBOX_BUILD_ID
public static final String SANDBOX_BUILD_ID
常數值: "sandbox-build-id"
TF_LOCATION
public static final String TF_LOCATION
常數值: "tf-location"
USE_PROTO_REPORTER
public static final String USE_PROTO_REPORTER
常數值: "use-proto-reporter"
WAIT_FOR_EVENTS_TIMEOUT
public static final String WAIT_FOR_EVENTS_TIMEOUT
常數值: "wait-for-events"
公用建構函式
SandboxOptions
public SandboxOptions ()
公用方法
delayDownloadAfterSharding
public boolean delayDownloadAfterSharding ()
Returns whether or not to delay download after the sharding.
| 傳回 | |
|---|---|
boolean |
|
downloadDefaultZips
public boolean downloadDefaultZips ()
傳回是否要下載預設測試 zip 檔。
| 傳回 | |
|---|---|
boolean |
|
dumpTestTemplate
public boolean dumpTestTemplate ()
傳回是否要在備援模式中傾印測試範本。
| 傳回 | |
|---|---|
boolean |
|
getChildGlobalConfig
public String getChildGlobalConfig ()
傳回子項沙箱使用的設定。如要使用父項,則為空值。
| 傳回 | |
|---|---|
String |
|
getEnvVariables
publicgetEnvVariables ()
要傳遞至沙箱 Java 程序的環境變數對應。
| 傳回 | |
|---|---|
|
|
getForcePartialDownloadFileRegexList
publicgetForcePartialDownloadFileRegexList ()
傳回一組規則運算式,沙箱部分下載作業一律會下載符合規則運算式的檔案
| 傳回 | |
|---|---|
|
|
getJavaOptions
publicgetJavaOptions ()
要傳遞至沙箱 Java 程序的選項清單。
| 傳回 | |
|---|---|
|
|
getParentPreparerConfig
public String getParentPreparerConfig ()
傳回準備程序應在沙箱父項程序中執行的設定。
| 傳回 | |
|---|---|
String |
|
getSandboxBuildId
public String getSandboxBuildId ()
傳回強制用於沙箱的建構 ID,以供執行期間使用。
| 傳回 | |
|---|---|
String |
|
getSandboxTfDirectory
public File getSandboxTfDirectory ()
傳回提供的目錄,其中包含用於執行沙箱的 Trade Federation 版本。
| 傳回 | |
|---|---|
File |
|
getTestsZips
publicgetTestsZips ()
傳回要暫存至沙箱的測試 zip 檔案集。
| 傳回 | |
|---|---|
|
|
getWaitForEventsTimeout
public long getWaitForEventsTimeout ()
傳回沙箱執行完畢後,我們應等待事件處理的時間。
| 傳回 | |
|---|---|
long |
|
shouldEnableDebugThread
public boolean shouldEnableDebugThread ()
啟用偵錯執行緒。
| 傳回 | |
|---|---|
boolean |
|
shouldParallelSetup
public boolean shouldParallelSetup ()
傳回是否要平行執行沙箱設定。
| 傳回 | |
|---|---|
boolean |
|
shouldUseParallelDownload
public boolean shouldUseParallelDownload ()
傳回設定期間是否要使用平行下載。
| 傳回 | |
|---|---|
boolean |
|
shouldUsePartialDownload
public boolean shouldUsePartialDownload ()
傳回是否要使用部分下載快取
| 傳回 | |
|---|---|
boolean |
|
shouldUseProtoReporter
public boolean shouldUseProtoReporter ()
傳回是否應使用 protobuf 報表。
| 傳回 | |
|---|---|
boolean |
|
shouldUseSplitDiscovery
public boolean shouldUseSplitDiscovery ()
傳回是否要使用獨立探索設定。
| 傳回 | |
|---|---|
boolean |
|
shouldUseTestDiscovery
public boolean shouldUseTestDiscovery ()
傳回是否要使用 tradefed 觀測站來最佳化 JAR 暫存
| 傳回 | |
|---|---|
boolean |
|
startAvdInParent
public boolean startAvdInParent ()
傳回是否要在父項沙箱中啟動 AVD 裝置,或讓裝置位於子項沙箱中。
| 傳回 | |
|---|---|
boolean |
|