RebootReasonCollector

public class RebootReasonCollector
extends BaseDeviceMetricCollector

java.lang.Object
   ↳ com.android.tradefed.device.metric.BaseDeviceMetricCollector
     ↳ com.android.tradefed.device.metric.RebootReasonCollector


Collector that collects device reboot during the test run and report them by reason and counts.

Summary

Fields

public static final String COUNT_KEY

public static final String METRIC_PREFIX

Public constructors

RebootReasonCollector()

Public methods

void onTestRunEnd(DeviceMetricData runData, currentRunMetrics)

Callback when a test run is ended.

void onTestRunStart(DeviceMetricData runData)

Push the statsd config to each device and store the config Ids.

Fields

COUNT_KEY

public static final String COUNT_KEY

METRIC_PREFIX

public static final String METRIC_PREFIX

Public constructors

RebootReasonCollector

public RebootReasonCollector ()

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 onTestRunStart(com.android.tradefed.device.metric.DeviceMetricData).

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

Throws
DeviceNotAvailableException

onTestRunStart

public void onTestRunStart (DeviceMetricData runData)

Push the statsd config to each device and store the config Ids.

Parameters
runData DeviceMetricData: the DeviceMetricData holding the data for the run.

Throws
DeviceNotAvailableException