SandboxOptions

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 delayDownloadAfterSharding()

傳回是否要在分割後延遲下載。

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 階段

boolean startAvdInParent()

傳回是否要在父項沙箱中啟動 avd 裝置,或讓其在子項中啟動。

欄位

CHILD_GLOBAL_CONFIG

public static final String CHILD_GLOBAL_CONFIG

ENABLE_DEBUG_THREAD

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

公用建構函式

SandboxOptions

public SandboxOptions ()

公用方法

delayDownloadAfterSharding

public boolean delayDownloadAfterSharding ()

傳回是否要在區隔後延遲下載。

傳回
boolean

downloadDefaultZips

public boolean downloadDefaultZips ()

傳回是否要下載預設測試的 ZIP 檔案。

傳回
boolean

dumpTestTemplate

public boolean dumpTestTemplate ()

傳回是否要在備用模式中轉儲測試範本。

傳回
boolean

getChildGlobalConfig

public String getChildGlobalConfig ()

傳回要用於子項沙箱的設定。或空值,如果應使用父項。

傳回
String

getEnvVariables

public  getEnvVariables ()

要傳遞至沙箱 Java 程序的環境變數對應項目。

傳回

getForcePartialDownloadFileRegexList

public  getForcePartialDownloadFileRegexList ()

傳回一組規則運算式,沙箱部分下載功能一律會下載符合規則運算式的檔案

傳回

getJavaOptions

public  getJavaOptions ()

傳遞沙箱 Java 程序的選項清單。

傳回

getParentPreparerConfig

public String getParentPreparerConfig ()

傳回預備程序應在沙箱的上層程序中執行的設定。

傳回
String

getSandboxBuildId

public String getSandboxBuildId ()

傳回沙箱在執行期間強制使用的版本 ID。

傳回
String

getSandboxTfDirectory

public File getSandboxTfDirectory ()

傳回提供的目錄,其中包含要用於執行沙箱的 Trade Federation 版本。

傳回
File

getTestsZips

public  getTestsZips ()

傳回要為沙箱分派的測試 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