沙盒选项
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 | shouldParallelSetup () 返回是否并行执行沙箱设置。 |
boolean | shouldUseNewFlagOrder () 返回是否使用新的标志顺序 |
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 |
获取环境变量
publicgetEnvVariables ()
要传递给沙箱的 java 进程的环境变量映射。
退货 | |
---|---|
获取Java选项
publicgetJavaOptions ()
传递沙箱 java 进程的选项列表。
退货 | |
---|---|
getParentPreparerConfig
public String getParentPreparerConfig ()
返回准备程序应在沙箱的父进程中运行的配置。
退货 | |
---|---|
String |
获取沙盒BuildId
public String getSandboxBuildId ()
返回强制沙箱在运行期间使用的构建 ID。
退货 | |
---|---|
String |
getSandboxTfDirectory
public File getSandboxTfDirectory ()
返回提供的包含 Trade Federation 版本的目录以用于沙盒运行。
退货 | |
---|---|
File |
getTestsZips
publicgetTestsZips ()
将一组测试 zip 返回到沙箱的阶段。
退货 | |
---|---|
getWaitForEvents超时
public long getWaitForEventsTimeout ()
返回沙箱运行完成后我们应该等待事件处理的时间。
退货 | |
---|---|
long |
应该启用调试线程
public boolean shouldEnableDebugThread ()
启用调试线程。
退货 | |
---|---|
boolean |
应该并行设置
public boolean shouldParallelSetup ()
返回是否并行执行沙箱设置。
退货 | |
---|---|
boolean |
shouldUseNewFlagOrder
public boolean shouldUseNewFlagOrder ()
返回是否使用新的标志顺序
退货 | |
---|---|
boolean |
应该使用 ProtoReporter
public boolean shouldUseProtoReporter ()
返回是否应使用 protobuf 报告。
退货 | |
---|---|
boolean |
应该使用测试发现
public boolean shouldUseTestDiscovery ()
返回是否使用 tradefed 观察站来优化 jar 暂存
退货 | |
---|---|
boolean |
startAvdInParent
public boolean startAvdInParent ()
返回是否在父沙箱中启动 avd 设备或让它在子沙箱中。
退货 | |
---|---|
boolean |