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 步骤。

受保护的方法

getLabPreparersToRun(IConfiguration config, String deviceName)

检索要在此设备上运行的实验准备程序的列表。

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 IReschedulerIRescheduler,用于重新调度调用的部分,以便在其他资源上执行

listener ITestInvocationListener:用于报告 build 下载失败的 ITestInvocation

返回
boolean 如果成功下载 build,则为 true;否则为 false。

抛出
BuildRetrievalError
DeviceNotAvailableException

受保护的方法

getLabPreparersToRun

protected  getLabPreparersToRun (IConfiguration config, 
                String deviceName)

检索要在此设备上运行的实验准备程序的列表。

在沙盒类中被替换,以限制实验准备程序在沙盒子级中运行

参数
config IConfiguration

deviceName String

返回

getTargetPreparersToRun

protected  getTargetPreparersToRun (IConfiguration config, 
                String deviceName)

检索要在此设备上运行的目标准备程序的列表。

在沙盒类中被替换,以限制实验准备程序在沙盒子级中运行

参数
config IConfiguration

deviceName String

返回

logHostAdb

protected void logHostAdb (IConfiguration config, 
                ITestLogger logger)

从 $TMPDIR/adb.$UID.log 收集日志。

参数
config IConfiguration

logger ITestLogger