StopServicesSetup
public
class
StopServicesSetup
extends BaseTargetPreparer
| java.lang.Object | ||
| ↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
| ↳ | com.android.tradefed.targetprep.StopServicesSetup | |
停止裝置服務的 ITargetPreparer。
摘要
公用建構函式 | |
|---|---|
StopServicesSetup()
|
|
公用方法 | |
|---|---|
void
|
addService(String service)
將服務新增至服務清單。 |
void
|
setStopFramework(boolean stopFramework)
指定是否要停止架構。 |
void
|
setUp(TestInformation testInfo)
|
void
|
tearDown(TestInformation testInformation, Throwable e)
|
公用建構函式
StopServicesSetup
public StopServicesSetup ()
公用方法
addService
public void addService (String service)
將服務新增至服務清單。
| 參數 | |
|---|---|
service |
String |
setStopFramework
public void setStopFramework (boolean stopFramework)
指定是否要停止框架。
| 參數 | |
|---|---|
stopFramework |
boolean |
setUp
public void setUp (TestInformation testInfo)
| 參數 | |
|---|---|
testInfo |
TestInformation |
| 擲回 | |
|---|---|
DeviceNotAvailableException |
|
tearDown
public void tearDown (TestInformation testInformation, Throwable e)
| 參數 | |
|---|---|
testInformation |
TestInformation |
e |
Throwable |
| 擲回 | |
|---|---|
DeviceNotAvailableException |
|