public class

DeviceSetup

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

Class Overview

A ITargetPreparer that configures a device for testing based on provided Options.

Requires a device where 'adb root' is possible, typically a userdebug build type.

Should be performed *after* a new build is flashed.

Summary

Public Constructors
DeviceSetup()
Public Methods
void setUp(ITestDevice device, IBuildInfo buildInfo)
Perform the target setup for testing.
Protected Methods
void changeSettings(ITestDevice device)
Change additional settings for the device.
boolean isReleaseBuildName(String name)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.android.tradefed.targetprep.ITargetPreparer

Public Constructors

public DeviceSetup ()

Public Methods

public void setUp (ITestDevice device, IBuildInfo buildInfo)

Perform the target setup for testing.

Parameters
device the ITestDevice to prepare.
buildInfo data about the build under test.

Protected Methods

protected void changeSettings (ITestDevice device)

Change additional settings for the device. This is intended to be overridden by subclass for additional change of settings.

protected boolean isReleaseBuildName (String name)