diff options
| author | 2016-08-03 19:43:13 +0000 | |
|---|---|---|
| committer | 2016-08-03 19:43:13 +0000 | |
| commit | 8d7213f0b7e52b3994ef09bec2d0e150249affcc (patch) | |
| tree | c732a3d293e4c8c76a5229ac3b72ccd0db797649 | |
| parent | dce89313bc090389d7090a0734ea571c245600c0 (diff) | |
| parent | 53c39ff132bc948f06f1b7c4a1d504d594a6ce3f (diff) | |
Add metrics logging for fingerprint swipe for notification panel. am: 3c00afba0b am: ed1c7ba70e
am: 53c39ff132
Change-Id: Ia0e2926f96bb2d6e1003b3c0f453b4980e986675
3 files changed, 12 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java index 99fbad22541a..2b1c61d4c668 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java @@ -81,8 +81,8 @@ public class NotificationPanelView extends PanelView implements private static final float LOCK_ICON_ACTIVE_SCALE = 1.2f; - private static final String COUNTER_PANEL_OPEN = "panel_open"; - private static final String COUNTER_PANEL_OPEN_QS = "panel_open_qs"; + static final String COUNTER_PANEL_OPEN = "panel_open"; + static final String COUNTER_PANEL_OPEN_QS = "panel_open_qs"; private static final String COUNTER_PANEL_OPEN_PEEK = "panel_open_peek"; private static final Rect mDummyDirtyRect = new Rect(0, 0, 1, 1); diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java index a4531ce2ed69..6177dec4a6b5 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -2629,12 +2629,16 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, if (!mUserSetup) return; if (KeyEvent.KEYCODE_SYSTEM_NAVIGATION_UP == key) { + MetricsLogger.action(mContext, MetricsEvent.ACTION_SYSTEM_NAVIGATION_KEY_UP); mNotificationPanel.collapse(false /* delayed */, 1.0f /* speedUpFactor */); } else if (KeyEvent.KEYCODE_SYSTEM_NAVIGATION_DOWN == key) { + MetricsLogger.action(mContext, MetricsEvent.ACTION_SYSTEM_NAVIGATION_KEY_DOWN); if (mNotificationPanel.isFullyCollapsed()) { mNotificationPanel.expand(true /* animate */); + MetricsLogger.count(mContext, NotificationPanelView.COUNTER_PANEL_OPEN, 1); } else if (!mNotificationPanel.isInSettings() && !mNotificationPanel.isExpanding()){ mNotificationPanel.flingSettings(0 /* velocity */, true /* expand */); + MetricsLogger.count(mContext, NotificationPanelView.COUNTER_PANEL_OPEN_QS, 1); } } diff --git a/proto/src/metrics_constants.proto b/proto/src/metrics_constants.proto index fc19fb5f8f92..f5dfa697630a 100644 --- a/proto/src/metrics_constants.proto +++ b/proto/src/metrics_constants.proto @@ -2197,6 +2197,12 @@ message MetricsEvent { // Night Light on SETTINGS_CONDITION_NIGHT_DISPLAY = 492; + // System navigation key up. + ACTION_SYSTEM_NAVIGATION_KEY_UP = 493; + + // System navigation key down. + ACTION_SYSTEM_NAVIGATION_KEY_DOWN = 494; + // ---- End N-MR1 Constants, all N-MR1 constants go above this line ---- // ------- Begin N Keyboard Shortcuts Helper ----- |