NativeCodeCoverageFlusher

public final class NativeCodeCoverageFlusher
extends Object

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


一个实用程序类,用于清除原生代码覆盖率衡量结果,并强制从设备上的进程中刷新原生代码覆盖率数据。

摘要

公共构造函数

NativeCodeCoverageFlusher(ITestDevice device, processNames)

公共方法

void forceCoverageFlush()

强制从设备上运行的进程中刷新原生代码覆盖率数据。

void resetCoverage()

重置设备上运行的进程的原生覆盖率计数器,并从磁盘中清除所有现有的覆盖率测量结果。

公共构造函数

NativeCodeCoverageFlusher

public NativeCodeCoverageFlusher (ITestDevice device, 
                 processNames)

参数
device ITestDevice

processNames

公共方法

forceCoverageFlush

public void forceCoverageFlush ()

强制从设备上运行的进程中刷新原生代码覆盖率数据。设备必须处于 adb root 模式。

抛出
DeviceNotAvailableException

resetCoverage

public void resetCoverage ()

重置设备上运行的进程的原生覆盖率计数器,并从磁盘中清除所有现有的覆盖率测量结果。设备必须处于 adb root 模式。

抛出
DeviceNotAvailableException