停止服務設置

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

設置停止框架

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