OSDN Git Service

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

8 years agoMerge "Update DocumentsUI according to DragStartHelper API changes" into nyc-dev
Vladislav Kaznacheev [Wed, 30 Mar 2016 19:43:45 +0000 (19:43 +0000)]
Merge "Update DocumentsUI according to DragStartHelper API changes" into nyc-dev

8 years agoMerge "Fix CRLF" into nyc-dev
Glenn Kasten [Wed, 30 Mar 2016 19:41:04 +0000 (19:41 +0000)]
Merge "Fix CRLF" into nyc-dev

8 years agoPBAP client Settings profile.
Joseph Pirozzo [Mon, 21 Mar 2016 22:49:48 +0000 (15:49 -0700)]
PBAP client Settings profile.

Add content to Settings and SettingsLib to add a checkbox for PBAP
client profile, and remove the box for PBAP server profile when the
client profile is enabled.

Bug: 27642222
Change-Id: I125559904a8e017a01ae90b1f6425129a87cbee3

8 years agoFix audio focus logging
Jean-Michel Trivi [Wed, 30 Mar 2016 19:06:22 +0000 (12:06 -0700)]
Fix audio focus logging

Fix error in audio focus dispatching log: the message value (here
  MSSG_FOCUS_CHANGE, which is 0) was logged instead of the focus
  value being sent to the audio focus listener.

Bug 25790720

Change-Id: I534ce8d1059c09a52e56c51acd60405ef3c4cda1

8 years agoAdd IC#closeConnection().
Yohei Yukawa [Wed, 30 Mar 2016 19:03:51 +0000 (12:03 -0700)]
Add IC#closeConnection().

It turns out that BaseInputConnection has still depended on a private
API named BaseInputConnection#reportFinish(), which was introduced
4 years ago to work around a UI freeze due to an unbalanced batch edit
count [1].  Note that such an unbalanced batch edit count cannot always
be avoidable.  It can easily occur in the following situations.
 - The current IME crashed during batch edit.
 - The user changed the View focus during batch edit.
 - The current IME called IMM#switchToNextInputMethod() during batch
   edit.

The remaining problem is that #reportFinish() is still an internal API
and only subclasses of BaseInputConnection can implement it, and IMM
calls it when and only when the current InputConnection is
BaseInputConnection or its subclass.  InputConnectionWrapper and any
other InputConnection implementations will never receive such a callback
to clean up InputConnection#{begin, end}BatchEdit(), which is considered
to be a major contributor to UI freeze.

To address the above issue, we unhide BaseInputConnection#reportFinish()
as InputConnection#closeConnection() so that application developers can
receive an appropriate callback to clean up internal state including
unfinished batch edit.

  [1] I5525d776916f0c42d5e6d4a4282aed590d7f0e9a
      9d69ecbf61a4a142c3f4cbb9d5659faa6f85e832

Bug: 24688781
Bug: 25332806
Change-Id: I234309c5880c9fe0b299b8bd0f8862796d4dda0d

8 years agoMerge "Start MediaResourceMonitorService only when needed." into nyc-dev
Dongwon Kang [Wed, 30 Mar 2016 19:03:42 +0000 (19:03 +0000)]
Merge "Start MediaResourceMonitorService only when needed." into nyc-dev

8 years agoMerge "Fix compilation using javac." into nyc-dev
Ying Wang [Wed, 30 Mar 2016 18:57:38 +0000 (18:57 +0000)]
Merge "Fix compilation using javac." into nyc-dev

8 years agoMerge "Clean up javadoc." into nyc-dev
Makoto Onuki [Wed, 30 Mar 2016 18:56:08 +0000 (18:56 +0000)]
Merge "Clean up javadoc." into nyc-dev

8 years agoMerge "Add logging constants for SUW A11y (Vision Settings) screens. Bug: 27777706...
Anna Galusza [Wed, 30 Mar 2016 18:43:57 +0000 (18:43 +0000)]
Merge "Add logging constants for SUW A11y (Vision Settings) screens. Bug: 27777706" into nyc-dev

