RunCommandTargetPreparer
public
class
RunCommandTargetPreparer
extends BaseTargetPreparer
| java.lang.Object | ||
| ↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
| ↳ | com.android.tradefed.targetprep.RunCommandTargetPreparer | |
摘要
公共构造函数 | |
|---|---|
RunCommandTargetPreparer()
|
|
公共方法 | |
|---|---|
final
void
|
addRunCommand(String cmd)
添加将由准备程序运行的命令。 |
|
getCommands()
|
|
getExecutedCommands()
|
void
|
setUp(TestInformation testInfo)
|
void
|
tearDown(TestInformation testInfo, Throwable e)
|
受保护的方法 | |
|---|---|
ITestDevice
|
getDevice(TestInformation testInfo)
返回要应用准备程序的设备。 |
公共构造函数
RunCommandTargetPreparer
public RunCommandTargetPreparer ()
公共方法
addRunCommand
public final void addRunCommand (String cmd)
添加将由准备器运行的命令。
| 参数 | |
|---|---|
cmd |
String |
getCommands
publicgetCommands ()
| 返回 | |
|---|---|
|
|
getExecutedCommands
publicgetExecutedCommands ()
| 返回 | |
|---|---|
|
|
setUp
public void setUp (TestInformation testInfo)
| 参数 | |
|---|---|
testInfo |
TestInformation |
| 抛出 | |
|---|---|
DeviceNotAvailableException |
|
TargetSetupError |
|
tearDown
public void tearDown (TestInformation testInfo, Throwable e)
| 参数 | |
|---|---|
testInfo |
TestInformation |
e |
Throwable |
| 抛出 | |
|---|---|
DeviceNotAvailableException |
|
受保护的方法
getDevice
protected ITestDevice getDevice (TestInformation testInfo)
返回要应用准备程序的设备。
| 返回 | |
|---|---|
ITestDevice |
要应用准备程序的设备。 |
| 抛出 | |
|---|---|
|
com.android.tradefed.targetprep.TargetSetupError |
TargetSetupError |
|