OSDN Git Service

android-x86/frameworks-base.git
7 years agoAvoid re-calculating vsync mid-frame
John Reck [Fri, 17 Jun 2016 19:57:12 +0000 (12:57 -0700)]
Avoid re-calculating vsync mid-frame

Fixes: 29072773

By using computeFrameTime AnimationContext would
potentially end up modifying the latest vsync if
a very-slow frame was received from the UI thread.

This could potentially desync animations that were
RT & UI thread 'synchronized', but more significantly
it would confuse the swap chain which tries to only
draw one frame per vsync causing unneccessary frame
drops.

Change-Id: Ibd2ec3157ce32fee1eec8d56837c45a35e622895

7 years agoMerge "Work on issue #29328569: NPE in " com.google.android.configupdater"" into...
Dianne Hackborn [Fri, 17 Jun 2016 20:33:21 +0000 (20:33 +0000)]
Merge "Work on issue #29328569: NPE in " com.google.android.configupdater"" into nyc-dev

7 years agoMerge "QS Edit: Fix auto-selecting add location" into nyc-dev
TreeHugger Robot [Fri, 17 Jun 2016 20:22:45 +0000 (20:22 +0000)]
Merge "QS Edit: Fix auto-selecting add location" into nyc-dev

7 years agoMerge "QS API: Fix mService and mTile being null once and for all" into nyc-dev
TreeHugger Robot [Fri, 17 Jun 2016 18:38:25 +0000 (18:38 +0000)]
Merge "QS API: Fix mService and mTile being null once and for all" into nyc-dev

7 years agoMerge "Merge \\"Docs: Completed updates to the Data Binding docs\\" into mnc-io-docs...
Android Build Merger (Role) [Fri, 17 Jun 2016 18:35:50 +0000 (18:35 +0000)]
Merge "Merge \\"Docs: Completed updates to the Data Binding docs\\" into mnc-io-docs am: eebe22fef6 am: f693ea687f" into nyc-dev

7 years agoMerge \\"Docs: Completed updates to the Data Binding docs\\" into mnc-io-docs am...
Hemal Patel [Fri, 17 Jun 2016 18:35:24 +0000 (18:35 +0000)]
Merge \\"Docs: Completed updates to the Data Binding docs\\" into mnc-io-docs am: eebe22fef6
am: f693ea687f

Change-Id: I235e73606098e54fc14568c6437af314f9bea337

7 years agoMerge "docs: NDK r12 release notes and downloads" into nyc-dev
Joe Fernandez [Fri, 17 Jun 2016 18:35:07 +0000 (18:35 +0000)]
Merge "docs: NDK r12 release notes and downloads" into nyc-dev

7 years agoMerge \"Docs: Completed updates to the Data Binding docs\" into mnc-io-docs
Yigit Boyar [Fri, 17 Jun 2016 18:31:17 +0000 (18:31 +0000)]
Merge \"Docs: Completed updates to the Data Binding docs\" into mnc-io-docs
am: eebe22fef6

Change-Id: I47b4003b1bd1bb5cdfc12bde543dd2c9d8babdcc

7 years agoMerge "Docs: Completed updates to the Data Binding docs" into mnc-io-docs
Hemal Patel [Fri, 17 Jun 2016 18:25:47 +0000 (18:25 +0000)]
Merge "Docs: Completed updates to the Data Binding docs" into mnc-io-docs

7 years agoMerge "Do a forceLayout if pending insets is changed after relayout window" into...
Chong Zhang [Fri, 17 Jun 2016 18:22:29 +0000 (18:22 +0000)]
Merge "Do a forceLayout if pending insets is changed after relayout window" into nyc-dev

7 years agodocs: NDK r12 release notes and downloads
Joe Fernandez [Thu, 16 Jun 2016 20:31:28 +0000 (13:31 -0700)]
docs: NDK r12 release notes and downloads

b/29188616

Change-Id: Ida2b9b0e308799f9001127006e3be84318857aaa

7 years agoMerge "Fix shade background not aligning with bottom of a group" into nyc-dev
Mady Mellor [Fri, 17 Jun 2016 17:22:34 +0000 (17:22 +0000)]
Merge "Fix shade background not aligning with bottom of a group" into nyc-dev

7 years agoMerge "Bring out your toggles" into nyc-dev
Jason Monk [Fri, 17 Jun 2016 17:22:01 +0000 (17:22 +0000)]
Merge "Bring out your toggles" into nyc-dev

7 years agoQS Edit: Fix auto-selecting add location
Jason Monk [Fri, 17 Jun 2016 17:15:34 +0000 (13:15 -0400)]
QS Edit: Fix auto-selecting add location

