History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
9e624e732aa5646c83d203587be9c2c4e94c9266 20-Jul-2016 Selim Cinek <cinek@google.com> Fixed a bug where notifications could reappear

With sensitive notifications a user could get into
a situation where the groupsummary would not be cleared
because its dismissability was never updated and based
on the visibility of the veto button. This is now corrected.

This Cl also cleans up the veto button handling overall and
ensures that there's no stale state arond it.

Change-Id: Ic7df8d382146d7863ee551c1daa8ba5ed384c7b5
Fixes: 30056258
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
0fdf574bc891a0f98b17159ee9156dae4044577c 27-Jun-2016 Jorim Jaggi <jjaggi@google.com> Fix smooth panel deceleration

State of dismiss view was wrong when the panel was closed, thus, we didn't
apply our logic for smooth panel deceleration anymore.

Bug: 29579394
Change-Id: I79718517e776adad092457aba6db18219998fde1
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
6b6bf9cd54d8f0946d9bba3f9ca222757e879d4b 22-Jun-2016 Mady Mellor <madym@google.com> Merge "Don't show the shade background for heads up notifications" into nyc-dev
53ac1ef993e4bdce0d155fa00a133540f29af0ed 20-Jun-2016 Mady Mellor <madym@google.com> Don't show the shade background for heads up notifications

This looked weird when dismissing.

Change-Id: I9c4256a4c8792c4ff81d3cf1e34c45591853c206
Fixes: 29462609
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
38d429f4395b3bac933ad8a77ab224659f9bb2e5 03-Jun-2016 Selim Cinek <cinek@google.com> Handled expandability and swiping while guts are exposed

Also fixed a bug where the wrong guts were selected with groups.

Change-Id: I3677ce549b2a90e2dc225470cff4e2548ddca81a
Fixes: 29046865
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
c128f227872e0ab9b9976fca1eb7475e94bb4bfe 26-Apr-2016 Mady Mellor <madym@google.com> Ensure background is shown behind gear when notifications overlap

Uses clipTopAmount to achieve this and removes clipTopOptimization.

Bug: 27310381
Change-Id: I14da1eb062a0d7751b16bfc401d70de7981e9c07
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.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/statusbar/stack/StackScrollAlgorithm.java
d1ad9ab3121cb54387c5d2b71b48708dcaed5c43 02-Mar-2016 Selim Cinek <cinek@google.com> Adjusted the behavior when expanding the notification panel

The topmost notification is now not collapsed anymore but slides in
expanded from the top. Therefore it's layout doesn't need to animate
anymore. This also cleans up a lot of code in the algorithm which was
depending on this resizing which isn't needed anymore.
In order to have that transition working perfectly, the padding when
collapsing a card is now the same as the slowdown length.
Also improved the logic when notification contents are allowed to
animate and when not.
Also fixed a bug where the top notification was cut off when QS was
expanded.

Bug: 27402534
Bug: 18434284
Change-Id: I31afa199d38d94e74fd45500c2236ffdb51d989d
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
42357e030c095867b95e2e8a718649587c5ebf52 25-Feb-2016 Selim Cinek <cinek@google.com> Make group expanding nicer

The group expanding now follows the finger.

Bug: 19437552
Change-Id: If85557bb75ea2f2e560cb28d62a06c217187c9c3
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
3322357b5045fdcc3e3b04c65219d39ce1ae441f 20-Feb-2016 Selim Cinek <cinek@google.com> Added fake shadows in order to have the shadow nicely fade in

Bug: 26743157
Change-Id: I21c51aa3175276f7edeed4b6df6b8730909b6051
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
3776fe007550451bb237c705d333247eab2a291c 04-Feb-2016 Selim Cinek <cinek@google.com> Removed the notification scroller top stack

The top stack is now removed and the notifications
can scroll below the quick settings header.

Bug: 24866646
Change-Id: Ia480a0efb3ed70a072e0596633063cc0cbbdf1fb
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
61633a8db8dfdefa84b4444a7ae668d0e24f53e9 26-Jan-2016 Selim Cinek <cinek@google.com> Added bigger notification paddings above and below groups

