History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
12e5db92bb66772ee7063f304b9b73bdedc36f32 08-Jun-2017 Selim Cinek <cinek@google.com> Fixed an issue where the icons had the wrong color

The color of the icons was taken from the ambient view
and wasn't updated when dark changed.

Change-Id: I472e76ff9d4d92500faae5517f10bdeb2658936d
Fixes: 62423352
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/ExpandableNotificationRowTest.java
(cherry picked from commit a7c69637f8fa7cc8c0e7ac7c4d73659730315841)
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
b6ed63b5670e64c853ad69bc2262c6ea88535f5d 31-May-2017 Lucas Dupin <dupin@google.com> Fix icon tint on notification shelf

Public layout icon color wasn't being propagated correctly.

Change-Id: I6396e8dc5a9a18f614afd0e184c99c6d799151cb
Fixes: 38371661
Test: runtest -x tests/src/com/android/systemui/statusbar/ExpandableNotificationRowTest.java
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
55a3e738a695d23982eb2e904f47a3435994a325 26-May-2017 Selim Cinek <cinek@google.com> Fixed a bug where min-priority were in the middle

The recent intrusiveness could elevate min priority notifications
temporarily and the reordering was also blocked while looking at it.
We're now allowing the shade to reorder if a notification updates to
min-priority.

Test: manual, add intrusive notification, update while looking at the shade to min
Change-Id: I75b23a7cbaecc8ae941d6680a924c79371c95991
Fixes: 37515606
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
91f41cea2e34f1a363e460627c82918da4826d5e 24-May-2017 Selim Cinek <cinek@google.com> Fixed an issue where groups could stay userlocked

It also fixes an issue where the reinflation wasn't
working properly.

Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/ExpandableNotificationRowTest.java
Merged-In: If359256a3ac0c574260b5ff5af3fc2042e1dce9a
Change-Id: If359256a3ac0c574260b5ff5af3fc2042e1dce9a
Fixes: 36469584
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
28f90c78b213fb436b243126e8bc10c4f554bd1c 09-May-2017 Adrian Roos <roosa@google.com> AOD: Update wakeup animation

Fixes several issues with the wakeup transition.

Bug: 34716110
Test: Trigger ambient display, press power button
Change-Id: I1fa6e0be13c80a84356a8826ed18e9477bf2aba2
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
bafe438d71e19ea3d8fb4a817220a9f0a2ba719f 10-May-2017 Adrian Roos <roosa@google.com> Merge "AOD: Notification groups on Ambient Display" into oc-dev
6f6e159484f7a82d0a2f867060ac4b17241f45a0 03-May-2017 Adrian Roos <roosa@google.com> AOD: Notification groups on Ambient Display

Bug: 36690937
Test: receive notification group on ambient display
Change-Id: I9dd91b85432e3d4309e0eb78a7b03ada87c3554e
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
97d52db8541de930871322847a36467c7a293e3b 10-May-2017 Mady Mellor <madym@google.com> Merge "Fixes issue where the notification menu was not visible after RTL changes" into oc-dev
d9c2232c9952d204a774041305b1ad5ce3d13715 05-Apr-2017 Mady Mellor <madym@google.com> Fixes issue where the notification menu was not visible after RTL changes

- Altered how the menu location is set so that it doesn't depend on RTL
state
- Also fixes an issue where if you change from landscape to portrait or
vice versa then the menu wouldn't be visible because the placement is
based on the width of the notification which changes based on orientation

Test: (1) have notifications and show the menu, toggle the RTL state,
show the menu, note that it is visible
(2) have notifications and show the menu, rotate the device, note
that the menu is still visible
Fixes: 36874498
Merged-In: I33b8f87e53a3393a2802842ad2196c9d089ec7fc
Merged-In: I3a3b688f2b301f5ac0446a55b668db79c323a95c
Change-Id: I3a3b688f2b301f5ac0446a55b668db79c323a95c
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
ac5f02749a595d39711beb4a1defb01949eb548a 03-May-2017 Selim Cinek <cinek@google.com> Fixed the contrast for low-priority notifications

The low priority notifications had their contrast calculated
against the white background and weren't satisfying
our contrast requirements.
This also aligns the case where the app had no colors better,
and ensures that it's actually using the secondary text
color there.

Test: existing tests pass
Change-Id: Ic11e9d06783e60998f35e0eb7f6f29fb1d86c7df
Fixes: 37444266
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
63edaf2a2c8fc1aeb71f05cbeb9a49e6b9534062 25-Apr-2017 Selim Cinek <cinek@google.com> Make music notifications not dimmable

For contrast requirements and for the image effect
to work properly, music notifications should not be
dimmable.

Test: add music notification, look at lockscreen
Fixes: 36561228
Merged-In: I58313e1828c64d34737390ad03e1deef078a7059
Change-Id: I58313e1828c64d34737390ad03e1deef078a7059
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
2630dc7ecf16a965321cfc615104f372cd2b0e96 21-Apr-2017 Selim Cinek <cinek@google.com> Moved notification builder creation to the background

In preparation of future colorization work, the creation
of the notification builder is moved to the background.

Test: manual, add notifications, update them etc.
Test: runtest systemui
Bug: 36561228
Merged-In: Iaec5febf4d8d9da348d77e0d4f6f61b9746fae16
Change-Id: Iaec5febf4d8d9da348d77e0d4f6f61b9746fae16
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
c1d9cdfe79edb9710e5ceb40a6ea53453b3a923e 19-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Update snooze visuals to match latest design" into oc-dev
1a1ecfcf5ae32482aee23ebc7c4389daf164cadd 17-Apr-2017 Adrian Roos <roosa@google.com> AOD: Implement redacted notificatinos

Test: Turn on "show sensitive notifications on lockscreen", receive notification, observe AOD
Bug: 36610748
Change-Id: I981ef4cea7cefc76dcd55ebad9d05c758927dabb
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
e09fb7029ac29f337b8d3b9e564e5b994a9ed927 30-Mar-2017 Mady Mellor <madym@google.com> Update snooze visuals to match latest design

Also updates it so that the height animates going from collapsed / expanded

Test: manual / runtest systemui
Bug: 36249479
Change-Id: Ice10e42986eddc9b87ba79cd00dfc59fefef5464
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
4c19760b9131a67b379f9b7060c5830cb5beaad7 11-Apr-2017 Mady Mellor <madym@google.com> Don't offer snooze for foreground service notifications

Also updates NotificationMenuRow tests to actually check if menu
was created.

Test: Manual, have foreground service, check if snooze is visible
Bug: 37152715
Change-Id: I09cf60598c3e8991f2da731da1ef7e0a718c3435
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
95d743c38c919dd500d9dcacf9f998500d403d9e 10-Jan-2017 Mady Mellor <madym@google.com> Add plugin interfaces to control notification menu / swipe behavior

1) Updates the notification menu plugin to do more:
- The plugin can now supply the view it wants to display behind a
notification as the menu
- Touch interaction (i.e. notification translating on top) is piped
through to the plugin so it can update the view behind the notification

2) Makes NotificationMenuRow an implementor of the plugin which moves
a bunch of that logic out of NotificationStackScroller

Test: runtest systemui
Change-Id: I8723b96c195ff7311317d5523418cfcbe2a79b52
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
1826d98381cd69fd4fdcf6ad527fec8ece22ec26 07-Mar-2017 Selim Cinek <cinek@google.com> Fixes an issue where the notification header could be invisible

It's not actually necessary to set the visibility of the notification header
since it is actually in the ChildrenContainer which already handles the visiblity.
This existed from legacy times where it was outside of the viewgroup.
When animating the headers, this could actually lead to blank headers.

Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/ExpandableNotificationRowTest.java
Change-Id: I7763b47340a347ed44fc9ce34a98f74c7e55ef8d
Fixes: 35993698
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
7cae77b606f72ffc29f642f8f419280698779d55 07-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge changes Iefcaf262,I9c397d83

* changes:
Fixed a bug where the expand icon could show but nothing happens
Improved expand accessibility experience
8729c7e2b716b0d8cac38aa65899db02b726cfd6 07-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fixed a crash when creating a public notification group"
2ffa02fcbb6359630a09e3d8617c514330ee31f1 07-Mar-2017 Selim Cinek <cinek@google.com> Fixed a crash when creating a public notification group

The method whether it was showing an icon was wrong

runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/ExpandableNotificationRowTest.java
Fixes: 35981843

Change-Id: Ieffeb7480960586fc644e04baaa0c28e98df7736
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
c0ac4af13bb18a516e26d2ddb94723ef9f970393 04-Mar-2017 Selim Cinek <cinek@google.com> Improved expand accessibility experience

The expand action is now on the notification itself
instead of the expand button, this way a user immediately
know if it is expanded.
It also improves the click feedback of the expand button

Test: add notifications, observe accessibility feedback
Change-Id: I9c397d839df52d5354d7ae16725ce3e595da19c7
Fixes: 32322410
Fixes: 35064589
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
c8007c59758b166f262f1e9d8ec19c36bf37b607 01-Mar-2017 Selim Cinek <cinek@google.com> Fixed a bug where the icon would dissappear

If we were inflated on the lockscreen as the only child
the icon would dissappear.

Test: send multiple messages, kill systemui, observe
Change-Id: I81c433292f6839920b99ac124ca1dd17eb6e962e
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
414ad33470789e9f9fc6c7b82ba684418ff5caa4 25-Feb-2017 Selim Cinek <cinek@google.com> Continued low-priority group implementation

Adapting the low-priority group implementation
according to spec. Expanding a group takes 2 taps now.

Test: add low-priority group observe behavior
Change-Id: Ic563a8fe0e71df746b9b548adc8d1698940b1a83
Fixes: 35125708
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
4ca6c63c96c23d47e9f35c333a2568a2f3feb9e6 24-Feb-2017 Selim Cinek <cinek@google.com> Worked around a bug where the view could render blank

Heads up notifications could render blank due to a
bug with invalidation. This works around this issue
by manually invalidating the parent.

Change-Id: I858d1c95bc936f5b14fc3485b2d54d76717c2537
Fixes: 34660898
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
c478f9023d7649d85e60759c9e6c0e033774293b 23-Feb-2017 Selim Cinek <cinek@google.com> Creating the right views for low-priority group children

