Starting March 27, 2025, we recommend using android-latest-release
instead of aosp-main
to build and contribute to AOSP. For more information, see Changes to AOSP.
Stay organized with collections
Save and categorize content based on your preferences.
BluetoothConnectionLatencyCollector
public
class
BluetoothConnectionLatencyCollector
extends HostStatsdMetricCollector
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.
|
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
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 |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2023-03-08 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-03-08 UTC."],[],[],null,["# BluetoothConnectionLatencyCollector\n===================================\n\n\n`\npublic\n\n\nclass\nBluetoothConnectionLatencyCollector\n`\n\n\n`\n\n\n`\n\n`\n\n\n`\n\n`\n\nextends `[HostStatsdMetricCollector](../../../../../../../reference/tradefed/com/android/tradefed/device/metric/HostStatsdMetricCollector.html)`\n\n\n`\n\n`\n\n\n`\n\n|---|---|---|------------------------------------------------------------------------|\n| java.lang.Object ||||\n| ↳ | [com.android.tradefed.device.metric.BaseDeviceMetricCollector](../../../../../../../reference/tradefed/com/android/tradefed/device/metric/BaseDeviceMetricCollector.html) |||\n| | ↳ | [com.android.tradefed.device.metric.HostStatsdMetricCollector](../../../../../../../reference/tradefed/com/android/tradefed/device/metric/HostStatsdMetricCollector.html) ||\n| | | ↳ | com.android.tradefed.device.metric.BluetoothConnectionLatencyCollector |\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known direct subclasses [BluetoothConnectionStateCollector](../../../../../../../reference/tradefed/com/android/tradefed/device/metric/BluetoothConnectionStateCollector.html) |--------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------| | [BluetoothConnectionStateCollector](../../../../../../../reference/tradefed/com/android/tradefed/device/metric/BluetoothConnectionStateCollector.html) | This collector will collect BluetoothConnectionStateChanged metrics and record connection state number for each profile. | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nThe collector will push a pre-defined statsd duration metric config to devices and collect\nBluetooth connection duration for each profile.\n\nSummary\n-------\n\n| ### Fields ||\n|---------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` protected static final ImmutableMap\u003cInteger, String\u003e` | [BLUETOOTH_PROFILES_MAP](../../../../../../../reference/tradefed/com/android/tradefed/device/metric/BluetoothConnectionLatencyCollector.html#BLUETOOTH_PROFILES_MAP) A map associates Bluetooth profile number to the descriptive name used for metric key. |\n\n| ### Public constructors ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[BluetoothConnectionLatencyCollector](../../../../../../../reference/tradefed/com/android/tradefed/device/metric/BluetoothConnectionLatencyCollector.html#BluetoothConnectionLatencyCollector())`() ` |\n\n| ### Protected methods ||\n|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` void` | ` `[processStatsReport](../../../../../../../reference/tradefed/com/android/tradefed/device/metric/BluetoothConnectionLatencyCollector.html#processStatsReport(com.android.tradefed.device.ITestDevice,%20com.android.tradefed.result.InputStreamSource,%20com.android.tradefed.device.metric.DeviceMetricData))`(`[ITestDevice](../../../../../../../reference/tradefed/com/android/tradefed/device/ITestDevice.html)` device, `[InputStreamSource](../../../../../../../reference/tradefed/com/android/tradefed/result/InputStreamSource.html)` dataStream, `[DeviceMetricData](../../../../../../../reference/tradefed/com/android/tradefed/device/metric/DeviceMetricData.html)` runData) ` Subclasses can implement the method to process Statsd metric report if needed. |\n\nFields\n------\n\n### BLUETOOTH_PROFILES_MAP\n\n```\nprotected static final ImmutableMap\u003cInteger, String\u003e BLUETOOTH_PROFILES_MAP\n```\n\nA map associates Bluetooth profile number to the descriptive name used for metric key.\n\n\u003cbr /\u003e\n\nPublic constructors\n-------------------\n\n### BluetoothConnectionLatencyCollector\n\n```\npublic BluetoothConnectionLatencyCollector ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nProtected methods\n-----------------\n\n### processStatsReport\n\n```\nprotected void processStatsReport (ITestDevice device, \n InputStreamSource dataStream, \n DeviceMetricData runData)\n```\n\nSubclasses can implement the method to process Statsd metric report if needed. It is called\nfor metric report from a particular device\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------------|---------------------------------------------------------------------------------------|\n| `device` | `ITestDevice`: Test device where the statsd report is coming from \u003cbr /\u003e |\n| `dataStream` | `InputStreamSource`: Stats report as input stream \u003cbr /\u003e |\n| `runData` | `DeviceMetricData`: The destination where the processed metrics will be stored \u003cbr /\u003e |"]]