Bug: 24866646
Change-Id: I0bca7a1abcbc0fa816aeed5729e650de24f523f0
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
277a8aa409def1a35eb662c974b91c0f133926aa 22-Jan-2016 Selim Cinek <cinek@google.com> Replacing alpha with shadowAlpha

Change-Id: I1fc75e395321d77fb959dd3e8ce520bd8378cfeb
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
cacc604115f1c05d700e5cd4fef7b0ac2bacb629 22-Jan-2016 Selim Cinek <cinek@google.com> Fixed the divider height to be at least 1px high

Also adapted the children divider to be consistent

Change-Id: I158167f70e9e0bc9e251785078a4b271720919c5
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
587cbf30a7be07b502ab78b21c9f4e24370f8fce 19-Jan-2016 Selim Cinek <cinek@google.com> Remove the scale animation from the lockscreen

With fullbleed notifications don't scale anymore when clicked.

Change-Id: I75fadb5e6ccb7f12ca8fc1cb9459c6d9576f4abd
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
33d4614dfe2b9f89f653210b8609fca4f27c7fe9 16-Jan-2016 Selim Cinek <cinek@google.com> Removed notification top padding

Moving more to fullbleed

Change-Id: I28e52963315bbec37819a355dc3f198431e9daee
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
ca85ef85379d918f476a58d84b1529d640297629 16-Jan-2016 Selim Cinek <cinek@google.com> Removed round rect clipping for notifications and qs

Change-Id: I82459dabb2b41e414d46b624eeb6dae5773acc66
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
31aada4ef4ff37f8cdc110b196c06918841647c7 19-Dec-2015 Selim Cinek <cinek@google.com> Enabled usage of expand button in heads up notifications

Heads up notifications can now be expanded with the expand
button. The notification stays there until the user dismisses it
or collapses it again.

Change-Id: I0f1b729915317bbbd6f13c3d968c933ffbe6feeb
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
b55386d64aeb80f74ed21035d1e389d86be89db6 17-Dec-2015 Selim Cinek <cinek@google.com> Fixed the minimum height of groups on the lockscreen

Also caching the notification minheight in the algorithm
far less agressively, because it led to bugs.

Change-Id: I57155103bf2700be2e98e686fdd0077ce8e8405b
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
af0dc31892d03670e22e5e33e6a0b345be701b9d 16-Dec-2015 Selim Cinek <cinek@google.com> Reusing the notification algorithm now when rotating

The notification algorithm had some state which was simply
dropped on rotation and therefore weird things could happen.
This is now fixed.

Change-Id: Ibb3d007b3298f745743bd3a5889bccebebf8105a
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
496126aa813df9517e6ca0eec983849e5fc1bbaf 12-Dec-2015 Selim Cinek <cinek@google.com> Fixed a hole in the shade that could exist with heads up

Change-Id: Ia7c36c717287e1c63218c105da83b41f0a40bc4b
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
3e88137c6fac46454658119645df8214f4dd1609 11-Dec-2015 Selim Cinek <cinek@google.com> Fixed that notification stacks could overlap weirdly

When a child got really big the stacks could weirdly
overlap making parts of a notification unreadable.
This is now fixed.

Bug: 26127189
Change-Id: Icbe9063d8f9ad5ec27934643c8977e375addd07c
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.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/statusbar/stack/StackScrollAlgorithm.java
65b2e7c6cbcd41985ab007eec3a21aad75dfc983 26-Oct-2015 Selim Cinek <cinek@google.com> Update the notification templates

Most of the notification templates have been updated.
Some cases like media notifications don't yet work well
but will be fixed in a later CL.

Bug: 25376106
Change-Id: I26c366e58ebba3852cea20de6fca311bd302bb24
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
83bc78338437a460076a4b5778ded38440ac3501 22-Oct-2015 Selim Cinek <cinek@google.com> Changed the appearance of notification bundles

Children now show up as one line notifications even
if the summary is not expanded. The childrenContainer
shows a summary if there are some which don't fit
in there currently.

