diff options
author | Daniel Sandler <dsandler@android.com> | 2013-02-13 17:15:57 -0500 |
---|---|---|
committer | Daniel Sandler <dsandler@android.com> | 2013-02-13 20:47:48 -0500 |
commit | 37a38aaecb5045906ade6d1c970f106a028cbaf5 (patch) | |
tree | 8f96ba6f92ac1f53f8e1cfd7a531c35ddbd80495 /packages | |
parent | bde3104ddce09d03255ff481dfb13bc9e67119e8 (diff) | |
download | frameworks_base-37a38aaecb5045906ade6d1c970f106a028cbaf5.zip frameworks_base-37a38aaecb5045906ade6d1c970f106a028cbaf5.tar.gz frameworks_base-37a38aaecb5045906ade6d1c970f106a028cbaf5.tar.bz2 |
More debug logs for stuck statusbars.
Bug: 7686690
Change-Id: Ic58d90a56412579cad0c77f5787a6fc4193a32d1
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java | 18 | ||||
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java | 42 |
2 files changed, 34 insertions, 26 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java index 5d9c7bc..7b80abc 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java @@ -16,6 +16,8 @@ package com.android.systemui.statusbar.phone; +import java.io.FileDescriptor; +import java.io.PrintWriter; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Iterator; @@ -594,4 +596,20 @@ public class PanelView extends FrameLayout { if (DEBUG) LOG("skipping expansion: is expanded"); } } + + public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { + pw.println(String.format("[PanelView(%s): expandedHeight=%f fullHeight=%f closing=%s" + + " tracking=%s rubberbanding=%s justPeeked=%s peekAnim=%s%s timeAnim=%s%s" + + "]", + this.getClass().getSimpleName(), + getExpandedHeight(), + getFullHeight(), + mClosing?"T":"f", + mTracking?"T":"f", + mRubberbanding?"T":"f", + mJustPeeked?"T":"f", + mPeekAnimator, ((mPeekAnimator!=null && mPeekAnimator.isStarted())?" (started)":""), + mTimeAnimator, ((mTimeAnimator!=null && mTimeAnimator.isStarted())?" (started)":"") + )); + } } 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 01596dc..9b1c1db 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -246,16 +246,6 @@ public class PhoneStatusBar extends BaseStatusBar { private ViewGroup mCling; private boolean mSuppressStatusBarDrags; // while a cling is up, briefly deaden the bar to give things time to settle - boolean mAnimating; - boolean mClosing; // only valid when mAnimating; indicates the initial acceleration - float mAnimY; - float mAnimVel; - float mAnimAccel; - long mAnimLastTimeNanos; - boolean mAnimatingReveal = false; - int mViewDelta; - float mFlingVelocity; - int mFlingY; int[] mAbsPos = new int[2]; Runnable mPostCollapseCleanup = null; @@ -352,7 +342,7 @@ public class PhoneStatusBar extends BaseStatusBar { @Override public boolean onTouch(View v, MotionEvent event) { if (event.getAction() == MotionEvent.ACTION_DOWN) { - if (mExpandedVisible && !mAnimating) { + if (mExpandedVisible) { animateCollapsePanels(); } } @@ -963,7 +953,7 @@ public class PhoneStatusBar extends BaseStatusBar { mHandler.sendEmptyMessage(MSG_HIDE_INTRUDER); } - if (CLOSE_PANEL_WHEN_EMPTIED && mNotificationData.size() == 0 && !mAnimating) { + if (CLOSE_PANEL_WHEN_EMPTIED && mNotificationData.size() == 0) { animateCollapsePanels(); } } @@ -1411,10 +1401,6 @@ public class PhoneStatusBar extends BaseStatusBar { if (SPEW) { Slog.d(TAG, "animateCollapse():" + " mExpandedVisible=" + mExpandedVisible - + " mAnimating=" + mAnimating - + " mAnimatingReveal=" + mAnimatingReveal - + " mAnimY=" + mAnimY - + " mAnimVel=" + mAnimVel + " flags=" + flags); } @@ -2051,16 +2037,6 @@ public class PhoneStatusBar extends BaseStatusBar { + ", mTrackingPosition=" + mTrackingPosition); pw.println(" mTicking=" + mTicking); pw.println(" mTracking=" + mTracking); - pw.println(" mNotificationPanel=" + - ((mNotificationPanel == null) - ? "null" - : (mNotificationPanel + " params=" + mNotificationPanel.getLayoutParams().debug("")))); - pw.println(" mAnimating=" + mAnimating - + ", mAnimY=" + mAnimY + ", mAnimVel=" + mAnimVel - + ", mAnimAccel=" + mAnimAccel); - pw.println(" mAnimLastTimeNanos=" + mAnimLastTimeNanos); - pw.println(" mAnimatingReveal=" + mAnimatingReveal - + " mViewDelta=" + mViewDelta); pw.println(" mDisplayMetrics=" + mDisplayMetrics); pw.println(" mPile: " + viewInfo(mPile)); pw.println(" mTickerView: " + viewInfo(mTickerView)); @@ -2075,6 +2051,20 @@ public class PhoneStatusBar extends BaseStatusBar { mNavigationBarView.dump(fd, pw, args); } + pw.println(" Panels: "); + if (mNotificationPanel != null) { + pw.println(" mNotificationPanel=" + + mNotificationPanel + " params=" + mNotificationPanel.getLayoutParams().debug("")); + pw.print (" "); + mNotificationPanel.dump(fd, pw, args); + } + if (mSettingsPanel != null) { + pw.println(" mSettingsPanel=" + + mSettingsPanel + " params=" + mSettingsPanel.getLayoutParams().debug("")); + pw.print (" "); + mSettingsPanel.dump(fd, pw, args); + } + if (DUMPTRUCK) { synchronized (mNotificationData) { int N = mNotificationData.size(); |