OSDN Git Service

android-x86/frameworks-base.git
8 years agoam b2b02092: Merge "Fix issue #23037899: Support for Battery Optimization permission...
Dianne Hackborn [Tue, 11 Aug 2015 00:22:58 +0000 (00:22 +0000)]
am b2b02092: Merge "Fix issue #23037899: Support for Battery Optimization permission + Dialog" into mnc-dev

* commit 'b2b020922fb51b88d34a6478209fc232702de318':
  Fix issue #23037899: Support for Battery Optimization permission + Dialog

8 years agoMerge "Fix issue #23037899: Support for Battery Optimization permission + Dialog...
Dianne Hackborn [Tue, 11 Aug 2015 00:11:20 +0000 (00:11 +0000)]
Merge "Fix issue #23037899: Support for Battery Optimization permission + Dialog" into mnc-dev

8 years agoam 77d5b914: Merge "DO NOT MERGE: Idle Job Start During SCREEN_ON or DREAMING_STOPPED...
Matthew Williams [Mon, 10 Aug 2015 22:45:06 +0000 (22:45 +0000)]
am 77d5b914: Merge "DO NOT MERGE: Idle Job Start During SCREEN_ON or DREAMING_STOPPED" into mnc-dev

* commit '77d5b91401d87610128d9bf656f66c0d74bcb254':
  DO NOT MERGE: Idle Job Start During SCREEN_ON or DREAMING_STOPPED

8 years agoam 5d05a24c: Merge "Fix wifi disable during restore" into mnc-dev
Chris Tate [Mon, 10 Aug 2015 22:39:54 +0000 (22:39 +0000)]
am 5d05a24c: Merge "Fix wifi disable during restore" into mnc-dev

* commit '5d05a24cff5be83dc7b03deccfb7f52b0066b34e':
  Fix wifi disable during restore

8 years agoMerge "DO NOT MERGE: Idle Job Start During SCREEN_ON or DREAMING_STOPPED" into mnc-dev
Matthew Williams [Mon, 10 Aug 2015 22:36:49 +0000 (22:36 +0000)]
Merge "DO NOT MERGE: Idle Job Start During SCREEN_ON or DREAMING_STOPPED" into mnc-dev

8 years agoMerge "Fix wifi disable during restore" into mnc-dev
Chris Tate [Mon, 10 Aug 2015 22:33:05 +0000 (22:33 +0000)]
Merge "Fix wifi disable during restore" into mnc-dev

8 years agoDO NOT MERGE: Idle Job Start During SCREEN_ON or DREAMING_STOPPED
Kevin Zhu [Mon, 29 Jun 2015 23:06:49 +0000 (16:06 -0700)]
DO NOT MERGE: Idle Job Start During SCREEN_ON or DREAMING_STOPPED

BUG: 23086704
Cherry-picked from https://android-review.googlesource.com/#/c/162280/
When the screen goes off or dreaming start, an alarm will be
scheduled and idle state will be true when the alarm expired.
If the screen goes on or dreaming stop happens before
the alarm expired, the alarm isn't cancelled and idle state is
set to be true when the device is in SCREEN_ON or DREADING_STOPPED
state. There is also a case that Idle alarm triggered when
the screen on or dreaming stop just start to be processed.
ACTION_TRIGGER_IDLE will set mIdle to true during screen on
or dreaming stop.

In this patch, the alarm will be cancelled when the screen goes
on or dreaming stop and screen-on flag will be set. So the idle
state can only be set when screen is off or dreaming started.

Change-Id: Ic21a2394418ca55513ab932b3bfad1126b8769c1

8 years agoFix issue #23037899: Support for Battery Optimization permission + Dialog
Dianne Hackborn [Mon, 10 Aug 2015 21:52:52 +0000 (14:52 -0700)]
Fix issue #23037899: Support for Battery Optimization permission + Dialog

New permission, new Intent action.

Change-Id: I1d9ba55be8f72074e29d33ad7a0a12a820bbac39

8 years agoam 301dfe08: Merge "[Fix getAccounts MANAGE_USERS permission]" into mnc-dev
Simranjit Kohli [Mon, 10 Aug 2015 21:44:16 +0000 (21:44 +0000)]
am 301dfe08: Merge "[Fix getAccounts MANAGE_USERS permission]" into mnc-dev

* commit '301dfe08bc662e9475739309a0ccbce2231ecddb':
  [Fix getAccounts MANAGE_USERS permission]

8 years agoMerge "[Fix getAccounts MANAGE_USERS permission]" into mnc-dev
Simranjit Kohli [Mon, 10 Aug 2015 21:36:30 +0000 (21:36 +0000)]
Merge "[Fix getAccounts MANAGE_USERS permission]" into mnc-dev

8 years ago[Fix getAccounts MANAGE_USERS permission]
Simranjit Singh Kohli [Sat, 8 Aug 2015 00:07:23 +0000 (17:07 -0700)]
[Fix getAccounts MANAGE_USERS permission]

Make code having potential to call userInfo inside clearIdentity.
Bug: 22917218

Change-Id: If95fb7c0ec36a2f5c737f04bc7d8af95b44fea22

