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

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

返回要用于子沙盒的配置。或者,如果应使用父级广告资源,则为 null。

返回
String

getEnvVariables

public  getEnvVariables ()

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

返回

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

shouldUseProtoReporter

public boolean shouldUseProtoReporter ()

返回是否应使用 protobuf 报告。

返回
boolean

startAvdInParent

public boolean startAvdInParent ()

返回是在父级沙盒中启动 avd 设备还是在子级中启动。

返回
boolean