History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b0a824687f56b6950338aad169d8d837f8ed657b 01-May-2016 Mady Mellor <madym@google.com> Children should have backgrounds

To add a background to children of a group, a couple of things
are changed when a group is in the expanded state:
- The parent's shadow + background is removed
- The group header is given a background and elevation
- The children are elevated to cast a shadow and have backgrounds
- When it's fully expanded the dividers won't be shown
- There's extra height added to the parent so that the child
may cast the bottom shadow of the group
- As the children move into the bottom stack the last visible
one alters its height and the ones below it are hidden
to achieve the clipping effect

Fixes: 27591195
Fixes: 28655641
Change-Id: I0484308843e9b8bc10391387e54de07973a48f7d
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
1b2a05eb00746756c4d37ad76d597d909019e56f 28-Apr-2016 Selim Cinek <cinek@google.com> Fixed the animation when flinging over the bottom stack

The new approach is still not perfect but has way less artifacts.

Change-Id: I096d3823c5ede720bdf05558d68529e903dce5b5
Fixes: 27744811
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
fe090658b691f8a960bf0492371ec8b52ed4430f 19-Apr-2016 Selim Cinek <cinek@google.com> Fixed a bug where expanding by touch wasn't possible

In landscape expanding by touch was not working because
the rawX is different from the X.

Change-Id: Id1278b073ea2e10258648884c528f5db273f2d78
Fixes: 27923197
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
567e845d99840a6e556595739a15e16132eb2f1e 24-Mar-2016 Selim Cinek <cinek@google.com> Fixed a bug where the minHeight of groups was inaccurate

Also cleaned up the methods names a bit and fixed some small
bugs in border cases where the algorithm was using the wrong
sizes.

Bug: 24866646
Change-Id: I6622814f8cec3fe143234e349030a19e3dc11353
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
d191a1789e7bcd890557fbc6fb1d4efda97601ee 12-Mar-2016 Selim Cinek <cinek@google.com> Fixed the motion when expanding notification groups

Also fixed that a notification was expanded when the velocity
was actually heading the other way.

Bug: 24866646
Change-Id: I419eb6d35173729e8b6b8f76961b75a12e2ae93b
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
821d6a773554565be391b22a050288260cf209d5 12-Mar-2016 Selim Cinek <cinek@google.com> Fixed a bug where the expandhelper was expanding to quickly

It was expanding even when the xDifference was bigger than the
yDifference.

Bug: 27376558
Change-Id: Ie5faeb40a1b8391ace8822f9f210f519302ca133
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
816c8e4735f975f4d8bffa1a5a37be6557424ea3 19-Nov-2015 Selim Cinek <cinek@google.com> Legacy custom views now get properly layed out again

Since the minheight grew, all notifications grew.
Legacy custom notifications need to stay the same
height though.

Change-Id: I469c448014c3d3c31526466d06a60ac44838b274
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
388df6dd3d07376ecd7446cae36e1486cd313171 22-Oct-2015 Selim Cinek <cinek@google.com> Allow expanding notification groups by dragging down

Bug: 24866646
Change-Id: Ie7c5ee6753c2f246df04189bb92e08baf0242797
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
eef842851026a90b6a217d8bc423454fa48df4fe 31-Oct-2015 Selim Cinek <cinek@google.com> Introduced the notification header

In the new grouping model we don't have a dedicated expand button
anymore but only the notification header.

Bug: 24866646
Change-Id: I2e4bc82e502fde951a71b61cd81347c44b9637f6
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
5e8e1c63774da8c013fad18a63eac691cdc9646f 04-Sep-2015 Jorim Jaggi <jjaggi@google.com> Do not expand notifications with expand gesture when disallowed

Bug: 23596083
Change-Id: Iba88abce317e9d3a9c675a846261f35b1daee22a
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
9ff1510aeba910c22b2e31c29a93b08281feae4f 11-Jun-2015 Jorim Jaggi <jjaggi@google.com> Fix vibration when expanding notifications

To make it more consistent with other vibration feedback in the
system.

Bug: 21549323
Change-Id: Ia4ef1cf17c28f6069635797af94991a639e1cef0
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
e53e6bbb82b411f99083e4a6d2071fde45d68d53 14-Apr-2015 Selim Cinek <cinek@google.com> Fixed a bug where a notification could not be collapsed

