DeviceWiper

public class DeviceWiper
extends Object implements ITargetPreparer

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


A ITargetPreparer that wipes userdata

Summary

Fields

protected boolean mDisable

protected boolean mUseErase

Public constructors

DeviceWiper()

Public methods

boolean isDisabled()

Return True if this target preparer has been disabled and will do nothing.

void setUp(ITestDevice device, IBuildInfo buildInfo)

Perform the target setup for testing.

Fields

mDisable

boolean mDisable

mUseErase

boolean mUseErase

Public constructors

DeviceWiper

DeviceWiper ()

Public methods

isDisabled

boolean isDisabled ()

Return True if this target preparer has been disabled and will do nothing. False otherwise.

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