8 years agoam c5283927: Close ZipFiles correctly in WebViewFactory.
Torne (Richard Coles) [Mon, 10 Aug 2015 16:02:34 +0000 (16:02 +0000)]
am c5283927: Close ZipFiles correctly in WebViewFactory.

* commit 'c52839277b8714d150a9fe276b6ba3fa8a0cbf38':
  Close ZipFiles correctly in WebViewFactory.

8 years agoClose ZipFiles correctly in WebViewFactory.
Torne (Richard Coles) [Mon, 10 Aug 2015 15:40:50 +0000 (16:40 +0100)]
Close ZipFiles correctly in WebViewFactory.

We weren't closing the ZipFiles created in WebViewFactory to check
inside APKs - use try-with-resources to get them closed automatically.

Bug: 23072621
Change-Id: I11c6b77e960a7d240d19d22240cac177b6ba27b2

8 years agoam 4218e46a: Merge "Initialize network name better in NetworkController" into mnc-dev
Jason Monk [Mon, 10 Aug 2015 14:56:15 +0000 (14:56 +0000)]
am 4218e46a: Merge "Initialize network name better in NetworkController" into mnc-dev

* commit '4218e46a3263e5ed9d99e600ef9b30cbd24cc861':
  Initialize network name better in NetworkController

8 years agoMerge "Initialize network name better in NetworkController" into mnc-dev
Jason Monk [Mon, 10 Aug 2015 14:50:45 +0000 (14:50 +0000)]
Merge "Initialize network name better in NetworkController" into mnc-dev

8 years agoInitialize network name better in NetworkController
Jason Monk [Mon, 10 Aug 2015 14:12:02 +0000 (10:12 -0400)]
Initialize network name better in NetworkController

Initialize current network name to correct value from the
SubscriptionInfo until we get a broadcast about its current state.

Bug: 22212693
Change-Id: I17fa4378cc7a540c81268f8c4d5aa6a505f3ee40

8 years agoam a2e39c6a: Merge "Filtering Remote-Submix and Back-mic devices from AudioDeviceInfo...
Paul Mclean [Mon, 10 Aug 2015 13:49:26 +0000 (13:49 +0000)]
am a2e39c6a: Merge "Filtering Remote-Submix and Back-mic devices from AudioDeviceInfo API." into mnc-dev

* commit 'a2e39c6a1197f87cab2712a7776ff9022433b90a':
  Filtering Remote-Submix and Back-mic devices from AudioDeviceInfo API.

8 years agoam beda6e2b: Merge "Revert "Add a (hidden) mapping for REMOTE_SUBMIX device types...
Paul Mclean [Mon, 10 Aug 2015 13:49:18 +0000 (13:49 +0000)]
am beda6e2b: Merge "Revert "Add a (hidden) mapping for REMOTE_SUBMIX device types for CTS test."" into mnc-dev

* commit 'beda6e2b9abf576e7d33b520232d45b34a4ed168':
  Revert "Add a (hidden) mapping for REMOTE_SUBMIX device types for CTS test."

8 years agoMerge "Filtering Remote-Submix and Back-mic devices from AudioDeviceInfo API." into...
Paul Mclean [Mon, 10 Aug 2015 13:42:15 +0000 (13:42 +0000)]
Merge "Filtering Remote-Submix and Back-mic devices from AudioDeviceInfo API." into mnc-dev

8 years agoMerge "Revert "Add a (hidden) mapping for REMOTE_SUBMIX device types for CTS test...
Paul Mclean [Mon, 10 Aug 2015 13:40:58 +0000 (13:40 +0000)]
Merge "Revert "Add a (hidden) mapping for REMOTE_SUBMIX device types for CTS test."" into mnc-dev

8 years agoam 90b030ba: Merge "Do not show removed permissions in the UI - framework" into mnc-dev
Svetoslav Ganov [Sat, 8 Aug 2015 06:58:03 +0000 (06:58 +0000)]
am 90b030ba: Merge "Do not show removed permissions in the UI - framework" into mnc-dev

* commit '90b030bae8cc1f13da7948fef4aff1d171a2885a':
  Do not show removed permissions in the UI - framework

8 years agoMerge "Do not show removed permissions in the UI - framework" into mnc-dev
Svetoslav Ganov [Sat, 8 Aug 2015 06:48:38 +0000 (06:48 +0000)]
Merge "Do not show removed permissions in the UI - framework" into mnc-dev

8 years agoam fc81be94: Merge "Fix issue #23037093: "Write system settings" permission value...
Dianne Hackborn [Sat, 8 Aug 2015 06:41:42 +0000 (06:41 +0000)]
am fc81be94: Merge "Fix issue #23037093: "Write system settings" permission value fails..." into mnc-dev

* commit 'fc81be947fcbb0d738a75eb2c6d560c52f7f9a99':
  Fix issue #23037093: "Write system settings" permission value fails...

8 years agoMerge "Fix issue #23037093: "Write system settings" permission value fails..." into...
Dianne Hackborn [Sat, 8 Aug 2015 06:35:03 +0000 (06:35 +0000)]
Merge "Fix issue #23037093: "Write system settings" permission value fails..." into mnc-dev

