停止服务设置

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)

公共构造函数

停止服务设置

public StopServicesSetup ()

公共方法

添加服务

public void addService (String service)

将服务添加到服务列表中。

参数
service String

setStop框架

public void setStopFramework (boolean stopFramework)

指定是否停止框架。

参数
stopFramework boolean

设置

public void setUp (TestInformation testInfo)

参数
testInfo TestInformation

投掷
DeviceNotAvailableException

拆除

public void tearDown (TestInformation testInformation, 
                Throwable e)

参数
testInformation TestInformation

e Throwable

投掷
DeviceNotAvailableException