運行配置設備恢復
public class RunConfigDeviceRecovery
extends Object
implements IMultiDeviceRecovery
java.lang.Object | |
↳ | com.android.tradefed.device.recovery.RunConfigDeviceRecovery |
通用基礎IMultiDeviceRecovery
用於執行 tradefed 設定來執行復原步驟。
概括
公共構造函數 | |
---|---|
RunConfigDeviceRecovery () |
公共方法 | |
---|---|
getExtraArguments ( ITestDevice device) 取得要傳遞給配置的額外參數的清單。 | |
void | recoverDevices ( managedDevices) recoverDevices ( managedDevices) 恢復主機上的離線設備。 |
boolean | shouldSkip ( IManagedTestDevice device) 透過進行額外檢查,有額外的機會跳過給定設備上的恢復。 |
受保護的方法 | |
---|---|
ICommandScheduler | getCommandScheduler () 傳回 |
IDeviceManager | getDeviceManager () 傳回一個 |
公共構造函數
運行配置設備恢復
public RunConfigDeviceRecovery ()
公共方法
取得額外參數
publicgetExtraArguments (ITestDevice device)
取得要傳遞給配置的額外參數的清單。如果傳回 null 則出現錯誤,應嘗試復原。
參數 | |
---|---|
device | ITestDevice :要執行復原的ITestDevice |
退貨 | |
---|---|
要使用的額外參數的清單。如果出現問題則為 null。 |
應該跳過
public boolean shouldSkip (IManagedTestDevice device)
透過進行額外檢查,有額外的機會跳過給定設備上的恢復。
參數 | |
---|---|
device | IManagedTestDevice :考慮進行恢復的IManagedTestDevice 。 |
退貨 | |
---|---|
boolean | 如果應跳過恢復則為 true。 |
受保護的方法
取得命令調度程序
protected ICommandScheduler getCommandScheduler ()
傳回ICommandScheduler
實例。暴露進行測試。
退貨 | |
---|---|
ICommandScheduler |