PreloadedClassesPreparer

public class PreloadedClassesPreparer
extends Object implements ITargetPreparer

java.lang.Object
   ↳ com.android.tradefed.targetprep.PreloadedClassesPreparer


A ITargetPreparer that replaces the preloaded classes file on a device.

Note that this preparer requires a rooted, debug build to work.

Summary

Constants

long DEFAULT_TIMEOUT_MS

Public constructors

PreloadedClassesPreparer()

Public methods

void setUp(ITestDevice device, IBuildInfo buildInfo)

Perform the target setup for testing.

Protected methods

String getPreloadToolPath()

Get the preload tool path.

String getPreloadedClassesPath()

Get the preloaded classes file.

IRunUtil getRunUtil()

Get the IRunUtil instance to use.

void setPreloadToolPath(String path)

Set the preload tool path.

Constants

DEFAULT_TIMEOUT_MS

long DEFAULT_TIMEOUT_MS

Constant Value: 300000 (0x00000000000493e0)

Public constructors

PreloadedClassesPreparer

PreloadedClassesPreparer ()

Public methods

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
TargetSetupError
BuildError
DeviceNotAvailableException

Protected methods

getPreloadToolPath

String getPreloadToolPath ()

Get the preload tool path.

Returns
String

getPreloadedClassesPath

String getPreloadedClassesPath ()

Get the preloaded classes file.

Exposed so unit tests can mock.

Returns
String

getRunUtil

IRunUtil getRunUtil ()

Get the IRunUtil instance to use.

Exposed so unit tests can mock.

Returns
IRunUtil

setPreloadToolPath

void setPreloadToolPath (String path)

Set the preload tool path.

Parameters
path String