DeviceConcurrentUtil.ShellCommandCallable
public
static
abstract
class
DeviceConcurrentUtil.ShellCommandCallable
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.util.DeviceConcurrentUtil.ShellCommandCallable<V> |
在 ITestDevice 上執行殼層指令的詳細資料包裝 ERROR(/Callable)。
必須實作 processOutput(String) 才能處理指令輸出內容,並判斷 Callable 的傳回值
摘要
公用建構函式 | |
|---|---|
ShellCommandCallable()
|
|
ShellCommandCallable(ITestDevice device, String command, long timeout)
|
|
公用方法 | |
|---|---|
V
|
call()
|
abstract
V
|
processOutput(String output)
|
ShellCommandCallable<V>
|
setCommand(String command)
|
ShellCommandCallable<V>
|
setDevice(ITestDevice device)
|
ShellCommandCallable<V>
|
setTimeout(long timeout)
|
公用建構函式
ShellCommandCallable
public ShellCommandCallable ()
ShellCommandCallable
public ShellCommandCallable (ITestDevice device, String command, long timeout)
| 參數 | |
|---|---|
device |
ITestDevice |
command |
String |
timeout |
long |
公用方法
通話
public V call ()
| 傳回 | |
|---|---|
V |
|
processOutput
public abstract V processOutput (String output)
| 參數 | |
|---|---|
output |
String |
| 傳回 | |
|---|---|
V |
|
setCommand
public ShellCommandCallable<V> setCommand (String command)
| 參數 | |
|---|---|
command |
String |
| 傳回 | |
|---|---|
ShellCommandCallable<V> |
|
setDevice
public ShellCommandCallable<V> setDevice (ITestDevice device)
| 參數 | |
|---|---|
device |
ITestDevice |
| 傳回 | |
|---|---|
ShellCommandCallable<V> |
|
setTimeout
public ShellCommandCallable<V> setTimeout (long timeout)
| 參數 | |
|---|---|
timeout |
long |
| 傳回 | |
|---|---|
ShellCommandCallable<V> |
|