OSDN Git Service

android-x86/frameworks-base.git
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 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 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 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 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 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

8 years agoMerge "Update surface size even when preserving geometry." into nyc-dev
Rob Carr [Wed, 30 Mar 2016 22:32:37 +0000 (22:32 +0000)]
Merge "Update surface size even when preserving geometry." into nyc-dev

8 years agoData Saver Mode should automatically allow foreground services.
Felipe Leme [Wed, 30 Mar 2016 22:11:31 +0000 (15:11 -0700)]
Data Saver Mode should automatically allow foreground services.

BUG: 27324964

Change-Id: I8f09b9c9673f3ed697daca14902123a81ce41085

8 years agoMerge "Uses bw_happy_box and bw_penalty_box for Data Saver." into nyc-dev
Felipe Leme [Wed, 30 Mar 2016 22:28:05 +0000 (22:28 +0000)]
Merge "Uses bw_happy_box and bw_penalty_box for Data Saver." into nyc-dev

8 years agoMerge "Add metrics for create directory and rename file operations" into nyc-dev
Aga Wronska [Wed, 30 Mar 2016 22:04:23 +0000 (22:04 +0000)]
Merge "Add metrics for create directory and rename file operations" into nyc-dev

8 years agoFix issue #27920133: Need to ensure activity starts in idle maintenance
Dianne Hackborn [Wed, 30 Mar 2016 21:55:00 +0000 (14:55 -0700)]
Fix issue #27920133: Need to ensure activity starts in idle maintenance

We now hold a wake lock while going in to idle maintenance, since
we really want to make sure everyone has a chance to respond.  And
since we are doing that, we can move to just using a delayed message
to make sure we don't leave maintenance until the time expires, getting
rid of the separate timeout alarm.

Also improve the initial transition to light idle mode so that if
we currently have work going on, we will wait for up to 15 minutes
more before actually going idle and forcing it to stop.

Change-Id: I6045da57ab4165f80a651126e99371c029ced23d

8 years agoMerge "Send WorkSource for scan requests so the origin can be overridden" into nyc-dev
Mitchell Wills [Wed, 30 Mar 2016 21:58:42 +0000 (21:58 +0000)]
Merge "Send WorkSource for scan requests so the origin can be overridden" into nyc-dev

8 years agoMerge "Add IC#closeConnection()." into nyc-dev
Yohei Yukawa [Wed, 30 Mar 2016 21:55:30 +0000 (21:55 +0000)]
Merge "Add IC#closeConnection()." into nyc-dev

8 years agoUses bw_happy_box and bw_penalty_box for Data Saver.
Felipe Leme [Tue, 29 Mar 2016 17:45:13 +0000 (10:45 -0700)]
Uses bw_happy_box and bw_penalty_box for Data Saver.

bw_penalty_box is a blacklist-based firewall chain used to determine
which UIDs do not have access to metered interfaces. It can be used
alone or with bw_happy_box, which is a whitelist-based chain: when
bw_happy_box is enabled, it's included in the bw_penalty_box chain.

Currently, NMPS and NMS uses just bw_penalty_box for both blacklist and
whitelist, so when Data Saver is turned on, it has to build a extensive
list of UIDs to be blacklisted, which can take seconds (since it makes
dozens of iptables, and which forks an iptables process)

This CL changes this behavior so it uses both chain (plus a new
bw_data_saver chain, which is added to the end of bw_happy_box), in
which case the Data Saver switch is much faster (around 120-160ms),
since it requires just 1 or 2 iptables calls (one to switch the
bw_data_saver rule, and another to whitelist the foreground app if it's
not whitelisted yet).

BUG: 27127112
BUG: 26685616

Change-Id: If10222aef9f49a924b07b978d4bdccdd92f9acdb

8 years agoMerge "Update print preview when option is changed and clear ranges when they layout...
Philip P. Moltmann [Wed, 30 Mar 2016 21:44:18 +0000 (21:44 +0000)]
Merge "Update print preview when option is changed and clear ranges when they layout changes" into nyc-dev

8 years agoCheck permission of package, not caller.
Julia Reynolds [Wed, 30 Mar 2016 21:29:54 +0000 (17:29 -0400)]
Check permission of package, not caller.

Bug: 27923662
Change-Id: I86fd9ed2e8971bde216f53b6d1a5933e8188a425

8 years agoRevert "Run cleanup before end actions of ViewPropertyAnimator."
George Mount [Wed, 30 Mar 2016 21:33:18 +0000 (21:33 +0000)]
Revert "Run cleanup before end actions of ViewPropertyAnimator."

This reverts commit e9a4f878528976efb4ec6f3d7797bef44732b00e.

This revert is to test to see if the gralloc lock problems are caused by this CL.

Change-Id: I395fd3675dd430c44a5d29b050ba248f3f2bf4cd

8 years agoMerge "Fix deadlock during user state transitions" into nyc-dev
Amith Yamasani [Wed, 30 Mar 2016 21:28:57 +0000 (21:28 +0000)]
Merge "Fix deadlock during user state transitions" into nyc-dev

