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

Constants

String METRIC_PREFIX

Fields

public static final String COUNT_KEY

Public constructors

RebootReasonCollector()

Public methods

void onTestRunEnd(DeviceMetricData runData, Map<String, MetricMeasurement.Metric> currentRunMetrics)

Callback when a test run is ended.

void onTestRunStart(DeviceMetricData runData)

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

Constants

METRIC_PREFIX

public static final String METRIC_PREFIX

Constant Value: "rebooted-"

Fields

COUNT_KEY

public static final String COUNT_KEY

Public constructors

RebootReasonCollector

public RebootReasonCollector ()

Public methods

onTestRunEnd

public void onTestRunEnd (DeviceMetricData runData, 
                Map<String, MetricMeasurement.Metric> 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(DeviceMetricData).

currentRunMetrics Map: the current map of metrics passed to 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