NativeCodeCoverageListener

public final class NativeCodeCoverageListener
extends ResultForwarder

java.lang.Object
   ↳ com.android.tradefed.result.ResultForwarder
     ↳ com.android.tradefed.testtype.NativeCodeCoverageListener


A ResultForwarder that will pull native coverage measurements off of the device and log them as test artifacts.

Summary

Public constructors

NativeCodeCoverageListener(ITestDevice device, ITestInvocationListener... listeners)

Public methods

void testRunEnded(long elapsedTime, runMetrics)

Reports end of test run.

void testRunStarted(String runName, int testCount)

Reports the start of a test run.

Public constructors

NativeCodeCoverageListener

public NativeCodeCoverageListener (ITestDevice device, 
                ITestInvocationListener... listeners)

Parameters
device ITestDevice

listeners ITestInvocationListener

Public methods

testRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

Reports end of test run. FIXME: We cannot have two Map<> interfaces with different type, so we have to use HashMap here.

Parameters
elapsedTime long: device reported elapsed time, in milliseconds

runMetrics : key-value pairs reported at the end of a test run with Metric.

testRunStarted

public void testRunStarted (String runName, 
                int testCount)

Reports the start of a test run.

Parameters
runName String: the test run name

testCount int: total number of tests in test run