SandboxedInvocationExecution
public
class
SandboxedInvocationExecution
extends InvocationExecution
| java.lang.Object | ||
| ↳ | com.android.tradefed.invoker.InvocationExecution | |
| ↳ | com.android.tradefed.invoker.sandbox.SandboxedInvocationExecution | |
叫用作業的特殊沙箱執行作業:這是在沙箱中執行指令時的 InvocationExection。該版本應已在情境中提供。
摘要
公用建構函式 | |
|---|---|
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 清理步驟。與建構擷取作業相關。
| 參數 | |
|---|---|
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:用於回報建構下載失敗的 ITestInvocation。 |
| 傳回 | |
|---|---|
boolean |
如果成功下載版本,則傳回 True,否則傳回 False。 |
| 擲回 | |
|---|---|
BuildRetrievalError |
|
DeviceNotAvailableException |
|
受保護的方法
getLabPreparersToRun
protectedgetLabPreparersToRun (IConfiguration config, String deviceName)
擷取要在這個裝置上執行的實驗室準備工具清單。
在沙箱類別中覆寫,以限制實驗室準備工具在沙箱子項中執行
| 參數 | |
|---|---|
config |
IConfiguration |
deviceName |
String |
| 傳回 | |
|---|---|
|
|
getTargetPreparersToRun
protectedgetTargetPreparersToRun (IConfiguration config, String deviceName)
擷取要在這個裝置上執行的目標準備工具清單。
在沙箱類別中覆寫,以限制實驗室準備工具在沙箱子項中執行
| 參數 | |
|---|---|
config |
IConfiguration |
deviceName |
String |
| 傳回 | |
|---|---|
|
|
logHostAdb
protected void logHostAdb (IConfiguration config, ITestLogger logger)
從 $TMPDIR/adb.$UID.log 收集記錄。
| 參數 | |
|---|---|
config |
IConfiguration |
logger |
ITestLogger |