Google致力於提高黑人社區的種族平等。 怎麼看。
本頁面由 Cloud Translation API 翻譯而成。
Switch to English

DeviceConcurrentUtil.ShellCommandCallable

public static abstract class DeviceConcurrentUtil.ShellCommandCallable
extends Object

java.lang.Object
com.android.tradefed.util.DeviceConcurrentUtil.ShellCommandCallable <V>


一個ERROR(/Callable) ,它在ITestDevice上包裝執行shell命令的詳細信息。

必須實現processOutput(String)來處理命令輸出並確定Callable返回

摘要

公共建設者

DeviceConcurrentUtil.ShellCommandCallable ()
DeviceConcurrentUtil.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)

公共建設者

DeviceConcurrentUtil.ShellCommandCallable

public DeviceConcurrentUtil.ShellCommandCallable ()

DeviceConcurrentUtil.ShellCommandCallable

public DeviceConcurrentUtil.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>