8 years agoDo not show removed permissions in the UI - framework
Svet Ganov [Sat, 8 Aug 2015 06:06:00 +0000 (23:06 -0700)]
Do not show removed permissions in the UI - framework

bug:23043018

Change-Id: Ia5cf49f299eda627d9fde2b34498812afcb3a6d5

8 years agoFix wifi disable during restore
Christopher Tate [Sat, 8 Aug 2015 02:20:05 +0000 (19:20 -0700)]
Fix wifi disable during restore

The main looper needs to run freely for a moment after disabling
wifi in order for various signals (content observers, broadcast) to
propagate to all the listeners that need to take action for the
wifi stack to shut all the way down.  This patch breaks up the
disable-and-rewrite-config sequence of wifi AP restore in to two
distinct operations separated by a moment so as not to block those
necessary messages.

Bug 22979342

Change-Id: I271766cad0e454669a194652fb67f835bb022cd1

8 years agoFix issue #23037093: "Write system settings" permission value fails...
Dianne Hackborn [Sat, 8 Aug 2015 01:26:38 +0000 (18:26 -0700)]
Fix issue #23037093: "Write system settings" permission value fails...

...to persist after reboot

We were writing a corrupt settings file, so would always reset back
to the default app ops state after boot...!

Also add new appops service commands to manually write and read
its settings, since that is very useful for testing.

Change-Id: Ia510507764738fd82e45ec0be6db840c6ea30c28

8 years agoam 70f998e5: Merge "Bug: 21588539 Move CHANGE_NETWORK_STATE to be in SYSTEM_SETTINGS...
Billy Lau [Fri, 7 Aug 2015 22:22:18 +0000 (22:22 +0000)]
am 70f998e5: Merge "Bug: 21588539 Move CHANGE_NETWORK_STATE to be in SYSTEM_SETTINGS" into mnc-dev

* commit '70f998e57df2b3ed79331669a93a0ba314f25e7d':
  Bug: 21588539 Move CHANGE_NETWORK_STATE to be in SYSTEM_SETTINGS

8 years agoMerge "Bug: 21588539 Move CHANGE_NETWORK_STATE to be in SYSTEM_SETTINGS" into mnc-dev
Billy Lau [Fri, 7 Aug 2015 22:16:03 +0000 (22:16 +0000)]
Merge "Bug: 21588539 Move CHANGE_NETWORK_STATE to be in SYSTEM_SETTINGS" into mnc-dev

8 years agoam f0e5501e: Merge "Fix issue #22989030: Separate battery whitelists" into mnc-dev
Dianne Hackborn [Fri, 7 Aug 2015 22:06:31 +0000 (22:06 +0000)]
am f0e5501e: Merge "Fix issue #22989030: Separate battery whitelists" into mnc-dev

* commit 'f0e5501e093c688cd293308e0aafc2b55326c255':
  Fix issue #22989030: Separate battery whitelists

8 years agoMerge "Fix issue #22989030: Separate battery whitelists" into mnc-dev
Dianne Hackborn [Fri, 7 Aug 2015 21:58:38 +0000 (21:58 +0000)]
Merge "Fix issue #22989030: Separate battery whitelists" into mnc-dev

8 years agoam 9d929558: Merge "Correctly skip files that are excluded from restore" into mnc-dev
Matthew Williams [Fri, 7 Aug 2015 21:31:28 +0000 (21:31 +0000)]
am 9d929558: Merge "Correctly skip files that are excluded from restore" into mnc-dev

* commit '9d92955894118a51e310fdfeeb09f5b1d187c37f':
  Correctly skip files that are excluded from restore

8 years agoMerge "Correctly skip files that are excluded from restore" into mnc-dev
Matthew Williams [Fri, 7 Aug 2015 21:25:31 +0000 (21:25 +0000)]
Merge "Correctly skip files that are excluded from restore" into mnc-dev

8 years agoFix issue #22989030: Separate battery whitelists
Dianne Hackborn [Fri, 7 Aug 2015 05:19:06 +0000 (22:19 -0700)]
Fix issue #22989030: Separate battery whitelists

We now have a new whitelist you can put apps in, which
opts them out of the old battery saver mode and new app idle,
but doesn't keep them from going in to doze.  This is for a few
special cases that we had previously whitelisted for battery saver,
and inherited to the new modes...  ultimately we should figure out
how to get these apps out of the whitelist completely, but this
will help for now.

Apps in this new whitelist are not shown in the UI, because they
are still significantly restricted by not being able to operate
normally in doze.  This also means they are still visible in the
list of all apps for the user to be able to put them on/off the
complete whitelist if that is what they really want.

In the course of doing this, I needed to clean up code in the
network policy manager to better separate management of the
two firewall rules that now have different whitelists applied
to them.  This also hopefully just generally simplifies and cleans
up that code.  Hopefully!

Change-Id: I92e15f2f85899571dd8b049b5e3eb1354f55f353

