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 >>>)
d96ed40142b5c23e2f7c457644aac232dadd0adf 29-Jul-2017 Selim Cinek <cinek@google.com> Fixed a clipping issue in AOD

We're now guaranteeing that notifications beyond the first element
are hidden on AOD and not just based on the algorithm calculations.

Change-Id: I6c0cddbc2ac2c9544c010cd28f2a766c379700f0
Fixes: 64078213
Test: turn on redaction, add gmail notification with other notifications present.
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
ebf423466cff0b2db08d322dbf9772e9b1a3bbf1 13-Jul-2017 Selim Cinek <cinek@google.com> Fixed a bug where an incoming call wasn't launching

When the lockscreen isn't showing, but aod is, an incomming
call would not launch its fullscreen intent but show up in
AOD1. In addition was the display completely messed up and
overlapping other parts of the AOD screen.

Test: receive call while in AOD but not locked
Change-Id: Icc3e989167e72289ddcd0a62064526db9004cdc2
Fixes: 62402251
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
aa5569ef517e20b8df184200d45fddd9cc5104ea 01-Jun-2017 Selim Cinek <cinek@google.com> Merge "Fixed an issue where heads up where invisible in qs edit" into oc-dev am: 4827cb08cc
am: d83911cb2c

Change-Id: If38662e5ab91b09bed4bfa4657e9e9eb1ad4e7be
d3c523f4d8be3f51833f21ac11df20ba907a1e85 01-Jun-2017 Selim Cinek <cinek@google.com> Fixed an issue where heads up where invisible in qs edit

Because they were in the shelf, they were set to hidden.

Test: add hun while in qs edit mode, observe that it's visible
Change-Id: I2db88f0731be23bff35707a12fbe5da1eb6903cf
Fixes: 62237986
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
694e2c9651bc03d8301ca7a7f9073e86d1347d13 24-May-2017 Selim Cinek <cinek@google.com> Merge "Fixed that pinned huns could become clipped" into oc-dev am: 20e1c8c0f5
am: e249544b1a

Change-Id: Ibd37dee4154d9a478de8c0c6ee9907c2b64fc9c9
7e0f94863ff5013ccb25ace648b2dd39c2d42cdd 23-May-2017 Selim Cinek <cinek@google.com> Fixed that pinned huns could become clipped

Huns could become clipped and their actions hidden
after they were posted the first time.
They are now only pushed in if they are above the shelf

Test: manual, add huns, observe correct clipping
Change-Id: I3277da30397e7424c000098b822e571620dd1e08
Fixes: 38017936
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
9fe1ee7413d2d914cc24a1123a22dc5b16952b8f 07-Apr-2017 Anthony Chen <ajchen@google.com> Allow clipping of notifications to be toggled.

There are two clippings being changed. The first is the shrinking of the
height when a notification is being scrolled offscreen. This effect is
not noticeable on phones/tablet, where the background is a rectangle.
However, for Android Auto, the background is a rounded rectangle. By
allowing the clipping to be disabled, the notification now appears to
scroll off-screen and not that its height is shrinking.

The second modification is to allow the outline of the notification to
have rounded corners. This allows the outline to clip its contents along
the rounded edges.

Test: booted up on phone and Android Auto headunit
Bug: 33210494
Change-Id: Id41a57c9164cabe554b4c5b4d713e9d3cb805b09
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
daab6f5dbffa2683d5bdb636bd1e618095350c1f 07-Apr-2017 Selim Cinek <cinek@google.com> Fixed the visual appearance on heads-up notifications

Previously the wrong notifications were displayed on top
which could lead to heads-up notifications appearing
halfway.

Test: manual, add 2 heads-up see that the correct one is displayed
Change-Id: I723474e2fe1586e2011a9808f8b8c77a706a6070
Fixes: 36549554
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
a7ed2c1aaa49f0f53507fa3b7e832dca15997a3b 24-Jan-2017 Selim Cinek <cinek@google.com> Adapt the paddings of colored notifications

Colored notifications don't need spaces in between
them.

Test: existing tests pass
Bug: 34469375
Change-Id: Iebc374aa6349a542aee2fbc0998719174266fa21
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
cde90e504ea57f8129fb70d0f8418483136b3527 22-Dec-2016 Selim Cinek <cinek@google.com> Improved the behavior with the empty shade view

The empty shade view is now properly appearing

Test: expand panel without notifications, observe smooth transitions
Bug: 33652489
Change-Id: Idedb79121434b974ff221eefd4417c40b100a317
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
355652a6c8109a8706cf8c6157cfb1c1b0dcf06e 07-Dec-2016 Selim Cinek <cinek@google.com> Fixes that notifications were sometimes clipped on the lockscreen

