DeviceConcurrentUtil.ShellCommandCallable 等

public static abstract class DeviceConcurrentUtil.ShellCommandCallable
extends Object

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


一个 ERROR(/Callable),用于封装在以下文件上执行 shell 命令的详细信息 一个 ITestDevice

必须实现 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>