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

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

boolean dumpTestTemplate()

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

String getChildGlobalConfig()

傳回要用於子項沙箱的設定。

getEnvVariables()

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

getJavaOptions()

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

String getParentPreparerConfig()

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

String getSandboxBuildId()

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

File getSandboxTfDirectory()

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

getTestsZips()

傳回要為沙箱分派的測試 ZIP 檔案集。

long getWaitForEventsTimeout()

在沙箱執行完畢後,傳回等待事件處理作業的時間。

boolean shouldEnableDebugThread()

啟用偵錯執行緒。

boolean shouldUseProtoReporter()

傳回是否應使用 protobuf 報表。

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

公用方法

downloadDefaultZips

public boolean downloadDefaultZips ()

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

傳回
boolean

dumpTestTemplate

public boolean dumpTestTemplate ()

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

傳回
boolean

getChildGlobalConfig

public String getChildGlobalConfig ()

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

傳回
String

getEnvVariables

public  getEnvVariables ()

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

傳回

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

shouldUseProtoReporter

public boolean shouldUseProtoReporter ()

傳回是否應使用 protobuf 報表。

傳回
boolean

startAvdInParent

public boolean startAvdInParent ()

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

傳回
boolean