8 years agoam 14b884c1: am daf8d905: Merge "Add ICU as a java library for docs."
Neil Fuller [Fri, 7 Aug 2015 21:16:51 +0000 (21:16 +0000)]
am 14b884c1: am daf8d905: Merge "Add ICU as a java library for docs."

* commit '14b884c16ecf3a70999fcbd1862f6f1b38b24367':
  Add ICU as a java library for docs.

8 years agoFiltering Remote-Submix and Back-mic devices from AudioDeviceInfo API.
Paul McLean [Fri, 7 Aug 2015 18:50:48 +0000 (12:50 -0600)]
Filtering Remote-Submix and Back-mic devices from AudioDeviceInfo API.

Bug: 22729461
Change-Id: Ie581c385af2be16e61fcab5993391ef42f82a7d8

8 years agoam 027e3b7f: Merge "Fix check for caller being the active network scorer" into mnc-dev
Shirish Kalele [Fri, 7 Aug 2015 20:30:38 +0000 (20:30 +0000)]
am 027e3b7f: Merge "Fix check for caller being the active network scorer" into mnc-dev

* commit '027e3b7f51cd172dae89f69cc358363b0cf20f5f':
  Fix check for caller being the active network scorer

8 years agoMerge "Fix check for caller being the active network scorer" into mnc-dev
Shirish Kalele [Fri, 7 Aug 2015 20:25:06 +0000 (20:25 +0000)]
Merge "Fix check for caller being the active network scorer" into mnc-dev

8 years agoam 288e82f8: Merge "Keep intent verification status of system apps when uninstalling...
Nicolas Prévot [Fri, 7 Aug 2015 19:33:23 +0000 (19:33 +0000)]
am 288e82f8: Merge "Keep intent verification status of system apps when uninstalling them." into mnc-dev

* commit '288e82f8f67db894c43bf4ea659ca832f979c65a':
  Keep intent verification status of system apps when uninstalling them.

8 years agoam 9dc4d50b: Merge "Update Navigation bar assets." into mnc-dev
Julia Reynolds [Fri, 7 Aug 2015 19:24:45 +0000 (19:24 +0000)]
am 9dc4d50b: Merge "Update Navigation bar assets." into mnc-dev

* commit '9dc4d50be1db82359050fd082828680bde44b9fd':
  Update Navigation bar assets.

8 years agoMerge "Keep intent verification status of system apps when uninstalling them." into...
Nicolas Prévot [Fri, 7 Aug 2015 19:23:52 +0000 (19:23 +0000)]
Merge "Keep intent verification status of system apps when uninstalling them." into mnc-dev

8 years agoMerge "Update Navigation bar assets." into mnc-dev
Julia Reynolds [Fri, 7 Aug 2015 19:19:02 +0000 (19:19 +0000)]
Merge "Update Navigation bar assets." into mnc-dev

8 years agoRevert "Add a (hidden) mapping for REMOTE_SUBMIX device types for CTS test."
Paul Mclean [Fri, 7 Aug 2015 17:12:47 +0000 (17:12 +0000)]
Revert "Add a (hidden) mapping for REMOTE_SUBMIX device types for CTS test."

This reverts commit 8b2562b14c37cd61f9c8e1b21e28cf57ff5b7523.

Change-Id: I731d01fd652e928ba331fa28bb09cc8234753fbf

8 years agoam 69ed3308: Merge "Allow system to disable lockscreen" into mnc-dev
Jason Monk [Fri, 7 Aug 2015 18:47:06 +0000 (18:47 +0000)]
am 69ed3308: Merge "Allow system to disable lockscreen" into mnc-dev

* commit '69ed33087d77e32a1f1475adf00b9d87580960aa':
  Allow system to disable lockscreen

8 years agoMerge "Allow system to disable lockscreen" into mnc-dev
Jason Monk [Fri, 7 Aug 2015 18:40:19 +0000 (18:40 +0000)]
Merge "Allow system to disable lockscreen" into mnc-dev

8 years agoBug: 21588539 Move CHANGE_NETWORK_STATE to be in SYSTEM_SETTINGS
Billy Lau [Sat, 1 Aug 2015 11:45:02 +0000 (12:45 +0100)]
Bug: 21588539 Move CHANGE_NETWORK_STATE to be in SYSTEM_SETTINGS

Merge the CHANGE_NETWORK_STATE permission with WRITE_SETTINGS.

AndroidManifest.xml:
Raised the protection level of CHANGE_NETWORK_STATE permission from
normal to signature|appops and pre23|preinstall for compatibility

provider/Settings:
Wrote new helper methods to check if app is allowed to change network
state.

ConnectivityManager.java & ConnectivityService.java:
Replace enforcement checks for CHANGE_NETWORK_STATE with
checkAndNoteChangeNetworkStateOperations instead.

Change-Id: If8c2dd3c76a5324ca43f1d90fa17973216c2bcc5

8 years agoam 1fbc1b3b: Merge "Fix partial user cleanup on restart" into mnc-dev
Amith Yamasani [Fri, 7 Aug 2015 18:28:09 +0000 (18:28 +0000)]
am 1fbc1b3b: Merge "Fix partial user cleanup on restart" into mnc-dev