Also fixed a bug where the content height was wrongly
calculated when the dismissview was invisible.
Finally refined the appearance when more then 2 huns
are present.
Change-Id: If66243beef2383f2cb36961deffcb0a42bbcd177
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
d2281151ee18f5fd530bc062c59b3f77082317bf 10-Apr-2015 Selim Cinek <cinek@google.com> More Heads Up bug fixes

Heads-up now has the correct height while expanding
and collapsing the shade.
Fading out while collapsing the shade was restored.
Fixed a bug where translation was not correctly replaced
with paddingOffset.

Change-Id: I9f1b28856b3ca52543460e7ddde84a1a7eb79cf2
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
b5605e58cb8080c8c887b1885336b707596c8094 20-Feb-2015 Selim Cinek <cinek@google.com> Enable surfacing of notification children

Yo Dawg, I herd you like notifications, so I put a
notification in your notification so you can be
interrupted while you are being interrupted.

Bug: 15869874
Bug: 15188947
Change-Id: I6c733d6f8e8a04f85036182f82d3e945c6feb5bc
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
08c7116ab9cd04ad6dd3c04aa1017237e7f409ac 28-Feb-2015 John Spurlock <jspurlock@google.com> Remove unused imports in frameworks/base.

Change-Id: I031443de83f93eb57a98863001826671b18f3b17
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
1b7f51ebc66fbb2cbe8a468790bbbfd397d66964 28-Oct-2014 Selim Cinek <cinek@google.com> Fixed a crash in the Notification expandHelper

Bug: 18004384
Change-Id: I3b8e60041c527689722591962f384ea91f4a954a
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
c503896a4d0cab029bca56cf7ac18ae182729a0a 29-Jul-2014 Jorim Jaggi <jjaggi@google.com> Fix crash in ExpandHelper

Bug: 16645584
Change-Id: Ifbcd8c88cda0a390061c162aa43d8615d1311f19
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
28c0b714ac7f6c98d63aab106447bfd1e727fae2 26-Jul-2014 Jorim Jaggi <jjaggi@google.com> Use finger velocity for ExpandHelper

Makes sure that the animation continuing the expand has the exact
same velocity as the finger started the expand. At the end of the
animation, the velocity slows nicely down (reusing logic from
FlingAnimationUtils, yay!).

Change-Id: If9a286a1a3d1bde649cf0475367a63a2188ca3c0
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
7b41467704f941b11af6aace3e40993afc7f6c6f 18-Jul-2014 John Spurlock <jspurlock@google.com> Zen mode filtering should use new usage constants.

Refactor stream-based calls to usage-based calls.

Bug:15279516
Change-Id: I3f7757d8123c14670e2ad5f8e6aa4e9803efe7ec
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
787a0af8ebba004a6f1cd3bfe8c78d851003d227 04-Jun-2014 Jorim Jaggi <jjaggi@google.com> Fix not being able to dismiss notifications with tap.

Also fixes that the go-to-shade gesture sometimes triggers the unlock
hint animation.

Bug: 14487435
Bug: 15421928
Change-Id: Ie7e01c81a397b9b1a03baed82c1270ba4e7eb799
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.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/ExpandHelper.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/ExpandHelper.java
be565dfc1c17b7ddafa9753851b8f82849fd3f42 28-Apr-2014 Jorim Jaggi <jjaggi@google.com> Refactored the layout of a notifications

Notifications now consist of ExpandableViews instead of SizeAdaptiveLayouts
to avoid layout passes during the resizing. The StackScrollAlgorithm and its
States are also refactored in order to support the new behaviour. In addition,
the generation of the outline is moved to the notification views instead of
the container which contains them.

Change-Id: I1ac1292a6520f5951610039bfa204c204be9d640
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.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/ExpandHelper.java
343e6e258ab6a9f647eabebaed05ce3acafd2ff1 11-Apr-2014 Selim Cinek <cinek@google.com> Avoiding intermediate states in NotificationStackScroller

