RunCommandTargetPreparer
public
class
RunCommandTargetPreparer
extends BaseTargetPreparer
java.lang.Object | ||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
↳ | com.android.tradefed.targetprep.RunCommandTargetPreparer |
Riepilogo
Costruttori pubblici | |
---|---|
RunCommandTargetPreparer()
|
Metodi pubblici | |
---|---|
final
void
|
addRunCommand(String cmd)
Aggiungi un comando che verrà eseguito dal preparatore. |
|
getCommands()
|
|
getExecutedCommands()
|
void
|
setUp(TestInformation testInfo)
|
void
|
tearDown(TestInformation testInfo, Throwable e)
|
Metodi protetti | |
---|---|
ITestDevice
|
getDevice(TestInformation testInfo)
Restituisce il dispositivo su cui applicare il preparatore. |
Costruttori pubblici
RunCommandTargetPreparer
public RunCommandTargetPreparer ()
Metodi pubblici
addRunCommand
public final void addRunCommand (String cmd)
Aggiungi un comando che verrà eseguito dal preparatore.
Parametri | |
---|---|
cmd |
String |
getCommands
publicgetCommands ()
Ritorni | |
---|---|
|
getEseguidCommands
publicgetExecutedCommands ()
Ritorni | |
---|---|
|
setUp
public void setUp (TestInformation testInfo)
Parametri | |
---|---|
testInfo |
TestInformation |
Lanci | |
---|---|
DeviceNotAvailableException |
|
TargetSetupError |
tearDown
public void tearDown (TestInformation testInfo, Throwable e)
Parametri | |
---|---|
testInfo |
TestInformation |
e |
Throwable |
Lanci | |
---|---|
DeviceNotAvailableException |
Metodi protetti
getDevice
protected ITestDevice getDevice (TestInformation testInfo)
Restituisce il dispositivo su cui applicare il preparatore.
Ritorni | |
---|---|
ITestDevice |
Il dispositivo su cui applicare il preparatore. |
Lanci | |
---|---|
|
com.android.tradefed.targetprep.TargetSetupError |
TargetSetupError |