diff options
author | Chris Wren <cwren@android.com> | 2014-12-05 16:07:06 -0500 |
---|---|---|
committer | Chris Wren <cwren@android.com> | 2015-02-04 16:07:50 -0500 |
commit | 428c6b6580eead15d6a0f9889624e14883150141 (patch) | |
tree | ce957647aad352f15a672f9655e35307ec021c94 /packages/SystemUI | |
parent | 7e760ee59d77f0e8cbdd4c64c1d4bf0b89113878 (diff) | |
download | frameworks_base-428c6b6580eead15d6a0f9889624e14883150141.zip frameworks_base-428c6b6580eead15d6a0f9889624e14883150141.tar.gz frameworks_base-428c6b6580eead15d6a0f9889624e14883150141.tar.bz2 |
Add dumpsys info for heads up view.
Bug: 18640969
Change-Id: Ie8d271fad3259da48854e9fd5e3f8eeec51ba91e
Diffstat (limited to 'packages/SystemUI')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java | 6 | ||||
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java | 23 |
2 files changed, 29 insertions, 0 deletions
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 4ffe9b1..1117551 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -2515,6 +2515,12 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, if (mSecurityController != null) { mSecurityController.dump(fd, pw, args); } + if (mHeadsUpNotificationView != null) { + mHeadsUpNotificationView.dump(fd, pw, args); + } else { + pw.println(" mHeadsUpNotificationView: null"); + } + pw.println("SharedPreferences:"); for (Map.Entry<String, ?> entry : mContext.getSharedPreferences(mContext.getPackageName(), Context.MODE_PRIVATE).getAll().entrySet()) { diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java index 2e3e67a..2e96dd5 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java @@ -44,6 +44,8 @@ import com.android.systemui.statusbar.ExpandableView; import com.android.systemui.statusbar.NotificationData; import com.android.systemui.statusbar.phone.PhoneStatusBar; +import java.io.FileDescriptor; +import java.io.PrintWriter; import java.util.ArrayList; public class HeadsUpNotificationView extends FrameLayout implements SwipeHelper.Callback, ExpandHelper.Callback, @@ -442,6 +444,27 @@ public class HeadsUpNotificationView extends FrameLayout implements SwipeHelper. mUser = user; } + public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { + pw.println("HeadsUpNotificationView state:"); + pw.print(" mTouchSensitivityDelay="); pw.println(mTouchSensitivityDelay); + pw.print(" mSnoozeLengthMs="); pw.println(mSnoozeLengthMs); + pw.print(" mMostRecentPackageName="); pw.println(mMostRecentPackageName); + pw.print(" mStartTouchTime="); pw.println(mStartTouchTime); + pw.print(" now="); pw.println(SystemClock.elapsedRealtime()); + pw.print(" mUser="); pw.println(mUser); + if (mHeadsUp == null) { + pw.println(" mHeadsUp=null"); + } else { + pw.print(" mHeadsUp="); pw.println(mHeadsUp.notification.getKey()); + } + int N = mSnoozedPackages.size(); + pw.println(" snoozed packages: " + N); + for (int i = 0; i < N; i++) { + pw.print(" "); pw.print(mSnoozedPackages.valueAt(i)); + pw.print(", "); pw.println(mSnoozedPackages.keyAt(i)); + } + } + private class EdgeSwipeHelper implements Gefingerpoken { private static final boolean DEBUG_EDGE_SWIPE = false; private final float mTouchSlop; |