Bug: 24866646
Change-Id: I0cfae9342722c9f8941f51704618190cfe4e76b4
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
2cb7004928e4bb34022e3ced112c2917fc5362f9 24-Aug-2015 Jorim Jaggi <jjaggi@google.com> Scale notifications on lockscreen for 420 dpi devices

Bug: 23299488
Change-Id: Ied4505532aad41a3a1469efce2464a491661fb6c
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
f92a1fdb77311149189ae17244adc51017b89c1e 01-Aug-2015 Selim Cinek <cinek@google.com> Fixed a bug where notifications shadows were blinking out

Bug: 22567770
Change-Id: I2d335241a287d0c64e659221994f19b7c13eccd3
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
9c17b7749377a047794157bc066e45d985cabf52 08-Jul-2015 Selim Cinek <cinek@google.com> Cleaned up the clipping logic for the dismiss motion.

Notifications are now not clipped anymore during the animation
and it is ensured that the State is always correctly reset after
the animation.

Bug: 22232352
Change-Id: Ic873a0b119d5f71c29f5fd9b76a7bee1ae74638b
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
79d79c455beecf7a70460575ab21d9bf49767e2c 22-May-2015 Selim Cinek <cinek@google.com> The heads up now have a margin on top and don't stick to the edge

Bug: 21337754
Change-Id: I199bc0732df62eadc2458db12a7c1059da988020
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
131c1e2960fa5bdf54bfb6fcd5ac98c9f728f796 12-May-2015 Selim Cinek <cinek@google.com> Made sure that HUNS with full screen intents stay pinned

When a HUN came in with a full screen intent came in and the shade
was open, the notification was not pinned and therefore got lost
when the shade was closed, potentially leading to missed alarms
or calls.

Bug: 20431566
Change-Id: I0d5da0f9baba8d9f68ba2755c40c5fd9a8471191
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
8d5727f6e93bec98f7de622583d0c2b70fa750b6 29-Apr-2015 Selim Cinek <cinek@google.com> Fixed a bug where the notifications would jump when going to the full shade

Change-Id: I811f3cd543f0e69d06bfe692435c579b7844173e
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
684a442b812a5e95d813700ffa2fd17ca72048a7 16-Apr-2015 Selim Cinek <cinek@google.com> Follow up CL for heads up notification refactoring

Change-Id: Iaf286dfd30a86d3d7d6dd947d3c10ac9eb8c2b1e
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
a4baaa3269871ab0e14c3990a41b4e1211a66d83 20-Apr-2015 Selim Cinek <cinek@google.com> Made StackScrollAlgorithm HUN logic only depend on children

A racecondition could trigger that the two states where not in sync
anymore. We now only rely on the ordering of the children.
Bug: 20421801

Change-Id: I3b607adb3b4b22f04f465d5e5e23f6e514c35ef9
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.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/statusbar/stack/StackScrollAlgorithm.java
1f3f544f21cab3728f749ab66cd6859e9dfcf389 11-Apr-2015 Selim Cinek <cinek@google.com> Fixed more heads up bugs

Change-Id: Ibfb6656deb3bc588fc9292a672a5e4d4d1de4d23
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.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/statusbar/stack/StackScrollAlgorithm.java
8d490d427c0b0cc321ae61987bb3cfc1c23ff930 10-Apr-2015 Selim Cinek <cinek@google.com> Treating headsUpViews now as real notification citizen

Previously headsUpViews simply were replacing the content
views, now they have their seperate space.

Change-Id: I6b094975cdfdf5e082d546dd7a0bf633335f4ef8
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
a59ecc3401de0c4bf1e13665158f54669f22d06c 07-Apr-2015 Selim Cinek <cinek@google.com> Handling a few more border cases with HUNs

Also does sorting correctly now.
The status bar now allows touches below when a
heads-up is on.
Also fixes a few flashes when a heads up was
dismissed or appeared.

Change-Id: I4d90a07333ad2e5ea2a13704cdc9d9184716681a
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
b8f09cf5533d458868a335ce334e4880b2b0788d 17-Mar-2015 Selim Cinek <cinek@google.com> Integrate Heads-up notifications into the shade

