summaryrefslogtreecommitdiff
path: root/system/common/metrics.cc
diff options
context:
space:
mode:
author Liang Li <lianglli@google.com> 2025-03-03 10:22:24 -0800
committer Liang Li <lianglli@google.com> 2025-03-07 14:45:26 -0800
commit731809870ba3b9db73e34d4bf08c22ec6717631e (patch)
treefdf2857f500dd3276278f52c3c333995679354a2 /system/common/metrics.cc
parentbd5c58137e348a7f0e6c60e4798a1069f9188ade (diff)
Update arguments of stats_write for socket metrics with empty values
The new arguments are needed due to the new fields being added to the BluetoothSocketConnectionStateChanged atom. These empty values will be replaced with acutal values in a separate change. Bug: 399022276 Test: m com.google.android.bt Flag: EXEMPT, metrics logging Ignore-AOSP-First: workflow for modifying existing atoms Change-Id: Ie0441325cb6d02ebe0355602e86e9df9eca66c74
Diffstat (limited to 'system/common/metrics.cc')
-rw-r--r--system/common/metrics.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/common/metrics.cc b/system/common/metrics.cc
index 49b73a01c3..1ece069ab3 100644
--- a/system/common/metrics.cc
+++ b/system/common/metrics.cc
@@ -790,7 +790,8 @@ void LogSocketConnectionState(const RawAddress& address, int port, int type,
address.IsEmpty() ? 0 : obfuscated_id.size());
int ret = stats_write(BLUETOOTH_SOCKET_CONNECTION_STATE_CHANGED, obfuscated_id_field, port, type,
connection_state, tx_bytes, rx_bytes, uid, server_port, socket_role,
- metric_id);
+ metric_id, 0 /* connection_duration_ms */, 1 /* error_code */,
+ 0 /* is_hardware_offload */);
if (ret < 0) {
log::warn(
"failed for {}, port {}, type {}, state {}, tx_bytes {}, rx_bytes {}, "