OSDN Git Service

android-x86/frameworks-base.git
8 years agoMerge "Benchmarks for Linkify" into nyc-dev
Siyamed Sinir [Thu, 31 Mar 2016 17:17:17 +0000 (17:17 +0000)]
Merge "Benchmarks for Linkify" into nyc-dev

8 years agoMerge "Include process state in association tracking" into nyc-dev
Joe Onorato [Thu, 31 Mar 2016 17:09:23 +0000 (17:09 +0000)]
Merge "Include process state in association tracking" into nyc-dev

8 years agoMerge "Fix layer damage and clipping for Text shadows" into nyc-dev
Chris Craik [Thu, 31 Mar 2016 17:08:03 +0000 (17:08 +0000)]
Merge "Fix layer damage and clipping for Text shadows" into nyc-dev

8 years agoMerge "Unit test for isProvisioningAllowed" into nyc-dev
Victor Chang [Thu, 31 Mar 2016 17:04:37 +0000 (17:04 +0000)]
Merge "Unit test for isProvisioningAllowed" into nyc-dev

8 years agoMerge "TIF: Address comments on hardware manager related system APIs" into nyc-dev
Dongwon Kang [Thu, 31 Mar 2016 17:01:35 +0000 (17:01 +0000)]
Merge "TIF: Address comments on hardware manager related system APIs" into nyc-dev

8 years agoMerge "Chaning LauncherActivityInfo to return a density specific non-badged icon...
Sunny Goyal [Thu, 31 Mar 2016 16:56:30 +0000 (16:56 +0000)]
Merge "Chaning LauncherActivityInfo to return a density specific non-badged icon" into nyc-dev

8 years agoMerge "Expand JankTracker" into nyc-dev
John Reck [Thu, 31 Mar 2016 16:49:27 +0000 (16:49 +0000)]
Merge "Expand JankTracker" into nyc-dev

8 years agoMerge "Start the Wear bluetooth service in SystemServer." into nyc-dev
Wei Liu [Thu, 31 Mar 2016 16:47:50 +0000 (16:47 +0000)]
Merge "Start the Wear bluetooth service in SystemServer." into nyc-dev

8 years agoMerge "TIF: Add more class documentation on TvInputManager" into nyc-dev
Dongwon Kang [Thu, 31 Mar 2016 16:46:33 +0000 (16:46 +0000)]
Merge "TIF: Add more class documentation on TvInputManager" into nyc-dev

8 years agoStart the Wear bluetooth service in SystemServer.
Wei Liu [Tue, 29 Mar 2016 22:26:48 +0000 (15:26 -0700)]
Start the Wear bluetooth service in SystemServer.

Change-Id: I4ca420d7adbb0edd6539fe4bf6ada05650164866

8 years agoMerge "[FBE] Split accounts.db into two DE/CE databases" into nyc-dev
Fyodor Kupolov [Thu, 31 Mar 2016 16:16:47 +0000 (16:16 +0000)]
Merge "[FBE] Split accounts.db into two DE/CE databases" into nyc-dev

8 years agoTrack libcore change 9b7cfceb7b825835730f7977d4935dec3ff1a3be
Yi Kong [Thu, 31 Mar 2016 15:47:08 +0000 (16:47 +0100)]
Track libcore change 9b7cfceb7b825835730f7977d4935dec3ff1a3be

Bug: 27762555
Change-Id: I03984f4319ba21976078b2b3dff1a857eb5ebd0a
(cherry picked from commit a7af7593fb41b7f67de8f3206233b576ebaaef48)
(cherry picked from commit c0f67813c31bd25ec40c98a4f1e77f98bdabbb48)

8 years agoMerge "Remove panel paddings/margins when QS is customizing" into nyc-dev
Jason Monk [Thu, 31 Mar 2016 15:43:45 +0000 (15:43 +0000)]
Merge "Remove panel paddings/margins when QS is customizing" into nyc-dev

8 years agoExpand JankTracker
John Reck [Wed, 30 Mar 2016 21:19:44 +0000 (14:19 -0700)]
Expand JankTracker

Bug: 27922347

* Dump the full histogram
* Expand the histogram to have a slow-frame section with
  large 50ms buckets to raise the cap to 5s to give more
  insight into system-health