8 years agoAllow multiple Resources associated with an Activity
Adam Lesinski [Wed, 30 Mar 2016 17:32:15 +0000 (10:32 -0700)]
Allow multiple Resources associated with an Activity

Previously it was assumed that one Resources object per Activity would be fine.
This proved to be incorrect, as methods like Context#createConfigurationContext()
expect to create a new Resources object that gets updated whenever the Activity Resources
get updated.

To fix this issue, there exists a master override configuration for each Activity. Subsequent
Resources created for an Activity will be based off that master override configuration, and
will be updated accordingly.

Bug:27644297
Bug:27604953
Change-Id: Idb3d851f55ee7981eec4e3fe28e2ea8d55f1192d

8 years agoRevert "PowerManager: Hide the SUSTAINED_PERFORMANCE API."
Ruchi Kandoi [Wed, 30 Mar 2016 21:23:58 +0000 (14:23 -0700)]
Revert "PowerManager: Hide the SUSTAINED_PERFORMANCE API."

This reverts commit 302710deaa02ad5fba5e39d9f0f652d3587b8b91.

Change-Id: I3e7e071838bae9460e126aac099b31f5213e3c6c

8 years agoHide children in ViewGroup.createSnaphost via internal flag and add test for
sergeyv [Wed, 30 Mar 2016 03:27:44 +0000 (20:27 -0700)]
Hide children in ViewGroup.createSnaphost via internal flag and add test for
it.

bug:27747923
Change-Id: I079b52b176b920bfa4c6749be31fbcd96a4dc42c

8 years agoMerge "PBAP client Settings profile." into nyc-dev
Joseph Pirozzo [Wed, 30 Mar 2016 21:00:52 +0000 (21:00 +0000)]
Merge "PBAP client Settings profile." into nyc-dev

8 years agoMerge "Add radio button as a bundle XML file in the manual test" into nyc-dev
Tenghui Zhu [Wed, 30 Mar 2016 20:38:13 +0000 (20:38 +0000)]
Merge "Add radio button as a bundle XML file in the manual test" into nyc-dev

8 years agoUpdate surface size even when preserving geometry.
Robert Carr [Wed, 30 Mar 2016 20:24:26 +0000 (13:24 -0700)]
Update surface size even when preserving geometry.

A recent change is causing some apps to request their
SurfaceView size before requesting visibility. We won't
apply this because of the View.GONE check in WMS. Once the app
becomes visible, it thinks the surface size hasn't changed
locally, so it appends PRESERVE_GEOMETRY to let the render thread
and reposition child control the layout size. Now we will never
set a requested width/height though and end up with 0. The line
to not update requested size while preferring geometry was
required when we were using SCALING_MODE_NO_SCALE_CROP, as
making the size smaller would apply immediately (with
the surface size acting as a reduced crop until we got a new
buffer), but now that we are using SCALING_MODE_FREEZE there
are no problems.

Bug: 27914300
Change-Id: Ic0997ab3950f3eac360260e9939b6f2ee6667453

8 years agoFix QS animation visibility issue on lockscreen
Jason Monk [Wed, 30 Mar 2016 20:19:06 +0000 (16:19 -0400)]
Fix QS animation visibility issue on lockscreen

Change-Id: I4ed417051b1efe23952b20a993830ba06f8faee7
Fixes: 27616176

8 years agoMerge "LUTInterpolator needs to have 2 frame at minimal" into nyc-dev
Tenghui Zhu [Wed, 30 Mar 2016 20:30:04 +0000 (20:30 +0000)]
Merge "LUTInterpolator needs to have 2 frame at minimal" into nyc-dev

8 years agoFix deadlock during user state transitions
Amith Yamasani [Wed, 30 Mar 2016 20:15:26 +0000 (13:15 -0700)]
Fix deadlock during user state transitions

performReceive() is called with the activity manager lock held.
Don't call out to other system services (such as user state
callbacks) with the lock held. Post a runnable to the handler
instead.

Bug: 27589217
Change-Id: I5c2f8debe1ae365682b27af65e0bf02bcce50d4a

8 years agoMerge "Add metrics for opening the drawer" into nyc-dev
Aga Wronska [Wed, 30 Mar 2016 20:13:50 +0000 (20:13 +0000)]
Merge "Add metrics for opening the drawer" into nyc-dev

8 years agoMerge "Add an option to try and filter out test overhead" into nyc-dev
John Reck [Wed, 30 Mar 2016 20:07:01 +0000 (20:07 +0000)]
Merge "Add an option to try and filter out test overhead" into nyc-dev

8 years agoMerge "Returns the correct elevation in GnssStatus" into nyc-dev
Lifu Tang [Wed, 30 Mar 2016 19:52:56 +0000 (19:52 +0000)]
Merge "Returns the correct elevation in GnssStatus" into nyc-dev

8 years agoMerge "Fix incorrect initial locale negotiation." into nyc-dev
Roozbeh Pournader [Wed, 30 Mar 2016 19:44:24 +0000 (19:44 +0000)]
Merge "Fix incorrect initial locale negotiation." into nyc-dev