We depend on a layout listener for when we ask for focus, but layout
sometimes doesn't happen.  Make it always happen.

Change-Id: I7c805470c6ce9863bf7eac627f59d49191ce8946
Fixes: 29126464

7 years agoQS API: Fix mService and mTile being null once and for all
Jason Monk [Fri, 17 Jun 2016 16:42:59 +0000 (12:42 -0400)]
QS API: Fix mService and mTile being null once and for all

Change-Id: Idd82e4c2f6cfc2b30432e15e23963c1d7a959e43
Fixes: 29121793

7 years agoMerge "Do not schedule restarts if the system is shutting down" into nyc-dev
Fyodor Kupolov [Fri, 17 Jun 2016 16:01:09 +0000 (16:01 +0000)]
Merge "Do not schedule restarts if the system is shutting down" into nyc-dev

7 years agoMerge "Call AppOpsService from the handler thread" into nyc-dev
Fyodor Kupolov [Fri, 17 Jun 2016 15:59:06 +0000 (15:59 +0000)]
Merge "Call AppOpsService from the handler thread" into nyc-dev

7 years agoBring out your toggles
Jason Monk [Fri, 17 Jun 2016 14:19:43 +0000 (10:19 -0400)]
Bring out your toggles

Switch Wifi and BT back to toggling from QQS.  Make cell open a
detail panel.

Change-Id: Ibdd8fa52a31c4bf81ee0e6974e263b46b6f71a31
Fixes: 29406644

7 years agoMerge "Notify user when application does not support current display zoom" into nyc-dev
Alan Viverette [Fri, 17 Jun 2016 13:59:12 +0000 (13:59 +0000)]
Merge "Notify user when application does not support current display zoom" into nyc-dev

7 years agoMerge "Allow stopping user to access AppWidgetService API" into nyc-dev
Tony Mak [Fri, 17 Jun 2016 13:25:05 +0000 (13:25 +0000)]
Merge "Allow stopping user to access AppWidgetService API" into nyc-dev

7 years agoDo not schedule restarts if the system is shutting down
Fyodor Kupolov [Thu, 16 Jun 2016 23:29:05 +0000 (16:29 -0700)]
Do not schedule restarts if the system is shutting down

Bug: 29357754
Change-Id: Id5cf43fb6c4c6ea04d60bd09e910a9cec194c753

7 years agoDo a forceLayout if pending insets is changed after relayout window
Chong Zhang [Fri, 17 Jun 2016 00:28:25 +0000 (17:28 -0700)]
Do a forceLayout if pending insets is changed after relayout window

We might have a pending MSG_RESIZED_REPORT, but if it's executed after
relayoutWindow, mPendingInsets will already be the new value and it'll
not forceLayout. So we need to forceLayout here to make sure the measure
cache is cleared.

bug: 29391054

Change-Id: I73793b1427b89e75700369ec3b37053a6a732f0d

7 years agoDO NOT MERGE: Don\\\\\\\\\\\'t trust callers to supply app info to bindBackupAgent...
Christopher Tate [Fri, 17 Jun 2016 00:41:07 +0000 (00:41 +0000)]
DO NOT MERGE: Don\\\\\\\\\\\'t trust callers to supply app info to bindBackupAgent() am: d85a4ed283 am: f615799ef2 am: 6633a4fee4  -s ours am: 41821a26a5  -s ours am: b1e31ad140 am: 918fb5d453 am: 2149ebeadf  -s ours am: c61f35ed9a am: 34fb87b519 am: 1a450675f3
am: 790c87a05b  -s ours

Change-Id: I33148f02fc665d5ffa7f6a651ce2b6102456eb1b

7 years agoDO NOT MERGE: Don\\\\\\\\\\'t trust callers to supply app info to bindBackupAgent...
Christopher Tate [Fri, 17 Jun 2016 00:34:47 +0000 (00:34 +0000)]
DO NOT MERGE: Don\\\\\\\\\\'t trust callers to supply app info to bindBackupAgent() am: d85a4ed283 am: f615799ef2 am: 6633a4fee4  -s ours am: 41821a26a5  -s ours am: b1e31ad140 am: 918fb5d453 am: 2149ebeadf  -s ours am: c61f35ed9a am: 34fb87b519
am: 1a450675f3

Change-Id: I5fef884dbf640b60c1bf4c28a6d95abb4d42061b

7 years agoresolve merge conflicts of cffb19c to mnc-dev am: 3f9ea2d386 am: d6c1126fab am: e2c9b...
Christopher Tate [Fri, 17 Jun 2016 00:32:26 +0000 (00:32 +0000)]
resolve merge conflicts of cffb19c to mnc-dev am: 3f9ea2d386 am: d6c1126fab am: e2c9b1af3e
am: d2a4e1b39c