Previously we always created the low-priority views even if it
was in a group, but now we use the collapsed or the singleline
one based on the group state.

Test: runtest systemui
Bug: 35125708
Change-Id: I49d418912f65c3bc8b672d383eb6a0526fcb8993
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
1a48babb5ed30e8a3eb9645355d6455b21041406 18-Feb-2017 Selim Cinek <cinek@google.com> Move the inflation away from the statusbar

Since the notifications need to inflate more dynamically
based on their own state, the inflation is moved away
from the statusbar.
This also improves the apply inplace logic, that was
reinflating all views even if only a single notification
layout was changed.

Test: runtest systemui
Bug: 35125708
Change-Id: I42a33065ab60b7c45ca979ae2d7baa1518bf92b7
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
e4b106b1aaf0f96a5006086d2a67e2c86e41c6a1 16-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix notification shelf icon showing on top of snooze leave behind"
9ce3285dc3a5da05d21b0b1c4628ea3bf86f6644 16-Feb-2017 Selim Cinek <cinek@google.com> Fixes a bug where children could have a colored background

Because notifications can have had an override color and could
then become children, the color could stick around.

Test: runtest systemui
Change-Id: Ie89807c41a12b2d4a405c77d6da1c4e4ac78b325
Fixes: 34740139
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
d4776a52b45a9f83f0c67f7e967c36ec9cb2c17a 15-Feb-2017 Selim Cinek <cinek@google.com> Made the notificationViewStates static

We shouldn't hold an implicit reference to the
row, let's fix that.

Bug: 35345204
Test: runtest systemui
Change-Id: Ifa0ba0bd07850ae575059b6368791d60d1091616
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
875ba9bd8ec0fa3d29fe27efcb3a20e53ce85f4f 14-Feb-2017 Selim Cinek <cinek@google.com> Fixed a few coloring issues

The color of the icon was happening in a
non-animated way. We're now animating the
color properly.
This also fixes an issue where the action
bar could be fully black.

Test: add colorized notification, observe animation
Fixes: 35308322
Change-Id: I4fbc1794fc027efb42eee3ee8f06fd9d8c513456
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
434180ce5155f0c405080698031f05e9eab3dd4c 13-Feb-2017 Mady Mellor <madym@google.com> Fix notification shelf icon showing on top of snooze leave behind

Also fixes an issue where the guts closed listener would always call
onHeightChanged because the notification isn’t marked as removed
until after the listener gets called.

Fixes: 34866027
Test: Manual - have one notification, snooze it
Change-Id: Ic67bdb353b8bb5df8bdaaf6d3e71ade7da05ee46
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
ef8c2257045f73f0576c90c05c715c5f31ef81d8 10-Feb-2017 Selim Cinek <cinek@google.com> Fixed an issue where children dissappeared the wrong way

Because we were comparing relative to absolute positions,
we need to calculate the next view the right way.

Test: add children in group, remove the last / middle one
Fixes: 35193074
Change-Id: I415a978b84d528ded402b99b872769b98aa49ec0
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
87ed69bd6b652c716364e05ba5bad6517eb005c8 10-Feb-2017 Selim Cinek <cinek@google.com> Heads-up notifications of increased height behave better

In the shade, the heads-up version when their height is
increased now behave better and the notification shows more
then a single message as well.

Test: add heads-up for messaging style notification while shade is expanded
Bug: 34469375
Change-Id: Ia3475eec5b4474aae950ef0eb84afb28689245ae
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
99104836083738f9e5e73ab4170879d91de6ba67 25-Jan-2017 Selim Cinek <cinek@google.com> Further improved the coloring optimization

Fixes a few follow up bugs from the colorized
notification CL.

This also allows media notifications with a media
session to be colorized by default.

Test: existing tests pass
Bug: 34469375
Change-Id: I36348591a84fcd39d103d0ae3f64720f2fca2cf2
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
f868efedd5d3a2a0d5b385104a580cbd7f54a63a 01-Feb-2017 Selim Cinek <cinek@google.com> Fixed the background for low-priority legacy notifications

The background color could be calculated wrong in case we
Had a legacy notification with a dark background.

Test: install legacy custom notification with background, observe
Change-Id: Ie2a8ba4012f30719c05115f51bfddbdc8e33e551
Fixes: 34856700
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
7d1009b3bd3b69768f293eb73109c52b8da8ec8e 26-Jan-2017 Selim Cinek <cinek@google.com> Increased the collapsed size of messaging notifications

Messaging notifications now get an increased boost in size,
since those are usually important to the user.

Test: existing tests pass
Bug: 34469375
Change-Id: Idfc2d2403b04c4c2d17b821e3ccbbbd48d31654d
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
2a6ea9c2a1b52b0386270ec73e1e6d6a9b614a34 26-Jan-2017 Jason Monk <jmonk@google.com> Delete BaseStatusBar

It is a relic of a more complex time, but has passed out of all
knowledge for too long.

Test: manual testing on phones and TV
Change-Id: I62a15d9413ea4bda3ac82bf6f7d22c096e2c1cdc
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
21c9a41a52adf36a8272311b19c2f0cda35c1d2e 26-Jan-2017 Selim Cinek <cinek@google.com> Merge "Adapt the paddings of colored notifications"
1bfd08f2335b4bf9da51e84debc0b8c9c520e667 26-Jan-2017 Mady Mellor <madym@google.com> Merge changes from topic 'nmr-plugin'

* changes:
Add snooze to notification menu row
Add snooze listener so that a plugin can snooze a notification
Change NotificationGuts to contain a view
Rename notification settings icon row / gear to notification menu row
Create + implement plugin for NotificationSettingsIconRow
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/ExpandableNotificationRow.java
87d7945f0693d3ca943bfb6491d4eba3a8d7cc75 10-Jan-2017 Mady Mellor <madym@google.com> Change NotificationGuts to contain a view

NotificationGuts is now given a view to display, the notification
management controls have been moved into their own view.

NotificationGuts is provided a view to show via a MenuItem.

This allows configuration via the NotificationMenuRowProvider Plugin.

Test: manual
Change-Id: I68cb23ea2cada30cc6e930fa8c03e0aa4014dfe2
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
761cde1173cdfbc058034ffb10283e5507ed0ed4 10-Jan-2017 Mady Mellor <madym@google.com> Rename notification settings icon row / gear to notification menu row

Test: manual
Change-Id: I3a84c5ea180bd1e53495c5a44a93fa1982056174
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
43c2cd1a4071e152e9f4aa9044b03a29cd5ada31 13-Dec-2016 Mady Mellor <madym@google.com> Create + implement plugin for NotificationSettingsIconRow

This will allow plugins to supply additional menu options to the
menu "behind" a notification.

This CL does not include behavior for when one of these new menu
items is tapped, this will be added in a separate CL.

Test: manual
Change-Id: I322f9f39d33b043bd23dcbede5dd15e6afa73fc1
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
6743c0bd52606444ce78316a7bbc51923a140a4a 19-Jan-2017 Selim Cinek <cinek@google.com> Started visual hierarchy for min priority notifications

Min priority notifications are now greyed out and in an
even smaller form-factor then before.

Test: add low-priority notifications - observe visuals
Bug: 34469375
Change-Id: I3ce2cbf22dbc3276ac738224a16c1b10165964f3
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
0aac04ff79b43933742d5ebdd8d7a94751ff6309 09-Dec-2016 Adrian Roos <roosa@google.com> AOD: Show ambient versions of notifications

Introduces a new visible type that is shown on ambient display.

Bug: 30876804
Test: manual
Change-Id: I889e386430eda79bb362313d9834aa7ecd829871
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
eb434ff5b7c9f3e1a601c623ce5af46322d28aa9 11-Jan-2017 Adrian Roos <roosa@google.com> Refactor ExpandableNotiRow

Test: manual
Change-Id: I00e2b7ed3b710d3d6b656dfabec209bb8b22f390
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
4dd5006ff58c3b1ee5a2e0db343170e7cbd1b585 06-Dec-2016 Geoffrey Pitsch <gpitsch@google.com> Change Notification Inline Settings for Channels

Removes slider advanced settings.
Move more Guts internals out of BaseStatusBar.

Test: runtest systemui
Change-Id: I0cf7f144859d1248bd54e281cfe0b35a817376a6
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
799992ef75b70f16eaf4aec1abcf20d77a39b370 28-Dec-2016 Adrian Roos <roosa@google.com> Ambient Display: Fix race with coloring and redaction am: e5726a2082
am: dff956b0e0

Change-Id: I18d7da64d56f70923926df6231472a2c3a909f15
01ee2cd5c4071f528d4b208deeec8d10eec5e1c4 21-Dec-2016 Selim Cinek <cinek@google.com> Allowing heads-up notifications now on the lock screen

In order to isolate notifications properly from their group
and in order to allow them to visually reorder, we now allow
heads up notifications on the lock screen.

Change-Id: I1d04a92e66ae92ecee4f8ee23b218c2b167dadd4
Test: existing tests pass
Test: add heads up on lockscreen
Test: heads up group child on lockscreen
Bug: 32442500
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
a1d9790735a183578ad8789234b7defd67ed0866 15-Dec-2016 Selim Cinek <cinek@google.com> Modified the way icons merge into the shelf

The icon can now also move into the shelf in an animated
way instead of just moving out of it.

Change-Id: Iba4ebd3cd48b5299b89bd0cb2b05bd318e352173
Fixes: 33463805
Test: add notification observe behavior when scrolling
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
e907911e63c979f36d4297aa9eefef1f194daecb 14-Dec-2016 Selim Cinek <cinek@google.com> Bye bye veto button

You were just overruled by the congress
of usefulness.
In other bad joke news: this also fixes a bug
where it was focusable.

Test: dismiss notification, observe it working
Change-Id: I6d170563d0c4371066ce7b149bc40053e41ca5e2
Fixes: 32127661
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
e5726a20824c3cb2ff369207c8d75bfcdb814f69 19-Dec-2016 Adrian Roos <roosa@google.com> Ambient Display: Fix race with coloring and redaction

