SandboxedInvocationExecution
public
class
SandboxedInvocationExecution
extends InvocationExecution
| java.lang.Object | ||
| ↳ | com.android.tradefed.invoker.InvocationExecution | |
| ↳ | com.android.tradefed.invoker.sandbox.SandboxedInvocationExecution | |
调用的特殊沙盒执行:这是在沙盒内运行命令时的 InvocationExection。相应 build 应已在上下文中提供。
摘要
公共构造函数 | |
|---|---|
SandboxedInvocationExecution()
|
|
公共方法 | |
|---|---|
void
|
cleanUpBuilds(IInvocationContext context, IConfiguration config)
执行 build_provider 清理步骤。 |
boolean
|
fetchBuild(TestInformation testInfo, IConfiguration config, IRescheduler rescheduler, ITestInvocationListener listener)
执行调用的 build_provider 步骤。 |
受保护的方法 | |
|---|---|
List<ITargetPreparer>
|
getLabPreparersToRun(IConfiguration config, String deviceName)
检索要在相应设备上运行的实验准备器的列表。 |
List<ITargetPreparer>
|
getTargetPreparersToRun(IConfiguration config, String deviceName)
检索要在相应设备上运行的目标准备器列表。 |
void
|
logHostAdb(IConfiguration config, ITestLogger logger)
从 $TMPDIR/adb.$UID.log 收集日志。 |
公共构造函数
SandboxedInvocationExecution
public SandboxedInvocationExecution ()
公共方法
cleanUpBuilds
public void cleanUpBuilds (IInvocationContext context, IConfiguration config)
执行 build_provider 清理步骤。与 build 获取相关。
| 参数 | |
|---|---|
context |
IInvocationContext:调用的 IInvocationContext。 |
config |
IConfiguration:相应测试运行的 IConfiguration。 |
fetchBuild
public boolean fetchBuild (TestInformation testInfo, IConfiguration config, IRescheduler rescheduler, ITestInvocationListener listener)
执行调用的 build_provider 步骤。
| 参数 | |
|---|---|
testInfo |
TestInformation:调用的 TestInformation。 |
config |
IConfiguration:相应测试运行的 IConfiguration。 |
rescheduler |
IRescheduler:IRescheduler,用于重新安排部分调用的执行时间,以便在其他资源上执行 |
listener |
ITestInvocationListener:用于报告 build 下载失败的 ITestInvocation。 |
| 返回 | |
|---|---|
boolean |
如果我们成功下载了 build,则为 true,否则为 false。 |
| 抛出 | |
|---|---|
BuildRetrievalError |
|
DeviceNotAvailableException |
|
受保护的方法
getLabPreparersToRun
protected List<ITargetPreparer> getLabPreparersToRun (IConfiguration config, String deviceName)
检索要在相应设备上运行的实验准备器的列表。
在沙盒类中被替换,以限制在沙盒子级中运行实验准备器
| 参数 | |
|---|---|
config |
IConfiguration |
deviceName |
String |
| 返回 | |
|---|---|
List<ITargetPreparer> |
|
getTargetPreparersToRun
protected List<ITargetPreparer> getTargetPreparersToRun (IConfiguration config, String deviceName)
检索要在此设备上运行的目标准备器的列表。
在沙盒类中被替换,以限制在沙盒子级中运行实验准备器
| 参数 | |
|---|---|
config |
IConfiguration |
deviceName |
String |
| 返回 | |
|---|---|
List<ITargetPreparer> |
|
logHostAdb
protected void logHostAdb (IConfiguration config, ITestLogger logger)
从 $TMPDIR/adb.$UID.log 收集日志。
| 参数 | |
|---|---|
config |
IConfiguration |
logger |
ITestLogger |