Change-Id: I8e59a88278ba50ab7e3768031611065131ed6834

7 years agoDO NOT MERGE: Don\\\\\\\\\'t trust callers to supply app info to bindBackupAgent...
Christopher Tate [Fri, 17 Jun 2016 00:31:08 +0000 (00:31 +0000)]
DO NOT MERGE: Don\\\\\\\\\'t trust callers to supply app info to bindBackupAgent() am: d85a4ed283 am: f615799ef2 am: 6633a4fee4  -s ours am: 41821a26a5  -s ours am: b1e31ad140 am: 918fb5d453 am: 2149ebeadf  -s ours am: c61f35ed9a
am: 34fb87b519

Change-Id: If7444547d0bd82f43bb05439977e536a01589b3c

7 years agoresolve merge conflicts of cffb19c to mnc-dev am: 3f9ea2d386 am: d6c1126fab
Christopher Tate [Fri, 17 Jun 2016 00:24:29 +0000 (00:24 +0000)]
resolve merge conflicts of cffb19c to mnc-dev am: 3f9ea2d386 am: d6c1126fab
am: e2c9b1af3e

Change-Id: Iab52ff84be41c1d18274d1a82492b624a7456726

7 years agoDO NOT MERGE: Don\\\\\\\\'t trust callers to supply app info to bindBackupAgent(...
Christopher Tate [Fri, 17 Jun 2016 00:22:07 +0000 (00:22 +0000)]
DO NOT MERGE: Don\\\\\\\\'t trust callers to supply app info to bindBackupAgent() am: d85a4ed283 am: f615799ef2 am: 6633a4fee4  -s ours am: 41821a26a5  -s ours am: b1e31ad140 am: 918fb5d453 am: 2149ebeadf  -s ours
am: c61f35ed9a

Change-Id: Ied60b535ef69385c369110045ea755ebe9b0b94e

7 years agoresolve merge conflicts of cffb19c to mnc-dev am: 3f9ea2d386
Christopher Tate [Fri, 17 Jun 2016 00:18:48 +0000 (00:18 +0000)]
resolve merge conflicts of cffb19c to mnc-dev am: 3f9ea2d386
am: d6c1126fab

Change-Id: I0414a137b1aab218fa57f291dbf2f7a1519bd973

7 years agoDO NOT MERGE: Don\\\\\\\'t trust callers to supply app info to bindBackupAgent()...
Christopher Tate [Fri, 17 Jun 2016 00:15:14 +0000 (00:15 +0000)]
DO NOT MERGE: Don\\\\\\\'t trust callers to supply app info to bindBackupAgent() am: d85a4ed283 am: f615799ef2 am: 6633a4fee4  -s ours am: 41821a26a5  -s ours am: b1e31ad140 am: 918fb5d453
am: 2149ebeadf  -s ours

Change-Id: I42300992feac56eb94ab71e160da5fa8fc04929a

7 years agoresolve merge conflicts of cffb19c to mnc-dev
Christopher Tate [Fri, 17 Jun 2016 00:15:07 +0000 (00:15 +0000)]
resolve merge conflicts of cffb19c to mnc-dev
am: 3f9ea2d386

Change-Id: Iadf90edb02bacf645896f7d074d011a2aca4b251

7 years agoWork on issue #29328569: NPE in " com.google.android.configupdater"
Dianne Hackborn [Fri, 17 Jun 2016 00:05:47 +0000 (17:05 -0700)]
Work on issue #29328569: NPE in " com.google.android.configupdater"

Make the activity manager look at the "killed" state of a process
before deciding it is in a state where a new client can attach to
a content provider.  Hopefully this will get rid of some races
around attaching to providers and processes being killed.

Also add a little more information when killing a client of a
provider describing the oom adj of that provider's process.

Change-Id: I4efe5daf0a96e4663d5df88827ef401b1311de3f

7 years agoMerge "Remove RemoteInput on lockscreen setting" into nyc-dev
Adrian Roos [Thu, 16 Jun 2016 23:33:55 +0000 (23:33 +0000)]
Merge "Remove RemoteInput on lockscreen setting" into nyc-dev

7 years agoresolve merge conflicts of cffb19c to mnc-dev
Christopher Tate [Thu, 16 Jun 2016 23:31:39 +0000 (16:31 -0700)]
resolve merge conflicts of cffb19c to mnc-dev

Change-Id: I4dba574de2678d851e3d82961a07de27d61f5940

7 years agoMerge "docs: DP4 release notes: add Android Auto known issue" into nyc-dev
Andrew Solovay [Thu, 16 Jun 2016 23:29:13 +0000 (23:29 +0000)]
Merge "docs: DP4 release notes: add Android Auto known issue" into nyc-dev

