summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui
diff options
context:
space:
mode:
authorChristoph Studer <chstuder@google.com>2014-11-24 19:37:13 +0100
committerChristoph Studer <chstuder@google.com>2014-12-03 13:50:19 +0100
commitc10416f0b99f5ace80285c9bafe0f7a2ef03b559 (patch)
treec35100090f870d41b42f012d25ff44e8a7d7d795 /packages/SystemUI/src/com/android/systemui
parent195c438883dfcca799aa456dfe52d24c077e40da (diff)
downloadframeworks_base-c10416f0b99f5ace80285c9bafe0f7a2ef03b559.zip
frameworks_base-c10416f0b99f5ace80285c9bafe0f7a2ef03b559.tar.gz
frameworks_base-c10416f0b99f5ace80285c9bafe0f7a2ef03b559.tar.bz2
Log the state of the notification shade
Bug: 18308441 Change-Id: Iade14a2bf0d486ce9438e41d6eb7830bfdbbb653
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui')
-rw-r--r--packages/SystemUI/src/com/android/systemui/EventLogTags.logtags1
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java21
2 files changed, 14 insertions, 8 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/EventLogTags.logtags b/packages/SystemUI/src/com/android/systemui/EventLogTags.logtags
index 6337956..191cba5 100644
--- a/packages/SystemUI/src/com/android/systemui/EventLogTags.logtags
+++ b/packages/SystemUI/src/com/android/systemui/EventLogTags.logtags
@@ -9,6 +9,7 @@ option java_package com.android.systemui;
36001 sysui_heads_up_status (key|3),(visible|1)
36002 sysui_fullscreen_notification (key|3)
36003 sysui_heads_up_escalation (key|3)
+36004 sysui_status_bar_state (state|1)
# ---------------------------
# PhoneStatusBarView.java
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 7a3b5e4..ec2d30c 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
@@ -3795,14 +3795,19 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
* @param state The {@link StatusBarState} to set.
*/
public void setBarState(int state) {
- // If we're visible and switched to SHADE_LOCKED (the user dragged down
- // on the lockscreen), clear notification LED, vibration, ringing.
- // Other transitions are covered in handleVisibleToUserChanged().
- if (mVisible && mState != state && state == StatusBarState.SHADE_LOCKED) {
- try {
- mBarService.clearNotificationEffects();
- } catch (RemoteException e) {
- // Ignore.
+ if (state != mState) {
+ EventLogTags.writeSysuiStatusBarState(state);
+
+ // If we're visible and switched to SHADE_LOCKED (the user dragged
+ // down on the lockscreen), clear notification LED, vibration,
+ // ringing.
+ // Other transitions are covered in handleVisibleToUserChanged().
+ if (mVisible && state == StatusBarState.SHADE_LOCKED) {
+ try {
+ mBarService.clearNotificationEffects();
+ } catch (RemoteException e) {
+ // Ignore.
+ }
}
}
mState = state;