Google is committed to advancing racial equity for Black communities. See how.
Questa pagina è stata tradotta dall'API Cloud Translation.
Switch to English

DeviceConcurrentUtil.ShellCommandCallable

public static abstract class DeviceConcurrentUtil.ShellCommandCallable
extends Object

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


Un ERROR(/Callable) che racchiude i dettagli dell'esecuzione del comando di shell su un ITestDevice .

È necessario implementare processOutput(String) per elaborare l'output del comando e determinare la restituzione del Callable

Sommario

Costruttori pubblici

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

Metodi pubblici

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

Costruttori pubblici

ShellCommandCallable

public ShellCommandCallable ()

ShellCommandCallable

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

Parametri
device ITestDevice

command String

timeout long

Metodi pubblici

chiamata

public V call ()

ritorna
V

processOutput

public abstract V processOutput (String output)

Parametri
output String

ritorna
V

setCommand

public ShellCommandCallable<V> setCommand (String command)

Parametri
command String

ritorna
ShellCommandCallable <V>

setDevice

public ShellCommandCallable<V> setDevice (ITestDevice device)

Parametri
device ITestDevice

ritorna
ShellCommandCallable <V>

setTimeout

public ShellCommandCallable<V> setTimeout (long timeout)

Parametri
timeout long

ritorna
ShellCommandCallable <V>