13200 Commits

Author SHA1 Message Date
Jason Monk
9e5341f4fe Tuner control over volume policy.
Change-Id: Ic96ad05a9aab6fc2a1669cfe5f1ba1f3779e1b5e
2016-01-19 18:22:33 +00:00
Jason Monk
6e580aef16 Merge "Add zen panel to volume dialog again in tuner" 2016-01-19 18:22:13 +00:00
Jason Monk
e138f55512 Add zen panel to volume dialog again in tuner
Change-Id: Ie74a6bd8ecd7f2d8b16e96cc0087e63796d5f9a2
2016-01-19 15:30:07 +00:00
Rubin Xu
058576f13e Merge "Reload active profiles when constructing WorkModeTile" 2016-01-19 14:24:45 +00:00
Sudheer Shanka
7ae8b9aac8 Add permission MANAGE_DEVICE_ADMINS to SystemUI.
Change-Id: Ic9fcfc6b2d76297d1226da4329e7dd7a66131ec2
2016-01-18 19:53:08 +00:00
Filip Gruszczynski
f298e908b9 Enable enter animation when docking by dragging from recents.
This requires further work on the sysui side (the view disappears
before the animation starts), but it shows that existing
infrastructure on the WMS side is sufficient.

Bug: 24913915
Change-Id: I7ce20fdd21ee76db4720a3d0fefdfa221b0e96bf
2016-01-18 08:59:45 -08:00
Sudheer Shanka
476da95b28 Merge "Check for null values when copying enforcedAdmin in QSTile.State." 2016-01-18 16:11:42 +00:00
Sudheer Shanka
1c09db211c Check for null values when copying enforcedAdmin in QSTile.State.
Bug: 26612685
Change-Id: I8228d1dffc3623d3589b51c6c33f07cc53605ef2
2016-01-18 16:05:10 +00:00
Geoff Mendal
dc53d4f279 Import translations. DO NOT MERGE
Change-Id: I48b3ccb767e10aa277cf91c311998edf90f91b18
Auto-generated-cl: translation import
2016-01-18 06:08:46 -08:00
Rubin Xu
0e4418f132 Reload active profiles when constructing WorkModeTile
There seems to cases when after QSTile is constructed, handleUpdateState()
is called without setListening(true) being called first. In the WorkModeTile
case it leads to the tile removing itself. The fix is to reload active profile
list in the constructor so handleUpdateState() would not remove itself because
it thinks there is no active profile.

Bug: 26178050
Change-Id: I3516c85ffcf00730c3afd67f9fdec1d41c781c0a
2016-01-18 11:02:18 +00:00
Jason Monk
f668d7cceb Support data usage changes in Settings
Change-Id: I78c6a3956e7136c3ed64d9323d3fe74df2898c5d
2016-01-16 11:18:59 -05:00
Thierry Strudel
e5480cc52a Merge "Supply content description for QS disconnect buttons" into mnc-dr1.5-dev am: fc7e682f44 am: f4dd31755a
am: 3b6c965570

* commit '3b6c965570e5f4f54a78a6478bac40a355c6b372':
  Supply content description for QS disconnect buttons
2016-01-16 02:28:30 +00:00
Daniel Sandler
7965ebe42a Merge "Stop leaking Notifications when they change groupKeys." into mnc-dr1.5-dev am: 76f28bbd64 am: 3be84505f4
am: 8afab95aa9

* commit '8afab95aa976cc1d07ee307df9fa85f505ba800c':
  Stop leaking Notifications when they change groupKeys.
2016-01-16 02:26:53 +00:00
Thierry Strudel
3b6c965570 Merge "Supply content description for QS disconnect buttons" into mnc-dr1.5-dev am: fc7e682f44
am: f4dd31755a

* commit 'f4dd31755a31a2eea6e363a1ab45a4a8634e27ed':
  Supply content description for QS disconnect buttons
2016-01-15 23:51:19 +00:00
Anthony Chen
83092c6cbb Separate notification area into own controller.
Extracts the notification area of the status bar into a layout file and
create a NotificationAreaController that controls what happens in this
area.

This is to allow this area to be configurable in Android Auto Embedded
cases where OEMs may want their own custom implementations here.

Change-Id: I8a52af676d16fd6f7d3878805970a5897d2db945
2016-01-15 15:48:27 -08:00
Thierry Strudel
f4dd31755a Merge "Supply content description for QS disconnect buttons" into mnc-dr1.5-dev
am: fc7e682f44

* commit 'fc7e682f445fbf358e59205912229b63c5fadda4':
  Supply content description for QS disconnect buttons
