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 >>>)
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