Fixes a bug that could result in a notification being colored on
ambient display when redaction is enabled.

Only the showing layout (either redacted or regular) was be set to
dark. If the showing layout changed after the darkness changed, the
newly showing layout was not properly darkened.

Change-Id: I0930ebe8007634ee92e104573294b5c27f1bad82
Fixes: 33429653
Test: Enable redacted notificationsn on lockscreen, enter ambient, verify that notifications are gray.
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
a7d4f82c05f1c6ea5dd92a4871711d380b01100a 06-Dec-2016 Selim Cinek <cinek@google.com> Introduced the visual stability manager

Notifications used to roam around and reorder whenever
they wished. Those little beasts must be tamed, hence
a new visual stability manager is introduced that
dictates the terms of their interplay.

Test: manual: add heads-up and see if they correctly appear
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/notification/VisualStabilityManagerTest.java
Bug: 32442500
Change-Id: I8d7596fa7c14e0df68459a77d445f618d517ad51
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
17e1b69523086a98189178fc7f2b23d74860c738 03-Dec-2016 Selim Cinek <cinek@google.com> Improved the low priority behavior with the shelf

Low priority notification now don't just disappear,
but transform into an overflow such that there's still
some object permanence.

Test: add low-priority notifications, see dot transformation
Bug: 32437839
Change-Id: I90c03c7d88c01c199062bd5f7f0151629654a3a1
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
65d418ec8957fb1af03a8cc68aed90744a5848ff 30-Nov-2016 Selim Cinek <cinek@google.com> Improved the performance of the notification shelf

The shelf had a few inefficiencies that were adding up
when calculating the positions.

Test: runtest systemui-jank -c android.platform.systemui.tests.jank.SystemUiJankTests -m testNotificationListPull_manyNotifications
Bug: 32437839
Change-Id: Iac08a7c364a924f1d0c14258461383b431f0542b
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
2b549f4bd436787bd2543812b24add2d8c5b53ee 23-Nov-2016 Selim Cinek <cinek@google.com> Added possibility to use canned animation for icons

Icons now move in a canned animation from the shelf position
to the icon.

Test: adb shell setprop debug.icon_opening_animations true && adb shell killall com.android.systemui
Bug: 32437839
Change-Id: I82b6de37ac7a179aeb5d16bd663d566c2f338b1a
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.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/ExpandableNotificationRow.java
875a3a11e2bfcb10d873cd9b4272bed1edf3fe93 19-Nov-2016 Selim Cinek <cinek@google.com> Improved the transformation to an icon further

The content now shifts away more and without fading out.

Change-Id: I02b53400a68dc68ef49bc2bd830b51bced5a6ba1
Test: Add notification - test merging behavior
Bug: 32437839
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.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/ExpandableNotificationRow.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/ExpandableNotificationRow.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/ExpandableNotificationRow.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/ExpandableNotificationRow.java
0cfbef45f037efe966a5f57af63a328f6fd5d989 10-Nov-2016 Selim Cinek <cinek@google.com> Refactored the stack animation logic

Animations are now also applicable to normal views
and are more modularly applied to specific stack
view states.

Test: Add notifications, observe animations
Bug: 32437839
Change-Id: I75ebf98657749b50d43c88c4c39c5d4c302b1280
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.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/ExpandableNotificationRow.java
0242fbb9fdd7db0398a197d0e63d20dcac7cd916 19-Oct-2016 Selim Cinek <cinek@google.com> Adapted the icon transformation into the shelf

The transformation is now more refined.

Test: Add notifications, scroll
Bug: 32437839
Change-Id: I2d553b2305fae508d2eb94ca4cee18faa41815a1
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.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/ExpandableNotificationRow.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/ExpandableNotificationRow.java
383db5ebcc3a4a615faf249bf4f126f42e80b82e 22-Jun-2016 Tamas Berghammer <tberghammer@google.com> Update package names to work with the proto3 compiler

Bug: b/28974522
Change-Id: I5f3adf4946ee4ba1e09e4f40afe83c151405972a
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
5c69d776257a98ba0051360d0b8d8f34c26e74ce 14-Sep-2016 Mady Mellor <madym@google.com> Fix notification being slided over with the gear not showing
am: 32c638a597

Change-Id: I8c96e8dc9325bb5c78440a50888ada97fc4867b1
32c638a597dccbe4be600fd483060ee1466fdb04 14-Sep-2016 Mady Mellor <madym@google.com> Fix notification being slided over with the gear not showing

If a notification is updated to be non-dismissable it gets "snapped back"
into place, if the notification was slid over to show the gear when this
happens it'll snap back to the gear. If the screen is turned off during
this time, the notification tries to reset itself back over the gear.

The translation animator was not cancelled in the reset method, so the gear
visibility would get reset, but the translation animation to snap back
into position would continue. This results in the notification being slid
over but the gear being invisible.

The fix is to simply cancel the animator when the translation is reset.

Bug: 31437688
Change-Id: Icb9d777e30ee3a5578c49475b89f6d46c1096053
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
b438c11564dd9111bdbfd078665b8f29699d1eec 23-Aug-2016 Selim Cinek <cinek@google.com> Avoid weird expand animation when a notification is updated
am: bb42b7dd48

Change-Id: I68f50687c08ff6f9100d4bfcc2ac35ec52b98e09
bb42b7dd4892a8ab99f2f702cad931235d1d463e 10-Aug-2016 Selim Cinek <cinek@google.com> Avoid weird expand animation when a notification is updated

Whenever a notification was updated and it was expanded, the
animation would look incredibly weird. This is now fixed.

Change-Id: Iaeac6f71c3771c4782e751be50b54b62d08b643e
Fixes: 30693397
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
aa3901a5ee68a7256663daa88be92a5faa267c23 05-Aug-2016 Selim Cinek <cinek@google.com> Fixed a bug that could lead to an empty notification

With sensitive notifications, notification groups could
become empty.

Change-Id: Ibea016c64287d1952db136e038372b778d8febc2
Fixes: 30641080
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
7baaa9e82bebc6b3e7735828dbf67340eebc5821 22-Jul-2016 Selim Cinek <cinek@google.com> Fixed a bug where the fade in from dark would not work properly

Change-Id: Idd0b38b40b06806c727d8e033847a0da0b51f55e
Fixes: 30224123
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
506deb69a744fe0fa704eda588c3a263b3f8fc2c 21-Jul-2016 Selim Cinek <cinek@google.com> Fixes a usability issue where groups were clearable

If any child is not dismissable the summary now also becomes
non-dismissable.

Change-Id: I4a7b64dc6cd2151f46b4034195b895bfb868a990
Fixes: 30182606
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
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/ExpandableNotificationRow.java
3952c3a2d42310824dcec54daa426332500d03ca 20-Jun-2016 Selim Cinek <cinek@google.com> Merge changes I29ce7659,I2d6310a2,Ic4b29409,I6c5c970f into nyc-dev

* changes:
Fixed a stackoverflow in notifications
Fixed a bug where a notification was incorrectly marked as removed
Fixed a potential issue where a notification could be empty
Fixed a bug where the expanded layout would flash
e5ec413c13fbfeb9eafbaa5340aca6ff6c809cc4 18-Jun-2016 Selim Cinek <cinek@google.com> Fixed a bug where a notification was incorrectly marked as removed

When unauto-bundled, it could lead to serious bugs on the lockscreen
and the header not being restored.

Change-Id: I2d6310a2bcb2f3a60402db5f1e522954f8bd0389
Fixes: 29463339
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
a554c707386eb8a6c6fb3a2399f23b79a1c17f74 18-Jun-2016 Selim Cinek <cinek@google.com> Fixed a potential issue where a notification could be empty

Change-Id: Ic4b294092a47d30c469dfbd1eb6ab31208533b1c
Fixes: 29158425
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
73cf02a0783e3857cae21fece9c292abcc9e1409 17-Jun-2016 Selim Cinek <cinek@google.com> Fixed a bug where the expanded layout would flash

When the heads up disappeared from the shade, it's layout would
switch to the expanded state. We're now delaying this until
the animation is done.

Change-Id: I6c5c970f6b471fb10b197922dfea520b07c84abc
Fixes: 29318819
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
c1720dce1b01893bf925267381ff4975095a718a 16-Jun-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Added dismiss, expand, and collapse accessibility actions" into nyc-dev
e9bad242f38bebadae481a22b647cc153f093070 15-Jun-2016 Selim Cinek <cinek@google.com> Added dismiss, expand, and collapse accessibility actions

Fixes: 20343017
Fixes: 29368014
Change-Id: Ib571242aac04c67aea2f3c3ce76139eaedc1f3f1
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
8363980d45604874cab636526a04c2b35d31b2cc 16-Jun-2016 Mady Mellor <madym@google.com> Merge "Fixes issue with group backgrounds when animating to keyguard" into nyc-dev
1a5d8eadd56b435843dfbc1adf3779aa7286081b 09-Jun-2016 Mady Mellor <madym@google.com> Fixes issue with group backgrounds when animating to keyguard

The backgrounds weren't being updated before the collapse animation when
going to the keyguard so it would look very bad when they collapsed.

This moves updating the background into setChildrenExpanded which will
cover updating the background for both the tapping to expand case as
well as the animating to the keyguard case.

Change-Id: Icba2fa895498d307a38bd9f65be06265afd21a1a
Fixes: 29240532
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
599be34e6e3274e97512f3970a0d6edddedb8eb4 13-Jun-2016 Adrian Roos <roosa@google.com> Improve action bar transition

Improves the transition of the action bar between
the collapsed and expanded states.

Bug: 28935363
Change-Id: I89efe95aa045d04bab4208a001f82cb69b38fce5
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
09ca7e73c0e3384a57e4e4fc7c25fd52ca540d98 02-Jun-2016 Mady Mellor <madym@google.com> Merge "Parent notifications should always be normal notification color" into nyc-dev
c152dacc37bd850b06a37e18fba77308e8c9f939 02-Jun-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fixed a crash with notification groups" into nyc-dev
ed6913b0ce99784188713975218dcff113a3d4a7 01-Jun-2016 Selim Cinek <cinek@google.com> Fixed a crash with notification groups

