BluetoothConnectionLatencyCollector
public
class
BluetoothConnectionLatencyCollector
extends HostStatsdMetricCollector
java.lang.Object | |||
↳ | com.android.tradefed.device.metric.BaseDeviceMetricCollector | ||
↳ | com.android.tradefed.device.metric.HostStatsdMetricCollector | ||
↳ | com.android.tradefed.device.metric.BluetoothConnectionLatencyCollector |
The collector will push a pre-defined statsd duration metric config to devices and collect Bluetooth connection duration for each profile.
Summary
Fields | |
---|---|
protected
static
final
ImmutableMap<Integer, String> |
BLUETOOTH_PROFILES_MAP
A map associates Bluetooth profile number to the descriptive name used for metric key. |
Public constructors | |
---|---|
BluetoothConnectionLatencyCollector()
|
Protected methods | |
---|---|
void
|
processStatsReport(ITestDevice device, InputStreamSource dataStream, DeviceMetricData runData)
Subclasses can implement the method to process Statsd metric report if needed. |
Fields
BLUETOOTH_PROFILES_MAP
protected static final ImmutableMap<Integer, String> BLUETOOTH_PROFILES_MAP
A map associates Bluetooth profile number to the descriptive name used for metric key.
Public constructors
BluetoothConnectionLatencyCollector
public BluetoothConnectionLatencyCollector ()
Protected methods
processStatsReport
protected void processStatsReport (ITestDevice device, InputStreamSource dataStream, DeviceMetricData runData)
Subclasses can implement the method to process Statsd metric report if needed. It is called for metric report from a particular device
Parameters | |
---|---|
device |
ITestDevice : Test device where the statsd report is coming from |
dataStream |
InputStreamSource : Stats report as input stream |
runData |
DeviceMetricData : The destination where the processed metrics will be stored |