From 15a36edb818bb0206abd6e0eed9d5f06cdf41248 Mon Sep 17 00:00:00 2001 From: Charlie Wang Date: Wed, 14 Jun 2017 14:46:39 -0700 Subject: [PATCH] Adding tron logging events for standalone headsets. Standalone headsets will use tron to log headset events. Bug: 62103076 Test: Builds and logger can log events Change-Id: I761ddae4501aa8b8d0d9dacc91f04fd13a2c771c --- proto/src/metrics_constants.proto | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/proto/src/metrics_constants.proto b/proto/src/metrics_constants.proto index b3a4007ff399b..2edcd71721ca5 100644 --- a/proto/src/metrics_constants.proto +++ b/proto/src/metrics_constants.proto @@ -4134,6 +4134,31 @@ message MetricsEvent { // OS: O DR ACTION_APP_LOCATION_CHECK = 1021; + // Device headset status + // CATEGORY: OTHER + // SUBTYPE: 1 is DON, 2 is DOFF + // OS: O DR + ACTION_HEADSET_STATUS = 1022; + + // Device Headset Plug status + // CATEGORY: OTHER + // SUBTYPE: 1 is AC power, 2 is USB power, 3 is Unplug + // OS: O DR + ACTION_HEADSET_PLUG = 1023; + + // Device Headset battery level on Plug + // CATEGORY: OTHER + // FIELD - The battery percentage when the user decided to plug in + // Type: integer + // OS: O DR + FIELD_PLUG_BATTERY_PERCENTAGE = 1024; + + // Device Headset Pose status + // CATEGORY: OTHER + // SUBTYPE: 1 is 6DOF, 2 is 3DOF + // OS: O DR + ACTION_HEADSET_POSE_STATUS = 1025; + // Add new aosp constants above this line. // END OF AOSP CONSTANTS }