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, CoverageOptions coverageOptions)

Public methods

void deleteCoverageMeasurements()

Deletes coverage measurements from the device.

void forceCoverageFlush()

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

void resetCoverage()

Resets native coverage counters for processes running on the device and clears any existing coverage measurements from disk.

void setRunUtil(IRunUtil runUtil)

Public constructors

NativeCodeCoverageFlusher

public NativeCodeCoverageFlusher (ITestDevice device, 
                CoverageOptions coverageOptions)

Parameters
device ITestDevice

coverageOptions CoverageOptions

Public methods

deleteCoverageMeasurements

public void deleteCoverageMeasurements ()

Deletes coverage measurements from the device. Device must be in adb root.

Throws
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

forceCoverageFlush

public void forceCoverageFlush ()

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

Throws
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

resetCoverage

public void resetCoverage ()

Resets native coverage counters for processes running on the device and clears any existing coverage measurements from disk. Device must be in adb root.

Throws
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

setRunUtil

public void setRunUtil (IRunUtil runUtil)

Parameters
runUtil IRunUtil