7 years agoDO NOT MERGE: Don\\\\\\'t trust callers to supply app info to bindBackupAgent() am...
Christopher Tate [Thu, 16 Jun 2016 22:53:29 +0000 (22:53 +0000)]
DO NOT MERGE: Don\\\\\\'t trust callers to supply app info to bindBackupAgent() am: d85a4ed283 am: f615799ef2 am: 6633a4fee4  -s ours am: 41821a26a5  -s ours am: b1e31ad140
am: 918fb5d453

Change-Id: I660124fada1a86288a9bfb10308cec0e1503f62e

7 years agoDO NOT MERGE: Don\\\\\'t trust callers to supply app info to bindBackupAgent() am...
Christopher Tate [Thu, 16 Jun 2016 22:50:23 +0000 (22:50 +0000)]
DO NOT MERGE: Don\\\\\'t trust callers to supply app info to bindBackupAgent() am: d85a4ed283 am: f615799ef2 am: 6633a4fee4  -s ours am: 41821a26a5  -s ours
am: b1e31ad140

Change-Id: I3668160c863e8fe34ca6d233d63113069fec8e5a

7 years agoDO NOT MERGE: Don\\\\'t trust callers to supply app info to bindBackupAgent() am...
Christopher Tate [Thu, 16 Jun 2016 22:45:45 +0000 (22:45 +0000)]
DO NOT MERGE: Don\\\\'t trust callers to supply app info to bindBackupAgent() am: d85a4ed283 am: f615799ef2 am: 6633a4fee4  -s ours
am: 41821a26a5  -s ours

Change-Id: I028d0714c52079b71645197ac70a321285928fec

7 years agoDO NOT MERGE: Don\\\'t trust callers to supply app info to bindBackupAgent() am:...
Christopher Tate [Thu, 16 Jun 2016 22:39:05 +0000 (22:39 +0000)]
DO NOT MERGE: Don\\\'t trust callers to supply app info to bindBackupAgent() am: d85a4ed283 am: f615799ef2
am: 6633a4fee4  -s ours

Change-Id: I2c10cc7ff790c84767167c76e028456ba4dcaeb3

7 years agoMerge "Allow apps with CREATE_USERS permission to create restricted users." into...
TreeHugger Robot [Thu, 16 Jun 2016 22:30:19 +0000 (22:30 +0000)]
Merge "Allow apps with CREATE_USERS permission to create restricted users." into nyc-dev

7 years agoDon\\\'t trust callers to supply app info to bindBackupAgent() am: c58054f25f am...
Christopher Tate [Thu, 16 Jun 2016 22:30:17 +0000 (22:30 +0000)]
Don\\\'t trust callers to supply app info to bindBackupAgent() am: c58054f25f am: cd777e95a7
am: ec6c3f7a32

Change-Id: Idc2b6c712078493b4186edad750d8d5beab58adf

7 years agoDO NOT MERGE: Don\\'t trust callers to supply app info to bindBackupAgent() am: d85a4...
Christopher Tate [Thu, 16 Jun 2016 22:27:18 +0000 (22:27 +0000)]
DO NOT MERGE: Don\\'t trust callers to supply app info to bindBackupAgent() am: d85a4ed283
am: f615799ef2

Change-Id: Ibc84666aa491986fe861b82400affde1675e632d

7 years agoDon\\'t trust callers to supply app info to bindBackupAgent() am: c58054f25f
Christopher Tate [Thu, 16 Jun 2016 22:27:04 +0000 (22:27 +0000)]
Don\\'t trust callers to supply app info to bindBackupAgent() am: c58054f25f
am: cd777e95a7

Change-Id: I199f1354df85fcda372002887eafc1e6fb9b19d8

7 years agoDon\'t trust callers to supply app info to bindBackupAgent()
Christopher Tate [Thu, 16 Jun 2016 22:21:37 +0000 (22:21 +0000)]
Don\'t trust callers to supply app info to bindBackupAgent()
am: c58054f25f

Change-Id: I3b0bd91c38b5f13770f09f39c2eea78b63c29d7c

7 years agoDO NOT MERGE: Don\'t trust callers to supply app info to bindBackupAgent()
Christopher Tate [Thu, 16 Jun 2016 22:21:25 +0000 (22:21 +0000)]
DO NOT MERGE: Don\'t trust callers to supply app info to bindBackupAgent()
am: d85a4ed283

Change-Id: Ib1f01d4d10c82acb9f03aab4fe81d43d85d4a899

