StopServicesSetup

public class StopServicesSetup
extends BaseTargetPreparer

java.lang.Object
   ↳ com.android.tradefed.targetprep.BaseTargetPreparer
     ↳ com.android.tradefed.targetprep.StopServicesSetup


A ITargetPreparer that stops services on the device.

Summary

Public constructors

StopServicesSetup()

Public methods

void addService(String service)

Adds a service to the list of services.

void setStopFramework(boolean stopFramework)

Specify whether to stop the framework.

void setUp(TestInformation testInfo)

void tearDown(TestInformation testInformation, Throwable e)

Public constructors

StopServicesSetup

public StopServicesSetup ()

Public methods

addService

public void addService (String service)

Adds a service to the list of services.

Parameters
service String

setStopFramework

public void setStopFramework (boolean stopFramework)

Specify whether to stop the framework.

Parameters
stopFramework boolean

setUp

public void setUp (TestInformation testInfo)

Parameters
testInfo TestInformation

Throws
DeviceNotAvailableException

tearDown

public void tearDown (TestInformation testInformation, 
                Throwable e)

Parameters
testInformation TestInformation

e Throwable

Throws
DeviceNotAvailableException