Change-Id: I4ca0fb4e76e7c974490538c168da0564fe97e0ae
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.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/statusbar/stack/StackScrollAlgorithm.java
b036ca4de8e93d83bcdc093fbf8f096dc18a810d 20-Feb-2015 Selim Cinek <cinek@google.com> Made stack scroller animation and apply logic reusable

Change-Id: I5d513dfc91b2a041ccefaa65074a64d1f211ec4a
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
c5baa3eb0893cb764e7810f8c68e89b04653df86 29-Oct-2014 Selim Cinek <cinek@google.com> Fixed a bug with notification clipping

The clip rect was not correctly set for a view which
was fading out leading to some overdraw.
It also fixes a bug where the alpha was not applied when
made invisible.

Bug: 16077953
Change-Id: I4c26aee88c5c87147df31ec7fb413bc63cd2625c
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
02af41efe54eb2cc8fde7311e4cf5f0e5ff2373c 14-Oct-2014 Selim Cinek <cinek@google.com> Fixed a bug when double tapping a notification in the normal shade

This fixes that sometimes holes where created when grabbing the panel while
closing the shade (eg. double tapping) or the notifications did not disappear.
It could also happen when using the clear all button.

Bug: 17969040
Bug: 17899136
Bug: 17961295
Bug: 17551216
Change-Id: Id7aa37bbcbae504039f90686e2bc364d18685205
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
4538cee46d3aa91c85a453049d2b2284b799c66a 09-Sep-2014 Jorim Jaggi <jjaggi@google.com> Do not dim the non-activated notifications on lockscreen

This fixes a lot of jank when showing all cards by tapping the more
card, because this lead to layer trashing in every frame (the
background was updated as well as the overall alpha for the card).

Bug: 17419967
Change-Id: Ib39af6eaab26409eedff72c921e9aa1ede31b830
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
06c19ea00190e69496be048758101f84f3bc43ad 05-Sep-2014 Jorim Jaggi <jjaggi@google.com> Remove the scrimming of notifications

Not really needed anymore and adds a lot of overdraw. Let's get rid
of it.

Bug: 17287256
Bug: 17346296
Change-Id: I319596f7059b6ed0d3d7a578d3c786921001f4b5
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
afd7f117b3cb7711f2b54ff919aca0aa6a6b4da8 15-Aug-2014 Selim Cinek <cinek@google.com> Merge "Fixed several bugs with the notification shade" into lmp-dev
31094df5c6e3cb3a4a4faacb091e35eea1f6a5de 14-Aug-2014 Selim Cinek <cinek@google.com> Fixed several bugs with the notification shade

Cleaned up the code around mMaxPanelHeight of the
PanelView which could lead to flickering during
peeking.
Changed the panel opening logic to account for lag
when we need to wait for a layout, which could lead
to inconsistent animations.
Fixed a bug where holes could appear in the shade
when notifications were updating.
This also improved the general updating behaviour
which is now done in a nicer animation.

Bug: 15942322
Bug: 15861506
Bug: 15168335
Change-Id: Ifd7ce51bea6b5e39c9b76fd0d766a7d2c42bf7a4
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
d7c1fae12ef0b31c225ef130e6b06445b5af53a9 13-Aug-2014 Jorim Jaggi <jjaggi@google.com> Don't scale notifications on Keyguard for devices < xxhdpi

Bug: 16824061
Change-Id: Iccccebcd17357764aef325df0cd220508fcf7403
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
4581cf820637301dffa7dab0d59d92929b19e9c1 12-Aug-2014 Selim Cinek <cinek@google.com> Fixed a jump in the stack scroller algorithm

The bottom stack jumped slightly when scrolling in landscape.

Bug: 16954513
Change-Id: I11ed9074cf5286b01f4f57ce37b4476c2ee9cd7e
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
3afd00e9f2b55a21ca378d6e520d24283dbb62e0 11-Aug-2014 Selim Cinek <cinek@google.com> Fixed a bug in the notification stack algorithm

Bad holes could occur when a notification was at the same time in
the top and the bottom stack. This also improves the landscape /
smallscreen interaction with the shade.