* Stop excluding first-frame metrics as we want to include
  those in our global tracking. Automated tests already filter
  these out by doing resets before running anyway.

Change-Id: Idaba8aad591f59d10a6477b11efc0767ff715083

8 years agoMerge "Fix QS battery tile state" into nyc-dev
Jason Monk [Thu, 31 Mar 2016 15:32:17 +0000 (15:32 +0000)]
Merge "Fix QS battery tile state" into nyc-dev

8 years agoFix QS battery tile state
Jason Monk [Thu, 31 Mar 2016 15:30:41 +0000 (11:30 -0400)]
Fix QS battery tile state

Don't share drawables across multiple imageviews.  Instead generate
a new drawable for each one.

Change-Id: I70259f978af73525d9f6ec772ecd94f2ca9c75bf
Fixes: 27786862

8 years agoMerge "Simplify WebViewProviderInfo - move its logic into WebViewUpdateService."...
Gustav Sennton [Thu, 31 Mar 2016 15:28:52 +0000 (15:28 +0000)]
Merge "Simplify WebViewProviderInfo - move its logic into WebViewUpdateService." into nyc-dev

8 years agoMerge "Fix build" into nyc-dev
Jason Monk [Thu, 31 Mar 2016 14:00:52 +0000 (14:00 +0000)]
Merge "Fix build" into nyc-dev

8 years agoFix build
Jason Monk [Thu, 31 Mar 2016 14:00:09 +0000 (10:00 -0400)]
Fix build

Change-Id: I75e49ea144d47819c0fb7b4cd2e19a6c42b28ff1

8 years agoMerge "Removing assignments to localeScriptWasComputed in aapt." into nyc-dev
Andrew Johnson [Thu, 31 Mar 2016 13:52:09 +0000 (13:52 +0000)]
Merge "Removing assignments to localeScriptWasComputed in aapt." into nyc-dev

8 years agoMerge changes from topic 'SettingsMetrics' into nyc-dev
Jason Monk [Thu, 31 Mar 2016 13:47:32 +0000 (13:47 +0000)]
Merge changes from topic 'SettingsMetrics' into nyc-dev

* changes:
  Add constants for settings suggestions metrics
  Add some constants for settings conditionals

8 years agoAdd constants for settings suggestions metrics
Jason Monk [Wed, 30 Mar 2016 20:03:15 +0000 (16:03 -0400)]
Add constants for settings suggestions metrics

Bug: 27851236
Change-Id: Ia5962a5430246c7fa1221a638447c8c86b011223

8 years agoAdd some constants for settings conditionals
Jason Monk [Wed, 30 Mar 2016 19:46:03 +0000 (15:46 -0400)]
Add some constants for settings conditionals