2016-01-15 23:47:53 +00:00
Thierry Strudel
fc7e682f44 Merge "Supply content description for QS disconnect buttons" into mnc-dr1.5-dev 2016-01-15 23:44:45 +00:00
Youngsang Cho
f164792472 Initial check-in of picture-in-picture system-ui
Bug: 26549507
Change-Id: I6c69b5e2b5492858fc997657b5a06d3e50ca16e3
2016-01-15 15:27:13 -08:00
Jorim Jaggi
00f33ec9a1 Merge changes I0b8b2ee3,Ib71f8f77,Ica481295,Iaf871389,Iab9a445d
* changes:
  Restrict drag in gesture to recents button
  Fix flickering while dismissing docked stack
  More optimization while dragging docked divider
  Don't relayout when windows move during resize
  Optimize window relayouts when dragging divider
2016-01-15 22:40:49 +00:00
Wale Ogunwale
2fd3f122bf Merge "Allow AMS.moveTasksToFullscreenStack moving tasks onTop" 2016-01-15 22:37:12 +00:00
Jorim Jaggi
298c081151 Restrict drag in gesture to recents button
Bug: 26317834
Change-Id: I0b8b2ee3b552b979c22b2135056c9899273886a0
2016-01-15 14:32:24 -08:00
Jorim Jaggi
2e95a488e0 More optimization while dragging docked divider
- Make sure mPendingBackdropFrame gets also set when if the window
triggers a relayout on it's own, so it doesn't call into window manager
all the time.
- Set the insets of the docked divider to empty so we don't trigger a
layout when we are just moving it - it doesn't need it in any case.
- Send a window move message to the divider when it moved
- Update attach info in all move cases, update light center

The whole resize operation now only takes around 4ms per frame, and
leaves a lot more resources for the apps to do configuration changes.

Bug: 25015474
Change-Id: Ica48129570a0fc858a89c21f46abf3442efb0224
2016-01-15 14:31:50 -08:00
Daniel Sandler
8afab95aa9 Merge "Stop leaking Notifications when they change groupKeys." into mnc-dr1.5-dev am: 76f28bbd64
am: 3be84505f4

* commit '3be84505f41e58125b4449f0506d518bd2f1ae95':
  Stop leaking Notifications when they change groupKeys.
2016-01-15 21:18:20 +00:00
Daniel Sandler
3be84505f4 Merge "Stop leaking Notifications when they change groupKeys." into mnc-dr1.5-dev
am: 76f28bbd64

* commit '76f28bbd64a6841a91d4890d7a248411fd95b149':
  Stop leaking Notifications when they change groupKeys.
2016-01-15 21:14:01 +00:00
Julia Reynolds
2ccd64777c Merge "Prevent users from blocking certain system notifications." 2016-01-15 20:21:21 +00:00
Winson
036693cf71 Preventing dock target from showing for single tasks.
Change-Id: I2a73c085e3777ac79f2846e1ba59f7c65bc3f9d0
2016-01-15 20:09:20 +00:00
Victor Chan
59f1744ef4 Merge "Highlight car nav facet when recent task changes." 2016-01-15 20:03:31 +00:00
Victor Chan
1c6d0589f1 Highlight car nav facet when recent task changes.
CarStatusBar will now register a ITaskStackListener
to handle changes in task stack and highlight the
appropriate facet for the current task. Currently using resource
defined package names and category to the filter for a given
facet. OEMs are expected to use categories definied in Intent.java

Also refactored business logic from CarNavigationBarView
into CarNavigationBar controller.

Change-Id: I203917ea43f2f488a1167f27dab84f1c451b3e93
2016-01-15 12:02:11 -08:00
Julia Reynolds
21c30548ba Prevent users from blocking certain system notifications.
Bug: 26575595
Change-Id: I0c890852a441085fffab143a590a12fbd7f2b2a3
2016-01-15 15:00:02 -05:00
Wale Ogunwale
9101d26643 Allow AMS.moveTasksToFullscreenStack moving tasks onTop
Bug: 26573473
Change-Id: I4517ac2b3e803637971c329be2511ba66412d815
2016-01-15 10:22:38 -08:00
Xiyuan Xia
6a13e3be66 Merge "Refactoring for better extendability" 2016-01-15 17:31:32 +00:00
Sudheer Shanka
2887ab97d1 Merge "Add permission MANAGE_PROFILE_AND_DEVICE_OWNERS." 2016-01-15 17:30:07 +00:00
Sudheer Shanka
9a2eb85a03 Add permission MANAGE_PROFILE_AND_DEVICE_OWNERS.
It is required to query getUserRestrictions from DevicePolicyManager.

Change-Id: I5218f8cbe225ddd9ed8a74db94133bda5b571cc3
2016-01-15 17:20:55 +00:00
Dan Sandler
24813b0dd5 Stop leaking Notifications when they change groupKeys.
If a Notification changes groups (either from one group to
another, or gets a group key for the first time, which takes
it out of its implicit singleton group) it should be removed
from the old group in NotificationGroupManager's mGroupMap
and re-inserted under the new one.