When updating a notification we were not checking if it is the summary
with children, but about the existence of the childrencontainer, which
can change and is never removed. This is now done correctly.

Change-Id: Ie3838613f414d7fcb158dc92c24e8939cfb7c2ea
Fixes: 29055879
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
0d7dbb0f282afb43ec2a6a81789379749b2ab054 01-Jun-2016 Mady Mellor <madym@google.com> Merge "Adds alpha to dimmed backgrounds" into nyc-dev
ddc6de1eda495790e6564438994df5d49ddf248f 31-May-2016 Selim Cinek <cinek@google.com> Merge "Fixed a few accessibility issues with notifications and groups" into nyc-dev
ddf1b399d85ca417301625a55b2a3c7acab2633c 28-May-2016 Selim Cinek <cinek@google.com> Fixed a few accessibility issues with notifications and groups

Change-Id: I78fa62884eaa0efe825b5eb1e6cac7d88fc05a7f
Fixes: 28069681
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
e88f60b8bba7aeb6aa42f3baa78fa9a1e1767373 27-May-2016 Adrian Roos <roosa@google.com> Merge "NotificationStackScroller: Fix scrollTo for notification groups" into nyc-dev
c7d65b4e9c784a8235424c30620bacd54cc0892e 04-May-2016 Mady Mellor <madym@google.com> Adds alpha to dimmed backgrounds

If you're on the lock screen and a child background needs
to be shown (e.g. custom background and user expanding) the
background should fade in from 0 alpha otherwise looks odd
visually.

Bug: 27591195
Change-Id: I1f46831fd8b46eca5b54e7bd964af35752c4fa2f
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
4a5796765041dcb45ce782fc7ec5866b89fe0df0 25-May-2016 Adrian Roos <roosa@google.com> NotificationStackScroller: Fix scrollTo for notification groups

Change-Id: Iab101d7583e9849809058c96f0c480ea9b5cc0f5
Fixes: 28936844
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
6abeeb91194818e1d19f75336b03d1e305af0842 26-May-2016 Chris Wren <cwren@android.com> add metrics for gestural notification expansions

Bug: 28146482
Change-Id: If202846c0d235830c7b41d76b55bdcc21d0ab90d
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
6baed9e3a272b09e87f15801a389d7714d0b051f 26-May-2016 Mady Mellor <madym@google.com> Parent notifications should always be normal notification color

Notification groups would use the background color of their
children in some cases. This changes it so that parent
notifications always use the normal notification color.

Change-Id: I0638f94e044da2ba65a921f0c4a538941c001ca7
Fixes: 28613919
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
698b1706be196de41fc6bf03cf15971c82a11949 23-May-2016 Chris Wren <cwren@android.com> add metrics for notification and group expansion

Bug: 28146482
Change-Id: Id7f71873ba33f85c1a1f2c48b47f78d40df46c0d
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
a9c0d3ff19461b0384ac4a586cd67e2084193604 24-May-2016 Adrian Roos <roosa@google.com> Merge "Fix janky swiping with RemoteInputViews" into nyc-dev
b0a824687f56b6950338aad169d8d837f8ed657b 01-May-2016 Mady Mellor <madym@google.com> Children should have backgrounds

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

Fixes: 27591195
Fixes: 28655641
Change-Id: I0484308843e9b8bc10391387e54de07973a48f7d
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
d009ab1e2a57648cac9de93912964e2a36ae1762 21-May-2016 Adrian Roos <roosa@google.com> Fix janky swiping with RemoteInputViews

Change-Id: Ie0f525b886c41fdd0f3ef7cc7efb525ed08f3560
Fixes: 28885122
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
37a4027131f80709c27a81be0b426b60d33dd6c7 16-May-2016 Selim Cinek <cinek@google.com> Merge "Fixed the remove animations for notification children" into nyc-dev
a5703187a9dba418f742fab0874a8f683b0bbb0e 12-May-2016 Selim Cinek <cinek@google.com> Fixed the remove animations for notification children

Previously the children container wasn't fading out.
In addition was the child added to the wrong overlay leading
to completely wrong animations for the children.

Change-Id: I1ae395dc02cecb8629e509dfb55870f9c79d7854
Fixes: 27719756
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
11619f4782507e7543b23e5aed5f7164f16b20c3 05-May-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge changes Ic30e4de6,I34496c73,I096d3823 into nyc-dev

* changes:
Fixed a bug where the content height was wrong
Fixed the fade in animation when coming from dark
Fixed the animation when flinging over the bottom stack
910f69e0bb7fc9a6ef880f27fe99ad3a7abbdf15 05-May-2016 Selim Cinek <cinek@google.com> Merge "Made the dismissal of notifications snappier" into nyc-dev
35a8c2f00e1c3bb2e2cf24260682400d025a49f0 05-May-2016 Selim Cinek <cinek@google.com> Merge "Fixed an issue where children would animate strangely when removed" into nyc-dev
def35a86530200958384191d43d321dbcda16e2a 04-May-2016 Selim Cinek <cinek@google.com> Fixed a bug where the content height was wrong

when dragging down from a HUN the content height was
wrong.

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

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

Change-Id: I096d3823c5ede720bdf05558d68529e903dce5b5
Fixes: 27744811
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
d13956475e97da9de83f6519eab514770118e7af 28-Apr-2016 Selim Cinek <cinek@google.com> Made the dismissal of notifications snappier

The notifications now dismiss as soon as the finger is
lifted from the screen and we don't wait until it's fully
translated.

Change-Id: I2a37e019ce628ccf77e12bf8756bd05e549eca61
Fixes: 27418846
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
3f19f60d654421eee5b35a92129081f08c977629 03-May-2016 Selim Cinek <cinek@google.com> Fixed an issue where children would animate strangely when removed

Previously we tried to fix a notification flicker when the summary
of a group was removed. This lead to a few issues that group children
would now also generate an animation and the whole notification would
just look weird.
We are now cancelling notification children as soon as their parent
is cancelled already in systemUI to ensure that the animations are
properly rendered.

Change-Id: Ie639b4ad28bdb55d922308e04c14a4e5b32b90bb
Fixes: 28190616
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
cd35def3c35f04d7fd056590d4668b5ebbc80490 03-May-2016 Ricky Wai <rickywai@google.com> Make notification reply can response to work challenge

When user clicks work notification reply button while work user has
challenge, it will bring you to work challenge, and click on the reply
button when work challenge is unlock.

Bug: 28036566
Change-Id: I7b8520c4e58c0c0f965e4770ab0c7b926d8fb39a
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
8f4f2a9bfcc9520f95f58cdedc570c5df8a1c7de 28-Apr-2016 Selim Cinek <cinek@google.com> Merge "Fixed a crash where the overflow number wasn't initialized" into nyc-dev
b41b2f6fc2bcce6da6d6ae855a2a36cfa6f7f99d 26-Apr-2016 Selim Cinek <cinek@google.com> Fixed a crash where the overflow number wasn't initialized

Change-Id: I2df85055d5670af3a6c78a2b62bc62c9297ead78
Fixes: 28008437
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
1979bd7af2ed894c2914fe20462ddbdd312c00db 27-Apr-2016 Mady Mellor <madym@google.com> Merge "Fix NPE when updating gear vertical location" into nyc-dev
5f88f9b3553ba834d27fdde7ebf0412ceb111d48 27-Apr-2016 Mady Mellor <madym@google.com> Fix NPE when updating gear vertical location

Since we do this onLayout it's unnecessary to update the location here
plus it causes an NPE as the parent may not be laid out yet when
accessing collapsed height.

Bug: 28390732
Change-Id: I3e61eb7ce854002def3342856557d456249e5e26
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
a6edc878293e49594a6aac7a0d0e41c7980ece07 26-Apr-2016 Mady Mellor <madym@google.com> Fix a crash when setting vertical gear location and content view null

When setting the vertical location of the gear we need the collapsed
height of the parent, the parent might not be fully laid out so move
setting the vertical location into onLayout instead

Bug: 28390732
Change-Id: I7c1bf14a54e9f1ef0a693fa13e1a6533f5967631
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
5a3e4411582b1cae9b9002026b467c9c08e69a55 25-Apr-2016 Mady Mellor <madym@google.com> Merge "Fix the gear so that it is always centered based on the min noti height" into nyc-dev
7d1c63e66a2e19bf32249f52c56e563eae4c6819 22-Apr-2016 Selim Cinek <cinek@google.com> Fixed a bug where the icon of children could be colored

Change-Id: I12e577de648f8b1734521ffe713f0168f714572a
Fixes: 28320187
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
4bb593492ccf560382fac9ae533a7429cec53c94 09-Apr-2016 Selim Cinek <cinek@google.com> Fixed a bug with the overflow number

The number didn't apply the contrast computations
and wasn't scaling when density changed.

Change-Id: Ibde116f176c3a8d20de28ab432a80d9219f75581
Fixes: 28073460
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
cdd5718eacd96ed1a755c877798952a5201b7600 13-Apr-2016 Mady Mellor <madym@google.com> Fix the gear so that it is always centered based on the min noti height

This alters how the gear is positioned so that it is centered based
on what the minimum height of the notification or the height of a
collapsed group.

Bug: 27316874
Change-Id: I726f51ab8b18b485d1b2ea22ca7bb4dd71ee3d85
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
c1e389dadc234827354b95bac98a9c7146ed301c 07-Apr-2016 Selim Cinek <cinek@google.com> Fixed a crash with autobundle grouping

Bug: 27997570
Change-Id: I4ec0e312583ddba0ba944aaa6f221cdda22c64dc
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.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/ExpandableNotificationRow.java
d5d8866c675b470c4b08fa48acdcf21cabe8bcd9 23-Mar-2016 Mady Mellor <madym@google.com> Merge "Add content description for gear behind notifications" into nyc-dev
f07d06212b08939809aa4128f153bd5179f81fc7 22-Mar-2016 Selim Cinek <cinek@google.com> Fixed the group expand motion to better reflect the overflow

The overflow now comes in only after the other notifications have
fully transformed.

Bug: 24866646
Change-Id: Ia950205669916a637c44ea7d41bfc06e750ea987
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
c897bd3e91ed442b0f32c3a5b9918e9e580b62b1 19-Mar-2016 Selim Cinek <cinek@google.com> Introduced a number indicating more children in a group