The StackScrollAlgorithm was modified such that the notifications
now don't layout anymore during scrolling and therefore
intermediate states are avoided except for the first card.
Also made the top stack a bit smaller and fixed a bug where the
scrolling was not working on the very first try.

Bug: 14080821
Bug: 14081652
Change-Id: I924a9f8532486856fc2ecd88f6c10d26023a5bc3
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
b6d85ebfe4f9f5d3b7d7ab7b6123af02a0deb516 28-Mar-2014 Selim Cinek <cinek@google.com> Enabled the new notification shade and improved expanding logic

Made the NotificationStackScroller now the default and only shade.
When the notification shade is expanded, the NotificationStackScroller
now also expands revealing the notifications.

Change-Id: If989ed848f684b3ac4e687d9642289db4599553b
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
de3b1a2b2d3056cb7caa5cdaac51fc9d80e1e3c5 31-Mar-2014 Chris Wren <cwren@android.com> add a null check around scrollAdapter access

Bug: 13727213
Change-Id: Ia92c06b66fc4712a758bf813c30f543b08546a80
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
fab078b01fbad026f006744016272327f7ab116b 27-Mar-2014 Selim Cinek <cinek@google.com> Improved expansion logic of NotificationStackScroller

Expansion of a notification with a single finger is now possible
if the NotificationStackScroller has not started scrolling yet.

Change-Id: I96b622632b448915526dd08cc2e4771d404b096f
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
f9e1a0b369740e11ea1ed4f141ffb936fc1a6cdb 20-Mar-2014 John Spurlock <jspurlock@google.com> Annotate framework vibrate calls with stream hints.

Migrate existing framework usages of Vibrator.vibrate to use
the new overload with an explicit stream hint. This prevents
them from being blocked by rules targeting the unspecified stream.

For calls that pass the existing appops check in VibrateService,
pass streamHint down to the input device vibrator so we don't lose
the signal, but leave it up to InputManager to decide what to do
with it - currently unused.

Change-Id: I65c944e4010edea29a412bf57d8d7d3b8098b746
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.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/ExpandHelper.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/ExpandHelper.java
de84f0e77ea2bf713d15c290264059a413c2486a 12-Jun-2013 John Spurlock <jspurlock@google.com> Organize the imports in systemui.

To follow android conventions, more importantly to remove the
unused.

Change-Id: I75881718e84360a579a3b02c26489ad250bc9227
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
cd686b5b6d4166b510df8e32138479a9559bc117 05-Jun-2013 John Spurlock <jspurlock@google.com> Migrate systemui Slog calls to Log

Change-Id: Ib6734c85960f06fed646599565b8eeba26b9e98e
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
ac47ff70c322614ff2ca9ad82fe41338daf55877 23-Oct-2012 Daniel Sandler <dsandler@android.com> Reset ExpandHelper when the panel is collapsed.

Fixes a rather unpleasant bug in which the ExpandHelper
could get locked in "expanding" mode if the panel was closed
(for example, with the back button) while you were in the
middle of an expand gesture. In this situation ExpandHelper
would hungrily eat all future touch events destined for the
notification panel, making it impossible to click or even
clear any notifications.

Bug: 7330828
Change-Id: I9c493db5e8fd8ef1aca53f77820780d60fa4e5a7
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
cea520747f344204a78db9d3f7f1abe3f695f49f 11-Oct-2012 Chris Wren <cwren@android.com> resolve conflicting assumptions from the merge.

Bug: 7300843
Change-Id: I5894fba34550d1b98f6cbe5ca808820b70e19819
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
4377d1494cab30ab299f6065cf6857df7367db3b 11-Sep-2012 Daniel Sandler <dsandler@android.com> Port unmerged notification changes from jb-dev to jb-mr1-dev

Bug 7150006

Single finger notification expansion.

If you liked these changes...

Change Ie4e79aa5
Change I8a6f8606
Change I824937e9
Change I957b6d50

You'll love this one!

Conflicts:
packages/SystemUI/res/values/config.xml
packages/SystemUI/res/values/dimens.xml

Fix notification gestures.

Broken by recent changes to ScaleGestureDetector, which we
were using incorrectly.

Conflicts:
packages/SystemUI/res/values/config.xml
packages/SystemUI/res/values/dimens.xml

