Stay organized with collections Save and categorize content based on your preferences.

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.

void setRunUtil(IRunUtil runUtil)

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

setRunUtil

public void setRunUtil (IRunUtil runUtil)

Parameters
runUtil IRunUtil