Google is committed to advancing racial equity for Black communities. See how.

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, processNames)

Public methods

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.

Public constructors

NativeCodeCoverageFlusher

public NativeCodeCoverageFlusher (ITestDevice device, 
                 processNames)

Parameters
device ITestDevice

processNames

Public methods

forceCoverageFlush

public void forceCoverageFlush ()

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

Throws
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
DeviceNotAvailableException