Mulai 27 Maret 2025, sebaiknya gunakan android-latest-release
, bukan aosp-main
, untuk mem-build dan berkontribusi pada AOSP. Untuk mengetahui informasi selengkapnya, lihat Perubahan pada AOSP.
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
BluetoothConnectionLatencyCollector
public
class
BluetoothConnectionLatencyCollector
extends HostStatsdMetricCollector
Subclass langsung yang dikenal
|
Pengumpul akan mendorong konfigurasi metrik durasi statsd yang telah ditentukan sebelumnya ke perangkat dan mengumpulkan
durasi koneksi Bluetooth untuk setiap profil.
Ringkasan
Kolom |
protected
static
final
ImmutableMap<Integer, String> |
BLUETOOTH_PROFILES_MAP
Peta mengaitkan nomor profil Bluetooth dengan nama deskriptif yang digunakan untuk kunci metrik.
|
Kolom
BLUETOOTH_PROFILES_MAP
protected static final ImmutableMap<Integer, String> BLUETOOTH_PROFILES_MAP
Peta mengaitkan nomor profil Bluetooth dengan nama deskriptif yang digunakan untuk kunci metrik.
Konstruktor publik
BluetoothConnectionLatencyCollector
public BluetoothConnectionLatencyCollector ()
Metode yang dilindungi
protected void processStatsReport (ITestDevice device,
InputStreamSource dataStream,
DeviceMetricData runData)
Subclass dapat menerapkan metode untuk memproses laporan metrik Statsd jika diperlukan. Metode ini dipanggil
untuk laporan metrik dari perangkat tertentu
Parameter |
device |
ITestDevice : Perangkat pengujian tempat laporan statsd berasal |
dataStream |
InputStreamSource : Laporan statistik sebagai aliran input |
runData |
DeviceMetricData : Tujuan tempat metrik yang diproses akan disimpan |
Konten dan contoh kode di halaman ini tunduk kepada lisensi yang dijelaskan dalam Lisensi Konten. Java dan OpenJDK adalah merek dagang atau merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-27 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-27 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 |"]]