History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c11baeba208fd51a497d482e0b39cc8386c5800a 05-Dec-2014 Chris Wren <cwren@android.com> Avoid race condition in heads up snooze code path.

The user can still snooze the heads up as its in the process of timing
out. In this case, mHeadsUp is already null. We save the package
name so that we can still snooze the package.

Bug: 18639224
Change-Id: I9bcce99a5c912e70a6856b277b61adab9cdcbc33
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
a6d4fb60ed241002210f27c94fbf363430152fe7 20-Nov-2014 Chris Wren <cwren@android.com> Push back notification means snooze the package.

Bug: 18451923
Change-Id: I90160f9d14cde12a5bc03e46e64eedf770149a90
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
e52abb3e91703b6f2d9d65733780de41aaf52afa 05-Nov-2014 Selim Cinek <cinek@google.com> Adapted HUN behavior when swiping vertically

It's not dismissed anymore but pushed into the shade
when swiping up.
Also, when swiping down, we now dimiss the HUN.

Bug: 15594813
Change-Id: I0b6a761bebbe281e31bf3b1e20704e2e5da07861
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
9bd9d0c96a37c0973f74809961a0f9508f65324e 04-Nov-2014 Selim Cinek <cinek@google.com> Fixed a bug where the HUNs were not clickable

Also improved the edgeswipehelper to use 45 degree
touch disambiguation.

Bug: 18102199
Change-Id: I153e094d5d86439ae048137fc5eac47966b12ca5
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
1a521f3ea841f6db9686bbec7f950a3883d075aa 03-Nov-2014 Selim Cinek <cinek@google.com> Fixed a bug that the notifications were not animating when reset

Also made sure that the touch event is never filtered when its a
heads up view.

Bug: 18188693
Change-Id: Ic5de3e36c785d2cf890936322820b739a0a1b107
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
34cf5c4bfc7c4918b8155c47eb905782902016d6 26-Sep-2014 Selim Cinek <cinek@google.com> Increased the falsing threshold when woken up by touch

Bug: 17649103
Change-Id: Iea4736a761a1108e7832aa62cc2060ea0bd89376
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
5276a772ced5e9faf298064d1ba676fb5c1e445d 08-Sep-2014 Selim Cinek <cinek@google.com> Properly announcing HUN state for talkback

Bug: 17067870
Bug: 16652871
Change-Id: I5d33166eaab31e3ac58d75653c0f80fab23718c2
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
19c8c708f16546fc75ae12659aa190f5e3dfbb52 25-Aug-2014 Selim Cinek <cinek@google.com> Added anti-falsing logic to the keyguard.

Newly enforcing a threshold for the following cases:
Unlocking, Dismissing Notifications, Swiping Down Quick settings.
Also increased the affordance threshold slightly.

Bug: 15433087
Change-Id: I723346dedf9ae0e3f8b103182992ab572fc394b9
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
7e6809ad643fa4a70cfb647191731c68f07789cd 06-Aug-2014 John Spurlock <jspurlock@google.com> Common shade width across devices.

Use 400dp as the visual width of the shade across all devices
and orientations, except small device portrait.

Since the width is now dynamic across orientations, update the
necessary views in SystemUI on rotate.

Remove obsolete styles + resources.

Set max QS columns to 3 on all devices, due to the newer shade
width.

Bug:16825515
Change-Id: Iff171549a79bc318a4d585a2d9ea2af9bc686922
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
ae44128776410abd11bd06ae700db9cc4606a773 01-Aug-2014 Jorim Jaggi <jjaggi@google.com> Animate public/private notification layouts

This change move the boolean whether we hide sensitive contents into
AmbientState, which makes it consistent with the other stack states
and allows for a orchestrated transition between public/private
layouts. We need this transition when going into the full shade.

Bug: 16291973
Change-Id: I379a6119b5b73eca900a4a2ba9d5ec95b293e487
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
396c07932db1ab33543105d327ba1938d2486d2f 01-Aug-2014 Chris Wren <cwren@android.com> add event logs to track heads up status.

Bug: 16344259
Change-Id: Ib06c2473e6af7999b27723428a1182170129fdcd
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
eceda3d83814e20cabddc4f0755d475fa2f3d8ff 21-Jul-2014 Dan Sandler <dsandler@android.com> Reintroduced the clear all button

A new text button is added to the bottom of the notification list
enabling the user to clear all notifications.

Bug: 14826666
Change-Id: I34dcccb59346798cca321bc1a19252b00e7c5689
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
31ba192dd201df2cad96a8c503f730130ab0d80f 18-Jul-2014 Chris Craik <ccraik@google.com> Tweaks to outline API

