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 |
|