Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

DeviceConcurrentUtil.ShellCommandCallable

public static abstract class DeviceConcurrentUtil.ShellCommandCallable
extends Object

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


A ERROR(/Callable) that wraps the details of executing shell command on an ITestDevice.

Must implement processOutput(String) to process the command output and determine return of the Callable

Summary

Public constructors

ShellCommandCallable()
ShellCommandCallable(ITestDevice device, String command, long timeout)

Public methods

V call()
abstract V processOutput(String output)
ShellCommandCallable<V> setCommand(String command)
ShellCommandCallable<V> setDevice(ITestDevice device)
ShellCommandCallable<V> setTimeout(long timeout)

Public constructors

ShellCommandCallable

public ShellCommandCallable ()

ShellCommandCallable

public ShellCommandCallable (ITestDevice device, 
                String command, 
                long timeout)

Parameters
device ITestDevice

command String

timeout long

Public methods

call

public V call ()

Returns
V

processOutput

public abstract V processOutput (String output)

Parameters
output String

Returns
V

setCommand

public ShellCommandCallable<V> setCommand (String command)

Parameters
command String

Returns
ShellCommandCallable<V>

setDevice

public ShellCommandCallable<V> setDevice (ITestDevice device)

Parameters
device ITestDevice

Returns
ShellCommandCallable<V>

setTimeout

public ShellCommandCallable<V> setTimeout (long timeout)

Parameters
timeout long

Returns
ShellCommandCallable<V>