沙盒选项
public final class SandboxOptions
extends 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
沙盒_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 ()
公共方法
下载默认压缩包
public boolean downloadDefaultZips ()
返回是否下载默认测试 zip。
退货 | |
---|---|
boolean |
转储测试模板
public boolean dumpTestTemplate ()
返回是否在回退模式下转储测试模板。
退货 | |
---|---|
boolean |
获取子全局配置
public String getChildGlobalConfig ()
返回要用于子沙箱的配置。如果应该使用父级,则为 null。
退货 | |
---|---|
String |
获取环境变量
publicgetEnvVariables ()
传递给沙箱的java进程的环境变量映射。
退货 | |
---|---|
获取Java选项
publicgetJavaOptions ()
传递沙箱的 java 进程的选项列表。
退货 | |
---|---|
getParentPreparerConfig
public String getParentPreparerConfig ()
返回准备器应在沙箱的父进程中运行的配置。
退货 | |
---|---|
String |
获取沙盒构建ID
public String getSandboxBuildId ()
返回在运行期间强制使用的沙箱的构建 ID。
退货 | |
---|---|
String |
getSandboxTf目录
public File getSandboxTfDirectory ()
返回提供的包含 Trade Federation 版本的目录,用于对运行进行沙箱化。
退货 | |
---|---|
File |
getTestsZips
publicgetTestsZips ()
将测试 zip 集返回到沙箱的阶段。
退货 | |
---|---|
获取等待事件超时
public long getWaitForEventsTimeout ()
返回在沙箱运行完成后我们应该等待事件处理的时间。
退货 | |
---|---|
long |
应该启用调试线程
public boolean shouldEnableDebugThread ()
启用调试线程。
退货 | |
---|---|
boolean |
shouldUseProtoReporter
public boolean shouldUseProtoReporter ()
返回是否应使用 protobuf 报告。
退货 | |
---|---|
boolean |
startAvdInParent
public boolean startAvdInParent ()
返回是否在父沙箱中启动 avd 设备或让它在子沙箱中。
退货 | |
---|---|
boolean |