BluetoothConnectionSuccessRatePostProcessor
public
class
BluetoothConnectionSuccessRatePostProcessor
extends BasePostProcessor
| java.lang.Object | ||
| ↳ | com.android.tradefed.postprocessor.BasePostProcessor | |
| ↳ | com.android.tradefed.postprocessor.BluetoothConnectionSuccessRatePostProcessor | |
实现了用于计算蓝牙配置文件成功率的后处理器
使用“metric-key-match”指定包含蓝牙连接状态(以数字数组表示)的指标,例如 [0, 1, 2, 3, 0, 1, 2, 3]。如需了解连接状态,请参阅 android.bluetooth.ConnectionStateEnum。
摘要
公共构造函数 | |
|---|---|
BluetoothConnectionSuccessRatePostProcessor()
|
|
公共方法 | |
|---|---|
Map<String, MetricMeasurement.Metric.Builder>
|
processRunMetricsAndLogs(HashMap<String, MetricMeasurement.Metric> runMetrics, Map<String, LogFile> testLogs)
实现此方法是为了从现有指标和日志中生成一组新指标。 |
公共构造函数
BluetoothConnectionSuccessRatePostProcessor
public BluetoothConnectionSuccessRatePostProcessor ()
公共方法
processRunMetricsAndLogs
public Map<String, MetricMeasurement.Metric.Builder> processRunMetricsAndLogs (HashMap<String, MetricMeasurement.Metric> runMetrics,
Map<String, LogFile> testLogs)实现此方法,以便根据现有指标和日志生成一组新指标。应仅返回新生成的指标,且具有唯一的键名称(不允许与现有键发生冲突)。
| 参数 | |
|---|---|
runMetrics |
HashMap:相应运行可用的原始指标集。 |
testLogs |
Map:测试运行的日志文件集。 |
| 返回 | |
|---|---|
Map<String, MetricMeasurement.Metric.Builder> |
从运行指标中新生成的一组指标。 |