PreloadedClassesPreparer

public class PreloadedClassesPreparer
extends BaseTargetPreparer

java.lang.Object
   ↳ com.android.tradefed.targetprep.BaseTargetPreparer
     ↳ 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)

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

public static final long DEFAULT_TIMEOUT_MS

Constant Value: 300000 (0x00000000000493e0)

Public constructors

PreloadedClassesPreparer

public PreloadedClassesPreparer ()

Public methods

setUp

public void setUp (ITestDevice device, 
                IBuildInfo buildInfo)

Parameters
device ITestDevice

buildInfo IBuildInfo

Throws
TargetSetupError
BuildError
DeviceNotAvailableException

Protected methods

getPreloadToolPath

protected String getPreloadToolPath ()

Get the preload tool path.

Returns
String

getPreloadedClassesPath

protected String getPreloadedClassesPath ()

Get the preloaded classes file.

Exposed so unit tests can mock.

Returns
String

getRunUtil

protected IRunUtil getRunUtil ()

Get the IRunUtil instance to use.

Exposed so unit tests can mock.

Returns
IRunUtil

setPreloadToolPath

protected void setPreloadToolPath (String path)

Set the preload tool path.

Parameters
path String