7 years agoCall AppOpsService from the handler thread
Fyodor Kupolov [Thu, 16 Jun 2016 22:09:29 +0000 (15:09 -0700)]
Call AppOpsService from the handler thread

Otherwise it may cause deadlocks, for instance if
updateUserRestrictionsInternalLR is called with AMS lock held.

Bug: 28888422
Change-Id: I455c7392f206ff0bb6c99ec5c4a531921a115070

7 years agoMerge "Don't re-launch activities while the device is sleeping" into nyc-dev
TreeHugger Robot [Thu, 16 Jun 2016 21:32:26 +0000 (21:32 +0000)]
Merge "Don't re-launch activities while the device is sleeping" into nyc-dev

7 years agoMerge "Bring task to front when we can't move to adjacent stack" into nyc-dev
Andrii Kulian [Thu, 16 Jun 2016 21:30:21 +0000 (21:30 +0000)]
Merge "Bring task to front when we can't move to adjacent stack" into nyc-dev

7 years agoMerge "Limit global drags to apps targeting SDK 24 and above" into nyc-dev
Yorke Lee [Thu, 16 Jun 2016 21:16:11 +0000 (21:16 +0000)]
Merge "Limit global drags to apps targeting SDK 24 and above" into nyc-dev

7 years agodocs: DP4 release notes: add Android Auto known issue
Andrew Solovay [Thu, 16 Jun 2016 20:37:03 +0000 (13:37 -0700)]
docs: DP4 release notes: add Android Auto known issue

See first comment for doc stage location.

Change-Id: I424195565860af0439a9bf7fefb3286e82cc98da

7 years agoMerge "Docs: Suppress errors in SystemApi Build Bug: 28427390" into nyc-dev
Gina Dimino [Thu, 16 Jun 2016 21:02:13 +0000 (21:02 +0000)]
Merge "Docs: Suppress errors in SystemApi Build Bug: 28427390" into nyc-dev

7 years agoMerge "docs: Minor update to DP4 release notes" into nyc-dev
TreeHugger Robot [Thu, 16 Jun 2016 20:47:02 +0000 (20:47 +0000)]
Merge "docs: Minor update to DP4 release notes" into nyc-dev

7 years agoDocs: Completed updates to the Data Binding docs
Yigit Boyar [Wed, 25 May 2016 17:45:01 +0000 (10:45 -0700)]
Docs: Completed updates to the Data Binding docs

Bug: 28987432

Change-Id: I29d630618f9fff20e3c266f9b8ff59629fc607be

7 years agoRemove RemoteInput on lockscreen setting
Adrian Roos [Thu, 16 Jun 2016 20:04:47 +0000 (13:04 -0700)]
Remove RemoteInput on lockscreen setting

Bug: 29370898
Change-Id: I8686c2266f13e7e131c2330673ec98c26037edaa

7 years agoMerge "Report error correctly for the implementation of StreamInterface::GetData...
Yujie Qin [Thu, 16 Jun 2016 19:48:18 +0000 (19:48 +0000)]
Merge "Report error correctly for the implementation of StreamInterface::GetData()" into nyc-dev

7 years agoDon't re-launch activities while the device is sleeping
Wale Ogunwale [Thu, 16 Jun 2016 17:03:40 +0000 (10:03 -0700)]
Don't re-launch activities while the device is sleeping

- Don't ensure configuration for top running activity that is in the
stopped state if the configuration change while the device is sleeping
as we don't want to relaunch activities in this state.
- Don't make activities visible while the device is sleeping and the
activity isn't in voice interaction mode. Making it visible can also
lead to the activity been relaunched due to configuration changing.

Note the the right configuration will be applied to the activity the next
time we try to make it visible. The re-launch will happen then.

Bug: 28518380
Change-Id: Ic22193db645dec358065cb05e7f1afc6fc8ac49f

7 years agoMerge "Fix unresponsive brightness slider after font size change" into nyc-dev
Adrian Roos [Thu, 16 Jun 2016 19:25:47 +0000 (19:25 +0000)]
Merge "Fix unresponsive brightness slider after font size change" into nyc-dev

7 years agoMerge "Include cause when reporting errors." into nyc-dev
TreeHugger Robot [Thu, 16 Jun 2016 19:14:04 +0000 (19:14 +0000)]
Merge "Include cause when reporting errors." into nyc-dev

7 years agoMerge "Check extra type before blindingly casting to Parcelable." into nyc-dev
TreeHugger Robot [Thu, 16 Jun 2016 18:47:50 +0000 (18:47 +0000)]
Merge "Check extra type before blindingly casting to Parcelable." into nyc-dev