Bug: 16715133
Change-Id: Icbb4d080e658f4ddbd39b7d08652ca5311a47978
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.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/stack/StackScrollAlgorithm.java
3107cfacd34ded2508ab03c896e1ce894de0c795 22-Jul-2014 Selim Cinek <cinek@google.com> Fixed a bug with low priotity notification coloring

When there where only low priority notifications, the topmost
notification was not colored correctly.

Bug: 16197778
Change-Id: I9fe8da79cfa78a3b94a3107c9e1af83b859a093e
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
362dd6d632f0eb63de4edf4a6eec281342391d9f 09-Jul-2014 Jorim Jaggi <jjaggi@google.com> Add glyph rerasterization hack for SystemUI.

Change-Id: I39d84e981b828b501801349d7a5e70a089b5f14e
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
d83771ee46076d74fa7284a5a5867bc9b0ce20be 04-Jul-2014 Selim Cinek <cinek@google.com> Fixed a visual stack collapsing bug

When the stack is collapsed, the second card is padded slightly
to appear as if it was in the bottom stack.

Bug: 15169254
Change-Id: I9e9418dc057ffec01c7f56358ec60bac477497a4
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
ad3e5afdd2dad5ae9144db1cdadd968ba6f306b1 04-Jul-2014 Selim Cinek <cinek@google.com> Fixed some logic in the stack scroller algorithm

Also made the top stack slow down a little bit smaller, such that
the speedbump doesn't jump anymore when entering it.

Bug: 15022817
Change-Id: I66c3123a043c66fd9f8aaef50e5ffade4bc17989
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
4fe3e475eaeb88ec8f0bb580ee765ceefe13bcbc 03-Jul-2014 Selim Cinek <cinek@google.com> Fixed bugs in the stack scroller

- A hole could occur when collapsing and expanding in the same touch
- The second card was not correctly resized if the stack was scrolled

Bug: 15996450
Change-Id: Ie779ed5d63b8c55d490c459955bafbc583bfce97
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
3d2b94bf8e32640e57573ebb17911b1db9440231 02-Jul-2014 Selim Cinek <cinek@google.com> Made notifications below speedbump grey.

Also fixed a small scrimming bug where headsup where
scrimmed.

Bug: 15408642
Change-Id: I8319ccb001a1d654af055276de3c64ae388a7e47
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
697178b1244533adb0ffb3325c0a27a1fde6eaca 02-Jul-2014 Selim Cinek <cinek@google.com> Refactored the notification backgrounds

The background now only uses one specific drawable and emulating
the legacy behaviour by tinting. Notification backrounds are now
also a ripple drawable, giving feedback on click.

Bug: 15837646
Change-Id: Ia3b7dafebe2439cc56ed258264ef33b5b07faa69
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
2e34ec3cbbe595b646bd7f319fb369a37191847f 01-Jul-2014 Jorim Jaggi <jjaggi@google.com> Fix clipping of notifications on lockscreen.

Bug: 15942321
Change-Id: I5838c24987de9ed4d1df550df408536271b047f1
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
bf370992508c55d1f2493923bdc1834a0710e4ba 17-Jun-2014 John Spurlock <jspurlock@google.com> Create a basic doze dream in SystemUI.

The doze dream is not configured by default.

When configured, the doze dream does not show anything by default.
It teases a dark version of the keyguard (showing only the time
and notifications) when a notification arrives or significant motion
is detected.

Bug:15863249
Change-Id: Icfceb054d35d6fd4d9178eda7480e2464873ca4b
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
f54090e9bb23e9ed1b4d9e500d856f80d2fbe775 18-Jun-2014 Selim Cinek <cinek@google.com> Scrimming the notifications when QS is open.

Bug: 15394230
Change-Id: I4234bde0259ef296db73a43f69a765dbde5ddacd
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
4e456bee15e56e7cc09b62591613f0a794f077e3 12-Jun-2014 Selim Cinek <cinek@google.com> Fixed that the top card casts a shadow on the second

Bug: 15531609
Bug: 15381356
Change-Id: I0a85e43ac9c4330349fa46b3f00f7c0cf231520f
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
e299793343e6f169a110afb047414b48eef96550 12-Jun-2014 Selim Cinek <cinek@google.com> Fixed the calculation of the clipTopAmount which lead to holes.

