229894 Commits

Author SHA1 Message Date
Jeff Sharkey
12cde00dc0 Merge "Prepare app data only when storage is available." 2016-01-16 00:41:08 +00:00
Brad Ebinger
2e98cfd70b Merge "Refactoring and cleanup" 2016-01-16 00:24:43 +00:00
Anthony Chen
c1ed93eb7b Merge "Separate notification area into own controller." 2016-01-16 00:23:57 +00:00
Jorim Jaggi
98d2f1532a Merge "Fix build" 2016-01-16 00:21:18 +00:00
Jorim Jaggi
0da43029fd Fix build
Change-Id: I6d4bebf90c11a4a00d259aac34bb9459d973da9b
2016-01-15 16:20:25 -08:00
Wale Ogunwale
55bd026e75 Merge "Don't mark wallpaper windows as visible when it's surface is hidden." 2016-01-15 23:55:10 +00:00
Wale Ogunwale
21e0917d73 Merge "Fix split-screen visible apps issue when screen is rotated on lockscreen" 2016-01-15 23:55:04 +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
Mikhail Naganov
2a0a2e0129 Merge "Mark Context.BIND_EXTERNAL_SERVICE as SystemApi" 2016-01-15 23:44:23 +00:00
Youngsang Cho
d7358f5463 Merge "Initial check-in of picture-in-picture system-ui" 2016-01-15 23:39:14 +00:00
Wale Ogunwale
329b7e5fa5 Don't mark wallpaper windows as visible when it's surface is hidden.
Also, cleaned up the visibility methods a little.

Bug: 26440195
Change-Id: I27451e980b437f6c4e1e5488d8ada42312a113bb
2016-01-15 15:35:40 -08: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
Shreyas Basarge
362858b3b8 Merge "Adds sourcePackageName field to JobStatus" 2016-01-15 23:12:15 +00:00
Paul Mclean
33c1c5560a Merge "Native Audio Routing and (Java) AudioRouting (interface)." 2016-01-15 23:07:39 +00:00
Jeff Sharkey
0e62384ccb Prepare app data only when storage is available.
Before this change, scanning a package aggressively tried checking
to ensure that private app data was prepared.  However, in an FBE
world we may not have access to that data at scan time.  So this
change shifts the preparing of private app data until later: it
prepares DE storage when a user is started, and CE storage when a
user is unlocked.  Wire ourselves into the user lifecycle so we can
prepare storage at both user start and unlock.

When DE/CE storage becomes available, this change reconciles any
found packages against known installed apps, and deletes any orphaned
data directories.

We now need to store the last-restorecon hash in an xattr on a
per-user directory basis, since we can't restorecon CE storage until
it's unlocked, or adopted storage until it's mounted.  Remove a
bunch of used logic for loading dynamic SELinux policy at runtime;
our policy always comes from the system image.

Bug: 26466827, 26544104
Change-Id: I8d0a4ef862c35f4e4ef5c7f20d3bb8f12ba3fd4b
2016-01-15 16:01:17 -07:00
Paul McLean
ed36ca3d4f Native Audio Routing and (Java) AudioRouting (interface).
Adding AudioRouting (Java) interface for routing control
in AudioTrack and AudioRecord.
Deprecating current (Marshmallow) Routing APIs in
AudioTrack and AudioRecord.
Adding package-private constructors to AudioTrack and AudioRecord
to connect to native player/recorder.

Bug: 23899814
Change-Id: I7df7a687fbd56a34c1f5769ffe005eba2a059505
2016-01-15 15:59:37 -07:00
Shreyas Basarge
968ac75c20 Adds sourcePackageName field to JobStatus
Platform apps can schedule a job on behalf of
some other package. Battery stats and appIdleState
will be computed using sourcePackageName.

Change-Id: If52f6e1db3a563ef0854d1f59fbc6088a0c29ad1
2016-01-15 22:46:28 +00: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
fdc97ae2ee Fix flickering while dismissing docked stack
Make sure the docked stack is at least 1 px wide/high, or else
activity manager will think the bounds are empty and thus assume
fullscreen.

Change-Id: Ib71f8f77f4f594057ecf016914f1e6ea88995597
2016-01-15 14:32:13 -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
Jorim Jaggi
844e1712df Don't relayout when windows move during resize
Not needed and just increases system load.

Bug: 25015474
Change-Id: Iaf871389527237b5cbc88c03b2f060629b6351dc
2016-01-15 14:31:20 -08:00
Jorim Jaggi
4846ee3cc3 Optimize window relayouts when dragging divider
- Communicate the resize mode to ViewRootImpl. If it is a docked
divider resize, do not call relayout for every traversal.
- Do not call Task.resizeWindows() unconditionally when changing
Stack bounds. It might be just a move.
- However, not calling relayout breaks layout bounds while
relaunching. To fix that, do the following:
-- Inform ViewRootImpl that the activity just relaunched, and force
a relayout call in the next traversal so the client can pick up
the unfrozen bounds.
-- When unfreezing the bounds, cause a traversal in window manager.

Bug: 25015474
Change-Id: Iab9a445dabce4f6ec1e25957038fe40a4be65246
2016-01-15 14:31:08 -08:00
Hall Liu
3f93288bb0 Merge "Add method to dump Telecom analytics" 2016-01-15 22:28:09 +00:00
John Reck
e5a1b94aab Merge "Revert "Revert "Fix leak in unclipped save layer""" 2016-01-15 22:11:11 +00:00
John Reck
7db5ffb7db Revert "Revert "Fix leak in unclipped save layer""
This reverts commit a6fc36d4cd7f27147fd304960acdd1d2f47fc1c6.

