沙盒選項
public final class SandboxOptions
extends Object
java.lang.Object | |
↳ | com.android.tradefed.sandbox.SandboxOptions |
可以接收選項並向ISandbox
提供選項的類別。
概括
領域 | |
---|---|
public static final String | CHILD_GLOBAL_CONFIG |
public static final String | ENABLE_DEBUG_THREAD |
public static final String | PARENT_PREPARER_CONFIG |
public static final String | SANDBOX_BUILD_ID |
public static final String | TF_LOCATION |
public static final String | USE_PROTO_REPORTER |
public static final String | WAIT_FOR_EVENTS_TIMEOUT
|
公共構造函數 | |
---|---|
SandboxOptions () |
公共方法 | |
---|---|
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 () 返回沙箱運作完畢後我們應該等待事件處理的時間。 |
boolean | shouldEnableDebugThread () 啟用調試線程。 |
boolean | shouldParallelSetup () 返回是否並行執行沙箱設定。 |
boolean | shouldUseParallelDownload () 返回設定期間是否使用並行下載。 |
boolean | shouldUsePartialDownload () 返回是否使用部分下載快取 |
boolean | shouldUseProtoReporter () 傳回是否應使用 protobuf 報告。 |
boolean | shouldUseSplitDiscovery () 傳回是否使用具有獨立發現的設定。 |
boolean | shouldUseTestDiscovery () 傳回是否使用 tradefed observatory 來最佳化 jar staging |
boolean | startAvdInParent () 返回是否在父沙箱中啟動 avd 裝置或讓它在子沙箱中啟動。 |
領域
子全域配置
public static final String CHILD_GLOBAL_CONFIG
啟用_調試_線程
public static final String ENABLE_DEBUG_THREAD
PARENT_PREPARER_CONFIG
public static final String PARENT_PREPARER_CONFIG
SANDBOX_BUILD_ID
public static final String SANDBOX_BUILD_ID
TF_LOCATION
public static final String TF_LOCATION
USE_PROTO_REPORTER
public static final String USE_PROTO_REPORTER
WAIT_FOR_EVENTS_TIMEOUT
public static final String WAIT_FOR_EVENTS_TIMEOUT
公共構造函數
沙盒選項
public SandboxOptions ()
公共方法
下載預設Zips
public boolean downloadDefaultZips ()
返回是否下載預設測試 zip。
退貨 | |
---|---|
boolean |
轉儲測試模板
public boolean dumpTestTemplate ()
傳回是否在後備模式下轉儲測試範本。
退貨 | |
---|---|
boolean |
取得子全域配置
public String getChildGlobalConfig ()
傳回用於子沙箱的配置。如果應該使用父級,則為 null。
退貨 | |
---|---|
String |
取得環境變數
publicgetEnvVariables ()
要傳遞給沙箱的 java 程序的環境變數映射。
退貨 | |
---|---|
getForcePartialDownloadFileRegexList
publicgetForcePartialDownloadFileRegexList ()
傳回一組正規表示式,沙箱部分下載將始終下載那些與正規表示式相符的文件
退貨 | |
---|---|
取得Java選項
publicgetJavaOptions ()
傳遞沙箱的java進程的選項清單。
退貨 | |
---|---|
取得ParentPreparerConfig
public String getParentPreparerConfig ()
返回準備器應在沙箱的父進程中運行的配置。
退貨 | |
---|---|
String |
取得SandboxBuildId
public String getSandboxBuildId ()
返回運作期間強制使用沙箱的建置 ID。
退貨 | |
---|---|
String |
取得SandboxTfDirectory
public File getSandboxTfDirectory ()
傳回提供的目錄,其中包含用於沙箱運行的 Trade Federation 版本。
退貨 | |
---|---|
File |
取得測試Zips
publicgetTestsZips ()
傳回測試 zip 集以用於沙箱。
退貨 | |
---|---|
取得等待事件逾時
public long getWaitForEventsTimeout ()
返回沙箱運作完畢後我們應該等待事件處理的時間。
退貨 | |
---|---|
long |
應該啟用調試線程
public boolean shouldEnableDebugThread ()
啟用調試線程。
退貨 | |
---|---|
boolean |
應該並行設置
public boolean shouldParallelSetup ()
返回是否並行執行沙箱設定。
退貨 | |
---|---|
boolean |
應該使用並行下載
public boolean shouldUseParallelDownload ()
返回設定期間是否使用並行下載。
退貨 | |
---|---|
boolean |
應該使用部分下載
public boolean shouldUsePartialDownload ()
返回是否使用部分下載快取
退貨 | |
---|---|
boolean |
應該使用ProtoReporter
public boolean shouldUseProtoReporter ()
傳回是否應使用 protobuf 報告。
退貨 | |
---|---|
boolean |
應該使用SplitDiscovery
public boolean shouldUseSplitDiscovery ()
傳回是否使用具有獨立發現的設定。
退貨 | |
---|---|
boolean |
應該使用測試發現
public boolean shouldUseTestDiscovery ()
傳回是否使用 tradefed observatory 來最佳化 jar staging
退貨 | |
---|---|
boolean |
父級啟動AVD
public boolean startAvdInParent ()
返回是否在父沙箱中啟動 avd 裝置或讓它在子沙箱中啟動。
退貨 | |
---|---|
boolean |