The clipTopAmount was calculated with a cached value and not the
calculated one which could lead to weird holes in the shade.

Bug: 15588355
Change-Id: I281858e5b955c8846af8ab63e58211091559621b
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
429b1ab5cbd0e776c8b9f1d41d502db9d2dc5b44 10-Jun-2014 Selim Cinek <cinek@google.com> Merge "Fixed an issue where holes in the notification shade could appear." into lmp-preview-dev
32b5f7a0e8257f7eb265ef61ed22c1936d175690 10-Jun-2014 Selim Cinek <cinek@google.com> Merge "Added card elevation when card is clicked on the lockscreen" into lmp-preview-dev
7d447726e2cb9fae80db417012039828daab8fe7 10-Jun-2014 Selim Cinek <cinek@google.com> Fixed an issue where holes in the notification shade could appear.

When redaction was turned on, holes could appear.

Bug: 15107339
Change-Id: I8c2830caaa78f03c8ccada1a7160f73c906365d7
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
b89de4ec490c2c47a7aebf2caa4c9cdd5ed1010b 10-Jun-2014 Selim Cinek <cinek@google.com> Added card elevation when card is clicked on the lockscreen

Bug: 15381356
Bug: 15181880
Change-Id: I2dd08b80d2c6b7710d2772c8880b32ab23ec42f9
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
3cb07a462be293634e6a83ea6c82f3647cd17dad 06-Jun-2014 Alan Viverette <alanv@google.com> DO NOT MERGE Material theme

BUG: 15467097
Change-Id: I15191362e104a902895418fc615892c21db64c35
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.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/stack/StackScrollAlgorithm.java
708a6c120da6750d281195ef15a240a5627efed4 28-May-2014 Selim Cinek <cinek@google.com> Introduced animations for the clipTopAmount of notifications.

Bug: 14081264
Change-Id: I09ca8161807d9dea7ca118601ddff9a28c373de5
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
8efa6dde2b4f2cdbf046b87b7366404c3cc46219 19-May-2014 Selim Cinek <cinek@google.com> Improved the animation logic of the stack scroller.

Newly introduced appear and disappear animations when in the shade.
Also introduced individual child delays such that notifications
appear in a slightly more appealing quantum way.
Also fixed a racecondition, such that added notifications already
have their final visibility state when they are added to the scroller.

Bug: 14081264
Change-Id: I18f5c57c2206f8e05996253981f540e97521e102
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
8d9ff9c2c66bc1d3b92eb6992d58599ff80ed6dc 12-May-2014 Selim Cinek <cinek@google.com> Introduced overscrolling for the new notifications

Implemented basic support for overscrolling of the new
notifications.

Change-Id: Ie1c43a4f5efbd025614c33bcb8c03a4238fada75
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
b96924ddbf5283954f6f0f3af599844be1da1384 12-May-2014 Selim Cinek <cinek@google.com> Corrected top stack logic of notifications again.

Change-Id: Ibf514f6ed446574ebe0bf7cfed692197123384f3
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
34c0a8d72aee1867cf7b6d04531c7faec76ab473 12-May-2014 Selim Cinek <cinek@google.com> Improved the notification stack logic further

The more card is now working correctly on the lock screen, as well
as any other small cards. The slow down zone for the bottom stack
was decreased to allow for more real estate in the scrolling area.
Also improved the padding handling.

Change-Id: I4816d8a96fc365083412e46af88e740a3fc735bc
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
d552d9d8e964c102e6832610be46cf2c041e8829 07-May-2014 Jorim Jaggi <jjaggi@google.com> Introduce AmbientState for StackScroller.

AmbientState is a global state for the algorithm of the
StackScroller. Dimmed and which child is activated was moved
into this state. Further, scale and dimmed is also a
StackScrollState and animated in StackStateAnimator.

Change-Id: Ia68131cee62b2e0005f55ea6dc400d149ec15278
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.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/stack/StackScrollAlgorithm.java
9cbadd3c08a7d7dd3412743dd04aecb16c5a1595 01-May-2014 Jorim Jaggi <jjaggi@google.com> Always use algorithm to set the children height.

