13053 Commits

Author SHA1 Message Date
Selim Cinek
da6f1d605b Updated notification colors
Change-Id: I23ffc7325ec4947bb0e2d767d1e2ddbaa9b3f369
2016-01-21 19:42:49 -08:00
Selim Cinek
7b73a4c1d3 Fading out the divider now when removing children
Change-Id: I4466da4f82ae4868c6d0bd023a399c6067a9c3fb
2016-01-21 19:42:49 -08:00
Selim Cinek
9969559da0 Removed staggering animation with notification groups
It was more distracting than helping

Change-Id: I5a1110268d23d9f964ad515b6fff16cf9d9a4992
2016-01-21 19:42:49 -08:00
Selim Cinek
1b5f07d403 Fixed a bug where Sysui could crash
If no title was provided, SysUI could crash in a
group.

Change-Id: I9c40175b3e40410ce5b1e8fe1ef7e6c7124b0460
2016-01-21 19:42:49 -08:00
Selim Cinek
fd3e2624b5 Added the possibility to do custom animations for certain fields
The text of the single line version now doesn't animate over anymore.

Change-Id: Id41c1145cbb07254bff599b10d4d6df84689f797
2016-01-21 19:42:49 -08:00
Selim Cinek
30e387ddce Fixed a bug where the dozemode wasn't working correctly
There where 2 different issues which could lead to the dozemode
not working correctly:
1. The new workarabout where we show the expanded notification
if it has the same size as the collapsed, requires that dozemode
is also called on the right notification
2. When the children were not layed out yet, this calculation could be
wrong and the wrong child was selected, leading to the same issue.

Bug: 26459664
Change-Id: Ib67dcaf2ba9b8b9a1bfa5ece5b7d6c4dff677939
2016-01-21 19:42:49 -08:00
Selim Cinek
646d2054dd Improved notification transformations
All views are now faded, even if they are not handled specially

Change-Id: I2970548667e0388984098293ac0dfcbdbed12df1
2016-01-21 19:42:49 -08:00
Selim Cinek
0ffbda62e5 Continued the template switch implementation
Change-Id: I86fa52f2e13d319127dcd44b98304aa3cc3c7e9e
2016-01-21 19:42:49 -08:00
Selim Cinek
4ffd63611a Changed the transformation from when switching notification views
Change-Id: I2af3c2f36787d208be7745dabae96903df256156
2016-01-21 19:42:49 -08:00
Selim Cinek
b65c6dbb2c Fixed a bug where the overflow card appear animation would get stuck
Bug: 24547258
Change-Id: I50a9404c7b9cced0e2e1a2e39ffaaf0d8bf2dfb9
2016-01-21 19:42:49 -08:00
Selim Cinek
ef5127ea5f 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
2016-01-21 19:42:49 -08:00
Selim Cinek
5bc852a950 Improved touch handling with groups and HUNS
Groups with HUNED children now don't totally destroy the touch
handling anymore.

Change-Id: I815260e22c59e939de12315a393de108fc0b47ab
2016-01-21 19:42:49 -08:00
Selim Cinek
5104a6db2e Fixed the animations on the notification scrims
When pulling down on a heads up notification the scrim would
fade in from 0 instead of fading to the new position.
The old behavior didn't work if the heads up notifications were
big, so we had to change it in order to always have a scrim.

Change-Id: I9ae387b75136c9240d863e06a8649c85b3c6c9dc
2016-01-21 19:42:49 -08:00
Selim Cinek
31aada4ef4 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
2016-01-21 19:42:49 -08:00
Jorim Jaggi
c82a7e3443 Merge changes Ifd2de38a,I57633d60
* changes:
  Divider tuning
  Fix unneccesary activity relaunches
2016-01-22 02:54:21 +00:00
Winson Chung
88766a2bd7 Merge "Fixing some small issues with the overlay." 2016-01-22 02:26:22 +00:00
Winson
4c84a8c481 Fixing some small issues with the overlay.
- Should be updating the app text color to match the activity text color
- Fixing issue with indicator showing when fast toggle is disabled but
  the indicator flag is enabled
- Tweaking layout so that the buttons are flush with the borders so that
  we capture the full area for press/long press

Change-Id: Ia9b081883562ef4fd1c01fd42bc786a1feeb0854
2016-01-21 18:14:12 -08:00
Anthony Chen
0dc24bb718 Merge "Move hard-coded dimens to dimens.xml." 2016-01-22 01:49:15 +00:00
Jorim Jaggi
df012d5102 Divider tuning
- Make it harder to dismiss
- When dragging from the bottom, don't allow dismissing at the top

