230087 Commits

Author SHA1 Message Date
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
Akshay Kannan
5b63b416fc Flip EMERGENCY_ASSISTANCE_ENABLED to true
Bug: 23591361

Change-Id: I4f463a709137b6f37a1abc6c420834fee200551e
2016-01-15 13:14:45 -08: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
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
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
Daniel Sandler
76f28bbd64 Merge "Stop leaking Notifications when they change groupKeys." into mnc-dr1.5-dev 2016-01-15 21:05:41 +00:00
Yohei Yukawa
70f5c48e8e There should be a way to clear additional subtypes.
InputMethodManager#setAdditionalInputMethodSubtypes() is the only API
that allows IMEs to add and remove additional subtypes.  However, due to
a bug, there is no way to clear the last entry of additional subtypes
because the API in question does nothing if the given array is emptry.

With this CL, an empty array is treated as a valid input.

This CL also adds a JavaDoc comment about a possible way to work around
this limitation in Android M and prior devices.

Bug: 26298984
Change-Id: I3731f84531247d071d9d88861e9079afc244a4e8
2016-01-15 21:02:52 +00:00
Dan Albert
2edfa8c9b0 Merge "Make the appropriate cast to protect from mingw."
am: dbf8c17bd2

* commit 'dbf8c17bd20c3c5b4ba99242afa8b714841914d1':
  Make the appropriate cast to protect from mingw.
2016-01-15 21:02:29 +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
Dan Albert
dbf8c17bd2 Merge "Make the appropriate cast to protect from mingw." 2016-01-15 20:41:23 +00: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
Dan Albert
ed811eeaea Make the appropriate cast to protect from mingw.
As the comment at the top of the file says:

    STATUST: mingw does seem to redefine UNKNOWN_ERROR from our enum
    value, so a cast is necessary.

Bug: http://b/26523949
Change-Id: I9d86cafdc47bbb9ce0e967cdde9315babc083432
2016-01-15 12:16:06 -08: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
Shreyas Basarge
347c2780aa Fix for possible NPE in JobScheduler
Fixes a possible NPE in JobScheduler

Change-Id: I4faa414ea92ab65326001f83de4624834b5ed955
2016-01-15 18:24:36 +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
Richard Uhler
56178b8fcb Merge "Use NativeAllocationRegistry for Paint, Canvas, and Bitmap" 2016-01-15 18:23:29 +00:00
Wale Ogunwale
9101d26643 Allow AMS.moveTasksToFullscreenStack moving tasks onTop
Bug: 26573473
Change-Id: I4517ac2b3e803637971c329be2511ba66412d815
2016-01-15 10:22:38 -08:00
Selim Gurun
57eb3264c9 Add the TokenBindingManager
Bug: 22665752

Add the webview APIs to manage token binding protocol keys.

Change-Id: Ie2eae543869b1ae91cdb4e70217c28b9a8a465cf
2016-01-15 10:19:38 -08:00
Ian Pedowitz
e9a24d0a85 Merge "Fix crash in KeyguardManager.isDeviceLocked" 2016-01-15 17:51:25 +00:00
Aga Wronska
619f3be0fa Add Search View UI tests
Change-Id: I67726e7764ec147c5987cbf737f763c3146f5766
2016-01-15 09:49:36 -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
Jaewan Kim
52632e21fa PIP: Use long press HOME for PIP on Android TV (2/2)
Bug: 25580820
Change-Id: Ic269132ec7de1e725989ad57a1ee205b3334e3bb
2016-01-15 09:29:34 -08: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
Rubin Xu
75431fbe36 Add JNI bridge to the new logd security buffer.
Bug: 26127031
Bug: 22860162
Change-Id: I14e08850ece7d9c0229b7213ee2e25cd089defc1
2016-01-15 17:18:49 +00:00
Neil Fuller
3ad7e7cb87 Merge "Add thread safety documentation" am: b3ea05a56e
am: f19a33a070

* commit 'f19a33a0704d0e605c0a5206fe5df3ab7dbf6864':
  Add thread safety documentation
2016-01-15 17:06:49 +00:00
Clara Bayarri
078e91b03a Fix crash in KeyguardManager.isDeviceLocked
A missing clearCallingIdentity was causing crashes when
isDeviceLocked is queried.

Bug: 26576080
Change-Id: I2d78e803873a02861335a95b1bbf13a4d9b45655
2016-01-15 16:59:14 +00:00
Neil Fuller
e08a570b43 Merge "resolve merge conflicts of 69c2907c63 to master." 2016-01-15 16:57:03 +00:00
Neil Fuller
04ca8065e4 resolve merge conflicts of 69c2907c63 to master.
Change-Id: I0aba5f7715ac1d25ef233fe4fdad794e8847bed9
2016-01-15 16:55:48 +00:00
Julia Reynolds
f4fb94ceab Merge changes I1149cb5b,Ib89a17aa
* changes:
  Allow condition providers to specify a rule instance limit.
  Verify zen rule owners before persisting rules.
2016-01-15 16:43:57 +00:00
Trevor Bunker
3c288e6f2e Define TYPE_DEVICE_ORIENTATION
Bug: 23470411
Change-Id: Iceba2656936525c655f23fb00bb77521c432ba6a
2016-01-15 16:40:07 +00:00
Philip P. Moltmann
d55ece0b38 Merge "Enforce non-nullness in PrinterId and exploit it." 2016-01-15 16:38:17 +00:00
Derek Sollenberger
f8ac3643c5 Merge "Restore old behavior of setLocalMatrix" 2016-01-15 16:37:11 +00:00
Neil Fuller
f19a33a070 Merge "Add thread safety documentation"
am: b3ea05a56e

* commit 'b3ea05a56ea980541d328ab7534a2da230d62c06':
  Add thread safety documentation
2016-01-15 16:36:34 +00:00