7 years agoMerge "Fix issue #29371078: Foreground jobs should not count..." into nyc-dev
Dianne Hackborn [Thu, 16 Jun 2016 18:39:02 +0000 (18:39 +0000)]
Merge "Fix issue #29371078: Foreground jobs should not count..." into nyc-dev

7 years agoBring task to front when we can't move to adjacent stack
Andrii Kulian [Wed, 15 Jun 2016 22:27:01 +0000 (15:27 -0700)]
Bring task to front when we can't move to adjacent stack

If task was requested to move to adjacent stack with mLaunchStackId set
and FLAG_ACTIVITY_LAUNCH_ADJACENT not set - we don't move it from its
current stack. If the task was covered with other task(s) it wouldn't
be brought to front.
This CL checks if mLaunchStackId is provided and is a valid stack for this
task, then we move it to front of current stack as a safer option.

Bug: 29103549
Change-Id: I3065960f082cfbf9a5b43c6e83b5cebe3dd69df6

7 years agodocs: Minor update to DP4 release notes
Andrew Solovay [Thu, 16 Jun 2016 00:32:42 +0000 (17:32 -0700)]
docs: Minor update to DP4 release notes

Added a new section from Dirk, with a couple of gotchas for people
updating from API level ≤22 to 24.

See first comment for doc stage location.

Change-Id: I237e9efac75b9c1e0fbeecf362dbc0de7c958c60

7 years agoInclude cause when reporting errors.
Steve McKay [Tue, 14 Jun 2016 22:56:50 +0000 (15:56 -0700)]
Include cause when reporting errors.

Bug: 29191892
Change-Id: I5f904da3a8564ec68ca634c28e3eda7f496a5c1c

7 years agoMerge "Support using uninstalled WebView packages as WebView implementation." into...
Gustav Sennton [Thu, 16 Jun 2016 17:40:08 +0000 (17:40 +0000)]
Merge "Support using uninstalled WebView packages as WebView implementation." into nyc-dev

7 years agoCheck extra type before blindingly casting to Parcelable.
Felipe Leme [Thu, 16 Jun 2016 17:02:38 +0000 (10:02 -0700)]
Check extra type before blindingly casting to Parcelable.

BUG: 29402928
Change-Id: If1729b8a4fcde724372b0a23cfae723a5d9b4faa

7 years agoNotify user when application does not support current display zoom
Alan Viverette [Thu, 16 Jun 2016 16:47:58 +0000 (12:47 -0400)]
Notify user when application does not support current display zoom

Bug: 29322470
Change-Id: Id33215f6b0b20b332c3c9101aedf9de0261ee5ea

7 years agoLimit global drags to apps targeting SDK 24 and above
Yorke Lee [Wed, 15 Jun 2016 17:03:18 +0000 (10:03 -0700)]
Limit global drags to apps targeting SDK 24 and above

Bug: 29127791

Change-Id: Ib5f85a207bdb79eeac0418fda78e452d225761bc

7 years agoMerge "Make sure we're locked" into nyc-dev
Todd Kennedy [Thu, 16 Jun 2016 16:22:53 +0000 (16:22 +0000)]
Merge "Make sure we're locked" into nyc-dev

7 years agoAllow apps with CREATE_USERS permission to create restricted users.
Sudheer Shanka [Thu, 16 Jun 2016 16:11:08 +0000 (09:11 -0700)]
Allow apps with CREATE_USERS permission to create restricted users.

Bug: 29189712
Change-Id: I0f2677adddb22c11cb5a3e38763b0967d9cbd541

7 years agoMerge "Fix that work apps settings page crash after changing work profile to use...
Victor Chang [Thu, 16 Jun 2016 15:13:32 +0000 (15:13 +0000)]
Merge "Fix that work apps settings page crash after changing work profile to use separated lock" into nyc-dev

7 years agoSupport using uninstalled WebView packages as WebView implementation.
Gustav Sennton [Tue, 14 Jun 2016 14:32:19 +0000 (15:32 +0100)]
Support using uninstalled WebView packages as WebView implementation.

A package can be uninstalled for the system user but still be installed
on the device. Currently, we do not use such a package as WebView
implementation which means we fall back to using the fallback WebView
package.
However, if the fallback package is not valid (because it needs to be
updated first) loading WebView will fail.

With this change we fetch allow the fetching of information from
packages that are uninstalled for the system user so that we can still
load WebView when the only valid WebView provider is uninstalled for the
system user.

Also listen to package additions/changes/removals for all users -
otherwise we won't notice when a package becomes replaced if it was
already uninstalled for the system user.

Bug: 29321185
Change-Id: Ia23c4493844877aea1b4eab7e666fd37540c4f97

7 years agoMake sure we're locked
Todd Kennedy [Wed, 15 Jun 2016 16:54:28 +0000 (09:54 -0700)]
Make sure we're locked

