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