to top
public class

StopServicesSetup

extends Object
implements ITargetPreparer
java.lang.Object
   ↳ com.android.tradefed.targetprep.StopServicesSetup

Class Overview

A ITargetPreparer that stops services on the device.

Summary

Fields
private Collection<String> mServices @Option(name = "service", description = "the service to stop on the device. Can be repeated.")
private boolean mStopFramework @Option(name = "stop-framework", description = "stop the framework. Default true.")
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.android.tradefed.targetprep.ITargetPreparer

Fields

private Collection<String> mServices

private boolean mStopFramework

Public Constructors

public StopServicesSetup ()

Public Methods

public void addService (String service)

Adds a service to the list of services.

Parameters
service String

public void setStopFramework (boolean stopFramework)

Specify whether to stop the framework.

Parameters
stopFramework boolean

public 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