Unfortunately we were passing the *new* notification in the
oldNotification argument, so we would always attempt (and
fail) to remove it from the *new* group, leaving a strong
reference to the Notification inside mGroupMap under an
obsolete group key.

Bug: 26561365
Change-Id: Ie5cdceb4f843dbd363652e00fbc0f3ac6f6ef247
2016-01-15 10:29:31 -05:00
Winson
6ea2588a5d Fixing issue with action button not showing/animating.
- The system flags need to be reread when the task stack is reset.
- Since we check for alpha before doing the animation, we need to
  initialize the action button alpha back to zero when we reset the
  task view.

Change-Id: I97530a7bdd5e934ab1d5831ef30cf7774418ed95
2016-01-14 15:31:54 -08:00
Winson
f3918002f3 Fixing issue with checking the docked stack state for the wrong user.
Bug: 26256285

Change-Id: I068ee8250dc75bda984092300d75031422fbbd11
2016-01-14 15:31:47 -08:00
Winson
d8d896cefa Adding logging for history and paging.
Change-Id: Ibd9ff72858897c0a3680e81b94172e667e1291cc
2016-01-14 15:31:43 -08:00
Winson
df3012bc8d Enforce single deletion per key press.
Bug: 26467824
Change-Id: I88542cfbd52a4a60bc8319390f2688fac5f2c754
2016-01-14 15:31:39 -08:00
Winson
4b057c6787 Fixing crash when dismissing last stack task.
- The crash was due to us trying to get an anchor task when there were
  no more tasks in the stack.  The original call to check the stack
  task count was poorly named so updating the name of that call as well.

Bug: 26500050

Change-Id: I9652e90a6a2e19008c5c84ce877afca576b3175f
2016-01-14 15:31:35 -08:00
Winson
671e8f91aa Removing custom swipe helper.
Change-Id: Ic28ab343f86ab6f80d8c0409a3218513bd8880af
2016-01-14 15:31:16 -08:00
Winson
5500390a00 Reducing numerous extraneous allocations.
Change-Id: Icca49f12a9e0be08eb6d4dbbbf2fd5994a3a25a5
2016-01-14 15:23:38 -08:00
Winson
407d8d08f0 Ensure that the front-most task never dims when scrolling the stack.
Change-Id: I370311b78203c079c4bbfa67753da13f91a15cbc
2016-01-14 15:23:34 -08:00
Winson
3e87474145 Improving drag and drop animations.
- Expanding drop targets to indicate the size of the to-be docked window
- Fixing animation when dropping task
- Fixing drag view z order
- Fixes issue where the dock divider position in WM is not exact
- Requiring user to move the slop distance before accepting drops

Change-Id: I2f6eab504db7126c19e0c680629e89a39e7512e3
2016-01-14 15:23:20 -08:00
Peter Schiller
b124d5607f Indicator for task auto-select
Change-Id: I081222b84a5f90e77890724977821ed481fe3924
2016-01-14 14:37:11 -08:00
Xiyuan Xia
1b30f79cff Refactoring for better extendability
- Exposing members of PhoneStatusBar, StatusBarKeyguardViewManager and
  KeyguardBouncer to sub class;
- Add a configuable SystemUIFactory as class factory for components;
- Add logoutCurrentUser and switchToByUserId to UserSwitcherController;

BUG:22407003
Change-Id: I3902baf3c721d89217b27a6310c4202a198cb209
2016-01-14 09:47:57 -08:00
Dan Sandler
b3f1109d99 Supply content description for QS disconnect buttons
Bug: 26555270
Change-Id: I3803c7ad78a64894eca5c36f5d9ecf7fc4a6ad92
2016-01-14 11:38:35 -05:00
Sudheer Shanka
f8f858e4ea Merge "Add restricted padlocks to tiles in quick settings." 2016-01-14 16:11:12 +00:00
Jorim Jaggi
fdbdb9f9c6 Merge changes I55d96ec3,I0ebc4639
* changes:
  Reenable task preloading in recents
  When creating docked stack, use SnapAlgorithm
2016-01-14 01:08:52 +00:00
Jorim Jaggi
a0fdeec66c Reenable task preloading in recents
Make sure to call the task stack changed listener only when
app visibilities changed. This fixes the problem of too many
callbacks when just focusing another activity.

Bug: 26420341
Change-Id: I55d96ec367f7461be1f3e35bc0d12ae4b050ece0
2016-01-13 16:20:38 -08:00
Selim Cinek
a8a4d29aec Merge "Fixed a crash with the heads up manager" into mnc-dr1.5-dev am: d23f1eb0cd
am: 804ff964af

* commit '804ff964afed8154c5b169cd1f2bb6e89dc05f2f':
  Fixed a crash with the heads up manager
2016-01-13 23:14:26 +00:00