StopServicesSetup

public class StopServicesSetup
extends Object implements ITargetPreparer

java.lang.Object
   ↳ 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(ITestDevice device, IBuildInfo buildInfo)

Perform the target setup for testing.

Public constructors

StopServicesSetup

StopServicesSetup ()

Public methods

addService

void addService (String service)

Adds a service to the list of services.

Parameters
service String

setStopFramework

void setStopFramework (boolean stopFramework)

Specify whether to stop the framework.

Parameters
stopFramework boolean

setUp

void setUp (ITestDevice device, 
                IBuildInfo buildInfo)

Perform the target setup for testing.

Parameters
device ITestDevice: the ITestDevice to prepare.

buildInfo IBuildInfo: data about the build under test.

Throws
DeviceNotAvailableException