diff options
author | 2025-02-07 17:48:44 -0800 | |
---|---|---|
committer | 2025-03-10 11:26:52 -0700 | |
commit | 59e9fa67a1ec68ade816a84d161dc4da93c7419f (patch) | |
tree | 38c6d37813783c039d95cace6afb25c61a323a4f /system/common/metrics.h | |
parent | ff22be65bf8163fd8749d1b57d8b47e3eaf807db (diff) |
Add metrics logging for Bluetooth offload socket
Bug: 399022276
Flag: EXEMPT, metrics update
Test: m com.google.android.bt
Test: Android Data Hub Atom Tester
Change-Id: Ib5a4a0d6970287388851bcf5fdb71121e3092b76
Diffstat (limited to 'system/common/metrics.h')
-rw-r--r-- | system/common/metrics.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/system/common/metrics.h b/system/common/metrics.h index 8cd41bd6db..69e7ed67ca 100644 --- a/system/common/metrics.h +++ b/system/common/metrics.h @@ -459,11 +459,17 @@ void LogSdpAttribute(const RawAddress& address, uint16_t protocol_uuid, uint16_t * by |server_port| * @param socket_role role of this socket, server or connection * @param uid socket owner's uid + * @param connection_duration_ms duration of socket connection in milliseconds + * @param error_code error code of socket failures + * @param is_hardware_offload whether this is a offload socket */ void LogSocketConnectionState(const RawAddress& address, int port, int type, android::bluetooth::SocketConnectionstateEnum connection_state, int64_t tx_bytes, int64_t rx_bytes, int uid, int server_port, - android::bluetooth::SocketRoleEnum socket_role); + android::bluetooth::SocketRoleEnum socket_role, + uint64_t connection_duration_ms, + android::bluetooth::SocketErrorEnum error_code, + bool is_hardware_offload); /** * Logs when a Bluetooth device's manufacturer information is learnt |