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.
สรุป
ค่าคงที่ | |
|---|---|
String |
METRIC_PREFIX
|
ทุ่ง | |
|---|---|
public
static
final
String |
COUNT_KEY
|
เครื่องมือสร้างสาธารณะ | |
|---|---|
RebootReasonCollector()
|
|
เมธอดสาธารณะ | |
|---|---|
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. |
ค่าคงที่
METRIC_PREFIX
public static final String METRIC_PREFIX
Constant Value: "rebooted-"
ทุ่ง
COUNT_KEY
public static final String COUNT_KEY
เครื่องมือสร้างสาธารณะ
RebootReasonCollector
public RebootReasonCollector ()
เมธอดสาธารณะ
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.
| พารามิเตอร์ | |
|---|---|
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). |
| ส่ง | |
|---|---|
DeviceNotAvailableException |
|
onTestRunStart
public void onTestRunStart (DeviceMetricData runData)
Push the statsd config to each device and store the config Ids.
| พารามิเตอร์ | |
|---|---|
runData |
DeviceMetricData: the DeviceMetricData holding the data for the run. |
| ส่ง | |
|---|---|
DeviceNotAvailableException |
|