diff options
author | 2025-03-03 10:22:24 -0800 | |
---|---|---|
committer | 2025-03-07 14:45:26 -0800 | |
commit | 731809870ba3b9db73e34d4bf08c22ec6717631e (patch) | |
tree | fdf2857f500dd3276278f52c3c333995679354a2 /system | |
parent | bd5c58137e348a7f0e6c60e4798a1069f9188ade (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')
-rw-r--r-- | system/common/metrics.cc | 3 | ||||
-rw-r--r-- | system/gd/os/android/metrics.cc | 3 |
2 files changed, 4 insertions, 2 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 {}, " diff --git a/system/gd/os/android/metrics.cc b/system/gd/os/android/metrics.cc index ddb9d826f1..3b6d9602b0 100644 --- a/system/gd/os/android/metrics.cc +++ b/system/gd/os/android/metrics.cc @@ -339,7 +339,8 @@ void LogMetricSocketConnectionState(const Address& address, int port, int type, } int ret = stats_write(BLUETOOTH_SOCKET_CONNECTION_STATE_CHANGED, byteField, 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 {}, uid {}, " |