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

processRunMetricsAndLogs( runMetrics, 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  processRunMetricsAndLogs ( runMetrics, 
                 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 : The set of raw metrics available for the run.

testLogs : The set of log files for the test run.

Returns
The set of newly generated metrics from the run metrics.