* commit '1fbc1b3b4b742cdba25d32d65a9813933a37005f':
  Fix partial user cleanup on restart

8 years agoMerge "Fix partial user cleanup on restart" into mnc-dev
Amith Yamasani [Fri, 7 Aug 2015 18:21:30 +0000 (18:21 +0000)]
Merge "Fix partial user cleanup on restart" into mnc-dev

8 years agoam c376afb4: Merge "Wait a bit longer for wifi to shut down before rewriting the...
Chris Tate [Fri, 7 Aug 2015 18:20:36 +0000 (18:20 +0000)]
am c376afb4: Merge "Wait a bit longer for wifi to shut down before rewriting the config" into mnc-dev

* commit 'c376afb472d1d4f0fba4a03ac4cf05b498866d64':
  Wait a bit longer for wifi to shut down before rewriting the config

8 years agoam 3d06ea03: Merge "Debugging for issue #22556778: Starting under voice control not...
Dianne Hackborn [Fri, 7 Aug 2015 18:16:13 +0000 (18:16 +0000)]
am 3d06ea03: Merge "Debugging for issue #22556778: Starting under voice control not allowed" into mnc-dev

* commit '3d06ea0349d6afb4248ab47151424bf64cdf5a2d':
  Debugging for issue #22556778: Starting under voice control not allowed

8 years agoMerge "Wait a bit longer for wifi to shut down before rewriting the config" into...
Chris Tate [Fri, 7 Aug 2015 18:15:19 +0000 (18:15 +0000)]
Merge "Wait a bit longer for wifi to shut down before rewriting the config" into mnc-dev

8 years agoKeep intent verification status of system apps when uninstalling them.
Nicolas Prevot [Fri, 7 Aug 2015 18:11:25 +0000 (19:11 +0100)]
Keep intent verification status of system apps when uninstalling them.

When creating a work profile, system apps are uninstalled and then
sometimes reinstalled.
In the process, they lose their intent verification status.

BUG:22943461
Change-Id:I5b008c6de2125f190063b08908076a649067c60d

8 years agoFix partial user cleanup on restart
Amith Yamasani [Fri, 7 Aug 2015 18:09:05 +0000 (11:09 -0700)]
Fix partial user cleanup on restart

Internal volume was not available during PackageManagerService creation,
which resulted in a zombie user's folder not being cleaned after a reboot.

Add the internal volume earlier in the boot cycle so that it can be accessed
for user cleanup.

Bug: 22483086
Change-Id: I8f3ffbb25f3902d00a96d1ee2d7a79373c5e35b7

8 years agoMerge "Debugging for issue #22556778: Starting under voice control not allowed" into...
Dianne Hackborn [Fri, 7 Aug 2015 18:06:01 +0000 (18:06 +0000)]
Merge "Debugging for issue #22556778: Starting under voice control not allowed" into mnc-dev

8 years agoUpdate Navigation bar assets.
Julia Reynolds [Fri, 7 Aug 2015 17:56:08 +0000 (13:56 -0400)]
Update Navigation bar assets.

Bug: 22855920
Change-Id: I2d66bb087b092cdb6280e78c064f32ae9e42ad61

8 years agoWait a bit longer for wifi to shut down before rewriting the config
Christopher Tate [Fri, 7 Aug 2015 17:57:01 +0000 (10:57 -0700)]
Wait a bit longer for wifi to shut down before rewriting the config

We've seen case of it taking longer than 1500ms for the wifi system to
actually shut down after the triggering settings element is written,
so extend the wait time a bit.  We've seen it take more than 1500ms
but not more than 2500ms, so that's the new heuristic.

This will of course all become happily obsolete once we start
applying restored AP definitions programmatically rather than by
filesystem-level operations.

Bug 22979342

Change-Id: I6acf1baac23d4100124093128b82abf242b11a0e

8 years agoDebugging for issue #22556778: Starting under voice control not allowed
Dianne Hackborn [Fri, 7 Aug 2015 17:37:21 +0000 (10:37 -0700)]
Debugging for issue #22556778: Starting under voice control not allowed

Better error messages in log to explain what is going on.

Change-Id: Ie686a323ceedd42453b6581fe79653b407d49ee5

8 years agoam 53d6cddb: Merge "Fix issue #22846750: Starting Screenie Now On Tap crashes USA...
Dianne Hackborn [Fri, 7 Aug 2015 17:26:11 +0000 (17:26 +0000)]
am 53d6cddb: Merge "Fix issue #22846750: Starting Screenie Now On Tap crashes USA Today" into mnc-dev

* commit '53d6cddb4137c7b5648fc069adcc0cf6c501a6c4':
  Fix issue #22846750: Starting Screenie Now On Tap crashes USA Today

8 years agoMerge "Fix issue #22846750: Starting Screenie Now On Tap crashes USA Today" into...
Dianne Hackborn [Fri, 7 Aug 2015 17:18:11 +0000 (17:18 +0000)]
Merge "Fix issue #22846750: Starting Screenie Now On Tap crashes USA Today" into mnc-dev