8 years agoMerge "Add WifiScanner API that accepts a WorkSource for scans" into nyc-dev
Mitchell Wills [Wed, 30 Mar 2016 18:43:22 +0000 (18:43 +0000)]
Merge "Add WifiScanner API that accepts a WorkSource for scans" into nyc-dev

8 years agoLUTInterpolator needs to have 2 frame at minimal
Teng-Hui Zhu [Wed, 30 Mar 2016 18:34:55 +0000 (11:34 -0700)]
LUTInterpolator needs to have 2 frame at minimal

Otherwise, it could be having invalid data, here NAN.
Fix:27343522

Change-Id: I5bb17f04c62f268ec633675015ef589be2413338

8 years agoMerge "Package Manager: Remove force-compile on boot" into nyc-dev
Andreas Gampe [Wed, 30 Mar 2016 18:35:36 +0000 (18:35 +0000)]
Merge "Package Manager: Remove force-compile on boot" into nyc-dev

8 years agoUpdate DocumentsUI according to DragStartHelper API changes
Vladislav Kaznacheev [Wed, 23 Mar 2016 20:00:26 +0000 (13:00 -0700)]
Update DocumentsUI according to DragStartHelper API changes

Bug: 27810240
Change-Id: I1daed13d6d9cc215a6b1ba4d0ad259a996b0eb5f

8 years agoAdd metrics for opening the drawer
Aga Wronska [Tue, 29 Mar 2016 23:57:10 +0000 (16:57 -0700)]
Add metrics for opening the drawer

Change-Id: I1315463c5217ce47aa7fa40ddd8b8773c7038208
Fixed: 27905111

8 years agoMerge "Several code quality improvements" into nyc-dev
Peng Xu [Wed, 30 Mar 2016 18:04:11 +0000 (18:04 +0000)]
Merge "Several code quality improvements" into nyc-dev

8 years agoAdd metrics for create directory and rename file operations
Aga Wronska [Wed, 30 Mar 2016 17:57:04 +0000 (10:57 -0700)]
Add metrics for create directory and rename file operations

Change-Id: I4814673b4066efa840e1fb52a7549d8c7ebc4f63
Fixed: 27908149

8 years agoMerge "Fix QS panel after density changes" into nyc-dev
Jason Monk [Wed, 30 Mar 2016 17:52:26 +0000 (17:52 +0000)]
Merge "Fix QS panel after density changes" into nyc-dev

8 years agoMerge "Multiple fixes in ScrollView and HorizontalScrollView" into nyc-dev
Yigit Boyar [Wed, 30 Mar 2016 17:51:53 +0000 (17:51 +0000)]
Merge "Multiple fixes in ScrollView and HorizontalScrollView" into nyc-dev

8 years agoFix QS panel after density changes
Jason Monk [Wed, 30 Mar 2016 17:48:56 +0000 (13:48 -0400)]
Fix QS panel after density changes

Fixes: 27744717
Change-Id: Ic3724b39e027379bb81e94e7059e67d2bbe30e88

8 years agoMerge "Add DevicePolicyManager API to install a client cert chain." into nyc-dev
Rubin Xu [Wed, 30 Mar 2016 17:46:16 +0000 (17:46 +0000)]
Merge "Add DevicePolicyManager API to install a client cert chain." into nyc-dev

8 years agoFix compilation using javac.
Ying Wang [Wed, 30 Mar 2016 17:33:47 +0000 (10:33 -0700)]
Fix compilation using javac.

We still need to be able to compile all the Java source code in the tree
using javac, though the compiled code never ends up running on device.

Bug: 25958912
Change-Id: Id76663cdf768db579517515d7b7f51519b515fa8

8 years agoAdd logging constants for SUW A11y (Vision Settings) screens.
Anna Galusza [Tue, 22 Mar 2016 20:49:02 +0000 (13:49 -0700)]
Add logging constants for SUW A11y (Vision Settings) screens.
Bug: 27777706

Change-Id: Iaf9ed7f9186fc1a6da3179e8e58b58341c4d8806

8 years agoClean up javadoc.
Makoto Onuki [Tue, 29 Mar 2016 21:46:50 +0000 (14:46 -0700)]
Clean up javadoc.

Bug 27548047

Change-Id: I10410c969136db634bb98687710d011d159bca07