diff options
| author | 2019-04-03 04:27:29 +0000 | |
|---|---|---|
| committer | 2019-04-03 04:27:29 +0000 | |
| commit | d8b24c3ca16c0531626d6cf5ef4aa32dd6121732 (patch) | |
| tree | 82d9021062a03922268a1f6d64add4334fa6430f | |
| parent | d3c115b26a9a62dec76f79572a33cfde12280984 (diff) | |
| parent | 714268038ae68b6449c08da2af310ba5bbd8dc89 (diff) | |
Merge "Bluetooth: Log class of device"
| -rw-r--r-- | cmds/statsd/src/atoms.proto | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/cmds/statsd/src/atoms.proto b/cmds/statsd/src/atoms.proto index cadc3a0828a5..dc4413f5457c 100644 --- a/cmds/statsd/src/atoms.proto +++ b/cmds/statsd/src/atoms.proto @@ -259,6 +259,7 @@ message Atom { BiometricEnrolled biometric_enrolled = 184; SystemServerWatchdogOccurred system_server_watchdog_occurred = 185; TombStoneOccurred tomb_stone_occurred = 186; + BluetoothClassOfDeviceReported bluetooth_class_of_device_reported = 187; } // Pulled events will start at field 10000. @@ -2142,6 +2143,29 @@ message BluetoothSocketConnectionStateChanged { } /** + * Logs when Class of Device (CoD) value is learnt for a device during pairing or connection + * + * Logged from: + * packages/apps/Bluetooth/src/com/android/bluetooth/btservice/BondStateMachine.java + * packages/apps/Bluetooth/src/com/android/bluetooth/btservice/RemoteDevices.java + * + */ +message BluetoothClassOfDeviceReported { + // An identifier that can be used to match events for this device. + // Currently, this is a salted hash of the MAC address of this Bluetooth device. + // Salt: Randomly generated 256 bit value + // Hash algorithm: HMAC-SHA256 + // Size: 32 byte + // Default: null or empty if this is a server listener socket + optional bytes obfuscated_id = 1 [(android.os.statsd.log_mode) = MODE_BYTES]; + // Class of Device (CoD) value including both Major, Minor device class and service class + // Defined in: https://www.bluetooth.com/specifications/assigned-numbers/baseband + // Also defined in: https://developer.android.com/reference/android/bluetooth/BluetoothClass + // Default: 0 + optional int32 class_of_device = 2; +} + +/** * Logs when something is plugged into or removed from the USB-C connector. * * Logged from: |