8 years agoam d7255cfb: Merge "DO NOT MERGE. Add new media navigation keys." into mnc-dev
Michael Wright [Fri, 7 Aug 2015 16:57:44 +0000 (16:57 +0000)]
am d7255cfb: Merge "DO NOT MERGE. Add new media navigation keys." into mnc-dev

* commit 'd7255cfb1cf8dc7249632d93d68daac8cc2c7b9c':
  DO NOT MERGE. Add new media navigation keys.

8 years agoMerge "DO NOT MERGE. Add new media navigation keys." into mnc-dev
Michael Wright [Fri, 7 Aug 2015 16:52:27 +0000 (16:52 +0000)]
Merge "DO NOT MERGE. Add new media navigation keys." into mnc-dev

8 years agoam 38d30dc5: Merge "Immediately kill a shared user process on a permission revocation...
Svetoslav Ganov [Fri, 7 Aug 2015 15:33:57 +0000 (15:33 +0000)]
am 38d30dc5: Merge "Immediately kill a shared user process on a permission revocation." into mnc-dev

* commit '38d30dc547825bdde2756f588692063a28749e8d':
  Immediately kill a shared user process on a permission revocation.

8 years agoMerge "Immediately kill a shared user process on a permission revocation." into mnc-dev
Svetoslav Ganov [Fri, 7 Aug 2015 15:27:49 +0000 (15:27 +0000)]
Merge "Immediately kill a shared user process on a permission revocation." into mnc-dev

8 years agoam daf8d905: Merge "Add ICU as a java library for docs."
Neil Fuller [Fri, 7 Aug 2015 14:57:49 +0000 (14:57 +0000)]
am daf8d905: Merge "Add ICU as a java library for docs."

* commit 'daf8d9056815b7435bdf4d07da3f938f11052691':
  Add ICU as a java library for docs.

8 years agoMerge "Add ICU as a java library for docs."
Neil Fuller [Fri, 7 Aug 2015 14:46:06 +0000 (14:46 +0000)]
Merge "Add ICU as a java library for docs."

8 years agoam 77566dd1: Merge "Use BluetoothController for status bar icon status" into mnc-dev
Jason Monk [Fri, 7 Aug 2015 14:44:12 +0000 (14:44 +0000)]
am 77566dd1: Merge "Use BluetoothController for status bar icon status" into mnc-dev

* commit '77566dd1e15353eb062503767c6e4a354303fd09':
  Use BluetoothController for status bar icon status

8 years agoMerge "Use BluetoothController for status bar icon status" into mnc-dev
Jason Monk [Fri, 7 Aug 2015 14:38:29 +0000 (14:38 +0000)]
Merge "Use BluetoothController for status bar icon status" into mnc-dev

8 years agoDO NOT MERGE. Add new media navigation keys.
Michael Wright [Thu, 6 Aug 2015 14:16:22 +0000 (15:16 +0100)]
DO NOT MERGE. Add new media navigation keys.

Bug: 22059484
Change-Id: Ifd8fd18178fed45ead2980b957dd1d177e40f165

8 years agoAllow system to disable lockscreen
Jason Monk [Thu, 6 Aug 2015 18:49:36 +0000 (14:49 -0400)]
Allow system to disable lockscreen

Even when there is a pin.

Bug: 22920549
Change-Id: Ib84e1c3ac67be0318d4186c66ee582a49969e373

8 years agoFix issue #22846750: Starting Screenie Now On Tap crashes USA Today
Dianne Hackborn [Thu, 6 Aug 2015 01:07:31 +0000 (18:07 -0700)]
Fix issue #22846750: Starting Screenie Now On Tap crashes USA Today

Try to deal well with badly behaving old apps.

Change-Id: Ibc41e5867869463fbf91f3e411c69677909fedad

8 years agoImmediately kill a shared user process on a permission revocation.
Svetoslav [Thu, 6 Aug 2015 22:03:55 +0000 (15:03 -0700)]
Immediately kill a shared user process on a permission revocation.

1. When a permission is revoked we kill the app immediately but do
   not do an immediate kill for shared uid processes. This fixes it.

2. Remove system APIs that are used only by the package installer.

bug:22984670

Change-Id: I3d4ae52ea8679f894aa7c5972941263903479183

8 years agoam 1d7c3254: Merge "Correctly propagate permissions when uninstalling updates." into...
Jeff Davidson [Fri, 7 Aug 2015 01:44:16 +0000 (01:44 +0000)]
am 1d7c3254: Merge "Correctly propagate permissions when uninstalling updates." into mnc-dev

* commit '1d7c32548c30c62a35c54a624f89d5f9db31b9d4':
  Correctly propagate permissions when uninstalling updates.

8 years agoMerge "Correctly propagate permissions when uninstalling updates." into mnc-dev
Jeff Davidson [Fri, 7 Aug 2015 01:39:14 +0000 (01:39 +0000)]
Merge "Correctly propagate permissions when uninstalling updates." into mnc-dev

8 years agoam a0ef49c4: Look for recent tasks in live stacks.
Wale Ogunwale [Fri, 7 Aug 2015 01:14:14 +0000 (01:14 +0000)]
am a0ef49c4: Look for recent tasks in live stacks.

