summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack He <siyuanh@google.com>2019-03-20 17:38:11 -0700
committerandroid-build-team Robot <android-build-team-robot@google.com>2019-04-16 22:38:56 +0000
commitc5a33f83c66a7b2305b06dcb478016882bfb1714 (patch)
tree9b71c8f321fdf35028129988b1057a63b41cee4a
parent2a21bea448c56d892cf7c726771889ff2299f4d5 (diff)
downloadbase-c5a33f83c66a7b2305b06dcb478016882bfb1714.tar.gz
DO NOT MERGE Atoms: Add BluetoothClassicPairingEvent
* Add BluetoothClassicPairingEvent to log pairing and encryption related statistics Bug: 124301137 Test: test drive with statsd Change-Id: Idca6f6d340e03af91c5a6fb4102666d44167635b (cherry picked from commit 6110c95184c6ca0265ebc39235ca81da21c0483d)
-rw-r--r--cmds/statsd/src/atoms.proto38
1 files changed, 38 insertions, 0 deletions
diff --git a/cmds/statsd/src/atoms.proto b/cmds/statsd/src/atoms.proto
index 18aa0d06d6dc..30995d28e985 100644
--- a/cmds/statsd/src/atoms.proto
+++ b/cmds/statsd/src/atoms.proto
@@ -122,6 +122,8 @@ message Atom {
WTFOccurred wtf_occurred = 80;
LowMemReported low_mem_reported = 81;
ThermalThrottlingStateChanged thermal_throttling = 86;
+ // 86 - 165 are not available
+ BluetoothClassicPairingEventReported bluetooth_classic_pairing_event_reported = 166;
}
// Pulled events will start at field 10000.
@@ -1027,6 +1029,42 @@ message BluetoothConnectionStateChanged {
}
/**
+ * Logs there is an event related Bluetooth classic pairing
+ *
+ * Logged from:
+ * system/bt
+ */
+message BluetoothClassicPairingEventReported {
+ // 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 the device identifier is not known
+ // Note: string is here for backward compatibility purpose only
+ optional string obfuscated_id = 1;
+ // Connection handle of this connection if available
+ // Range: 0x0000 - 0x0EFF (12 bits)
+ // Default: 0xFFFF if the handle is unknown
+ optional int32 connection_handle = 2;
+ // HCI command associated with this event
+ // Default: CMD_UNKNOWN
+ optional int32 hci_cmd = 3;
+ // HCI event associated with this event
+ // Default: EVT_UNKNOWN
+ optional int32 hci_event = 4;
+ // HCI command status code if this is triggered by hci_cmd
+ // Default: STATUS_UNKNOWN
+ optional int32 cmd_status = 5;
+ // HCI reason code associated with this event
+ // Default: STATUS_UNKNOWN
+ optional int32 reason_code = 6;
+ // A status value related to this specific event
+ // Default: 0
+ optional int64 event_value = 7;
+}
+
+/**
* Logs when something is plugged into or removed from the USB-C connector.
*
* Logged from: