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返回

摘要

公共建设者

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>