Before calling a method ending with LPw, we need to have the mPackages lock.
Make sure we do that.

Also, ditch the iterator for traversing an ArraySet.

Bug: 29356333
Change-Id: I67df971f2961b577f31153cef46fb153458d6965

7 years agoAllow stopping user to access AppWidgetService API
Tony Mak [Thu, 16 Jun 2016 13:57:00 +0000 (14:57 +0100)]
Allow stopping user to access AppWidgetService API

We now have isUserRunning && isUserKeyUnlockedisUserUnlocked instead of
having isUserUnlockingOrUnlocked. The difference is
we now allow stopping unlocked user to access the API.

Testing:
Write a simple widget which keep calling AppWidgetManager API in a loop.

1. In non-FBE mode, place the widget to launcher.
   Turn off work mode. No crash is observed.
2. Repeat 1 in FBE mode with separated work challenge.
3. Repeat 1 in FBE mode with no separated work challenge
4. Repeat 2 and reboot the device. Unlock work profile, widget is shown
5. Repeat 3, reboot device, widget is shown after rebot

Change-Id: I2fa9f602dcb0befff41fc6b145e9855e82d8d7a8
Fix: 29264823

7 years agoMerge "Add permission checking on service calls in LockSettingsService" into nyc-dev
Ricky Wai [Thu, 16 Jun 2016 10:33:22 +0000 (10:33 +0000)]
Merge "Add permission checking on service calls in LockSettingsService" into nyc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
TreeHugger Robot [Thu, 16 Jun 2016 10:21:18 +0000 (10:21 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

7 years agoMerge "Move 'is already always-on' check into Vpn.java" into nyc-dev
Robin Lee [Thu, 16 Jun 2016 10:06:10 +0000 (10:06 +0000)]
Merge "Move 'is already always-on' check into Vpn.java" into nyc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
TreeHugger Robot [Thu, 16 Jun 2016 09:58:55 +0000 (09:58 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

7 years agoReport error correctly for the implementation of
Yujie Qin [Thu, 16 Jun 2016 09:39:34 +0000 (11:39 +0200)]
Report error correctly for the implementation of
StreamInterface::GetData()

Bug: 28889197
Change-Id: Id07755e1b3637f85b6176a59935ad3a5597cfb05

7 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 16 Jun 2016 08:42:16 +0000 (01:42 -0700)]
Import translations. DO NOT MERGE

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

7 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 16 Jun 2016 04:49:11 +0000 (21:49 -0700)]
Import translations. DO NOT MERGE

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

7 years agoMerge "Added dismiss, expand, and collapse accessibility actions" into nyc-dev
TreeHugger Robot [Thu, 16 Jun 2016 04:19:47 +0000 (04:19 +0000)]
Merge "Added dismiss, expand, and collapse accessibility actions" into nyc-dev

7 years agoRemove coarse location pre-grant for preinstalled VrListenerServices.
Ruben Brunk [Thu, 16 Jun 2016 00:55:41 +0000 (17:55 -0700)]
Remove coarse location pre-grant for preinstalled VrListenerServices.

Bug: 28919229
Change-Id: I97393308129c65ef2822014775d3e77e25dc21e6

7 years agoFix issue #29371078: Foreground jobs should not count...
Dianne Hackborn [Thu, 16 Jun 2016 00:30:24 +0000 (17:30 -0700)]
Fix issue #29371078: Foreground jobs should not count...

...as active for idle maintenance

Nor jobs of whitelisted apps.

Now they don't.

Also remove the no longer used "active download" tracking code.

Change-Id: I553197801f6eabaf15716f3201dd65257a0d4e94

7 years agoMerge "Fix VR transition for display on/off sequence." into nyc-dev
Ruben Brunk [Thu, 16 Jun 2016 00:29:31 +0000 (00:29 +0000)]
Merge "Fix VR transition for display on/off sequence." into nyc-dev

7 years agoMerge "Fix for NullPointerException in SuggestedLocaleAdapter" into nyc-dev
Mihai Niță [Thu, 16 Jun 2016 00:28:35 +0000 (00:28 +0000)]
Merge "Fix for NullPointerException in SuggestedLocaleAdapter" into nyc-dev

7 years agoFix VR transition for display on/off sequence.
Ruben Brunk [Thu, 16 Jun 2016 00:08:35 +0000 (17:08 -0700)]
Fix VR transition for display on/off sequence.

- Ensure VR transition has been applied before display power
  off sequence.

Bug: 29364940
Change-Id: I1224ac653d466919cb418e5c357a748606c4fd7d

7 years agoMerge "More thorough cleansing of expired users" into nyc-dev
Amith Yamasani [Thu, 16 Jun 2016 00:14:57 +0000 (00:14 +0000)]
Merge "More thorough cleansing of expired users" into nyc-dev

7 years agoFix for NullPointerException in SuggestedLocaleAdapter
Mihai Nita [Wed, 15 Jun 2016 23:34:50 +0000 (16:34 -0700)]
Fix for NullPointerException in SuggestedLocaleAdapter

Bug: 28748150
Change-Id: Ide2d176d3bc0bb7529bf831b553db3ade37ddb69

7 years agoAdded dismiss, expand, and collapse accessibility actions
Selim Cinek [Wed, 15 Jun 2016 18:46:37 +0000 (11:46 -0700)]
Added dismiss, expand, and collapse accessibility actions

Fixes: 20343017
Fixes: 29368014
Change-Id: Ib571242aac04c67aea2f3c3ce76139eaedc1f3f1

7 years agoMerge "Fixes issue with group backgrounds when animating to keyguard" into nyc-dev
Mady Mellor [Wed, 15 Jun 2016 23:20:22 +0000 (23:20 +0000)]
Merge "Fixes issue with group backgrounds when animating to keyguard" into nyc-dev

7 years agoMerge \\"Docs: A removal from docs of an obsolete watch face permission\\" into mnc...
Bert McMeen [Wed, 15 Jun 2016 23:08:28 +0000 (23:08 +0000)]
Merge \\"Docs: A removal from docs of an obsolete watch face permission\\" into mnc-io-docs am: 9011149e19
am: 7250594f04

Change-Id: I486c9ee933a6ed64d90013cf9964e7106713dde8

7 years agoMerge \"Docs: A removal from docs of an obsolete watch face permission\" into mnc...
Bert McMeen [Wed, 15 Jun 2016 23:03:13 +0000 (23:03 +0000)]
Merge \"Docs: A removal from docs of an obsolete watch face permission\" into mnc-io-docs
am: 9011149e19

Change-Id: If34c51a5c2f8b28612c3526ca40cfce5a9a4a140

7 years agoMerge "Docs: A removal from docs of an obsolete watch face permission" into mnc-io...
Bert McMeen [Wed, 15 Jun 2016 22:57:57 +0000 (22:57 +0000)]
Merge "Docs: A removal from docs of an obsolete watch face permission" into mnc-io-docs

7 years agoMerge "Fixing issue with screen pinning screen not showing for secondary users."...
TreeHugger Robot [Wed, 15 Jun 2016 22:48:53 +0000 (22:48 +0000)]
Merge "Fixing issue with screen pinning screen not showing for secondary users." into nyc-dev

7 years agoMerge "Handle Concurrency issues in Connection" into nyc-dev
Brad Ebinger [Wed, 15 Jun 2016 22:37:44 +0000 (22:37 +0000)]
Merge "Handle Concurrency issues in Connection" into nyc-dev

7 years agoMerge "ResourcesManager: Allow managed addition of library asset paths" into nyc-dev
Adam Lesinski [Wed, 15 Jun 2016 22:35:25 +0000 (22:35 +0000)]
Merge "ResourcesManager: Allow managed addition of library asset paths" into nyc-dev

7 years agoMerge "docs: Added AfW item to DP4 "Behavior Changes" page" into nyc-dev
TreeHugger Robot [Wed, 15 Jun 2016 21:36:02 +0000 (21:36 +0000)]
Merge "docs: Added AfW item to DP4 "Behavior Changes" page" into nyc-dev

7 years agoMerge "Send VR mode notification to AR app on context hub" into nyc-dev
TreeHugger Robot [Wed, 15 Jun 2016 21:09:31 +0000 (21:09 +0000)]
Merge "Send VR mode notification to AR app on context hub" into nyc-dev

7 years agoMerge "added null check in doInBackground and if null, properly intializes variables...
Richard Ho [Wed, 15 Jun 2016 21:06:05 +0000 (21:06 +0000)]
Merge "added null check in doInBackground and if null, properly intializes variables." into nyc-dev

7 years agoFixing issue with screen pinning screen not showing for secondary users.
Winson [Wed, 15 Jun 2016 19:31:03 +0000 (12:31 -0700)]
Fixing issue with screen pinning screen not showing for secondary users.

- Catch the exception when removing a view that is not yet attached.
  This is not an issue because we are in the process of attaching it for
  the first time anyways.
- Ensure that we post the calls from the secondary user in the main
  thread for the system user.  Especially since this calls through to
  add the view for the new screen pinning window.

Bug: 29341417
Change-Id: If0e29a77ddb67426115f1d5d9f1adb580a1f07df