When dragging down a notification into the bottom, the top notification
could become clipped.

Test: add notifications, pull down on last notification on lockscreen
Bug: 32437839
Change-Id: Ibb58d1aa7575fbe9d84b8542ac57ffae494bb127
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
7e7c6e2c8eb3b67dc497cbf520c694873ce83149 22-Nov-2016 Selim Cinek <cinek@google.com> Fixed the clipTopAmount when transforming into the shelf

The clipTopAmount shouldn't apply to notifications in the shelf,
since otherwise the background may flicker.

Change-Id: Ifac2b821896eaaeea81e44847579d8ec0ced816d
Test: expand notification, such that the background appears when being gone before, observe no clipping.
Bug: 32437839
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
b3dadccbc5c7040260a51a3e17efcb74aeec6a11 22-Nov-2016 Selim Cinek <cinek@google.com> Improved the clipping of notification groups

Groups now correctly respect the clipBottomAmount and
animations work much better when swiping things away.

Also removed the group measuring logic when expanding,
Since we're now not shrinking the first notification anymore!

This also fixed a bug where a child could be invisible

Test: Add group, swipe children away
Bug: 32437839
Bug: 33203156
Change-Id: I255aa9695086e64eb10c7dccdc6122d8a8572bb5
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
db16737031091160a3a7d080ac44ce2836402d74 18-Nov-2016 Selim Cinek <cinek@google.com> Fully removed the bottom stack

Moved the ambient notifications into the shelf
instead of having them behave with their own
physics. Previously the ambient notifications
were stuck in the old world behind the shelf,
but this doesn't make sense anymore.

This also fixed a bug where the notifications were
wrongly positioned on the lockscreen since the shelf
counted as a view that wasn't gone.

Test: add low-priority notifications, observe scrolling
Bug: 32437839
Change-Id: I3921ea9f80a06f1b6330315423b012174269ac8e
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
2e5a3fac6532512d891c2351796718659d59561f 17-Nov-2016 Selim Cinek <cinek@google.com> Fixed a bug where the first notification was cut off

When dragging down on the lockscreen, the first notification
would be cut off.

Test: drag down on a single notification on the lockscreen
Bug: 32437839
Change-Id: I4796661e63a94e598e5489377d7ecd67b35e6e88
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
c9c640fd86fab5cf046e20f7093fbb8c0e9f45c1 15-Nov-2016 Selim Cinek <cinek@google.com> Fixed a a bug where clear all was invisible

Test: add notifications, observe clear all
Bug: 32437839
Change-Id: I8e485d07b14b205d479594451f7dc998714d5b86
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
d127d7923191c5023db423952d639f6ec8aa86cc 02-Nov-2016 Selim Cinek <cinek@google.com> Modified heads up experience

When dragging down, the shelf is now hidden behind the notification
until it was fully revealed once.

Test: Add heads-up, drag down on it.
Bug: 32437839
Change-Id: I85133855428777a606a3039e26acf53e6e63a3bb
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
eccb5de73cf793bd8b32d8861140fbdbfae0203f 29-Oct-2016 Selim Cinek <cinek@google.com> Adapted the animation to the full shade

The background and the shelf now animate properly on
the lockscreen when going to the full shade.

Test: Go to lockscreen from keyguard
Bug: 32437839
Change-Id: Idd7e8325cc91464ed9c943c5ae311576d8aaaebc
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
cafa87f91da77cd2bc7f4a18bd12f6b71df23b5c 27-Oct-2016 Selim Cinek <cinek@google.com> Made heads up work again

Heads up notifications were completely broken before
with the shelf, but work better now.

Test: Add heads-up observe that it's visible
Bug: 32437839
Change-Id: I9ac08f4ea54a912efd53bb849b3223f534b76915
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
a686b2c9a91e2e6276676e5730339f7630e2f927 26-Oct-2016 Selim Cinek <cinek@google.com> Fixed the transformation into the shelf

The transformation was based on the intrinsic height but that doesn't
work since it can suddenly jump, i.e when swiping away the top notification.

Test: Add tall notifications, swipe top one away, observe no jumping.
Bug: 32437839
Change-Id: I68f83e167f73ca6c87a5838000b11029214e4ca3
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
c383fd0508783cf37e7bb7dde7b3989fceb608e3 22-Oct-2016 Selim Cinek <cinek@google.com> Refactored shelf transformation code to support animations

The shelf positions are now applied in each frame if there
is an animation in order to not have weird transitions
when a notifications moves in / out of the shelf.

