停止服務設定
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 |