b/15283203
b/16142564

Remove boolean return value chaining, as it's redundant with
the data in the Outline itself.

Change-Id: I3116e57cd1b35c98b74e95195117edd7e39fb2df
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
7b7ca3cdf25bee73aa9e58aaaf6ce75fe81bd045 11-Jul-2014 Chris Craik <ccraik@google.com> Disable setOutline() functionality, pending full removal

bug:15283203
Change-Id: Ibf127fecfcda835117c6087180c64f622b3041e4
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
1dafd04247c4f849e05fd1c73118d916b9b67f64 12-Jun-2014 Chris Wren <cwren@android.com> Fix notification update path for structural updates.

Similar logic is required for the replacement case, as is already in place
for the update case, although the actions are different.

Bug: 15588056
Change-Id: I9ad115237c589716772e569fa1979a206b77097b
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
d04f6cee5f6d98a60c0092a217a15ea5c2d3a106 11-Jun-2014 Chris Wren <cwren@android.com> Manage heads up state during notification update.

Notifications can now get the heads up slot on updates.
FLAG_ONLY_ALERT_ONCE suppresses this behavior.

Bug: 15534198
Change-Id: Ie27b7c7d93c590d777670c538fb796a04252046f
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
a4ef6203262d45d4ffae7860ef40bd931ab27e07 10-Jun-2014 Chris Wren <cwren@android.com> Only post interrupting notifications to the Heads Up.

Pop them out to the shade if they haven't been dismissed.
Centralize bookkeeping into HeadsUpNotificationView.

Bug: 13397541
Change-Id: I350478ed954309773cfdd6970d58b22df6d223bc
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
1408eb5a58d669933c701e347fd3498ceab70f3c 02-Jun-2014 Selim Cinek <cinek@google.com> Changed the overscroll and expanding behaviour.

Only the first selected element will be expanded, no subsequent children.
Afterwards, overscrolling is performed.
This improves overscroll consistency a lot and people don't accidentally
expand unwanted notifications, just the one they wanted to.
If the users primary intent is overscrolling (i.e if he drags on a card
which is already expanded), then we allow him to go to the quick settings.

Bug: 14487435
Bug: 15181651
Change-Id: I978cc4e06ae85c2ca69e15a149cb85ac54b2ef35
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
5d9cc668e16abf1306d82218cd3da29e28a454ae 28-May-2014 Adrian Roos <roosa@google.com> Update HUN visuals to UX spec

Adds gradient, fixes wrong padding on tablets
and adds a callback mode to swipe helper.

Bug: 15106201
Change-Id: I9c3f2d24665cb3de8e70904893f56c928b0caabb
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
de61fd7822ea15fb691405c1aae472caa58e83ba 26-May-2014 Adrian Roos <roosa@google.com> Implement HUN visuals: shadows and translucency

Bug: 15106201
Change-Id: I718e3d36355d0f58abc3daadb8c6a9d554f29bec
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
eb973565f3efc6417ca35363e4d6c642947775d8 02-May-2014 Selim Cinek <cinek@google.com> Refactored the notification animations, improved stack scroller

Animations are now only triggered when absolutely needed.
In addition, the notifications are now not clipped anymore when starting
a drag on them and the notification below the dragged one is fadded in if
necessary.

Change-Id: I80e8b3ea8fb48505edfb3cace6176dfa00c5a659
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
4222d9a7fb87d73e1443ec1a2de9782b05741af6 23-Apr-2014 Jorim Jaggi <jjaggi@google.com> Change interaction for dragging down to full shade.

Starts expanding the card if it is expandable. If it's not, we
rubberband the expansion a lot. After the threshold has been reached,
we scale all the notifications up and make it fully white and opaque.

Change-Id: I9ecd020ca263b0f84e87fd6ab2332519ac5e9984
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
fe40f7d13bfc1faa35c9a131ce4be5104cb8f6b9 28-Apr-2014 Jorim Jaggi <jjaggi@google.com> Flatten notification hiearchy and remove glow.

Currently, the padding and the glow was inside the individual
notification. This no longer works if we want to adjust the
padding dynamically whether we are on Keyguard or not. This change
moves the padding outside of the individual notifications, and as
a side effect, removes the glow. The glow wasn't really visible with
the new layout, so it's not a breaking change. We have to discuss
with UX first what the new "glow" solution is going to be.

Change-Id: Iac16892cb3b7bb1de3001954b1428796b07950c1
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
1685e634fb0b14033bd436af8d7174436699ffec 08-Apr-2014 Selim Cinek <cinek@google.com> Further improved NotificationStackScroller