Change-Id: Ifd2de38abece7b996a813af41dcf777fa5cd1c18
2016-01-21 16:24:58 -08:00
Jorim Jaggi
a95ca8de4d Fix unneccesary activity relaunches
When going from fullscreen to non-fullscreen configuration, task config
changes was always non-zero because in fullscreen, task override config
was empty. Instead, use the actual previous configuration to calculate
diff.

Also make recents handle screenLayout changes.

Bug: 26593320
Change-Id: I57633d60b1e0fc4ae506e276410191a44e1fe221
2016-01-21 16:13:16 -08:00
Winson Chung
995ef593c2 Merge changes I91c58397,I7243f30b,I0f6e9dbf,I1eb0864a
* changes:
  Adding reveal transition to show app-overlay.
  Fixing issue with multiple focus timer animations running.
  Fixing several regressions with affiliated tasks.
  Starting the dismiss animation in parallel with the gesture.
2016-01-22 00:11:52 +00:00
Winson
c5ef63f4e9 Adding reveal transition to show app-overlay.
- Instead of long-pressing the icon to launch into app info directly,
  this will mirror notifications and reveal a space that can show the
  app name and a link to app info.

Change-Id: I91c5839719b030a65744f5e677a436e9c719c578
2016-01-21 16:07:44 -08:00
Winson
b433c5be01 Fixing issue with multiple focus timer animations running.
Change-Id: I7243f30b917bb311e46efa1e09b44440a0236f07
2016-01-21 16:07:39 -08:00
Winson
65c851e6e9 Fixing several regressions with affiliated tasks.
- Now that we are sorting tasks for freeform and history, ensure that
  the affiliated tasks have a useful active time (based on the task
  they are affiliated with) for sorting
- Fix issue with the initial stack and focus state not taking the
  launch task into account due to the launchTask flag not being set
  until the activity was started (now set in RecentsTaskLoadPlan)
- Fixing issue with affiliated tasks not being launched from the stack
  due to the animation trigger not firing when the action button is
  already hidden/visible
- Fixing issue with title text being occasionally hidden (something we
  only need for freeform tasks)
- Tweaking the launch/enter animations for tasks occluded affiliated
  tasks

Bug: 26685208

Change-Id: I0f6e9dbf8deec2e4fc15364e686367cc0f57b41f
2016-01-21 16:07:31 -08:00
Winson
8aa9959413 Starting the dismiss animation in parallel with the gesture.
- Introduces notion of ignored tasks for the purposes of layout in 
  TaskStackView.  This can be used during drag and drop, and while 
  dismissing to calculate the state of the stack without the task that
  the user is currently interacting with.
- Fixing minor layout issue when the front/back task transforms are 
  improperly calculated when there is a single task
- Fixing minor issue when the anchor task is calculated incorrectly when
  dismissing task views

Change-Id: I1eb0864a52e53562e4d573a6ed4f8a5a1615aff9
2016-01-21 16:05:53 -08:00
Anthony Chen
ada13040d0 Add null checks for various buttons on the Nav Bar.
CarNavigationBarView extends NavigationBarView and provides a different
layout for the navigation bar which does not include all these buttons.
As a result, SystemUI will crash.

Change-Id: I1be079814faa26925721ec86a6f108506f54b99e
2016-01-21 14:47:32 -08:00
Anthony Chen
55e8e1ee60 Move hard-coded dimens to dimens.xml.
This is an initial change to allow the values to be overridden by
Android Auto.

Change-Id: Iaa611b6ff2ce0aa00d93776e775905c786802ef2
2016-01-21 14:33:21 -08:00
Rakesh Iyer
03b42004da Merge "Commandeer full screen user switcher for auto." 2016-01-21 18:47:07 +00:00
Xiaohui Chen
3691d64d6d Merge "sysui: refactor PhoneStatusBar" 2016-01-21 18:17:54 +00:00
Jason Monk
c9d831d6d6 Merge "Work on QS layouts" 2016-01-21 17:45:04 +00:00
Xiaohui Chen
8bdcd1fcaa sysui: refactor PhoneStatusBar
Change-Id: I4177d1d02fbafc88ad522bc483e22a68ede075ff
2016-01-21 17:35:19 +00:00
Youngsang Cho
6c1e1544bc Merge "Close picture-in-picture when a fullscreen app starts to play a video" 2016-01-21 17:08:05 +00:00
Youngsang Cho
ad8ceb037e Close picture-in-picture when a fullscreen app starts to play a video
Bug: 26549507
Change-Id: I27e8f7b1847bf0e34e7c47bf6303c425c3eb9127
2016-01-21 17:06:32 +00:00
Jason Monk
9d02a431b7 Work on QS layouts
Better layouts, less work, more columns... sometimes.