* commit 'a0ef49c44f7d845e3465591ea977d0c9996c4e5e':
  Look for recent tasks in live stacks.

8 years agoLook for recent tasks in live stacks.
Wale Ogunwale [Fri, 7 Aug 2015 00:16:02 +0000 (17:16 -0700)]
Look for recent tasks in live stacks.

It is possible for a tasks not to have been saved to the
persisted recent list yet for various reasons. This causes
some external calls to fail when they are trying to do
an operation on a task with a given id. We now use the
stack supervisor look-up for a task id that checks
everywhere a task might be including live stack. It this
fails then the task truly doesn't exist.

Bug: 22924782
Change-Id: I57c3df41d0b4f3ee3c5ae9b7d01eeb2b352062b4

8 years agoam 8f26616d: Merge "LayoutLib: Switch SimpleDateFormat to icu." into mnc-dev
Deepanshu Gupta [Thu, 6 Aug 2015 23:33:43 +0000 (23:33 +0000)]
am 8f26616d: Merge "LayoutLib: Switch SimpleDateFormat to icu." into mnc-dev

* commit '8f26616d1a1765267d6a3ba09e7ac1bd6edeca67':
  LayoutLib: Switch SimpleDateFormat to icu.

8 years agoMerge "LayoutLib: Switch SimpleDateFormat to icu." into mnc-dev
Deepanshu Gupta [Thu, 6 Aug 2015 23:26:01 +0000 (23:26 +0000)]
Merge "LayoutLib: Switch SimpleDateFormat to icu." into mnc-dev

8 years agoam 385ce0a3: Merge "Replace Locale.getDefault with custom impl." into mnc-dev
Deepanshu Gupta [Thu, 6 Aug 2015 23:15:59 +0000 (23:15 +0000)]
am 385ce0a3: Merge "Replace Locale.getDefault with custom impl." into mnc-dev

* commit '385ce0a31dbdd4b4b1865755dbc4af157f72481c':
  Replace Locale.getDefault with custom impl.

8 years agoMerge "Replace Locale.getDefault with custom impl." into mnc-dev
Deepanshu Gupta [Thu, 6 Aug 2015 23:08:46 +0000 (23:08 +0000)]
Merge "Replace Locale.getDefault with custom impl." into mnc-dev

8 years agoLayoutLib: Switch SimpleDateFormat to icu.
Deepanshu Gupta [Thu, 6 Aug 2015 22:32:44 +0000 (15:32 -0700)]
LayoutLib: Switch SimpleDateFormat to icu.

Use ICU's implementation of SimpleDateFormat in LayoutLib. The format
patterns used are not supported by java.text.SimpleDateFormat.

The change required adding a mechanism for promoting visibility of
fields in the framework in the create tool.
TODO: Add additional tests in the create tool for this new
functionality.

Change-Id: Id0f4be41f9731c42a28919c32cc5ef271a656982

8 years agoReplace Locale.getDefault with custom impl.
Deepanshu Gupta [Tue, 4 Aug 2015 23:17:46 +0000 (16:17 -0700)]
Replace Locale.getDefault with custom impl.

In LayoutLib the default locale should always be the locale set the
rendering params. This change replaces all calls to Locale.getDefault in
the framework with calls to AndroidLocale.getDefault() which tries to
find the locale from the current context, but falls back to the original
call.

Change-Id: I496b35dcfc17fd61fedee21c7495541ab870b1fc

8 years agoam 85c73c40: Merge "[UserManager] expose method to retrieve credential owner" into...
Andres Morales [Thu, 6 Aug 2015 22:31:04 +0000 (22:31 +0000)]
am 85c73c40: Merge "[UserManager] expose method to retrieve credential owner" into mnc-dev

* commit '85c73c40d1fd76e8a7bbd90ab80458082764c1c3':
  [UserManager] expose method to retrieve credential owner

8 years agoMerge "[UserManager] expose method to retrieve credential owner" into mnc-dev
Andres Morales [Thu, 6 Aug 2015 22:22:17 +0000 (22:22 +0000)]
Merge "[UserManager] expose method to retrieve credential owner" into mnc-dev

8 years agoam bb55aa1a: Merge "Fixing issue with empty Recents screen." into mnc-dev
Winson Chung [Thu, 6 Aug 2015 21:52:19 +0000 (21:52 +0000)]
am bb55aa1a: Merge "Fixing issue with empty Recents screen." into mnc-dev

* commit 'bb55aa1a93cee91a40b6f5941675682cb6f8a83b':
  Fixing issue with empty Recents screen.

8 years agoMerge "Fixing issue with empty Recents screen." into mnc-dev
Winson Chung [Thu, 6 Aug 2015 21:44:17 +0000 (21:44 +0000)]
Merge "Fixing issue with empty Recents screen." into mnc-dev

8 years agoam a89e9f6d: Merge "MediaSync: fix API comments." into mnc-dev
Wei Jia [Thu, 6 Aug 2015 21:37:49 +0000 (21:37 +0000)]
am a89e9f6d: Merge "MediaSync: fix API comments." into mnc-dev

