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

IncidentReportCollector

public class IncidentReportCollector
extends FilePullerLogCollector

java.lang.Object
   ↳ com.android.tradefed.device.metric.BaseDeviceMetricCollector
     ↳ com.android.tradefed.device.metric.FilePullerDeviceMetricCollector
       ↳ com.android.tradefed.device.metric.FilePullerLogCollector
         ↳ com.android.tradefed.device.metric.IncidentReportCollector


Pulls and processes incident reports that are reported device-side and collects incident reports host-side at the end of a test run if configured to do so.

Summary

Public constructors

IncidentReportCollector()

Public methods

void onTestRunEnd(DeviceMetricData runData, currentRunMetrics)

Callback when a test run is ended.

Protected methods

void postProcessMetricFile(String key, File metricFile, DeviceMetricData runData)

Possible processing of a pulled file to extract some metrics.

Public constructors

IncidentReportCollector

public IncidentReportCollector ()

Public methods

onTestRunEnd

public void onTestRunEnd (DeviceMetricData runData, 
                 currentRunMetrics)

Callback when a test run is ended. This should be the time for clean up.

Parameters
runData DeviceMetricData: the DeviceMetricData holding the data for the run. Will be the same object as during BaseDeviceMetricCollector.onTestRunStart(com.android.tradefed.device.metric.DeviceMetricData).

currentRunMetrics : the current map of metrics passed to ITestLifeCycleReceiver.testRunEnded(long, Map).

Protected methods

postProcessMetricFile

protected void postProcessMetricFile (String key, 
                File metricFile, 
                DeviceMetricData runData)

Possible processing of a pulled file to extract some metrics.

Parameters
key String: Key of the file pulled

metricFile File: The ERROR(/File) that was pulled.

runData DeviceMetricData: The metric storage were to put extracted metrics.