Test: Add notifications, swipe one away see animation out of the shelf
Bug: 32437839
Change-Id: Ie50362c85ec2fb2a9822de6a387167913d7a58dd
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
48ff9b48335b6a22795f798ff07c9a6d83078c1c 10-Nov-2016 Selim Cinek <cinek@google.com> Improved the transition into the statusbar

When expanding, the shelf now transforms into
the statusbar, providing a more seemless transition.

This also modifies the panel peeking:
previously the panel was always peeking right after a tap timeout
which would take the panel away from the users finger.
The panel is now only peeking when the user clicked on the bar instead.

Test: Add some notification and collapse the panel. Observe nicer transition
Bug: 32437839
Change-Id: I772f6684e1cee2004e9b366d203a5c5188af4a93
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
ad7fac0659185f368fa067e2edc5dda852182efd 19-Oct-2016 Selim Cinek <cinek@google.com> Fixed the appearance of the shelf on the lockscreen

Previously the shelf algorithm wasn't applied properly
on the lockscreen.

Test: Add notifications, observe shelf on the lockscreen when collapsing
Bug: 32437839
Change-Id: I7c768e1450a86b5a8731c998ef58212550dfb4bc
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
281c202784fe6eecab4cc535461f1b12c85b2cc0 14-Oct-2016 Selim Cinek <cinek@google.com> Introduced the Notification shelf

Started the implementation of a new notification
scrolling model that dynamically transforms notifications
into a new icon shelf.

Test: Add notifications, scroll!
Bug: 32437839
Change-Id: Ic28cc1c82f2cda2ffa7a312648903b5bc2408820
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
bbcebde5f47d070d82270a367bec2f375c55d359 10-Nov-2016 Selim Cinek <cinek@google.com> Refactored the viewstates for more modularity

Viewstates are now much more independent of the
Stack scroller and can be used on their own.

Test: Add notification, everything still works
Bug: 32437839
Change-Id: I535ea9200dcaafef9eb833c2f0301cb09731542f
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
62c1ee207d9213de825f9f4a60abbe2086312af3 22-Jul-2016 Selim Cinek <cinek@google.com> Fixed a bug where notifications could reappear am: 9e624e732a
am: 7a9aa2e5f4

Change-Id: I9fffc5e24865b74200fce4128bc83031d00c5180
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
98ddda399b4272487dc84c60c70241c6a250edcb 27-Jun-2016 Jorim Jaggi <jjaggi@google.com> Merge \\\"Fix smooth panel deceleration\\\" into nyc-dev am: e858432241 am: 573e85fff8
am: dd56b1cbd3

Change-Id: I7b5e7037a7db9e7114b76b8510ab52fbfb4ece9d
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
0cd8685fc0efe8c5750f68d6ba5c8cf1f9d46458 22-Jun-2016 Mady Mellor <madym@google.com> Merge \"Merge \\\"Don\\\'t show the shade background for heads up notifications\\\" into nyc-dev am: 6b6bf9cd54 am: f56bcc7925\" into nyc-mr1-dev-plus-aosp
am: eff656f4ca

Change-Id: Ic790cbbb41468f440a34e7b38d8ff8fdf5bd3183
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
9b1d30ee900ae49ad717b1ef7eb685b96393402d 08-Jun-2016 Selim Cinek <cinek@google.com> Merge changes I0ca13626,I3677ce54 into nyc-dev am: bbcb733d80 am: 20367dbd3b
am: 3ada4842b2

Change-Id: I8fd4ce070667157371e18e15c2e145f1938aa0ab
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
29abe8b7284cc2b078afb2146769c9225375b7cf 18-May-2016 Mady Mellor <madym@google.com> Merge "Ensure background is shown behind gear when notifications overlap" into nyc-dev am: 048cabdbcb am: 573c36a484
am: f0b665f6e1

* commit 'f0b665f6e18a7a5ab67db10426700c3e1eb4fe57':
Ensure background is shown behind gear when notifications overlap

Change-Id: I98764977db122c57080f918939e8b2e6c913d8f9
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
8779802fa1a27c81215f8c0c469611bad41893f4 08-Apr-2016 Muyuan Li <muyuanli@google.com> sysui: refactored for extension.

Refactored StackScrollAglorithm and NotificationStackScrollLayout to
implemment pinned top expandable view. For StackScrollAlgorithm, the
logic of computing Y translation and Z translation are extracted from
the for loop body.

Bug: 27101250
Change-Id: Id54af4d758e9ed692c01363de90e85dee3b2d026
(cherry picked from commit 0f5a0d2ebdb7a979af48b42a00ff8d1f7b57a5b7)
/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