From 5a00b850b0ebdb337effb97564d46d8ee497f307 Mon Sep 17 00:00:00 2001 From: Abhishek Pandit-Subedi Date: Wed, 22 Mar 2023 22:12:11 +0000 Subject: Revert "[BluetoothMetrics] This covers the case for Direct LE-AC..." Revert submission 2496315-bluetooth-le-connection-session Reason for revert: Breaks flossbuild (caught by presubmit and bypassed) Reverted changes: /q/submissionid:2496315-bluetooth-le-connection-session Change-Id: Ie355f78d4c535b5fa44c3451d420302c679eb862 --- system/common/metrics.cc | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'system/common/metrics.cc') diff --git a/system/common/metrics.cc b/system/common/metrics.cc index b243fd78b7..baf838b0c4 100644 --- a/system/common/metrics.cc +++ b/system/common/metrics.cc @@ -20,7 +20,6 @@ #include #include -#include #include #include #include @@ -36,9 +35,6 @@ #include "address_obfuscator.h" #include "bluetooth/metrics/bluetooth.pb.h" -#include "gd/metrics/metrics_state.h" -#include "gd/hci/address.h" -#include "gd/os/metrics.h" #include "leaky_bonded_queue.h" #include "metric_id_allocator.h" #include "osi/include/osi.h" @@ -72,7 +68,6 @@ using bluetooth::metrics::BluetoothMetricsProto::ScanEvent_ScanEventType; using bluetooth::metrics::BluetoothMetricsProto::ScanEvent_ScanTechnologyType; using bluetooth::metrics::BluetoothMetricsProto::WakeEvent; using bluetooth::metrics::BluetoothMetricsProto::WakeEvent_WakeEventType; -using bluetooth::hci::Address; static float combine_averages(float avg_a, int64_t ct_a, float avg_b, int64_t ct_b) { @@ -974,19 +969,6 @@ void LogLeAudioBroadcastSessionReported(int64_t duration_nanos) { } } -void LogLeBluetoothConnectionMetricEventReported( - const Address& address, - android::bluetooth::le::LeConnectionOriginType origin_type, - android::bluetooth::le::LeConnectionType connection_type, - android::bluetooth::le::LeConnectionState transaction_state, - std::vector> - argument_list) { - // Log the events for the State Management - metrics::MetricsCollector::GetLEConnectionMetricsCollector() - ->AddStateChangedEvent(address, origin_type, connection_type, - transaction_state, argument_list); -} - } // namespace common } // namespace bluetooth -- cgit v1.2.3-59-g8ed1b