Bug: 25376106
Change-Id: I97dc60c4fea599c668c9e74e11b7d693fd78589b
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
91c2a15838403342302b230b1dbe66bb0eeceee0 17-Mar-2016 Selim Cinek <cinek@google.com> Removed the summary line for notification groups

Because it was too noisy.

Bug: 27431551
Change-Id: I9593698eda6327ad7c7b4ec50a980e318a93f3b9
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
2a7393410b6390831143dca198438a4e58bdf88a 17-Mar-2016 Selim Cinek <cinek@google.com> Hiding the summary of notification groups with a single child now

Groups with only a single child are now hidden from the user and
the child is directly surfaced.

Bug: 27104166
Change-Id: Ifc1edf0ba857ae2a3c7ef7146dee6aa7fb29fe4b
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
237be37fadda27be2bbb66aafb3e39ad0eefdc3b 17-Mar-2016 Adrian Roos <roosa@google.com> Merge "Copy/Paste on RemoteInputView" into nyc-dev
0bd8a4b29bf92a901855d889c53186383dd2c5e7 15-Mar-2016 Adrian Roos <roosa@google.com> Copy/Paste on RemoteInputView

Also fixes a bug where the remote input view stays focused
when the inline settings open.

Also prevents sharing from contexts that are not activities,
and prevents text processing when the device is not provisioned.

Bug: 27633360
Change-Id: I8b6e7f661bd873d88e7e2460d043c2aa5f849516
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
3fd273e6113fb1b8986314a03ab6d7e90efd0bea 16-Mar-2016 Mady Mellor <madym@google.com> Add content description for gear behind notifications

Bug: 27498876
Change-Id: I244286e3eaff04268b25e40f1031b5ff7d0b3aee
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
723f1f996fd78f08e5e91ed57420bd431e11f903 13-Mar-2016 Mady Mellor <madym@google.com> Clean up animation listener when translating notification

The listener only needs to be added to one of the translating views
but was added to all of them, this CL changes it to add to the
listener to the first view.

This CL also handles cancelling the animation.

Change-Id: Ifda0f7f04bae1608250e9d2f008b4f21c1745bc6
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
6c5dddfdcfd9211c26465c396d9338e09b74f791 12-Mar-2016 Selim Cinek <cinek@google.com> Merge changes Ia6156d7c,I396ac936 into nyc-dev

* changes:
Fixed a bug with autoredacted custom views.
Fixed a bug where notifications could become all white
a1744872f4447dd370002a607c32776dffe519f5 12-Mar-2016 Selim Cinek <cinek@google.com> Fixed a bug with autoredacted custom views.

Bug: 27616717
Change-Id: Ia6156d7cadca0c1f9aadd49f76f62ac92991eced
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
a883351024f8dbdf8041c551f8a8987d9357dcd8 09-Mar-2016 Mady Mellor <madym@google.com> Fix touching gear on lock screen

The header wasn't taking into account the translation of the view
this CL alter so that it accounts for the translation.

Bug: 27484957
Change-Id: I19df138ae46a33863863821b8723cb57dc849454
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
6db575803ecca3e1ef8b905e23c9471268b23dcc 05-Mar-2016 Selim Cinek <cinek@google.com> Removed the group expand button

It's now a normal group expand button.

Bug: 27431551
Change-Id: I6e5dc83613533ef8590b0a8180d8c4be8322aa21
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
3b050317bf83af093982fe3e3cd78b25af9edee9 05-Mar-2016 Selim Cinek <cinek@google.com> Removed the bundle number from the header

Bug: 27431551
Change-Id: Ia0c663f0bab875abba4b35d565f3ac4ed2306079
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
c317933a91b1d33cc4af9b7c6218b9ce675d05ea 04-Mar-2016 Selim Cinek <cinek@google.com> Fixed fading and dozemode for custom notifications

The custom notifications were fading really ugly when they
had a dark background like media notifications, because
it was fading from dark to dark.
Now this background is shared for both custom views which also
reduces overdraw for them.

In addition does the doze mode now work much nicer because we're
only fading them to greyscale instead of inverting.
This also fixed an issue where legacy custom notifications with
a dark background were colorful during doze.

Bug: 19437552
Change-Id: I87798da9ac11b9abfe4470b6ca53b555da3aa629
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
e81b82ba252582753cb87ba424c82028b6e490ec 04-Mar-2016 Selim Cinek <cinek@google.com> Fixed a group bug with a single expanded child

On the lockscreen the child wasn't expanded visually
when expanding the group.

Bug: 27419554
Change-Id: I5f191216d8736657099aa1a40ccc4a331b317d67
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
43d30f03f45f3f9ad3955f5c83f4d21f26891de6 04-Mar-2016 Selim Cinek <cinek@google.com> Fixed a bug where the top child notification wasn't expandable

Because we also applied the hack to the expand helper to dismiss
the whole group instead of the child.

Bug: 27420342
Change-Id: I6179d3b99150c8005d0c45b6efdabb2de4dbe941
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
51d94917c7dc53845701702bfd63f102a3a2dbc8 03-Mar-2016 Selim Cinek <cinek@google.com> Fixed a bug where the notification content could become empty

This was caused by legacy code which set the actual height, which
in turn set the contentview to collapsed. If that happend during
an animation, the view could become blank.

Bug: 27448145
Change-Id: I0b3a2a2aee3052810176c2ff9a23825d83145d69
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
34958fa272c9216db4002546c3efad692b3d7775 23-Feb-2016 Mady Mellor <madym@google.com> Fix inline controls from being swipeable

Currently you can swipe / translate inline controls, this
should not be possible. This CL fixes that.

Bug: 22451710
Change-Id: I3e048dce7df6d44ce80ee79bd449973bde0bc222
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
a26ddbaf7b5dd642e95cb7be33137312a799546a 01-Mar-2016 Selim Cinek <cinek@google.com> Notification groups with only one child behave nicer when swiping

When swiping the last child of a group away the notification parent
is now swiped instead of the child, unless it is non-dismissable.

Bug: 27420342
Change-Id: Idbb1fac5e46a5a91af829973ee167ad400be82a5
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
2c58461daf909fae5a2605f0ba63da3f9c897731 01-Mar-2016 Selim Cinek <cinek@google.com> Fixed a bug where group expansion size calculation was wrong

On the lockscreen, the minheight was always based on the intrinsic
height and not actually the minHeight of the children. Because
children were userlocked, they were now reporting their small size
instead of the single line size.
This meant that the expand motion on the lockscreen wasn't following
the finger at all.

Bug: 27418617
Change-Id: I81daaf87887de1adc014cb4c6d46f4ef118061e5
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
a52f6a17efa944adc945a61788cc3beb54c569e7 01-Mar-2016 Selim Cinek <cinek@google.com> Fixed a bug where group children where not expandable

Bug: 27417777
Change-Id: I57368f18b810bc9f6fc7c08c0f7fb038743b528d
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
b53bc276d6ec093817988a358b7c2a6c63ee0c48 12-Feb-2016 Mady Mellor <madym@google.com> Update the animation when showing / closing inline controls

This CL updates the circular reveal animation to originate
from the gear and and done button in the inline controls.

Bug: 22451710
Change-Id: I050413c980a8c9e73fe2e9a789567051d3119373
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.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/ExpandableNotificationRow.java
8f2f6a67fad7aed720e33a6629cb65d368ebfb80 24-Feb-2016 Selim Cinek <cinek@google.com> Transforming notifications now based on the user dragging

The animation is not a canned animation anymore but base on
the finger movement of the user.

Bug: 19437552
Change-Id: I0f81ac2ff05a92673e3f3b9b72a5c2de238890d0
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
3c76d509d362cf5086a63722ab41e04f5d539182 20-Feb-2016 Selim Cinek <cinek@google.com> Allow dismissal of sensitive notification

If the general setting is not to hide sensitive information
we allow the user to dismiss it.

Bug: 26328503
Change-Id: Ibea5d94e544291f00d8a2923b8cbf14170510bd8
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
e961f32b0f96902276c69f25a35e89aa8cc34ea0 20-Feb-2016 Selim Cinek <cinek@google.com> Merge "Fixed a clicking bug on the lockscreen" into nyc-dev
79fa406933c5ec65e2d48279dc9e0011809512b3 20-Feb-2016 Selim Cinek <cinek@google.com> Merge "Adapted the measuring of notification content view" into nyc-dev
34eda5ed70863320e41b6860a550ba6a4248c652 19-Feb-2016 Selim Cinek <cinek@google.com> Fixed a clicking bug on the lockscreen

Parts of custom notficications were not singeclickable

Bug: 27247884
Change-Id: I7c52500a77929059b24e8119f50492e0f1399401
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
f619ffccd77c20702d45bd2bd63b626e41b08018 17-Feb-2016 Selim Cinek <cinek@google.com> Adapted the measuring of notification content view

We are now measuring all notifications content views
with AT_MOST but with an upperboundary. This allows us
to put custom views inside our normal views and still not
blow up the small size. Also adapted the dimens not to
clamp the templates

Bug: 24866646
Change-Id: If9053d84a9d91e6bc9964f64b170e3c3260a807d
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
f062580d395a8c99631c104d6aec250f961152dd 12-Feb-2016 Mady Mellor <madym@google.com> Improve touch target for the gear beneath a notification

This CL increases the touch target size of the gear beneath
a notification.

It also adds the logic:
- If the gear is displayed and the notification is touched
then the notification slides back over the gear
- If the grey background is touched rather than the gear
nothing happens

Bug: 22451710
Change-Id: I7c1d8943e066fdd821446c2f90807891d6b74e5c
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
4b80b1025f82fa7becc8e126bfa4aea39affcf65 22-Jan-2016 Mady Mellor <madym@google.com> Initial implementation of dismiss gesture + inline settings icon

- Added a view to display / control the gear behind the noti
- Updated SwipeHelper to hide / show the gear based on the gesture
- Only one notification or notification group can show the gear
at a time

Couple of things left to do that will come in a follow up CL:
- Animation (to / from inline controls, fading gear based on movement)
- For children in a group there needs to be a grey background

