diff options
author | 2014-12-04 18:15:03 +0000 | |
---|---|---|
committer | 2014-12-04 18:15:03 +0000 | |
commit | 3bf7b80e48eb58254a076f5363f1e9e3348abb8c (patch) | |
tree | baca31edafb6798f756cc5af4d4a2ae024b7ddcb | |
parent | 2d58c9220cdeaac63ae1a5c9f1c80c3e131ae296 (diff) | |
parent | 391232da084d715b9f20539a98b4a49cc56bf949 (diff) |
am 391232da: Merge "Log the state of the notification shade" into lmp-mr1-dev
* commit '391232da084d715b9f20539a98b4a49cc56bf949':
Log the state of the notification shade
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/EventLogTags.logtags | 1 | ||||
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java | 21 |
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 633795648afc..191cba53d489 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 7a3b5e478415..ec2d30c06261 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; |