to top
public class

RunCommandTargetPreparer

extends Object
implements ITargetCleaner @OptionClass(alias = "run-command")
java.lang.Object
   ↳ com.android.tradefed.targetprep.RunCommandTargetPreparer
Known Direct Subclasses

Summary

Fields
private List<String> mCommands @Option(name = "run-command", description = "adb shell command to run")
private long mDelayMsecs @Option(name = "delay-after-commands", description = "Time to delay after running commands, in msecs")
private boolean mDisable @Option(name = "disable", description = "Disable this preparer")
private List<String> mTeardownCommands @Option(name = "teardown-command", description = "adb shell command to run at teardown time")
Public Constructors
RunCommandTargetPreparer()
Public Methods
void setUp(ITestDevice device, IBuildInfo buildInfo)
Perform the target setup for testing.
void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e)
Perform the target cleanup/teardown after testing.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.android.tradefed.targetprep.ITargetCleaner
From interface com.android.tradefed.targetprep.ITargetPreparer

Fields

private List<String> mCommands

private long mDelayMsecs

private boolean mDisable

private List<String> mTeardownCommands

Public Constructors

public RunCommandTargetPreparer ()

Public Methods

public void setUp (ITestDevice device, IBuildInfo buildInfo)

Perform the target setup for testing.

Parameters
device the ITestDevice to prepare.
buildInfo data about the build under test.

public void tearDown (ITestDevice device, IBuildInfo buildInfo, Throwable e)

Perform the target cleanup/teardown after testing.

Parameters
device the ITestDevice to prepare.
buildInfo data about the build under test.
e if the invocation ended with an exception, this will be the exception that was caught at the Invocation level. Otherwise, will be null.