Google is committed to advancing racial equity for Black communities. See how.
This page was translated by the Cloud Translation API.
Switch to English

重新啟動原因收集器

public class RebootReasonCollector
extends BaseDeviceMetricCollector

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


在測試運行期間收集設備重新啟動的收集器,並按原因和計數報告它們。

摘要

領域

public static final String METRIC_PREFIX

公共建設者

RebootReasonCollector ()

公開方法

void onTestRunEnd ( DeviceMetricData runData, currentRunMetrics) onTestRunEnd ( DeviceMetricData runData, currentRunMetrics)

測試運行結束時回調。

void onTestRunStart ( DeviceMetricData runData)

將statsd配置推送到每個設備並存儲配置ID。

領域

METRIC_PREFIX

public static final String METRIC_PREFIX

公共建設者

重新啟動原因收集器

public RebootReasonCollector ()

公開方法

onTestRunEnd

public void onTestRunEnd ( DeviceMetricData runData, 
                 currentRunMetrics)

測試運行結束時回調。這應該是清理的時間。

參量
runData DeviceMetricData :保存運行數據的DeviceMetricData 。與onTestRunStart(com.android.tradefed.device.metric.DeviceMetricData)期間的對象相同。

currentRunMetrics :傳遞給ERROR(/#testRunEnded(long,Map))的度量的當前映射。

onTestRunStart

public void onTestRunStart ( DeviceMetricData runData)

將statsd配置推送到每個設備並存儲配置ID。

參量
runData DeviceMetricData :保存運行數據的DeviceMetricData