The top card is now collapsed during the pulldown of
the notification shade and expanded during the transition.
The scrollstate is also reset once the shade is closed.

Change-Id: Ibf17eef1f338d674c545e5bf55261e60db62b2ce
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
7bd2412332f5cf7b22fd730397d1225fbea00cbf 28-Feb-2014 Chris Wren <cwren@android.com> add a setting for the heads up: base part

also fix a crash if the feature is disabled and then enabled
while a heads up is active.

Bug: 13208692
Change-Id: I6847f7a5f275aee2f608de0237dab0e45c39b33f
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
9924e130373455899ecb4f0d78d6b607fb40e866 26-Feb-2014 Chris Wren <cwren@android.com> improvements to heads up interface

remove shadow
quick hack to open shade from HUN
over status bar instead of under and below it
dismiss by pushing up
tablets: shadow remains on left, right, and bottom

Bug: 13208692
Change-Id: Ie3abb762fb1388be68353c7e3111fe4708ab8110
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
464c7efcbc4aed97ea7fbf211eeb466b7186d37f 11-Feb-2014 Chris Wren <cwren@android.com> use private notification for the heads up

HUN only shows if the device is on and unlocked

Change-Id: Ib3f11bb9267b95c88ddb8bef0b321db79d68841b
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
01534780dfaf81c9f89a6e19fe2fe42cfdd01ff7 13-Jan-2014 John Spurlock <jspurlock@google.com> Use accessors for @hidden fields.

Change-Id: I7d66070afb707262cc0dff93b9f9a1dbe77b0092
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
6090995951c6e2e4dcf38102f01793f8a94166e1 19-Nov-2013 John Spurlock <jspurlock@google.com> Remove unused imports from frameworks/base.

Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
6d15a364f26bd61122bfdd127eee225ca65206f5 21-Aug-2013 Chris Wren <cwren@android.com> use ONGOING as the signal not to auto-hide heads up

instead of INSISTENT or NO_CLEAR
required some disambiguation in places where ONGOING is already used.

Bug: 10412149
Change-Id: Iea7d698846c76a464cae511a3a8e3908b114edfe
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
4c91312d55d0521bc9944514f8a7c9b943fc4f2b 06-Aug-2013 Chris Wren <cwren@android.com> ensure heads up slider is initialized.

Change-Id: I4095b89133b64dd5c5d81e3b7fab288ee5538654
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
0f2aa68e3c8356b0adcd91a3156ce6934c8b85f2 02-Aug-2013 Chris Wren <cwren@android.com> proper geometry for heads up on tablets.

also some code cleanup since things are getting complicated.

Bug: 10074485
Change-Id: I900a60f0fdda8d2ef1bcfe01035d6f716e14aa56
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
eda110fdf13021704111c6939abfafdca3d16f9c 25-Jul-2013 Chris Wren <cwren@android.com> insistent heads up should not time out

Bug: 10000289
Change-Id: Ic263d9d6e90a61cc766844a8394c71d281f93976
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
51c7510e493680b4aca1ed7695b35c52d2cd63ff 17-Jul-2013 Chris Wren <cwren@android.com> allow rich notifications in the heads up.

new shouldInterrupt logic: screen on, not locked, not dreaming, and
priority above HIGH and noisy, or has fullscreen intent
draft of API allowing devs to give hints about head up display

reuse inflateViews()
add an expand helper to the heads up space
move some things into Entry for reuse

don't allow touches in first second
delay decay if touched
make decay time a resource

add a custom viewgroup for notification rows to get view management
out of the NotificationData class.

Change-Id: I36464f110cfa0dabc3f35db7db6c35c27e8ee2ba
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
209bede6b9edb9171e5bee4077b48e35004a37b4 17-Jul-2013 John Spurlock <jspurlock@google.com> Remove trailing whitespace from system ui.

Baseline existing .java files, no excuses going forward.

Change-Id: I4bd0f25bbda6f2ec832e34ef5c70d4830bf07f99
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java
157026f820f9ff08a63c78368f928a505cb11ec5 28-Jun-2013 Chris Wren <cwren@android.com> heads up notifications, v0.1

1. re-name intruder alerts to heads up notifications
2. use interrupt for the verb form, instead of intrude
3. new policy: no full screen, high priority, screen on, not locked or dreaming
4. controlled by global setting, with an observer
5. only content view for now, expandable is a todo

to turn it on:
adb shell settings put global heads_up_enabled 1
calendar notifications (not pop-up) work well.

Change-Id: I253418c217d0a5cf81dc2fa001f4bad90fafcce5
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java