NativeCodeCoverageFlusher

public final class NativeCodeCoverageFlusher
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.NativeCodeCoverageFlusher


A utility class that clears native coverage measurements and forces a flush of native coverage data from processes on the device.

Summary

Public constructors

NativeCodeCoverageFlusher(ITestDevice device)

Public methods

void clearCoverageMeasurements()

Clears coverage measurements from disk on the device.

void forceCoverageFlush( processNames)

Forces a flush of native coverage data from processes running on the device.

Public constructors

NativeCodeCoverageFlusher

public NativeCodeCoverageFlusher (ITestDevice device)

Parameters
device ITestDevice

Public methods

clearCoverageMeasurements

public void clearCoverageMeasurements ()

Clears coverage measurements from disk on the device. Device must be in adb root.

Throws
DeviceNotAvailableException

forceCoverageFlush

public void forceCoverageFlush ( processNames)

Forces a flush of native coverage data from processes running on the device. Device must be in adb root.

Parameters
processNames : the name of processes to target for flushing; if empty, flushes from all running native processes on the device.

Throws
DeviceNotAvailableException