Also fix some bugs.

Bug: 26705136

Change-Id: Ia368791259a1a91522a3efb70729919da79e37ea
2016-01-21 10:44:07 -05:00
Jorim Jaggi
d54a65e6c1 Fix SystemUI animator leak am: 3c988197fa am: 7a1c656269
am: 8867fbdd8d

* commit '8867fbdd8d9a76ea31485f40822e6f77cb89725e':
  Fix SystemUI animator leak
2016-01-21 05:43:17 +00:00
Jorim Jaggi
8867fbdd8d Fix SystemUI animator leak am: 3c988197fa
am: 7a1c656269

* commit '7a1c6562694faaee4bf30a3b06573e96e93034ff':
  Fix SystemUI animator leak
2016-01-21 05:38:53 +00:00
Jorim Jaggi
7a1c656269 Fix SystemUI animator leak
am: 3c988197fa

* commit '3c988197fac989e4cca7fd1a96f6489e8ed4a05b':
  Fix SystemUI animator leak
2016-01-21 05:34:13 +00:00
Rakesh Iyer
4d5343ea3a Commandeer full screen user switcher for auto.
The full screen user switcher wasn't needed by the original
author so adapt it for the auto use case because it fits
really well. This change adds in some legal text (TBR - legal)
and tweaks the layout a bit.

Bug: 26559008
Change-Id: Ib78d0ec8a8d4ec8411dbbffe5852c5307c2cf42f
2016-01-20 18:47:03 -08:00
Jorim Jaggi
3c988197fa Fix SystemUI animator leak
When there was a state change or layout when there was an animation
set as the mobile icon in the status bar, we never stopped the old
animation, which was infinite. This was using more and more CPU because
the animations never got stopped.

To fix this, we don't update the drawable when a layout happens and we
stop the previous animation when replacing the icon.

Bug: 26616870
Change-Id: If501155d1a99d587e50a1b77ebb03a21c940662b
2016-01-21 01:59:27 +00:00
Victor Chan
770e437d30 Merge "Add ripple to navigation bar button" 2016-01-20 20:13:25 +00:00
Victor Chan
1fb5a2f657 Add ripple to navigation bar button
Change-Id: I3af5bf8e49f244987737be1df286dc52b61ff0f8
2016-01-20 12:11:51 -08:00
Sudheer Shanka
bcd2b7179a Merge "Add permission MANAGE_DEVICE_ADMINS to SystemUI." 2016-01-20 18:09:54 +00:00
Jason Monk
370153709e Merge "Fix QS to not be completely broken on landscape" 2016-01-20 16:36:51 +00:00
Jason Monk
e4e69305e4 Fix QS to not be completely broken on landscape
Change-Id: I56d44d114ab36ab552191b50a172d637f9eab6c5
2016-01-20 11:27:15 -05:00
Jason Monk
24bf3279f7 Merge "SysUI Tuner: Status bar work" 2016-01-20 14:16:09 +00:00
Geoff Mendal
d5b1958126 Import translations. DO NOT MERGE
Change-Id: I3b53dd3a54cc419adf24b7e4be9ec983197405fa
Auto-generated-cl: translation import
2016-01-20 06:05:18 -08:00
Jason Monk
3e189877ab SysUI Tuner: Status bar work
Improve general status bar goodness, more exactness, less breakage.

Extra extra icons, disabled by default.

Control all the status bar things!

Probably other stuff (10000).

Change-Id: I5d6282a4dcbcefea9f0880042cdf6293cb693712
2016-01-19 18:58:05 -05:00
Winson
c5fd350522 Removing extraneous calls.
- Removing calls to ensureCapacity, which was causing reallocations when
  using a temporary set with multiple uses.
- Fixing issue with update callback not being called when immediately 
  updating a TaskView’s transform
- Adding utility methods in preparation for refactoring code


Change-Id: If62c3751ed6af15092a34435df08bb4d627536ea
2016-01-19 22:56:52 +00:00
Winson
c8a4cdc067 Fix regression with drop targets not being visible.
- This happened because the RecentsView had the same priority as the
  touch handler, which updates the visible dock states, which RV uses
  to determine what to draw, resulting in the first time after rotation
  to not show the right targets.  The touch handler should now have a
  higher priority than the view that depends on it.

Change-Id: I9441e34f677fe105757c237db0f6970e7cf8203b
2016-01-19 22:42:53 +00:00
Filip Gruszczynski
ddd1bc7e46 Merge "Enable enter animation when docking by dragging from recents." 2016-01-19 20:30:35 +00:00