Bug: 27851236
Change-Id: I3725be01e0d5de13b81f82ec594bed5f95b5bb18

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Bill Yi [Thu, 31 Mar 2016 13:23:20 +0000 (13:23 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoSimplify WebViewProviderInfo - move its logic into WebViewUpdateService.
Gustav Sennton [Wed, 30 Mar 2016 13:53:03 +0000 (14:53 +0100)]
Simplify WebViewProviderInfo - move its logic into WebViewUpdateService.

The WebViewProviderInfo should now be ready to be added as an API to be
fetched from XTS tests (to avoid using reflection).

Move the logic for validation, signature checking and package info
fetching out of WebViewProviderInfo so that we can mock the coupling
between that logic and the system (e.g. the package manager).

Note: with this patch we stop caching valid webview packages in the
update service (we would still refetch them anyway when anything
important happened).

Bug: 27635535
Bug: 27736084

Change-Id: Ia455202d2fd5bc4e03dce0fd917d262bf942d1a3

8 years agoRemove RawCollationKey/ByteArrayWrapper from the public API
Paul Duffin [Tue, 22 Mar 2016 16:53:41 +0000 (16:53 +0000)]
Remove RawCollationKey/ByteArrayWrapper from the public API

Bug: 22023363
Change-Id: I03b89260a9af9a2f6d4e25799c3942ca2579e26e

8 years agoICU4J: Hide constants that can change between releases
Paul Duffin [Thu, 31 Mar 2016 12:15:03 +0000 (13:15 +0100)]
ICU4J: Hide constants that can change between releases

Bug: 27830659
Change-Id: Ia8274c3b9b26762de5ef3317261ef0c2a45246c3

8 years agoMerge "AfW - suspend apps - API polish" into nyc-dev
Andrei Stingaceanu [Thu, 31 Mar 2016 10:57:57 +0000 (10:57 +0000)]
Merge "AfW - suspend apps - API polish" into nyc-dev

8 years agoMerge "Adjusting javadocs for process logging" into nyc-dev
Michal Karpinski [Thu, 31 Mar 2016 09:56:22 +0000 (09:56 +0000)]
Merge "Adjusting javadocs for process logging" into nyc-dev

8 years agoMerge "Implement VirtualRefBasePtr native methods" into nyc-dev
Diego Perez [Thu, 31 Mar 2016 08:14:25 +0000 (08:14 +0000)]
Merge "Implement VirtualRefBasePtr native methods" into nyc-dev

8 years agoMerge changes Ifecff4f1,Ia302de46 into nyc-dev
Jeff Sharkey [Thu, 31 Mar 2016 06:48:54 +0000 (06:48 +0000)]
Merge changes Ifecff4f1,Ia302de46 into nyc-dev

* changes:
  Make preferred activities direct-boot aware.
  Make Parcelable classes final, API cleanup.

8 years agoMerge "Remove "Other keyboards" from IME switcher dialog." into nyc-dev
Yohei Yukawa [Thu, 31 Mar 2016 06:12:30 +0000 (06:12 +0000)]
Merge "Remove "Other keyboards" from IME switcher dialog." into nyc-dev

8 years agoRemove "Other keyboards" from IME switcher dialog.
Yohei Yukawa [Wed, 30 Mar 2016 20:21:47 +0000 (13:21 -0700)]
Remove "Other keyboards" from IME switcher dialog.

Per comment from UX team, we remove "Other keyboards" button from the
IME switcher dialog because it now points to a stale location, and is
not really needed.

Bug: 27924222
Change-Id: I23b20de3ee0efbb67b7ccac2f9e458b6689dd4ed

8 years agoMake preferred activities direct-boot aware.
Jeff Sharkey [Thu, 31 Mar 2016 05:41:10 +0000 (23:41 -0600)]
Make preferred activities direct-boot aware.

When matching a list of ResolveInfo against the preferred activity
list, we shouldn't mutate the preferred set based on activities that
might be hidden due to the user being locked.

Bug: 25578136
Change-Id: Ifecff4f11c7fddef3eed04325d396f7c43d6703a

8 years agoMake Parcelable classes final, API cleanup.
Jeff Sharkey [Thu, 31 Mar 2016 03:47:16 +0000 (21:47 -0600)]
Make Parcelable classes final, API cleanup.

Remove some Context methods that leaked through.  Add lint rule to
recommend using List<? extends Parcelable> instead of Parcelable[].

Bug: 279322242793014527932911
Change-Id: Ia302de46cdb0c5101fa175a09316df91aeefcf0d

8 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 31 Mar 2016 05:18:13 +0000 (22:18 -0700)]
Import translations. DO NOT MERGE

Change-Id: I59f563780cebed31c23117028a5025e16f37b8ea
Auto-generated-cl: translation import

8 years agoMerge "Make DreamManagerService FBE aware." into nyc-dev
Jeff Sharkey [Thu, 31 Mar 2016 05:01:48 +0000 (05:01 +0000)]
Merge "Make DreamManagerService FBE aware." into nyc-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Bill Yi [Thu, 31 Mar 2016 04:18:39 +0000 (04:18 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Bill Yi [Thu, 31 Mar 2016 04:18:12 +0000 (04:18 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Bill Yi [Thu, 31 Mar 2016 04:17:52 +0000 (04:17 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Bill Yi [Thu, 31 Mar 2016 04:17:32 +0000 (04:17 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoMerge "Parse and validate txt records." into nyc-dev
Philip P. Moltmann [Thu, 31 Mar 2016 03:52:48 +0000 (03:52 +0000)]
Merge "Parse and validate txt records." into nyc-dev

8 years agoMerge "Unhide DocumentsContract.EXTRA_ORIENTATION." into nyc-dev
Tomasz Mikolajewski [Thu, 31 Mar 2016 03:50:17 +0000 (03:50 +0000)]
Merge "Unhide DocumentsContract.EXTRA_ORIENTATION." into nyc-dev

8 years agoMerge "Unhide ExifThumbnail.getThumbnailRange() and make it match the comment." into...
Tomasz Mikolajewski [Thu, 31 Mar 2016 03:47:40 +0000 (03:47 +0000)]
Merge "Unhide ExifThumbnail.getThumbnailRange() and make it match the comment." into nyc-dev

8 years agoMerge "Keep COLUMN_LOCAL_URI working for now." into nyc-dev
Jeff Sharkey [Thu, 31 Mar 2016 03:46:12 +0000 (03:46 +0000)]
Merge "Keep COLUMN_LOCAL_URI working for now." into nyc-dev

8 years agoParse and validate txt records.
Philip P. Moltmann [Wed, 16 Mar 2016 17:15:39 +0000 (10:15 -0700)]
Parse and validate txt records.

Bug: 27696905
Change-Id: I9affcf02a51c92a2be1c2bfc5efbd09065e100bc

8 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 31 Mar 2016 03:25:05 +0000 (20:25 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ia554f35ef10e80690cfe3cf5fdf0c004a7687fe1
Auto-generated-cl: translation import

8 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 31 Mar 2016 03:09:56 +0000 (20:09 -0700)]
Import translations. DO NOT MERGE

Change-Id: Icc3eb7aed5c4991a4628cd3978a0d8339ec785a9
Auto-generated-cl: translation import

8 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 31 Mar 2016 03:03:30 +0000 (20:03 -0700)]
Import translations. DO NOT MERGE

Change-Id: If1d2bc9f9f2e22b73c1b093f680f55dbdd67ca42
Auto-generated-cl: translation import

8 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 31 Mar 2016 02:58:55 +0000 (19:58 -0700)]
Import translations. DO NOT MERGE

Change-Id: Iec6c28e663a94027fb9bc1f73ba400a28266491b
Auto-generated-cl: translation import

8 years agoMerge "BatteryStats: Add ble scans to checkin data and start global ble scan timer...
Adam Lesinski [Thu, 31 Mar 2016 02:58:25 +0000 (02:58 +0000)]
Merge "BatteryStats: Add ble scans to checkin data and start global ble scan timer" into nyc-dev

8 years agoMerge "Fix DownloadManager tests." into nyc-dev
Jeff Sharkey [Thu, 31 Mar 2016 02:43:20 +0000 (02:43 +0000)]
Merge "Fix DownloadManager tests." into nyc-dev

8 years agoMake DreamManagerService FBE aware.
Jeff Sharkey [Thu, 31 Mar 2016 02:42:46 +0000 (20:42 -0600)]
Make DreamManagerService FBE aware.

It doesn't clobber state based on missing dreams, so we just need
the "triaged" flag to stop logging warnings.

Bug: 26476012
Change-Id: I29d6d4cce18d3e659590e7191681176bf19d0ad7

8 years agoMerge "Fix a deadlock due to wtf in BaseBundle" into nyc-dev
Jeff Sharkey [Thu, 31 Mar 2016 02:18:52 +0000 (02:18 +0000)]
Merge "Fix a deadlock due to wtf in BaseBundle" into nyc-dev

8 years agoBatteryStats: Add ble scans to checkin data and start global ble scan timer
Adam Lesinski [Wed, 30 Mar 2016 23:58:51 +0000 (16:58 -0700)]
BatteryStats: Add ble scans to checkin data and start global ble scan timer

Bug:27930206
Change-Id: Ieb81eddeb0ac54ad93615f3abdc18cbcab19a729

8 years agoMerge "Reset FontMetrics at each new measurement in BoringLayout" into nyc-dev
Siyamed Sinir [Thu, 31 Mar 2016 01:50:29 +0000 (01:50 +0000)]
Merge "Reset FontMetrics at each new measurement in BoringLayout" into nyc-dev

8 years agoKeep COLUMN_LOCAL_URI working for now.
Jeff Sharkey [Thu, 31 Mar 2016 01:46:42 +0000 (19:46 -0600)]
Keep COLUMN_LOCAL_URI working for now.

Bug: 26515039
Change-Id: I48f3ef90443b01fb75a3852e5cfdd83a9bbcac0f

8 years agoMerge "Revert "Add wallpaper input consumer to WindowManagerService"" into nyc-dev
Vladislav Kaznacheev [Thu, 31 Mar 2016 01:43:09 +0000 (01:43 +0000)]
Merge "Revert "Add wallpaper input consumer to WindowManagerService"" into nyc-dev

8 years agoRevert "Add wallpaper input consumer to WindowManagerService"
Vladislav Kaznacheev [Thu, 31 Mar 2016 01:42:02 +0000 (01:42 +0000)]
Revert "Add wallpaper input consumer to WindowManagerService"

This reverts commit 6013a558262d149023b32ab175c9b885b6c5b81d.

Change-Id: I2711afe2e97a8b9a4bd94193202cb83113b3bd7e

8 years agoMerge "Add menu option to show/hide internal storage." into nyc-dev
Aga Wronska [Thu, 31 Mar 2016 01:39:11 +0000 (01:39 +0000)]
Merge "Add menu option to show/hide internal storage." into nyc-dev

8 years agoUnhide ExifThumbnail.getThumbnailRange() and make it match the comment.
Tomasz Mikolajewski [Thu, 10 Mar 2016 06:58:32 +0000 (15:58 +0900)]
Unhide ExifThumbnail.getThumbnailRange() and make it match the comment.

Bug: 27579803
Change-Id: If9fe16976cfbc0760a6afb3043d35e0ee387945c

8 years agoMerge "Add the print service recommendation service" into nyc-dev
Philip P. Moltmann [Thu, 31 Mar 2016 01:33:15 +0000 (01:33 +0000)]
Merge "Add the print service recommendation service" into nyc-dev

8 years agoUnhide DocumentsContract.EXTRA_ORIENTATION.
Tomasz Mikolajewski [Thu, 31 Mar 2016 00:34:51 +0000 (09:34 +0900)]
Unhide DocumentsContract.EXTRA_ORIENTATION.

Bug: 27351468
Change-Id: Ib205dfe5fab995880407792cc15178aaf1ac15e6

8 years agoAdd menu option to show/hide internal storage.
Aga Wronska [Thu, 31 Mar 2016 01:07:59 +0000 (18:07 -0700)]
Add menu option to show/hide internal storage.

This reverts commit 7c4395804e450533afb553ab992c47f737da8a9b.

Bug: 27683276
Change-Id: Id1a310b57ab7fa3c8c14b464786473f211eaf41f

8 years agoMerge "Revert "Temporary changes to fix crashes during tests."" into nyc-dev
Sudheer Shanka [Thu, 31 Mar 2016 01:22:36 +0000 (01:22 +0000)]
Merge "Revert "Temporary changes to fix crashes during tests."" into nyc-dev

8 years agoMerge "Return null value if getActiveAdminUncheckedLocked returns null." into nyc-dev
Sudheer Shanka [Thu, 31 Mar 2016 01:14:20 +0000 (01:14 +0000)]
Merge "Return null value if getActiveAdminUncheckedLocked returns null." into nyc-dev

8 years agoFix layer damage and clipping for Text shadows
Chris Craik [Thu, 31 Mar 2016 01:09:17 +0000 (18:09 -0700)]
Fix layer damage and clipping for Text shadows

Fixes: 27787426

Change-Id: I4c65cca0cfcd343a9cfbaedd3a32b83f90df2ecf

8 years agoMerge "Refactor usages of Picture In Picture and Multi Window (1/4)" into nyc-dev
Andrii Kulian [Thu, 31 Mar 2016 00:57:40 +0000 (00:57 +0000)]
Merge "Refactor usages of Picture In Picture and Multi Window (1/4)" into nyc-dev

8 years agoMerge "Revert "PowerManager: Hide the SUSTAINED_PERFORMANCE API."" into nyc-dev
Ruchi Kandoi [Thu, 31 Mar 2016 00:54:24 +0000 (00:54 +0000)]
Merge "Revert "PowerManager: Hide the SUSTAINED_PERFORMANCE API."" into nyc-dev

8 years agoMerge "Ignore stopwords in the Arabic locale sort" into nyc-dev
Mihai Niță [Thu, 31 Mar 2016 00:53:41 +0000 (00:53 +0000)]
Merge "Ignore stopwords in the Arabic locale sort" into nyc-dev

8 years agoMerge "Minor tweaks on Scoped Directory Access:" into nyc-dev
Felipe Leme [Thu, 31 Mar 2016 00:49:16 +0000 (00:49 +0000)]
Merge "Minor tweaks on Scoped Directory Access:" into nyc-dev

8 years agoAdd wallpaper input consumer to WindowManagerService
Vladislav Kaznacheev [Tue, 29 Mar 2016 22:43:28 +0000 (15:43 -0700)]
Add wallpaper input consumer to WindowManagerService

This is an input consumer similar to the one used when hiding the navbar,
but placed above wallpapers. It might be useful for processing touch
events over "desktop" in freeform MW mode.

Bug:26688904
Change-Id: I9d6d28a624f750ad48fc39f9b149dd1f989cceba

8 years agoFix a deadlock due to wtf in BaseBundle
Amith Yamasani [Wed, 30 Mar 2016 23:51:26 +0000 (16:51 -0700)]
Fix a deadlock due to wtf in BaseBundle

Use Slog.wtf instead of Log.wtf, so that it is
asynchronously reported.

Mark incoming application restrictions as defusable
since they are being unparceled.

Bug: 27811728
Change-Id: I166de69a74417e439ec5ef9159fbbfbfe711dde6

8 years agoMerge "Fix RootsCache invalidation bugs." into nyc-dev
Jeff Sharkey [Thu, 31 Mar 2016 00:27:20 +0000 (00:27 +0000)]
Merge "Fix RootsCache invalidation bugs." into nyc-dev

8 years agoRemoving assignments to localeScriptWasComputed in aapt.
Andrew Johnson [Wed, 30 Mar 2016 21:16:45 +0000 (17:16 -0400)]
Removing assignments to localeScriptWasComputed in aapt.

On certain devices running Android M with unknown vendor
modifications. Setting the localeScriptWasComputed bit in
the resource parameters struct causes the translations
for many languages to fail to load. The app then
defaults to English.

This has been reported on the following devices:
Motorola XT1086, XT1096, and XT1586, HTC One, and Huawei
MediaPad 10 LINK.

This change works around the issue by never setting
localeScriptWasComputed in aapt and instead always
writing the default value of false.

Bug: 27872476
Change-Id: Id638d1d0e5f9dcb1c02e65d67667d76174c69b9e

8 years agoRevert "Temporary changes to fix crashes during tests."
Sudheer Shanka [Thu, 31 Mar 2016 00:24:05 +0000 (00:24 +0000)]
Revert "Temporary changes to fix crashes during tests."

This reverts commit 1c15e01f6dc57cbd8dbfb45f60c625703309c4a5.

Change-Id: I9ea2f26c9d95b5429c98a0785b1797bea2e3f945

8 years agoFix DownloadManager tests.
Jeff Sharkey [Thu, 31 Mar 2016 00:22:22 +0000 (18:22 -0600)]
Fix DownloadManager tests.

ERROR_CANNOT_RESUME is the correct code for one, and relative paths
are supported by the RFC, so change the test to check for success.

Bug: 27580939
Change-Id: Ife99c22a44dd71232466e35d38a2441c16a558f7

8 years agoAdd the print service recommendation service
Philip P. Moltmann [Mon, 14 Mar 2016 21:31:12 +0000 (14:31 -0700)]
Add the print service recommendation service

This service connects through the print manager to the print spooler:

PrintSpooler.AddPrintersActivity <-> PrintManager <-> PrintManagerService <-> UserState <-> RemotePrintServiceRecommendationService <-> PrintRecommendationService <-> PrintRecommendationServiceImpl

Hence there is a lot of mindless plumming.

The actual changes are only in the AddPrintersActivity which is extended
to show another list of services: The recommended services.

The PrintServiceRecommendationService is based on the experimenal print
service stubs provider. This provider was contributed the Android by
Mopria. As this services uses Android own network discovery service most
code from the experimental provider goes away. In fact the only logic
left over is the selections of mdns-txt fields to look at and the
printer vendor configuration.

This relies on the Android MDNS to get fixed (Bug: 27696905). This also
does not deal with how to update the recommendation service.

Bug: 24533249
Change-Id: I6edc6e25fc08a50d478b61c71bb8ea158b08624c

8 years agoReset FontMetrics at each new measurement in BoringLayout
Siyamed Sinir [Tue, 29 Mar 2016 18:56:53 +0000 (11:56 -0700)]
Reset FontMetrics at each new measurement in BoringLayout

Reset FontMetrics object used in BoringLayout.isBoring to get updated
and correct FontMetrics as a result of measurement.

Bug: 26704088
Change-Id: If77b0edba8dc4b5b1738a802c5f49e112e47b4f2

8 years agoReturn null value if getActiveAdminUncheckedLocked returns null.
Sudheer Shanka [Thu, 31 Mar 2016 00:12:07 +0000 (17:12 -0700)]
Return null value if getActiveAdminUncheckedLocked returns null.

- Split per user version of getUserRestrictions into a separate method
  in DPMS and make the per-user version return null if the admin
  parameter is not a valid one.
- Update isAccessibilityServicePermittedByAdmin and
  isInputMethodPermittedByAdmin to return false if the admin parameter
  is not a valid one.

Bug: 27909087
Change-Id: I6f4cae6552cbfe02dc4a92b04eeeddf0314e0974

8 years agoMerge "Fix audio focus logging" into nyc-dev
Jean-Michel Trivi [Thu, 31 Mar 2016 00:10:24 +0000 (00:10 +0000)]
Merge "Fix audio focus logging" into nyc-dev

8 years agoBenchmarks for Linkify
Siyamed Sinir [Wed, 30 Mar 2016 23:01:37 +0000 (16:01 -0700)]
Benchmarks for Linkify

Add benchmarks for Linkify and URL regular expressions.

Bug: 27921706
Change-Id: I61dcd090bdf877f2df77e898c8a0f441de1dc45a

8 years agoInclude process state in association tracking
Joe Onorato [Wed, 30 Mar 2016 22:13:46 +0000 (15:13 -0700)]
Include process state in association tracking

Bug: 26165863
Change-Id: Ic1f3237d85dd9f9b55a412bc8609e60e6c2f3fd2

8 years agoMerge "Hide children in ViewGroup.createSnaphost via internal flag and add test for...
Sergei Vasilinetc [Wed, 30 Mar 2016 23:42:33 +0000 (23:42 +0000)]
Merge "Hide children in ViewGroup.createSnaphost via internal flag and add test for it." into nyc-dev

8 years agoMinor tweaks on Scoped Directory Access:
Felipe Leme [Wed, 30 Mar 2016 02:06:02 +0000 (19:06 -0700)]
Minor tweaks on Scoped Directory Access:

- Only allow entire directory access on non-primary volumes.
- Do not display primary storage label on scoped access.

BUG: 27743842
BUG: 27676858
Change-Id: I9884fb1e2df3534fceebc5d5bef44adfb758724c

8 years agoMerge "AAPT2: Suppress warnings from libandroidfw when built for host" into nyc-dev
Adam Lesinski [Wed, 30 Mar 2016 23:29:56 +0000 (23:29 +0000)]
Merge "AAPT2: Suppress warnings from libandroidfw when built for host" into nyc-dev

8 years agoAAPT2: Suppress warnings from libandroidfw when built for host
Adam Lesinski [Wed, 30 Mar 2016 23:22:33 +0000 (16:22 -0700)]
AAPT2: Suppress warnings from libandroidfw when built for host

Certain error cases are expected (like not finding a package) when
using libandroidfw on the host side for AAPT2. Suppress those warnings
and let AAPT2 handle error cases.

Change-Id: I3de97128686c03c89c5b99559bf46d4f2f1dfe4d

8 years agoFix RootsCache invalidation bugs.
Jeff Sharkey [Wed, 30 Mar 2016 23:14:23 +0000 (17:14 -0600)]
Fix RootsCache invalidation bugs.

When RootsCache is still running and it detects a provider/package
change, it needs to force reload roots.  Also fix cache invalidation
bug in ContentService to allow for Uri prefix matches.

Mark internal storage broadcasts with flag to bypass new background
checks.

Bug: 27759529
Change-Id: I9d9c6fe15d8640ff56ae7214afb3bac673682c28

8 years agoMerge "Fix issue #27920133: Need to ensure activity starts in idle maintenance" into...
Dianne Hackborn [Wed, 30 Mar 2016 23:13:10 +0000 (23:13 +0000)]
Merge "Fix issue #27920133: Need to ensure activity starts in idle maintenance" into nyc-dev

8 years agoMerge "Make part of KeyguardSecurityContainer protected" into nyc-dev
Evan Rosky [Wed, 30 Mar 2016 23:13:04 +0000 (23:13 +0000)]
Merge "Make part of KeyguardSecurityContainer protected" into nyc-dev

8 years agoTIF: Add more class documentation on TvInputManager
Dongwon Kang [Mon, 21 Mar 2016 05:40:12 +0000 (22:40 -0700)]
TIF: Add more class documentation on TvInputManager

Bug: 25726241
Change-Id: Ib3ff49f2d9f7a3bdcee4b97f89da193fe05d663c

8 years agoMerge "Avoid null app context in StaticApplicationContextServiceFetcher." into nyc-dev
Lorenzo Colitti [Wed, 30 Mar 2016 23:03:17 +0000 (23:03 +0000)]
Merge "Avoid null app context in StaticApplicationContextServiceFetcher." into nyc-dev

8 years agoMerge "Check permission of package, not caller." into nyc-dev
Julia Reynolds [Wed, 30 Mar 2016 22:58:50 +0000 (22:58 +0000)]
Merge "Check permission of package, not caller." into nyc-dev

8 years agoIgnore stopwords in the Arabic locale sort
Mihai Nita [Wed, 30 Mar 2016 21:57:58 +0000 (14:57 -0700)]
Ignore stopwords in the Arabic locale sort

Bug: 26277596
Change-Id: I7cf36d67313de8ee89d12b0289a15bccb9dd9ecc

8 years agoChaning LauncherActivityInfo to return a density specific non-badged icon
Sunny Goyal [Wed, 30 Mar 2016 22:55:42 +0000 (15:55 -0700)]
Chaning LauncherActivityInfo to return a density specific non-badged icon

Bug: 27877821
Change-Id: I57c39c197b2480d9620a1719ace076cc6c936652

8 years agoMerge "Revert "Run cleanup before end actions of ViewPropertyAnimator."" into nyc-dev
George Mount [Wed, 30 Mar 2016 22:55:28 +0000 (22:55 +0000)]
Merge "Revert "Run cleanup before end actions of ViewPropertyAnimator."" into nyc-dev

8 years agoMerge "Rewrite workflow on how the destination printer is selected." into nyc-dev
Philip P. Moltmann [Wed, 30 Mar 2016 22:42:48 +0000 (22:42 +0000)]
Merge "Rewrite workflow on how the destination printer is selected." into nyc-dev

8 years agoMerge "Data Saver Mode should automatically allow foreground services." into nyc-dev
Felipe Leme [Wed, 30 Mar 2016 22:39:52 +0000 (22:39 +0000)]
Merge "Data Saver Mode should automatically allow foreground services." into nyc-dev

8 years agoMerge "Fixed arguments order for addSharedAccountsFromParentUser" into nyc-dev
Fyodor Kupolov [Wed, 30 Mar 2016 22:34:47 +0000 (22:34 +0000)]
Merge "Fixed arguments order for addSharedAccountsFromParentUser" into nyc-dev

8 years agoMerge "Allow multiple Resources associated with an Activity" into nyc-dev
Adam Lesinski [Wed, 30 Mar 2016 22:33:29 +0000 (22:33 +0000)]
Merge "Allow multiple Resources associated with an Activity" into nyc-dev