This makes possible to animate between different children heights
between the states.

Change-Id: I5d74814a84c7ff5406481c3ab0553530ee20997b
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
4a1ac84e35fe5a8b1f1de01193e51da173eea99c 01-May-2014 Selim Cinek <cinek@google.com> Fixed several bugs regarding the state of the notifications

Fixed an issue where the last card was hidden even though there would
have been enough space to show it when it was expanded.
Also fixed an issue where the first card was not expandable when it was
the only one.
In addition the scroll range was corrected, to ensure that the last card
could always be scrolled to full visibility, which was not the case
previously when the last card was expanded.

Bug: 14376035
Change-Id: I372a55dc1fc6e381dd9aef3d631447912e3d1024
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
8c1a44b62f82c956cbe4aa0809cbdf255d0fae1f 29-Apr-2014 Jorim Jaggi <jjaggi@google.com> Layout notifications on top and introduce artifical margin

This allows for animating the notifications between the different
states. So we can nicely switch between Keyguard and full shade,
and make the stack smaller when going to quick settings.

Change-Id: I768dc7cd8f4dc0197365a5befebad24086816a8d
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.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/statusbar/stack/StackScrollAlgorithm.java
d3406d7a1afd2b1ff3aea216fb74e402f1795888 28-Apr-2014 Jorim Jaggi <jjaggi@google.com> Merge "Flatten notification hiearchy and remove glow."
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/stack/StackScrollAlgorithm.java
2ba5f1f4e328dc2da47363a9feda75d5fdb9a4af 28-Apr-2014 Selim Cinek <cinek@google.com> Fixed race condition regarding first child max height

The scroller could crash due to a race condition when updating
the maxheight of the first view.

Bug: 14295010
Change-Id: I911c724a26c8624e2326118e3b392ee675001bc6
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
b6e0e1228bfd38f5ba971194afc5c31d99980fa1 23-Apr-2014 Selim Cinek <cinek@google.com> Fixed a bug where holes could occur in the new shade.

When a notification was never layouted before and it was the first
child, holes could occur in the shade when dragging down, because its
maximum allowed height was wrongly calculated.

Bug: 14080722
Change-Id: Ia10f9dd95f917d492411aec1da4ae0fc4d8f33d5
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.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/statusbar/stack/StackScrollAlgorithm.java
9f347ae27c9c9051f5130ac27fffb0e4fbef01a3 11-Apr-2014 Jorim Jaggi <jjaggi@google.com> Fix first child handling with GONE children.

Bug: 13635952
Change-Id: I970f39a2a33d957f32d3290999fd007f0d323b3b
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
584a7aa62c54bcbd654a6696d4fbb56e124874e7 10-Apr-2014 Jorim Jaggi <jjaggi@google.com> resolved conflicts for merge of ff0978fd to master-lockscreen-dev

Change-Id: I03881da30db8189005d50812e5528ed07cebd437
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/stack/StackScrollAlgorithm.java
d4a57440ca5fc8461959176475b0fcd8a6e05871 10-Apr-2014 Jorim Jaggi <jjaggi@google.com> Limit notifications on lockscreen to a maximum 4.

All the other notifications are going to be collapsed in a "n more"
card.

Bug: 13635952
Change-Id: I18471c7b18d05d27e92c49ee8214605f1a151927
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.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/statusbar/stack/StackScrollAlgorithm.java
6e3ecebcec1b82fd81f6d78b8deb5c4189b6026e 01-Apr-2014 Christoph Studer <chstuder@google.com> Expose locations from NotifStackScrollLayout

Expose the position each child is rendered at from
NotificationStackScrollLayout.

Also add OnChildLocationsChangedListener interface so listeners
can be notified whenever the rendering changes.

Change-Id: Iab8706fc2c435f2ddf64d280f428ed562db94f19
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
67b2260093774f5866f781aede52830440f4ed0e 10-Mar-2014 Selim Cinek <cinek@google.com> Initial implementation of NotificationStackScroller

Change-Id: Ida9a90ca4c9645166794afea8cf0c1d1b7afe1b4
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java