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

返回是否在分片后延迟下载。

boolean downloadDefaultZips()

返回是否下载默认测试 zip 文件。

boolean dumpTestTemplate()

返回是否在回退模式下转储测试模板。

String getChildGlobalConfig()

返回要用于儿童沙盒的配置。

getEnvVariables()

要传递给沙盒的 Java 进程的环境变量的映射。

getForcePartialDownloadFileRegexList()

返回一组正则表达式,沙盒部分下载将始终下载与这些正则表达式匹配的文件

getJavaOptions()

要传递给沙盒的 Java 进程的选项列表。

String getParentPreparerConfig()

返回准备器应在沙盒的父进程中运行的配置。

String getSandboxBuildId()

返回在运行期间强制用于沙盒的 build-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

常量值: "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 ()

返回在分片后是否延迟下载。

返回
boolean

downloadDefaultZips

public boolean downloadDefaultZips ()

返回是否下载默认测试 zip 文件。

返回
boolean

dumpTestTemplate

public boolean dumpTestTemplate ()

返回是否在回退模式下转储测试模板。

返回
boolean

getChildGlobalConfig

public String getChildGlobalConfig ()

返回要用于子沙盒的配置。如果应使用父级值,则为 null。

返回
String

getEnvVariables

public  getEnvVariables ()

要传递给沙盒的 Java 进程的环境变量的映射。

返回

getForcePartialDownloadFileRegexList

public  getForcePartialDownloadFileRegexList ()

返回一组正则表达式,沙盒部分下载将始终下载与这些正则表达式匹配的文件

返回

getJavaOptions

public  getJavaOptions ()

要传递给沙盒的 Java 进程的选项列表。

返回

getParentPreparerConfig

public String getParentPreparerConfig ()

返回准备器应在沙盒的父进程中运行的配置。

返回
String

getSandboxBuildId

public String getSandboxBuildId ()

返回在运行期间强制用于沙盒的 build-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 observatory 来优化 jar 暂存

返回
boolean

startAvdInParent

public boolean startAvdInParent ()

返回是否在父沙盒中启动 AVD 设备,或让其在子沙盒中启动。

返回
boolean