ITargetCleaner

public interface ITargetCleaner
implements ITargetPreparer

com.android.tradefed.targetprep.ITargetCleaner


Cleans up the target device after the test run has finished.

For example, removes software, collects metrics, remove temporary files etc.

Note that multiple ITargetCleaners can be specified in a configuration.

Summary

Public methods

abstract void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e)

Perform the target cleanup/teardown after testing.

Public methods

tearDown

public abstract void tearDown (ITestDevice device, 
                IBuildInfo buildInfo, 
                Throwable e)

Perform the target cleanup/teardown after testing.

Parameters
device ITestDevice: the ITestDevice to prepare.

buildInfo IBuildInfo: data about the build under test.

e Throwable: if the invocation ended with an exception, this will be the exception that was caught at the Invocation level. Otherwise, will be null.

Throws
DeviceNotAvailableException if device became unresponsive