RunCommandTargetPreparer
public
class
RunCommandTargetPreparer
extends BaseTargetPreparer
| java.lang.Object | ||
| ↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
| ↳ | com.android.tradefed.targetprep.RunCommandTargetPreparer | |
Tóm tắt
Hàm khởi tạo công khai | |
|---|---|
RunCommandTargetPreparer()
|
|
Phương thức công khai | |
|---|---|
final
void
|
addRunCommand(String cmd)
Thêm một lệnh mà trình chuẩn bị sẽ chạy. |
|
getCommands()
|
|
getExecutedCommands()
|
void
|
setUp(TestInformation testInfo)
|
void
|
tearDown(TestInformation testInfo, Throwable e)
|
Phương thức được bảo vệ | |
|---|---|
ITestDevice
|
getDevice(TestInformation testInfo)
Trả về thiết bị để áp dụng trình chuẩn bị. |
Hàm khởi tạo công khai
RunCommandTargetPreparer
public RunCommandTargetPreparer ()
Phương thức công khai
addRunCommand
public final void addRunCommand (String cmd)
Thêm một lệnh mà trình chuẩn bị sẽ chạy.
| Tham số | |
|---|---|
cmd |
String |
getCommands
publicgetCommands ()
| Giá trị trả về | |
|---|---|
|
|
getExecutedCommands
publicgetExecutedCommands ()
| Giá trị trả về | |
|---|---|
|
|
setUp
public void setUp (TestInformation testInfo)
| Tham số | |
|---|---|
testInfo |
TestInformation |
| Gửi | |
|---|---|
DeviceNotAvailableException |
|
TargetSetupError |
|
tearDown
public void tearDown (TestInformation testInfo, Throwable e)
| Tham số | |
|---|---|
testInfo |
TestInformation |
e |
Throwable |
| Gửi | |
|---|---|
DeviceNotAvailableException |
|
Phương thức được bảo vệ
getDevice
protected ITestDevice getDevice (TestInformation testInfo)
Trả về thiết bị để áp dụng trình chuẩn bị.
| Giá trị trả về | |
|---|---|
ITestDevice |
Thiết bị để áp dụng trình chuẩn bị. |
| Gửi | |
|---|---|
|
com.android.tradefed.targetprep.TargetSetupError |
TargetSetupError |
|