BluetoothConnectionSuccessRatePostProcessor
public
class
BluetoothConnectionSuccessRatePostProcessor
extends BasePostProcessor
| java.lang.Object | ||
| ↳ | com.android.tradefed.postprocessor.BasePostProcessor | |
| ↳ | com.android.tradefed.postprocessor.BluetoothConnectionSuccessRatePostProcessor | |
Implementation of postprocessor which calculates success rate for a bluetooth profile
Use "metric-key-match" to specify metrics which contain bluetooth connection states in numeric array Example [0, 1, 2, 3, 0, 1, 2, 3]. Refer to android.bluetooth.ConnectionStateEnum for connection states.
Summary
Public constructors | |
|---|---|
BluetoothConnectionSuccessRatePostProcessor()
|
|
Public methods | |
|---|---|
Map<String, MetricMeasurement.Metric.Builder>
|
processRunMetricsAndLogs(HashMap<String, MetricMeasurement.Metric> runMetrics, Map<String, LogFile> testLogs)
Implement this method in order to generate a set of new metrics from the existing metrics and logs. |
Public constructors
BluetoothConnectionSuccessRatePostProcessor
public BluetoothConnectionSuccessRatePostProcessor ()
Public methods
processRunMetricsAndLogs
public Map<String, MetricMeasurement.Metric.Builder> processRunMetricsAndLogs (HashMap<String, MetricMeasurement.Metric> runMetrics,
Map<String, LogFile> testLogs)Implement this method in order to generate a set of new metrics from the existing metrics and logs. Only the newly generated metrics should be returned, and with unique key name (no collision with existing keys are allowed).
| Parameters | |
|---|---|
runMetrics |
HashMap: The set of raw metrics available for the run. |
testLogs |
Map: The set of log files for the test run. |
| Returns | |
|---|---|
Map<String, MetricMeasurement.Metric.Builder> |
The set of newly generated metrics from the run metrics. |