* commit 'a89e9f6d3207527888d7fab191ddbe92ff68fc79':
  MediaSync: fix API comments.

8 years agoMerge "MediaSync: fix API comments." into mnc-dev
Wei Jia [Thu, 6 Aug 2015 21:31:22 +0000 (21:31 +0000)]
Merge "MediaSync: fix API comments." into mnc-dev

8 years agoUse BluetoothController for status bar icon status
Jason Monk [Thu, 6 Aug 2015 20:32:18 +0000 (16:32 -0400)]
Use BluetoothController for status bar icon status

Bug: 22819904
Change-Id: I6ca11c57431f8e930a47144090158363175a3b99

8 years agoam cb54ffb2: Merge "Protect runtime storage mount points." into mnc-dev
Jeff Sharkey [Thu, 6 Aug 2015 19:58:04 +0000 (19:58 +0000)]
am cb54ffb2: Merge "Protect runtime storage mount points." into mnc-dev

* commit 'cb54ffb2cb9583eaf6b58dcc636681c4e4e07a7d':
  Protect runtime storage mount points.

8 years agoFix check for caller being the active network scorer
Shirish Kalele [Thu, 6 Aug 2015 19:34:22 +0000 (12:34 -0700)]
Fix check for caller being the active network scorer

Compare caller and scorer uids to decide if caller is the
active scorer instead of calling AppOps.checkPackage().

Bug: 23000690
Change-Id: I64285f965716f3aceb24f193d86ab9d6be7202c5

8 years agoMediaSync: fix API comments.
Wei Jia [Thu, 6 Aug 2015 18:04:22 +0000 (11:04 -0700)]
MediaSync: fix API comments.

Bug: 23008551

Change-Id: Ifbf1970c174b54a761d4672d954ee5633adbf3d6

8 years agoFixing issue with empty Recents screen.
Winson [Thu, 6 Aug 2015 19:51:26 +0000 (12:51 -0700)]
Fixing issue with empty Recents screen.

- We did not expect RecentsActivity to be launched without going through
  the normal SystemUI controls, but when the home activity is in the foreground
  and killed (via a normal apk update), the RecentsActivity stores the old
  launch configuration and believes that it was launched from home and awaits
  the animation-complete callback to animate the tasks in.
- This CL adds a workaround where the configuration is reset whenever
  RecentsActivity is stopped, which allows the tasks to be shown immediately
  if the User is kicked back into Recents due to an update.

Bug: 22542869
Change-Id: I2b4168ccecfbf868fa6d544fe89109dfa74f51df

8 years agoMerge "Protect runtime storage mount points." into mnc-dev
Jeff Sharkey [Thu, 6 Aug 2015 19:27:42 +0000 (19:27 +0000)]
Merge "Protect runtime storage mount points." into mnc-dev

8 years agoam 93f3fc87: Merge "add metrics to assistant" into mnc-dev
Chris Wren [Thu, 6 Aug 2015 19:25:28 +0000 (19:25 +0000)]
am 93f3fc87: Merge "add metrics to assistant" into mnc-dev

* commit '93f3fc876639cd23ff176cba2e1f8f08df6f3fb5':
  add metrics to assistant

8 years agoam 339a9bbf: Merge "Use realActivity as indicator for task locking" into mnc-dev
Benjamin Franz [Thu, 6 Aug 2015 19:21:07 +0000 (19:21 +0000)]
am 339a9bbf: Merge "Use realActivity as indicator for task locking" into mnc-dev

* commit '339a9bbf6d6544b516d6dbbae874d02f3ef7a6a4':
  Use realActivity as indicator for task locking

8 years agoMerge "add metrics to assistant" into mnc-dev
Chris Wren [Thu, 6 Aug 2015 19:18:17 +0000 (19:18 +0000)]
Merge "add metrics to assistant" into mnc-dev

8 years agoMerge "Use realActivity as indicator for task locking" into mnc-dev
Benjamin Franz [Thu, 6 Aug 2015 19:15:29 +0000 (19:15 +0000)]
Merge "Use realActivity as indicator for task locking" into mnc-dev

8 years agoam 38c0fbda: Merge "Pregrant unrevokable storage permission to the CertInstaller...
Svetoslav Ganov [Thu, 6 Aug 2015 19:12:59 +0000 (19:12 +0000)]
am 38c0fbda: Merge "Pregrant unrevokable storage permission to the CertInstaller" into mnc-dev

* commit '38c0fbda53399ac888e112d235e217fea220c2b7':
  Pregrant unrevokable storage permission to the CertInstaller

8 years agoadd metrics to assistant
Chris Wren [Thu, 6 Aug 2015 18:53:32 +0000 (14:53 -0400)]
add metrics to assistant

  long press
  screenshot enabled
  context enabled

Bug: 22949579
Change-Id: Iac178207fa7149cda03c9a817a0d1450e46e1c59

8 years agoMerge "Pregrant unrevokable storage permission to the CertInstaller" into mnc-dev
Svetoslav Ganov [Thu, 6 Aug 2015 19:08:33 +0000 (19:08 +0000)]
Merge "Pregrant unrevokable storage permission to the CertInstaller" into mnc-dev