沙盒選項

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

返回是否應使用 protobuf 報告。

boolean shouldUseTestDiscovery ()

返回是否使用 tradefed 觀察站來優化 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

公共構造函數

沙盒選項

public SandboxOptions ()

公共方法

下載DefaultZips

public boolean downloadDefaultZips ()

返回是否下載默認測試 zip。

退貨
boolean

轉儲測試模板

public boolean dumpTestTemplate ()

返回是否以回退模式轉儲測試模板。

退貨
boolean

getChildGlobalConfig

public String getChildGlobalConfig ()

返回用於子沙箱的配置。如果應該使用父級,則為 null。

退貨
String

獲取環境變量

public  getEnvVariables ()

要傳遞給沙箱的 java 進程的環境變量映射。

退貨

getForcePartialDownloadFileRegexList

public  getForcePartialDownloadFileRegexList ()

返回一組正則表達式,沙盒部分下載將始終下載那些匹配正則表達式的文件

退貨

獲取Java選項

public  getJavaOptions ()

傳遞沙箱 java 進程的選項列表。

退貨

getParentPreparerConfig

public String getParentPreparerConfig ()

返回準備程序應在沙箱的父進程中運行的配置。

退貨
String

獲取沙盒BuildId

public String getSandboxBuildId ()

返回強製沙箱在運行期間使用的構建 ID。

退貨
String

getSandboxTfDirectory

public File getSandboxTfDirectory ()

返回提供的包含 Trade Federation 版本的目錄以用於沙盒運行。

退貨
File

getTestsZips

public  getTestsZips ()

將一組測試 zip 返回到沙箱的階段。

退貨

getWaitForEvents超時

public long getWaitForEventsTimeout ()

返回沙箱運行完成後我們應該等待事件處理的時間。

退貨
long

應該啟用調試線程

public boolean shouldEnableDebugThread ()

啟用調試線程。

退貨
boolean

應該並行設置

public boolean shouldParallelSetup ()

返回是否並行執行沙箱設置。

退貨
boolean

應該使用 ProtoReporter

public boolean shouldUseProtoReporter ()

返回是否應使用 protobuf 報告。

退貨
boolean

應該使用測試發現

public boolean shouldUseTestDiscovery ()

返回是否使用 tradefed 觀察站來優化 jar 暫存

退貨
boolean

startAvdInParent

public boolean startAvdInParent ()

返回是否在父沙箱中啟動 avd 設備或讓它在子沙箱中。

退貨
boolean