Change-Id: Ie534c5b2d320296531a36a9b1c22f9dd6901e0b8
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
3ddab0dcc1039137f05a28ff86477601a223a0fa 02-Aug-2012 Chris Wren <cwren@android.com> Don't allow the status bar to collapse things we're touching.

Bug: 6538918
Change-Id: Ie4e79aa593ac2097d0e6402f84816df934160687
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
86d00fb40ae5cd01ce5a2e228e6de777eae6dee8 01-Aug-2012 Chris Wren <cwren@android.com> Venetian blinds policy for one-finger notification expansion.

Bug: 6538918
Change-Id: I8a6f860684b2477571f69eb4a79a5c106251b1a8
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
e46647d28467ee9e88aafe2951a5736f494235da 20-Jun-2012 Chris Wren <cwren@android.com> disable debug mode on ExpandHelper

Change-Id: I97520643d754e29ea295d868cbbb79b76ef74f3a
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
3c148f106f6625ce247a2c7211682c3a1df89bc9 19-Jun-2012 Chris Wren <cwren@android.com> One-finger notificaiton open: pop the next item too.

Bug: 6538918
Change-Id: I957b6d50220c57b588b43825767f24ecee862754
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
b4e2c48b4d75e7d68209412152011441fb6deda3 15-Jun-2012 Chris Wren <cwren@android.com> open notifications near the top with a single finger.

Bug: 6538918
Change-Id: I824937e9acd8f20449c31f8d83dbd90ecbb75ef0
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
7a1a406b24c235ce59c13126d20cfb101c4e2777 18-Jun-2012 Daniel Sandler <dsandler@android.com> Turn off debug logs.

Also switch to Slog, which is more appropriate for framework
logging.

Bug: 6684167
Change-Id: I829de86702a9952ce42ec9967c8d493529253426
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
9b2cd15f0fed990f532f35590c2a2896b90dc7fc 11-Jun-2012 Chris Wren <cwren@android.com> Invert the sense of the two-figner direction on tablets.

Bug: 6506376
Change-Id: Ife336c6695608f14554e18e32ea35f118d7f12e2
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
8900e631940fdffe7b941b56dc0f17e55345441e 25-May-2012 Romain Guy <romainguy@google.com> Tale of status bar on crespo, part 3
Bug #6541079

The vanished shall not be forgotten.

Change-Id: If01a53d8c203ef82e54d0b440063a8dbebe7b14a
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
5de6e94e36e2adbdd4ebfb5c1903c23c9ea3c388 16-May-2012 Chris Wren <cwren@android.com> Allow pinch gestures to spill over into the shade header.

Bug: 6430396
Change-Id: I62c242f11f47c5e6fff25c31716465b3e777d4ab
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
8fd12657e353a4a6f6d875a0d86850426fec00e8 10-May-2012 Chris Wren <cwren@android.com> Auto-expand the top notification.

Bug: 6455789
Change-Id: Ia455f204544ad0c41ace77ea3ece6e0d3d3110d9
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
89139d74b27305a29ca082c75d94dcbed5f84625 07-May-2012 Chris Wren <cwren@android.com> Allow more kinds of two-finger gestures to open and close notificaitons.
Also make sure glow always animates to zero when set to zero.

Bug: 6430737
Bug: 6423826
Change-Id: I1ebeb6c0012ac17a942901bfd22e579393348584
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
ba925e8ecd9decff5701001a0190042d6797942d 20-Apr-2012 Chris Wren <cwren@android.com> animate the notification glows in and out

Change-Id: I9d43f01dcae9a896fc981e35434001e916bcf21b
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
80a76276dc9440ffad30dc4c820eb7d65f4df368 18-Apr-2012 Chris Wren <cwren@android.com> Add visual feedback for notification expandability.

Change-Id: I0b82a465a126a6d0ec6cf6af87dc56817765b995
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
6a858c347f4d4e5db4c8f00d5e285967631b71ca 12-Mar-2012 Daniel Sandler <dsandler@android.com> Gestures for expanding notifications.

Change-Id: I104c157ffcc2d60b3f0a95c59d4322b07103b69f
/frameworks/base/packages/SystemUI/src/com/android/systemui/ExpandHelper.java