Google 致力于为黑人社区推动种族平等。查看具体举措

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

过程输出

public abstract V processOutput (String output)

参数
output String

退货
V

设置命令

public ShellCommandCallable<V> setCommand (String command)

参数
command String

退货
ShellCommandCallable <V>

设置设备

public ShellCommandCallable<V> setDevice (ITestDevice device)

参数
device ITestDevice

退货
ShellCommandCallable <V>

设置超时

public ShellCommandCallable<V> setTimeout (long timeout)

参数
timeout long

退货
ShellCommandCallable <V>