Bug: 22451710
Change-Id: I2f93edf48109a82bab0839c73cbaba1535caee9a
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
de33a4ad5696173942dca363339027c892927e8d 12-Feb-2016 Selim Cinek <cinek@google.com> Fixed a bug where the single line view would be invisible

When updating a child notification, the single line view was
removed leading to invisible group children.

Bug: 27137268
Change-Id: Id9e6ce2ae081ec746118f4367644ea8843d51f10
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
01af334b70c8ad47c8ce1f465e458863ebe9eae2 10-Feb-2016 Selim Cinek <cinek@google.com> Notifications now support runtime density changes

We reinflate notifications whenever the density or the
font size changes.

Bug: 25613008
Change-Id: I61d48e477b1865e2124d055e537a592aceb667f2
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.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/ExpandableNotificationRow.java
757d879966fdbff1b67c9ec6fd4b6c75152b991a 29-Jan-2016 Selim Cinek <cinek@google.com> Fixed a bug where the notification became clearable

A notification could become clearable on the lockscreen
when the content was sensitive even though that shouldn't
have happend.
This is now fixed.

Change-Id: I50f31c95dd399bfebfa9e5c46eb99820f31e37ff
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.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/ExpandableNotificationRow.java
084c16b8b380e7ff0d38d9e2846db321f0214931 23-Jan-2016 Selim Cinek <cinek@google.com> Fixed a clipping bug when expanding children notification

When children are expanded with a finger we still need to clip!

Change-Id: Ie66bb0ba690163bcabdc503a03f1e23869ec175d
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
7210947e0d0e384fc34d61160c99adc2f36734e0 16-Jan-2016 Selim Cinek <cinek@google.com> Handling content intent of groups correctly

Content intent of children in groups can now
only be launched if the group is expanded.

Bug: 26582343
Change-Id: I5bf2c853d7659b4c764892409c6c7cc3fc647cc8
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
6183d12926a189b08cc3be8d9c78470617e63db0 15-Jan-2016 Selim Cinek <cinek@google.com> Fixed that music notifications were not clickable on lockscreen

On the lockscreen we were unintentionally disabling single clicks
on the media buttons while we only wanted to disallow it for the
notification header. This is now fixed by explicitly checking if
we are clicking on the notification header.

Bug: 26325096
Change-Id: I044f25ac3216b98c7769c31d09d19f801a437194
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
fa0a2d3d90fdde14784ec6351a0798bc21c2f126 14-Jan-2016 Selim Cinek <cinek@google.com> The notification content now switches earlier

The notification content visible is now based on the intrinsic
height of the view and not just the actual height anymore.
This allows notifications to switch earlier when clicking on
the collapse button.

Change-Id: Icdf4ea50a7b1bbb78bd57a9f1c3eea25cf9c8d7c
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
9969559da02f54fcbd7832de9810507a581d98d8 13-Jan-2016 Selim Cinek <cinek@google.com> Removed staggering animation with notification groups

It was more distracting than helping

Change-Id: I5a1110268d23d9f964ad515b6fff16cf9d9a4992
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
0ffbda62e55ad390e05e6c3ff52e1378e420285c 01-Jan-2016 Selim Cinek <cinek@google.com> Continued the template switch implementation

Change-Id: I86fa52f2e13d319127dcd44b98304aa3cc3c7e9e
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
4ffd63611a0d516c9988b37e9c06e6f8390c2a2f 29-Dec-2015 Selim Cinek <cinek@google.com> Changed the transformation from when switching notification views

Change-Id: I2af3c2f36787d208be7745dabae96903df256156
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
ef5127ea5f34f7a4c961021f6b691174bcb81d2e 22-Dec-2015 Selim Cinek <cinek@google.com> Isolating heads up children from their groups now

Group children are now isolated into their own group for a few seconds
until it's merged into the group again when they are
heads upped. This makes notifications groups finally usable with
HUNs again.

Change-Id: I0cb5e4f7a70e09989030dfe70ddcbb50575c1c02
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.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/ExpandableNotificationRow.java
860b6dac964d3aa1818133c767eb825c8153a594 17-Dec-2015 Selim Cinek <cinek@google.com> Measuring the notifications at wrap_content height now

The notifications are now measured at wrap_content such
that the layout still looks good even if the text
was ommited instead of arbitrarily making it bigger.
This also fixes some small rounding issues where the
expanded notification was just a pixel bigger than
the collapsed version.

Bug: 26185377
Change-Id: Ie3339ff75680ab512446605055304576e058f588
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.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/ExpandableNotificationRow.java
d84a5930cca7add37e7e23305538d29959daf199 15-Dec-2015 Selim Cinek <cinek@google.com> Fixed the redacted layout for groups

Also fixed a bug where the guts didn't have the
right size and in general cleaned up the intrinsic
height. The guts also animate nicely and the position
of their animation starts on the finger.

Change-Id: I62447dd77ace36161740dfdf3d18103524e2eb21
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
624c02db7f1d24ec1e307530ff32d4fd5859feae 15-Dec-2015 Selim Cinek <cinek@google.com> Fixed the public notifications views on the lockscreen

The views were based on a legacy systemUI notification.
We are now creating it in Notification.java in order to
always have the latest visuals and avoiding duplicate work.

Change-Id: I3f544cad069a8eab34d4464404d020e06d7f6626
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
a69f2a6449b4b5eceae9cd5a6b1aae6eeec379b8 12-Dec-2015 Selim Cinek <cinek@google.com> Fixed a measuring bug with the notification children container

The notification children didn't respect the given dimensions
when measuring and was simply measuring itself as high as desired.
This lead to a bug where the parent could crash when a layer was
set on it.
We are now measuring the container at most with the height of
the given size and let children draw over our view bounds.
In oder to still allow touch in those regions we also
override the touch rect.
This also simplifies the rest of the touch handling.

Bug: 26159274
Change-Id: I728553a6386455e6632e2511be8a3e7cb447e89b
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
b88b1a1dbde3364cd92d6a69a41ef2d4e2877294 10-Dec-2015 Adrian Roos <roosa@google.com> Move RemoteInputView inflation to ContentView

Bug: 22452379
Change-Id: Ieed64f7fa0b0bd742ca8a7746e8baf03ca837e1c
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
b5a83613fe935cc60106746d311bab2acbce37fa 11-Dec-2015 Selim Cinek <cinek@google.com> Fixed a bug where the notification header was above the guts

Change-Id: I1b32ea229bd7a7b2c6b9f572ea71167334ba8a1c
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
2108fe0d6d6830d14bf809737c1fe1080366ea4a 10-Dec-2015 Selim Cinek <cinek@google.com> Fixed a bug where the group overflow was invisible

Change-Id: I6e43decc9d68dbf869245ee99b80f4d5c9ae4456
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
77019c72332cb31dd1cb713ea4c66e267e6cbf39 09-Dec-2015 Selim Cinek <cinek@google.com> Fixed a bug where the heads up had the wrong size

Change-Id: I05bc0e68bf4b9f786b9f0cb4466bba002a0fc4d4
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
9c7712d45ccec56a80873a83e56a83f810624b43 09-Dec-2015 Selim Cinek <cinek@google.com> Added darkmode for notification groups

Somewhere in the dark a dim shimmer of light appeared

Change-Id: I9de970d4f5b8bb3c3d99f34af7f411f62ff2e094
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
7b83639c34cb8b52f915099973e0892c5fbfd674 05-Dec-2015 Selim Cinek <cinek@google.com> Changed the appearance of the notification children

Some further tuning to the layout

Change-Id: Ifb3797e9982d718a30954adb9e1901eb2a1fa75d
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
da42d65ea5a0eec7d1eaf48fee19ead419994b16 05-Dec-2015 Selim Cinek <cinek@google.com> Fixed a bug where groups were layouted too small

If the group was a group of custom views it
was layouted too small.

Change-Id: I88778c9a162e6f3012140d1e7864d66f13da2b1d
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
ea4bef7386ca6c6260f292bf006d16a99b93f698 03-Dec-2015 Selim Cinek <cinek@google.com> Removed duplicate content from group notification header

Previously the headers all had duplicate content, which is
now optimized to look visually more appealing.

Change-Id: I38ed8db1985fd8a9470888e1b7e1e6b0f2e23b19
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
570981d5f1bcd0e5186cc02655254a0606b6ec14 01-Dec-2015 Selim Cinek <cinek@google.com> Fixed the handling of the expand on the lockscreen

The user can now directly go to the unlockd shade
by doubletapping the expand button.

Change-Id: Id4c3c901eaa29482e7473480feee5701bbdf29af
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
5a175d9d543c4438672990aa8a820bd1292bdd6a 24-Nov-2015 Selim Cinek <cinek@google.com> Fixed a bug where the notification icon would stop animating

For notification children, the notification header or when updated
the notification icon would sometimes stop animating.
This is now fixed.

Change-Id: Id8ed4e1c548cd1cf4d5ea18b8e4084a376998c14
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
8fc93c90839e5d9dd52bca9dd97c198c0fe68af1 24-Nov-2015 Selim Cinek <cinek@google.com> Cleaned up the updating of notifications

Some states were not correctly updated which could lead to
small bugs when the update was not in-place.

Change-Id: If133029acf65a9af8d297314fee5f1cd9e2015bd
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
eaa29ca6ff7a4c21a0729118d0e7c38750b9c93e 23-Nov-2015 Selim Cinek <cinek@google.com> Migrated the systemUI based notification header

Previously the notification header had a seperate implementation
in SystemUI from which the platform implementation was derived.
Now that everything is in the framework, we’re migrating the
implementation for notification groups.Ăź

Change-Id: Ia61a75bd6c85e1805d4364a9e7e4587a020c1271
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.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/ExpandableNotificationRow.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/ExpandableNotificationRow.java
a6c6bfb61ba14b0467b73082d591c834576cddf4 30-Oct-2015 Selim Cinek <cinek@google.com> Follow up CL for notification children change

The CLs of the notification children change have been
quite overlapping, so a few comments are addressed in this
change.

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