Change-Id: I6b96afe4a32dc894d5b17cfb870b45063257aed2
2016-01-15 13:59:37 -08:00
Yohei Yukawa
ccc2e0d9df Merge "Replace Locale with LocaleList in LocaleSpan." 2016-01-15 21:46:36 +00:00
Yohei Yukawa
c38b519539 Replace Locale with LocaleList in LocaleSpan.
This is a straightforward upgrading of LocaleSpan.

LocaleSpan was designed to be a mechanism to override text locale only
in a certain substring.  Since now text locale supports multiple locales
with LocaleList, it should make sense to let LocaleSpan have the ability
to have multiple locales with LocaleList.

This CL also addresses an existing issue that LocaleSpan maintained only
Language/Country/Variant tags.  Now Locale data associated with a
LocaleSpan is guaranteed to be preserved as long as each of them can be
created from a BCP 47 language tag with Locale#forLanguageTag(String).

Bug: 26567158
Change-Id: Ib754796d399cd00f9d02005df88874a5cd5c7642
2016-01-15 13:14:03 -08:00
Selim Gurun
8a47292e1c Merge "Revert "Revert "Add the TokenBindingManager""" 2016-01-15 21:11:07 +00:00
Selim Gurun
504b81b02c Revert "Revert "Add the TokenBindingManager""
This reverts commit d1ec6356b346a4f420623fd035802065924bc164.

Change-Id: I75e4d9226808a30532f5c593123e59b78cd1e761
2016-01-15 21:10:52 +00:00
Selim Gurun
c0a0bf8d16 Merge "Revert "Add the TokenBindingManager"" 2016-01-15 21:01:31 +00:00
Hall Liu
0464b9ba16 Add method to dump Telecom analytics
Add dumpAnalytics in TelecomManager to allow the connectivity stats
service to access Telecom analytics for uploading.

Change-Id: I197d6af340fac7f38b28bb44a476b5e694db4dba
2016-01-15 12:43:27 -08:00
Selim Gurun
d1ec6356b3 Revert "Add the TokenBindingManager"
This reverts commit 57eb3264c9735953176f9bb0c14874f65cee85af.

Change-Id: Ie74b64a181eb08dbfa1aeca99322be377e9f1d9c
2016-01-15 20:34:02 +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
Yao Chen
9941ab3cbb Merge "Changes in DeviceIdlecontroller and JobScheduler to support Auto GarageMode." 2016-01-15 20:09:11 +00:00
Yao Chen
ca5edbb6b5 Changes in DeviceIdlecontroller and JobScheduler to support Auto GarageMode.
Changes made in the cl:
1. Let DeviceIdleController take listeners on whether background
maintanence services are active. This currently includes JobScheduler,
SyncManager, DownloadService. Note this is the last known
states reported by these services.

2. In JobScheduler, make the idle threshold and alarm window configurable.
So in the car case, we don't need to wait 71 mins after screen off
to kick off any jobs that require device idle.

-------------------------------------------------------------------

* We are not going to suppress JobScheduler, DownloadService, SyncManager
entirely while user is driving. Because apps may not be working properly if
these services are suspended.

* The jobs that we don't allow to run while driving are the
jobs submitted to JobScheduler that require device idle.
And this is already taken care of, because
screen is ON and JobScheduler will not consider the device to be idle
while driving (unless user turns off the head unit).

* We will need to give the JobScheduler a chance to run the device idle
jobs when car is turned off. This is the scope of GarageMode. If
DownloadService and SyncManager want to run, we will allow them to run
too.

* The headunit is treated as wall power device, so it's always charging.
The charging state will not toggle.

Change-Id: I55b92cf92efd61c48dd6c9b8197c2b68078a4439
2016-01-15 12:06:30 -08: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
Youngsang Cho
11a27b19d1 Merge "PIP: Use long press HOME for PIP on Android TV (2/2)" 2016-01-15 19:56:55 +00:00
Mikhail Naganov
8a790c0469 Mark Context.BIND_EXTERNAL_SERVICE as SystemApi
This way, it can be used in WebView's Chromium code.

Bug: 22084679
Bug: 21643067
Change-Id: Ia34f08857d02876f94b24df79c46212d34b01036
2016-01-15 11:32:14 -08:00
Alan Viverette
34929e2965 Merge "Don't set date picker dialog title on date changed" 2016-01-15 19:19:38 +00:00
Selim Gurun
e61e5af42a Merge "Add the TokenBindingManager" 2016-01-15 19:08:49 +00:00
Alan Viverette
a884fbeed9 Merge "Remove delay before performing drop down item click" 2016-01-15 19:04:40 +00:00
Christopher Tate
e9fd1fa31a Back up / restore runtime permission grants
Only user-originated grant actions are backed up/restored.  This
includes outright grants, one-time denials, and "never ask again"
type denials.

Bug 19870549

Change-Id: I78b4a8abb713dc5d74b93cb53217b212d57b26e4
2016-01-15 10:44:48 -08:00
Aga Wronska
9e74b3b88d Merge "Add Search View UI tests" 2016-01-15 18:30:53 +00:00
Chong Zhang
bd925dac2d Merge "Fix missing dialog windows" 2016-01-15 18:24:09 +00:00
Adam Lesinski
775f073f75 Merge "Fix FeatureSplit tests to work properly with Java code" 2016-01-15 18:23:33 +00:00