Bug: 24866646
Change-Id: Ie7c5ee6753c2f246df04189bb92e08baf0242797
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.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/ExpandableNotificationRow.java
8d6440dbaba4310cb517ab2a725d75be1ef934f4 22-Oct-2015 Selim Cinek <cinek@google.com> Hiding subtext of children notifications now

If the parent header already displays the email
we don’t want to display it again in the child.

Bug: 24866646
Change-Id: I3aee62e895fef68b059a61a825eef37f0f8ad875
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
34d93b0985063090a9bad88a1b80e1b99bae3332 22-Oct-2015 Selim Cinek <cinek@google.com> Hiding the children backgrounds now

To avoid overdraw we are now hiding
the background of the view if it has
the same color.

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

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

Bug: 24866646
Change-Id: I2e4bc82e502fde951a71b61cd81347c44b9637f6
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
263398f0175efc8bc8c965473f9565a693a0a0e0 22-Oct-2015 Selim Cinek <cinek@google.com> Slight refactoring of notification groups

For the preparation of the bigger UI rewamp.

Bug: 24866646
Change-Id: Id5760ba6e5bae88c052bdd30ae47d9671a2a19c2
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
05e6287b7f5d557af8d5a73469c7f565ff3e2d87 17-Oct-2015 Selim Cinek <cinek@google.com> am 4d655e7b: am 4135092c: am 303e5c41: am b9a73d2c: Merge "Stopping chronometers now when the shade is closed" into mnc-dr-dev

* commit '4d655e7b98eebba4e3b4912f508f789719e5e7b1':
Stopping chronometers now when the shade is closed
98713a4fcf1061d3366b333c954fd7b8e9f12841 21-Sep-2015 Selim Cinek <cinek@google.com> Stopping chronometers now when the shade is closed

Bug: 23978877
Change-Id: I01a9e756d7eeef7aa239ca0c67d4084624aaed12
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
0e2ffbd48bbedf47deb7f6aed96bd07e2fc96f53 10-Sep-2015 Blazej Magnowski <johnasselta@google.com> Add FalsingManager and Classifier to SystemUI

Adds the possibility to analyze and classify touch and sensor events as
human or false touches.

Change-Id: I5079c02406d532fea38ca2d302e8606effae0696
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
e0367d26c9af7cc4b3dbe0b7a48fded1860938e2 26-Aug-2015 Jorim Jaggi <jjaggi@google.com> am b98adf20: am bdb151ea: am 4816d7d5: am e30e8980: Merge "Disable RT animations for header ripple" into mnc-dr-dev

* commit 'b98adf20a0f27a8e717b627801632766547121a2':
Disable RT animations for header ripple
197fb8c1bc3977a95a8c9a54a3caf65d794533f8 22-Aug-2015 Jorim Jaggi <jjaggi@google.com> am 96bc5efd: am b25c4e64: am 7795faac: am 4351111b: Merge "Fix jank when clicking on HUN" into mnc-dr-dev

* commit '96bc5efdbc2582eca81d101a5997f7e43675fa4b':
Fix jank when clicking on HUN
b7303a36baf8d0ac3efdeeee3310ef5974ba9cea 20-Aug-2015 Jorim Jaggi <jjaggi@google.com> Disable RT animations for header ripple

Bug: 22208997
Change-Id: I10a890d4f8f70c7c786940ffdb86cf4d21bdaf05
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
5eb67c22489f5fda22770d1fc824e7a8013ec025 20-Aug-2015 Jorim Jaggi <jjaggi@google.com> Fix jank when clicking on HUN

There is jank at the beginning of the transition when the heads-up
disappears when clicking, because a lot of stuff is going on. In
order to make it consistent with other notification clicks in the
shade, introduce a delay for the disappear animation.

Bug: 23365512
Change-Id: Ib7c5db552d6803f96374198c2af38cf8236769cd
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
7232332dc963c2ce55dda1a3a0367080d5494503 24-Jul-2015 Blazej Magnowski <johnasselta@google.com> System to track touch and sensor events before unlocking the phone

Added a new component which tracks touch and sensor events and
also events like showing the bouncer tapping a notification and
others. The collection is enabled when the screen is turned on and
is disabled after the phone is unlocked. The data is saved in a
protobuf file in internal storage in a directory called
"good_touches". There is also an option to collect events which
end with the screen turning off. These are saved in the
"bad_touches" file. Everything is hidden behind the
ENABLE_ANALYTICS flag which is set by default to false and can be
turned on only if Build.IS_DEBUGGABLE is true. Also
behind the ENFORCE_BOUNCER flag the class shows the bouncer before
expanding a notification, showing quick settings or launching an
affordance from one of the bottom corners.

Change-Id: Iaeae0fb7a0d9c707daf7a270201fa5b1cd84c74a
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
dc4c4198f06290ddcb2afec70ae74842ca781a37 11-Jun-2015 Selim Cinek <cinek@google.com> Merge "Switched to round rect clipping while appearing notifications" into mnc-dev
560e64d3d95a17123048bebe2fb06ffe4567fb78 10-Jun-2015 Selim Cinek <cinek@google.com> Switched to round rect clipping while appearing notifications

This avoids a few out of memory crashes and in general seems
cleaner.

Change-Id: Iecb1be76fd561eb8bf2a4b650a866c62ed82ca65
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
59ec304eaebf1bc4098d6feb6cca9039c8b70d3d 06-Jun-2015 Jorim Jaggi <jjaggi@google.com> Don't invert legacy notifications

Bug: 19130917
Change-Id: Id06fcf8fb11b783360a86534e024164b230e84a4
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.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/ExpandableNotificationRow.java
60122be6747c4f79b96f6808158f8f7e7548b7d3 16-Apr-2015 Selim Cinek <cinek@google.com> Fixed a bug where the notification size was incorrect

When an activity was shown and the device was locked
the notification had the wrong size if they were redacted.

Bug: 20086154
Change-Id: I37448a2ba1c027cffd1f945b031d08f0fd90f638
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
c80fdb11f55f4c1f3ca9b5cdc7035afa2a0b9e91 14-Apr-2015 Selim Cinek <cinek@google.com> Fixed a bug where the intrinsic height was not updated

Change-Id: I2c171aff6eb30418121f0ca77e71045b0b61c9b2
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.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/ExpandableNotificationRow.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/ExpandableNotificationRow.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/ExpandableNotificationRow.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/ExpandableNotificationRow.java
ab29aebf00a0ebd286a92d129f35c182b6888f3b 20-Feb-2015 Selim Cinek <cinek@google.com> Refactored guts inflating for notifications

Change-Id: I80f6a3cc93e107e0909034b58d0939271e54f3e2
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
379ff8f6b18b236b679a59a2dc14c0baeede3bae 20-Feb-2015 Selim Cinek <cinek@google.com> Heads-up notifications now reuse the views from the shade

Change-Id: I6f43b70022f1ea439b80f6b6a0279a03d8c75887
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
a54956a0bc611b1e9b3914edc7a604b59688f6b7 08-Jan-2015 Alan Viverette <alanv@google.com> Fix accessibility delegation

Ensures that delegate code is run last. Previously, calling the super
method from an accessibility delegate set on a widget would only run
code in the widget's parent. Next, the delegate code would run. Finally,
the widget's code would run. As a result, the widget code would override
any data supplied by the delegate.

By moving all overridden code to internal methods, we ensure that the
call chain for super includes the widget's parent code followed by the
widget's code. The delegate code will always run last.

BUG: 17641433
Change-Id: Ib9d403156c1fc4fb04f65f3c126d1277a44b3740
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
4e857f4ef0357e05806819d0488a73a12208fe8f 17-Nov-2014 Jorim Jaggi <jjaggi@google.com> Fade notifications when exiting dozing

Bug: 18146441
Change-Id: Ifa0cbb8157c65768c3a0c584166ca88c3016b730
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
a37774f098a5204947ff4b4787c4b753bb9016db 11-Nov-2014 Selim Cinek <cinek@google.com> Fixed a bug where the clearable flag was set inconsistently

This could lead to undismissable notifications.

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

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

Bug: 18188693
Change-Id: Ic5de3e36c785d2cf890936322820b739a0a1b107
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
b9144cea5184c90534db75b47e3818a688e64d5b 31-Oct-2014 Chris Wren <cwren@android.com> Merge "Clear the initialized flag when resetting the height." into lmp-mr1-dev
310df3127aace5a82cdc107fdb1e2d6957f38bcc 31-Oct-2014 Chris Wren <cwren@android.com> Clear the initialized flag when resetting the height.

When the notification was updated within the heads up, touches were being
dropped due to an invalid actual height, after a height reset in the update code.

Bug: 18102199
Change-Id: I6c95d360452665464a868b2bc5ce4f6e104b6652
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
bb3d1cf11dc76543cac368486bc42efcd21d5e54 31-Oct-2014 Selim Cinek <cinek@google.com> Fixed a bug with the notification appear animation

This happened since the switch animation was running
even when invisible. This is fixed now and only
runs when the view is actually shown.

Bug: 18168562
Change-Id: I7fa2254411d249c23cd623cdff64524729f0817c
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
6a3959be8b935e5e4c3846c89dcea1a29479cd09 10-Oct-2014 Christoph Studer <chstuder@google.com> SysUI: Reset ExpandableNotiRow.mActualHeight on reset()

Fixes a bug where the wrong layout was selected for expanded
notifications on update.

Bug: 17740662
Change-Id: I1adf329d82069e4d4b6c94cdbbea8e1646bc5b32
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
8353e76a9996e40540eb928e700e0bedaf6a1063 11-Sep-2014 Jorim Jaggi <jjaggi@google.com> Merge "Don't use layers when fading between public/private layout" into lmp-dev
aa92ffb1992b6f730f918fcca27996247b4867bd 10-Sep-2014 Jorim Jaggi <jjaggi@google.com> Don't use layers when fading between public/private layout

Saves us some memory and more importantly, prevents layer trashing
and some skipped frames when building the layers.

Bug: 17287256
Bug: 16513124
Change-Id: Ief7c9a892da57bc77264de016f5118277e648f45
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
b1cd3c1945499721d7d1ce57bdda67695ffe936b 08-Sep-2014 Jorim Jaggi <jjaggi@google.com> Inflate guts only when needed

This saves us a ton of views.

Bug: 17346296
Change-Id: I3eafd6703d19704dc8b108c1034266f38cf77f7b
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
6e28a678c7f9fe2cae5a51bfdbab3071a2d8d0ba 05-Sep-2014 Selim Cinek <cinek@google.com> Fixed a bug where the notifications could overlap when reset

This is because we did not receive a layout request even though
the notification was updated.

Bug: 17357688
Change-Id: Ie6295d07f4c00ec014b17671ad646261c4bb7e0f
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
cab4a60c485872848fc0fa3e65baaeb06d21a7d8 03-Sep-2014 Selim Cinek <cinek@google.com> Fixed a bug where notification icons where not animating

Bug: 16043845
Change-Id: I23217d90803fd247f6d1b4d2aea056deb5749c15
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
7196de79588d8a19f4d70e6bddf730494ff4e5dd 01-Sep-2014 Selim Cinek <cinek@google.com> Merge "Fixed several bugs where the dismissview was not reachable." into lmp-dev
d2319fbe6a53ac4c38ca02e4d8e32da86ed0994b 01-Sep-2014 Selim Cinek <cinek@google.com> Fixed several bugs where the dismissview was not reachable.

Also fixes a bug where the maxExpandHeight was not correctly updated
and where notifications were wrongfully generated.
Finally it fixes an issue where initially the height of the panel was
not correct.

Bug: 17096130
Change-Id: I0f4a05187f31eef5cbbe364bfceb8806b5092cdf
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
024ca598dd4b38b389251c138f4ef9882d4b68b0 01-Sep-2014 Selim Cinek <cinek@google.com> Notification guts have now the actualHeight of the notifications

Before it just had the height of the notification leading to bugs
in cornercases during animations and swiping.
Also updated to colors to use system colors.

Bug: 17333457
Change-Id: I00d87820595a789006632c582e8c35759a61969d
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
e15452bb49d2531eee3086acb4763dd125f8053a 21-Aug-2014 John Spurlock <jspurlock@google.com> Doze: Improve icon treatment when dozing.

Instead of inverting them, simply desaturate. Also, apply
a constant background to small icons and give them some
transparency.

Bug:17137319

Change-Id: Id772b4fcd9ffa461bec26b87a74302012fb27867
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
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/ExpandableNotificationRow.java
059a49f8345f4717f48bab21dd04a7af8f9d27ad 13-Aug-2014 Selim Cinek <cinek@google.com> Merge "Reset the notification expanded states on screen off" into lmp-dev
ccd14fbcfe613eae71f0e00c39f38e5125749389 12-Aug-2014 Selim Cinek <cinek@google.com> Reset the notification expanded states on screen off

To avoid having expanded notifications sticking around

Bug: 16005498
Change-Id: Ib5b184fa7eb67ada85305e7ca4afad68a1514327
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
a5e211b1f2a8d055b369dadc464dc5d5bc3dd9c1 11-Aug-2014 Selim Cinek <cinek@google.com> Fixed an animation bug with inline view updates

The height is now updated in an animated fashion.

Bug: 16947659
Change-Id: I4e89e6ca78f8d3c0f1e6f7eb61134a394c6d7d73
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.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/ExpandableNotificationRow.java
78403d79739605511ea88b653564d81d7bf4bbba 28-Jul-2014 Chris Wren <cwren@android.com> Add a log and statistics for notification expansion.

Bug: 16618854
Change-Id: I501f396fa495e1e55a27d7d0b65aac66495418c1
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
22f2ee567dd1b1a42432251229bcb2f05c1c4700 29-Jul-2014 Christoph Studer <chstuder@google.com> SysUI: Reset background treatment when re-using Entries

Bug: 16220667
Change-Id: I8fd2770fa5ea554728eb8cd70ce4a6171e28ece5
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
0d3e62f3e07a69f21c1b1dfa2c8c0fb8b6c95655 14-Jul-2014 Dan Sandler <dsandler@android.com> Prevent dismissing autoredacted private notifications.

Bug: 16295169
Change-Id: Ic1a13ae1a501ae4a5633ef9c84c59ff13543eb1b
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
a7fe63190cc3f95af1830886edd80acef0c334e3 27-Jun-2014 Christoph Studer <chstuder@google.com> Inline replace notification views when layout changes

Instead of going through a full remove / add when a notification
is updated with a different layout, only re-inflate the inner views.

Bug: 15869868
Change-Id: Ie18c431e7b3e2a6209d4a9b6418b3150781a063f
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.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/ExpandableNotificationRow.java
11298830114a195a149ef23633c96fb3cef5399b 24-May-2014 Jorim Jaggi <jjaggi@google.com> Fade notification contents when expanding/contracting

Bug: 15284460
Change-Id: If0f18e0b8fc9e7410cc6ef2a7976bcec49a6eb6e
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
2f0df8ae038dbb873bf2e11e1e13c75cf95b0198 10-Jun-2014 Selim Cinek <cinek@google.com> Fixed several bugs with redaction.

The Notification row was in most cases directly referring to
the private layout which lead to numerous bugs.

Bug: 15107339
Bug: 15536865
Bug: 15181880
Change-Id: Id1021eb853d67db168c9471d7dacbe5265c4ba2f
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
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/ExpandableNotificationRow.java
24d7cfa4d6a3331708bb7b37f551b4f534b02f7c 20-May-2014 Selim Cinek <cinek@google.com> Fixed measuring and layouting of the more card and expandableviews.

Change-Id: I2848b39c6498ce9ad197ed7bad8423c74b372419
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
863834bd96bdebcf21f4c4a7d8285d4858c061e4 20-May-2014 Selim Cinek <cinek@google.com> Fixed a big with the vetobutton, circumventing double tapping.

Change-Id: Ie31d06fe4e2454cf6a3223bef75eca2c76f47b59
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
c9c00ae2fa5fb787e9f12705f8cd8de445ecde4b 20-May-2014 Selim Cinek <cinek@google.com> Fixed several bugs introduced by the new background views.

Also notifications are now limited to 4U again.
Bug: 14880580

Change-Id: I05d19981ad1bb06687bf6c994608e21ac925a759
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
c27437b7fd04e682ae2abdf0727a99bf5c6e409d 14-May-2014 Selim Cinek <cinek@google.com> Implemented visual speed-bump for notifications.

The separation between the important and the less important
notifications has now a visual representation.

Bug: 14607473
Change-Id: I8baa0a08924ec041be2884a2834139477313ab40
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.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/ExpandableNotificationRow.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/ExpandableNotificationRow.java
4222d9a7fb87d73e1443ec1a2de9782b05741af6 23-Apr-2014 Jorim Jaggi <jjaggi@google.com> Change interaction for dragging down to full shade.

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

Change-Id: I9ecd020ca263b0f84e87fd6ab2332519ac5e9984
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
ecbab3662d4474bbb45477939aaa167eb883212b 23-Apr-2014 Jorim Jaggi <jjaggi@google.com> Introduce SHADE_LOCKED as a special state for the shade.

This state can be either reached by tapping the more card or dragging
down on any card. In this state, the shade is fully interactive, but
the phone is stil locked. This state can only be enterred if
redaction is off but security is on. If redaction is on, we will show
the bouncer instead and go to the normal shade.

Bug: 14161523
Change-Id: I95ca0991745ffc11ed1028581e3da15265c12ae5
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
dce3c4cca5d4df4cc49c1a9f0537e2fecdbc45d2 29-Apr-2014 Jorim Jaggi <jjaggi@google.com> Prevent expanded notifications on lockscreen.

Change-Id: I9a0ffca823883cfed75d0e093f5a4364b20008b3
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.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/ExpandableNotificationRow.java
fe40f7d13bfc1faa35c9a131ce4be5104cb8f6b9 28-Apr-2014 Jorim Jaggi <jjaggi@google.com> Flatten notification hiearchy and remove glow.

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

Change-Id: Iac16892cb3b7bb1de3001954b1428796b07950c1
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.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/ExpandableNotificationRow.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/ExpandableNotificationRow.java
c5dc0d0cce373fbf292e13633c114a431d747167 15-Apr-2014 Jorim Jaggi <jjaggi@google.com> Zoom notifications on lockscreen after tapping.

For the double tap interaction, this change introduces a new cue
that the notifications must be double-tapped: With the first tap,
the tapped notifications gets larger and the others fade out a bit.

Change-Id: Ib48ff0291aee1a5ec083b9e7ed1021bc420514cf
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
4673985b752f88434f7aeb726e3a2b8010efdb70 15-Apr-2014 Jorim Jaggi <jjaggi@google.com> Set background of legacy custom notifications views to dark.

Change-Id: Ifa0c68386eb84b2a83e4e88efda32ad75f28ea77
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.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/ExpandableNotificationRow.java
251957d76e57eb6e5f8068b37346144e10e586a4 09-Apr-2014 Jorim Jaggi <jjaggi@google.com> Double tap interaction for notifications on lockscreen.

This change also uses a different background for notifications on the
lockscreen and moves the background drawable from the templates to
SystemUI.

Bug: 13635952
Change-Id: Icf09178065aa7fc0472adef70342d637fbcca785
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
a5e0f415d351ad1a9c0ffde8d93df91a2384591f 23-Jan-2014 Dan Sandler <dsandler@android.com> SystemUI support for notification visibility.

In this implementation, DISABLE_NOTIFICATION_TICKER (which was never
really used on its own and can be safely subsumed by
DISABLE_NOTIFICATION_ICONS) is now DISABLE_PRIVATE_NOTIFICATIONS;
when this SystemUI bit is set by the keyguard, SystemUI knows to switch
its presentation into "public" mode, in which
VISIBILITY_PRIVATE notifications are replaced with their
publicVersion's contentView (or a placeholder view,
synthesized by SystemUI, that leaks no additional
information about the notification). VISIBILITY_SECRET
notifications are suppressed altogether in this mode.

This behavior is enabled but not activated by default. To
turn it on, run:

$ adb shell settings put secure lock_screen_allow_notifications 1

and restart SystemUI.

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

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

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

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

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

Change-Id: I36464f110cfa0dabc3f35db7db6c35c27e8ee2ba
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java