OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Plumb PhysicalChannelConfig all the way up." am: 44d13875ff am: c870528371
Eric Schwarzenbach [Thu, 1 Mar 2018 05:57:20 +0000 (05:57 +0000)]
Merge "Plumb PhysicalChannelConfig all the way up." am: 44d13875ff am: c870528371
am: 7771e91a99

Change-Id: Ia0a69386981e2984472e9153c161cca7bfccc9dd

6 years agoMerge "Plumb PhysicalChannelConfig all the way up." am: 44d13875ff
Eric Schwarzenbach [Thu, 1 Mar 2018 05:47:20 +0000 (05:47 +0000)]
Merge "Plumb PhysicalChannelConfig all the way up." am: 44d13875ff
am: c870528371

Change-Id: I2b57a55e8bb36ba24578c00e2afaebfc21e0e4c3

6 years agoMerge "Plumb PhysicalChannelConfig all the way up."
Eric Schwarzenbach [Thu, 1 Mar 2018 05:38:49 +0000 (05:38 +0000)]
Merge "Plumb PhysicalChannelConfig all the way up."
am: 44d13875ff

Change-Id: I37f039ea44114b48b44bce7174deb3d55b2667fc

6 years agoMerge "Fix "app doesn't support backup and restore" bug"
Makoto Onuki [Thu, 1 Mar 2018 05:35:49 +0000 (05:35 +0000)]
Merge "Fix "app doesn't support backup and restore" bug"

6 years agoMerge "MediaSession2: Unhide setAudioFocusRequest"
TreeHugger Robot [Thu, 1 Mar 2018 05:11:24 +0000 (05:11 +0000)]
Merge "MediaSession2: Unhide setAudioFocusRequest"

6 years agoMerge "Remove RemoteSurfaceTrace functionality."
TreeHugger Robot [Thu, 1 Mar 2018 04:21:25 +0000 (04:21 +0000)]
Merge "Remove RemoteSurfaceTrace functionality."

6 years agoMerge "Plumb PhysicalChannelConfig all the way up."
Treehugger Robot [Thu, 1 Mar 2018 03:48:32 +0000 (03:48 +0000)]
Merge "Plumb PhysicalChannelConfig all the way up."

6 years agoMerge "MediaSession2: Refine APIs"
TreeHugger Robot [Thu, 1 Mar 2018 03:39:31 +0000 (03:39 +0000)]
Merge "MediaSession2: Refine APIs"

6 years agoMediaSession2: Unhide setAudioFocusRequest
Sungsoo Lim [Thu, 1 Mar 2018 00:08:40 +0000 (09:08 +0900)]
MediaSession2: Unhide setAudioFocusRequest

Bug: 64098437
Test: make update-api
Change-Id: I9244719e1a771ab7b420a95af6ba43faef7b352c

6 years agoMerge "Prevent ripple animation when swiping up for quick step"
TreeHugger Robot [Thu, 1 Mar 2018 03:06:23 +0000 (03:06 +0000)]
Merge "Prevent ripple animation when swiping up for quick step"

6 years agoMerge "Reformat Android.bp file"
Logan Chien [Thu, 1 Mar 2018 03:00:30 +0000 (03:00 +0000)]
Merge "Reformat Android.bp file"

6 years agoMerge "Make activity-alias inherit "enableVrMode" attribute from target activity."
TreeHugger Robot [Thu, 1 Mar 2018 02:59:49 +0000 (02:59 +0000)]
Merge "Make activity-alias inherit "enableVrMode" attribute from target activity."

6 years agoMerge "Fix link-type check warning on com.android.mediadrm.signer"
TreeHugger Robot [Thu, 1 Mar 2018 02:47:23 +0000 (02:47 +0000)]
Merge "Fix link-type check warning on com.android.mediadrm.signer"

6 years agoMerge "Fix link-type check warning on com.android.media.remotedisplay"
TreeHugger Robot [Thu, 1 Mar 2018 02:47:15 +0000 (02:47 +0000)]
Merge "Fix link-type check warning on com.android.media.remotedisplay"

6 years agoMerge "autofill: touch on IME should not close autofill"
Dake Gu [Thu, 1 Mar 2018 02:40:03 +0000 (02:40 +0000)]
Merge "autofill: touch on IME should not close autofill"

6 years agoMerge "Add default implementation to handle master dev option switch."
TreeHugger Robot [Thu, 1 Mar 2018 02:38:47 +0000 (02:38 +0000)]
Merge "Add default implementation to handle master dev option switch."

6 years agoMerge "Don't hold the WM lock when canceling recents animation"
Winson Chung [Thu, 1 Mar 2018 02:33:54 +0000 (02:33 +0000)]
Merge "Don't hold the WM lock when canceling recents animation"

6 years agoMerge "Add setting for off body, radio off feature"
TreeHugger Robot [Thu, 1 Mar 2018 02:24:10 +0000 (02:24 +0000)]
Merge "Add setting for off body, radio off feature"

6 years agoMerge changes I5c2facba,I2fecbeaa,I045ddf19,I961d190d
TreeHugger Robot [Thu, 1 Mar 2018 02:06:40 +0000 (02:06 +0000)]
Merge changes I5c2facba,I2fecbeaa,I045ddf19,I961d190d

* changes:
  Move frame validation logic for deferTransactionUntil.
  Handle surfaceInset changes with deferred transactions.
  Various pinned animation bug fixes.
  Nuke WindowState#mShownPosition. Rework mXOffset/mYOffset.

6 years agoMediaSession2: Refine APIs
Sungsoo Lim [Tue, 27 Feb 2018 12:39:50 +0000 (21:39 +0900)]
MediaSession2: Refine APIs

Bug: 64098437
Test: passed MediaComponentTest
Change-Id: I40e1ef141e47d17e2bfa0a689a680b45a3d73b03

6 years agoMerge "Auto set summary on preference during updateState"
TreeHugger Robot [Thu, 1 Mar 2018 01:29:22 +0000 (01:29 +0000)]
Merge "Auto set summary on preference during updateState"

6 years agoMerge "Add attr for customizing progress bar corner radius."
TreeHugger Robot [Thu, 1 Mar 2018 01:27:16 +0000 (01:27 +0000)]
Merge "Add attr for customizing progress bar corner radius."

6 years agoMerge "NEW API: Add Image.getHardwareBuffer()"
TreeHugger Robot [Thu, 1 Mar 2018 01:26:14 +0000 (01:26 +0000)]
Merge "NEW API: Add Image.getHardwareBuffer()"

6 years agoMerge "Finish ops started on behalf of a removed package."
TreeHugger Robot [Thu, 1 Mar 2018 01:11:35 +0000 (01:11 +0000)]
Merge "Finish ops started on behalf of a removed package."

6 years agoMerge "Use start/finish app ops in window manager"
TreeHugger Robot [Thu, 1 Mar 2018 01:11:25 +0000 (01:11 +0000)]
Merge "Use start/finish app ops in window manager"

6 years agoMerge "addModemTxPowerToHistory() made synchronized"
TreeHugger Robot [Thu, 1 Mar 2018 01:06:38 +0000 (01:06 +0000)]
Merge "addModemTxPowerToHistory() made synchronized"

6 years agoMerge "Ringtone: unhide looping and volume control"
Jean-Michel Trivi [Thu, 1 Mar 2018 00:57:31 +0000 (00:57 +0000)]
Merge "Ringtone: unhide looping and volume control"

6 years agoMerge "Rename dumpsys protos to make platform proto names consistent."
TreeHugger Robot [Thu, 1 Mar 2018 00:54:51 +0000 (00:54 +0000)]
Merge "Rename dumpsys protos to make platform proto names consistent."

6 years agoMerge "Fixes set lock task (and screen pinning) state with/out quickstep"
TreeHugger Robot [Thu, 1 Mar 2018 00:41:50 +0000 (00:41 +0000)]
Merge "Fixes set lock task (and screen pinning) state with/out quickstep"

6 years agoFix "app doesn't support backup and restore" bug
Makoto Onuki [Thu, 1 Mar 2018 00:25:40 +0000 (16:25 -0800)]
Fix "app doesn't support backup and restore" bug

Always make sure to scan all packages before back up. There was a case
where SPI.updateFromPackageInfo() wasn't called before backup.

Fix: 72638013
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest1 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest2 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest3 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest4 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest5 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest6 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest7 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest8 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest9 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest10 -w com.android.frameworks.servicestests
Test: atest CtsShortcutHostTestCases
Change-Id: I7fd39a62924a2d3724dfbd759ed157933af3f357

6 years agoPrevent ripple animation when swiping up for quick step
Matthew Ng [Wed, 28 Feb 2018 19:55:52 +0000 (11:55 -0800)]
Prevent ripple animation when swiping up for quick step

Do not show animation of ripple on navigation bar buttons when swiping
up trigging quick step. The ripple is only shown when quick step is
disabled, tapping the button or long press on the button.

Bug: 67957962
Test: swipe up over home/back button
Change-Id: Ia9325eac61d18b99a39902fc0d368aa1fcb1d4d7

6 years agoautofill: touch on IME should not close autofill
Dake Gu [Mon, 26 Feb 2018 20:25:14 +0000 (12:25 -0800)]
autofill: touch on IME should not close autofill

ag/3434666 causes a regression:
Before ag/3434666, autofill gets touch event after IME, autofill
close itself if it gets ACTION_OUTSIDE touch event.
But after ag/3434666, autofill intercepts touch events before IME, if
user touches within IME, autofill still gets ACTION_OUTSIDE event,
and close itself unexpectedly.

The fix moves the closing code to ViewRootImpl.EarlyPostImeStage
around the same place closing tooltip.

If user taps outside autofill window, we will force to close window,
even last autofillid that requestShowUi does not match.

Bug: 73796497
Test: atest CtsAutoFillServiceTestCases
Test: Added LoginActivityTest.testAutofillTapOutside
Test: manually tested using IME and sample app
TODO: need a fake IME service to dispatch given key upon touch.

Change-Id: I10fc0d29dc30d29a48b2118264ec1c4375062deb

6 years agoMerge "pm: Fix typo in error" am: a12e18bcd1 am: a79fef132b
Joe Maples [Thu, 1 Mar 2018 00:09:25 +0000 (00:09 +0000)]
Merge "pm: Fix typo in error" am: a12e18bcd1 am: a79fef132b
am: 1ec4c3b3b1

Change-Id: I9d1b48c0852bc75108ab72cd4c58c08a43b62a8b

6 years agoAdd default implementation to handle master dev option switch.
Doris Ling [Thu, 1 Mar 2018 00:06:19 +0000 (16:06 -0800)]
Add default implementation to handle master dev option switch.

- subclass that does not override the methods will inherit the default
behavior: preference will be enabled/disabled when the top level
developer options switch is turned on/off.

Bug: 73955632
Test: make RunSettingsLibRoboTests
Change-Id: I477170afd7eb4d74a807c933dcc254ff7a4bbd96

6 years agoMerge "pm: Fix typo in error" am: a12e18bcd1
Joe Maples [Thu, 1 Mar 2018 00:00:13 +0000 (00:00 +0000)]
Merge "pm: Fix typo in error" am: a12e18bcd1
am: a79fef132b

Change-Id: I45fa701a8f9e727e1a072f4f6dd773bba0de01aa

6 years agoMerge "pm: Fix typo in error"
Joe Maples [Wed, 28 Feb 2018 23:49:49 +0000 (23:49 +0000)]
Merge "pm: Fix typo in error"
am: a12e18bcd1

Change-Id: I924eef635de153a0277da49c804f2c7dc1c97a4d

6 years agoMerge "Add metrics event for recent location requests"
TreeHugger Robot [Wed, 28 Feb 2018 23:46:32 +0000 (23:46 +0000)]
Merge "Add metrics event for recent location requests"

6 years agoAdd setting for off body, radio off feature
Damien Bargiacchi [Fri, 16 Feb 2018 00:45:37 +0000 (16:45 -0800)]
Add setting for off body, radio off feature

Bug: 72714112
Change-Id: I8a632983c6c60ae195afa5bd6bdb677719bc5044

6 years agoMerge "Restore AutofillId when view is restored from a bundle."
TreeHugger Robot [Wed, 28 Feb 2018 23:41:45 +0000 (23:41 +0000)]
Merge "Restore AutofillId when view is restored from a bundle."

6 years agoMerge "Update battery discharging strings"
TreeHugger Robot [Wed, 28 Feb 2018 23:22:30 +0000 (23:22 +0000)]
Merge "Update battery discharging strings"

6 years agoMerge "More work on issue #73301635: Ability to extract device configuration"
TreeHugger Robot [Wed, 28 Feb 2018 23:19:13 +0000 (23:19 +0000)]
Merge "More work on issue #73301635: Ability to extract device configuration"

6 years agoMerge "Delay the initial package checking in MediaUpdateService"
TreeHugger Robot [Wed, 28 Feb 2018 23:18:52 +0000 (23:18 +0000)]
Merge "Delay the initial package checking in MediaUpdateService"

6 years agoMerge "WebView: relax URLUtil#isFileUrl()"
TreeHugger Robot [Wed, 28 Feb 2018 23:11:37 +0000 (23:11 +0000)]
Merge "WebView: relax URLUtil#isFileUrl()"

6 years agoMerge "WM: Split portrait and landscape status bar size"
TreeHugger Robot [Wed, 28 Feb 2018 23:11:27 +0000 (23:11 +0000)]
Merge "WM: Split portrait and landscape status bar size"

6 years agoMerge "Fix heap buffer overflow"
TreeHugger Robot [Wed, 28 Feb 2018 23:05:09 +0000 (23:05 +0000)]
Merge "Fix heap buffer overflow"

6 years agoMerge "pm: Fix typo in error"
Treehugger Robot [Wed, 28 Feb 2018 22:38:24 +0000 (22:38 +0000)]
Merge "pm: Fix typo in error"

6 years agoMerge "Associate TCconstants with the TCM instead of TCImpl"
TreeHugger Robot [Wed, 28 Feb 2018 22:34:58 +0000 (22:34 +0000)]
Merge "Associate TCconstants with the TCM instead of TCImpl"

6 years agoMerge "Added an api to query ForcedAppStandby state"
TreeHugger Robot [Wed, 28 Feb 2018 22:28:30 +0000 (22:28 +0000)]
Merge "Added an api to query ForcedAppStandby state"

6 years agoNEW API: Add Image.getHardwareBuffer()
Mathias Agopian [Wed, 21 Feb 2018 02:32:22 +0000 (18:32 -0800)]
NEW API: Add Image.getHardwareBuffer()

This mirror the corresponding NDK API. For some
reason this was missing from the java version
of Image.

Bug: 73784759
Test: manual
Change-Id: Iafa6dedda809fe38ea4453d9873d1ba886f88481

6 years agoMerge "Tag foreground notis that use certain services"
TreeHugger Robot [Wed, 28 Feb 2018 22:09:34 +0000 (22:09 +0000)]
Merge "Tag foreground notis that use certain services"

6 years agoMerge "Toggle READ_BINARY_CPU_TIME"
TreeHugger Robot [Wed, 28 Feb 2018 21:59:47 +0000 (21:59 +0000)]
Merge "Toggle READ_BINARY_CPU_TIME"

6 years agoaddModemTxPowerToHistory() made synchronized
Siddharth Ray [Wed, 28 Feb 2018 21:46:16 +0000 (13:46 -0800)]
addModemTxPowerToHistory() made synchronized

BUG:73818082
Change-Id: Ie0cce10d993a696c5e915e8ef62a66f2cd453197

6 years agoMerge "Add component ordering"
TreeHugger Robot [Wed, 28 Feb 2018 21:54:03 +0000 (21:54 +0000)]
Merge "Add component ordering"

6 years agoFixes set lock task (and screen pinning) state with/out quickstep
Matthew Ng [Tue, 27 Feb 2018 21:47:38 +0000 (13:47 -0800)]
Fixes set lock task (and screen pinning) state with/out quickstep

When quickstep is enabled, ensures that the home button is gone when
locked to task without home access and prevents quickstep when overview
access is disabled. When quickstep is disabled, fixes recents visibility
according to overview access. Also prevent screen pinning after locking
task to app.

Bug: 72799389
Fixes: 73886663
Test: manual - use quickstep when locked to task
Change-Id: Iacfa0b12374217511602cee6c2ca5ceafd6e2964

6 years agoAuto set summary on preference during updateState
Fan Zhang [Wed, 28 Feb 2018 01:13:20 +0000 (17:13 -0800)]
Auto set summary on preference during updateState

Change-Id: Ibc24f3f041841d9fe7d53674a672bc2bacad895b
Fixes: 73950519
Test: robotests

6 years agoMerge "slice() the ByteBuffer passed to ImageDecoder"
TreeHugger Robot [Wed, 28 Feb 2018 21:22:30 +0000 (21:22 +0000)]
Merge "slice() the ByteBuffer passed to ImageDecoder"

6 years agoMerge "[Companion] Stop scanning after 20sec timeout"
TreeHugger Robot [Wed, 28 Feb 2018 21:18:55 +0000 (21:18 +0000)]
Merge "[Companion] Stop scanning after 20sec timeout"

6 years agoRingtone: unhide looping and volume control
Jean-Michel Trivi [Mon, 26 Feb 2018 17:50:59 +0000 (09:50 -0800)]
Ringtone: unhide looping and volume control

Also clean up whitespace in file.

Bug: 22182606
Test: adb shell clrgt --loop true --volume 50
Change-Id: I937b678f72b4a47b0f02b3124669e2de5e743033

6 years agoMerge "Merge "Mark EUICC_PROVISIONED as @SystemApi." am: 4b5680b6fa am: 41fa5ff101...
Android Build Merger (Role) [Wed, 28 Feb 2018 20:53:04 +0000 (20:53 +0000)]
Merge "Merge "Mark EUICC_PROVISIONED as @SystemApi." am: 4b5680b6fa am: 41fa5ff101 am: a64db1336d  -s ours"

6 years agoMerge "Mark EUICC_PROVISIONED as @SystemApi." am: 4b5680b6fa am: 41fa5ff101
Holly Jiuyu Sun [Wed, 28 Feb 2018 20:52:39 +0000 (20:52 +0000)]
Merge "Mark EUICC_PROVISIONED as @SystemApi." am: 4b5680b6fa am: 41fa5ff101
am: a64db1336d  -s ours

Change-Id: Icdff2b0bf538f1da59acc7757871e2fa3b01e0e0

6 years agoMerge "Fixes for YuvToJpegEncoder::encode"
Leon Scroggins [Wed, 28 Feb 2018 20:51:43 +0000 (20:51 +0000)]
Merge "Fixes for YuvToJpegEncoder::encode"

6 years agoMerge "Reset bouncer instead of just hiding it"
TreeHugger Robot [Wed, 28 Feb 2018 20:47:32 +0000 (20:47 +0000)]
Merge "Reset bouncer instead of just hiding it"

6 years agoFinish ops started on behalf of a removed package.
Svet Ganov [Wed, 28 Feb 2018 04:08:01 +0000 (20:08 -0800)]
Finish ops started on behalf of a removed package.

Two issues here - ops stated for a package that went away
by another package were not marked as finished. And when
the process that started the ops died we did not finish
all nested ops.

Test: atest android.permission.cts.AppOpsTest

bug: 64085448

Change-Id: Id57b3043605a65f2dfc1eea50b81793dd86f58d1

6 years agoMerge "Mark EUICC_PROVISIONED as @SystemApi." am: 4b5680b6fa
Holly Jiuyu Sun [Wed, 28 Feb 2018 20:38:13 +0000 (20:38 +0000)]
Merge "Mark EUICC_PROVISIONED as @SystemApi." am: 4b5680b6fa
am: 41fa5ff101

Change-Id: Ie737a298f1ab342d571e150be452a9590e623052

6 years agoMerge "Use post-execution state for lifecycle callback sequences"
Andrii Kulian [Wed, 28 Feb 2018 20:29:23 +0000 (20:29 +0000)]
Merge "Use post-execution state for lifecycle callback sequences"

6 years agoMerge "More robust @RequiresPermission handling."
Jeff Sharkey [Wed, 28 Feb 2018 20:29:01 +0000 (20:29 +0000)]
Merge "More robust @RequiresPermission handling."

6 years agoMerge "Mark EUICC_PROVISIONED as @SystemApi."
Holly Jiuyu Sun [Wed, 28 Feb 2018 20:24:08 +0000 (20:24 +0000)]
Merge "Mark EUICC_PROVISIONED as @SystemApi."
am: 4b5680b6fa

Change-Id: I7e3542edd0d092d6b0a7bc10b80b0565dfefda7e

6 years agoMerge "[AWARE] Add target API check to the Responder to ANYONE config"
TreeHugger Robot [Wed, 28 Feb 2018 20:22:59 +0000 (20:22 +0000)]
Merge "[AWARE] Add target API check to the Responder to ANYONE config"

6 years agoMerge "Add APIs to look into whats in an Icon"
Jason Monk [Wed, 28 Feb 2018 20:01:09 +0000 (20:01 +0000)]
Merge "Add APIs to look into whats in an Icon"

6 years agoMerge "deprecate EmbossMaskFilter"
TreeHugger Robot [Wed, 28 Feb 2018 19:55:15 +0000 (19:55 +0000)]
Merge "deprecate EmbossMaskFilter"

6 years agoToggle READ_BINARY_CPU_TIME
Mike Ma [Wed, 28 Feb 2018 19:51:56 +0000 (11:51 -0800)]
Toggle READ_BINARY_CPU_TIME

Test: N/A
Change-Id: I41403c16feffa61dd4e3ae13498ff63b26a1d4b2

6 years agoMove frame validation logic for deferTransactionUntil.
Robert Carr [Tue, 27 Feb 2018 19:21:05 +0000 (11:21 -0800)]
Move frame validation logic for deferTransactionUntil.

Currently it's only in place applying for operations on the global transaction.

Bug: 70666541
Test: Manual
Change-Id: I5c2facba14c783bad0d3aca0e8b66fea73df0776

6 years agoHandle surfaceInset changes with deferred transactions.
Robert Carr [Tue, 27 Feb 2018 01:46:00 +0000 (17:46 -0800)]
Handle surfaceInset changes with deferred transactions.

First we have the client pass up the next frameNumber from relayoutWindow
and then we simply deferTransactions at the WindowState level until
this frame number is reached. This was always a little terrifying
because deferring transaction effecftively meant we gave up
control of the surface until the frame number was reached. However now
we can still control the surface from the stack and other SurfaceControl
nodes and so the window can still be moved around and animated even if
the client is unresponsive.

Bug: 70666541
Test: Manual. go/wm-smoke
Change-Id: I2fecbeaa30fc0eb9cc8f08e1ea734dcc65da0aa0

6 years agoVarious pinned animation bug fixes.
Robert Carr [Fri, 23 Feb 2018 20:17:51 +0000 (12:17 -0800)]
Various pinned animation bug fixes.

First we need to change the way the aspect scale cropping happens
on the way down, previously we relied on the stack bounds to crop us
and did not expand the stack bounds for shadows. Now that the stack
surface bounds are expanded for shadows we have to do the additional
cropping required by this animation at the WSA level. Namely we interpolate
such that when the animation reaches 100% progress everything except
the source bounds will be cropped out. If we didn't do this we would see
a surfaceInsets sized sliver of the original app at the end of the animation.

A second fix is to update the stack bounds when changing windowing modes
to make sure we immediately expand for the pinned insets (as the WindowState
level may now immediately reposition to compensate).

A third fix is to correct the stack outset logic to match the client side
in WindowManager.java

A fourth fix is to bump the default and arbitrary surface size to allow
for surfaces slightly larger than full-screen and positioned at a negative
position, e.g. a full-screen-surface which retained it's insets due
to a slow or non-cooperative client.

Bug: 70666541
Test: Manual. go/wm-smoke.
Change-Id: I045ddf191cd3875f5d32c2e15da6e01fb50f3a01

6 years agoNuke WindowState#mShownPosition. Rework mXOffset/mYOffset.
Robert Carr [Thu, 1 Feb 2018 02:08:39 +0000 (18:08 -0800)]
Nuke WindowState#mShownPosition. Rework mXOffset/mYOffset.

Ignoring Wallpaper Offsets, the WindowStateAnimator is now
always positioned at (0,0), so we don't need to calculate or store this. For
Wallpaper Offsets we can manipulate the position of the WindowStateAnimator surface
directly. This seems to be a nice level to model the concept of scrolling a buffer
larger than the "Window" to which it is assigned.
Everything on top of WSA can ignore the offsets by only interacting with the WS and above.
Seamless rotation may mess with the position so we need to be sure to reset it to 0,0.

Test: Manual. go/wm-smoke
Bug: 72038766
Change-Id: I961d190d1f1ee71faaede095617092a0ad32e16f

6 years agoMerge "Avoid reading logs that were processed before."
TreeHugger Robot [Wed, 28 Feb 2018 19:37:05 +0000 (19:37 +0000)]
Merge "Avoid reading logs that were processed before."

6 years agoMerge "Include slider events from managed profile."
TreeHugger Robot [Wed, 28 Feb 2018 19:33:25 +0000 (19:33 +0000)]
Merge "Include slider events from managed profile."

6 years agoMore work on issue #73301635: Ability to extract device configuration
Dianne Hackborn [Wed, 28 Feb 2018 01:16:37 +0000 (17:16 -0800)]
More work on issue #73301635: Ability to extract device configuration

Now include Gl extensions (thanks to whoever wrote the code
I copied!).

Tweak the protos a bit to include missing info and correct
some things.

Add some new test APIs that are needed for CTS.

Bug: 73301635
Test: atest CtsActivityManagerDeviceTestCases:ActivityManagerGetConfigTests
Change-Id: Ie3f8173d217468246e8b6c7f45b7cbfcb352d60f

6 years agoFix heap buffer overflow
Yi Jin [Wed, 28 Feb 2018 19:25:58 +0000 (11:25 -0800)]
Fix heap buffer overflow

Bug: 74000767
Test: manual
Change-Id: Id57674c0ae527da055a06acf4f458c440328c5c3

6 years agoRestore AutofillId when view is restored from a bundle.
Felipe Leme [Tue, 27 Feb 2018 21:59:14 +0000 (13:59 -0800)]
Restore AutofillId when view is restored from a bundle.

Test: atest \
      CtsAutoFillServiceTestCases:android.autofillservice.cts.MultiWindowLoginActivityTest \
      CtsAutoFillServiceTestCases:android.autofillservice.cts.DuplicateIdActivityTest \
      CtsAutoFillServiceTestCases:android.autofillservice.cts.SessionLifecycleTest
Test: atest CtsAutoFillServiceTestCases # Although it has unrelated failures

Fixes: 73950415
Fixes: 73963360

Change-Id: I60e882d856b5623c3ee4de9ed8dae8dad8dc0f65

6 years agoMerge "Allow chaining ImageDecoder's setters"
TreeHugger Robot [Wed, 28 Feb 2018 19:05:29 +0000 (19:05 +0000)]
Merge "Allow chaining ImageDecoder's setters"

6 years agoTag foreground notis that use certain services
Julia Reynolds [Wed, 21 Feb 2018 17:25:27 +0000 (12:25 -0500)]
Tag foreground notis that use certain services

- Draw over other apps
- Camera
- Microphone

The icons are not yet clickable, and the system 'drawing over
other apps' notification still appears even when the app's
notification is tagged.

Test: runtest systemui
Bug: 64085448
Change-Id: Ib3b0cdd9adced82f562f256cb81af80dc395440d

6 years agoMerge "setPreferRamOverQuality -> setConserveMemory"
TreeHugger Robot [Wed, 28 Feb 2018 18:47:03 +0000 (18:47 +0000)]
Merge "setPreferRamOverQuality -> setConserveMemory"

6 years agopm: Fix typo in error
Joe Maples [Thu, 11 Jan 2018 16:09:46 +0000 (11:09 -0500)]
pm: Fix typo in error

instnat -> instant

Change-Id: Ie2f06840575fc266e3510252635ad17be65945b8
Signed-off-by: Joe Maples <joe@frap129.org>
6 years agoMerge "Merge "Delay starting the webview_zygote until first use." am: 6d9d717ab7...
Android Build Merger (Role) [Wed, 28 Feb 2018 18:33:03 +0000 (18:33 +0000)]
Merge "Merge "Delay starting the webview_zygote until first use." am: 6d9d717ab7 am: 99440a0ab8 am: 92697692b3"

6 years agoMerge "Delay starting the webview_zygote until first use." am: 6d9d717ab7 am: 99440a0ab8
Robert Sesek [Wed, 28 Feb 2018 18:32:39 +0000 (18:32 +0000)]
Merge "Delay starting the webview_zygote until first use." am: 6d9d717ab7 am: 99440a0ab8
am: 92697692b3

Change-Id: I4f810427f083d9b7874df7d90fc00a33967d9323

6 years agoMerge "Log app start memory state in background"
TreeHugger Robot [Wed, 28 Feb 2018 18:32:23 +0000 (18:32 +0000)]
Merge "Log app start memory state in background"

6 years agoRename dumpsys protos to make platform proto names consistent.
Yi Jin [Tue, 20 Feb 2018 23:41:47 +0000 (15:41 -0800)]
Rename dumpsys protos to make platform proto names consistent.

All the other dumpsys use XXXServiceDumpProto or XXXDumpProto other
than ones modified here.

The name convention is if the proto describes the top level output of dumpsys,
it should contain `Dump`. This makes the consumer easy to understand the proto
is from dumpsys of a certain service, not data structure of
the service, e.g. WindowManagerServiceProto ->
WindowManagerServiceDumpProto.

Another change here is ActivityManagerService has 4 sub dump protos, so
the top level for each one should be a DumpProto instead of its internal
data struture, e.g. ActivityStackSupervisorProto will just be a field of
AmServiceDumpActivitiesProto, which `dumpsys --proto activities` used to
output ActivityStackSupervisorProto directly.

Bug: 72474563
Test: manual and CTS tests
Change-Id: I1e1ac032d27591083bb5b1b19aac82804215472a

6 years agoFixes for YuvToJpegEncoder::encode
Leon Scroggins III [Wed, 28 Feb 2018 18:23:32 +0000 (13:23 -0500)]
Fixes for YuvToJpegEncoder::encode

Bug: 70969260
Test: Existing CTS tests

Call jpeg_destroy_compress after compression (and failure), eliminating
a memory leak.

In addition, use a custom method for handling errors. skjpeg_error_exit
was previously used, but that method expects a skjpeg_error_mgr, which
isn't used here. skjpeg_error_mgr is more complex than necessary; it
allows for multiple methods to set their own jmp_bufs, even if they call
each other. The entire compression here is contained in one method. The
code for handling this single jmp_buf is simple, so no need to share
code.

This is a follow-on to If9a33ed10ea60131906a632a7030e0b69a21f4ea, which
removed skjpeg_error_mgr, but incorrectly left the skjpeg_error_exit.

Change-Id: Ib76e07ae0d29b093d3709f60e427b18e0e32bd9d

6 years agoMerge "Update Slice.Builder#addInt javadoc."
TreeHugger Robot [Wed, 28 Feb 2018 18:23:47 +0000 (18:23 +0000)]
Merge "Update Slice.Builder#addInt javadoc."

6 years ago[AWARE] Add target API check to the Responder to ANYONE config
Etan Cohen [Thu, 22 Feb 2018 23:54:20 +0000 (15:54 -0800)]
[AWARE] Add target API check to the Responder to ANYONE config

Responder to ANYONE was deprecated for API >= P. But the manager
code did not check for target API - i.e. even older apps would have
been rejected. Added the target API check to the manager code.

Bug: 72175022
Test: unit test + integration tests
Change-Id: I52e0c877e0af0756816b5b13e42f432504461e20

6 years agoMerge "Mark EUICC_PROVISIONED as @SystemApi."
Holly Jiuyu Sun [Wed, 28 Feb 2018 18:18:04 +0000 (18:18 +0000)]
Merge "Mark EUICC_PROVISIONED as @SystemApi."

6 years agoMerge "Delay starting the webview_zygote until first use." am: 6d9d717ab7
Robert Sesek [Wed, 28 Feb 2018 18:16:43 +0000 (18:16 +0000)]
Merge "Delay starting the webview_zygote until first use." am: 6d9d717ab7
am: 99440a0ab8

Change-Id: Icf9297f730bc4fa779d989eccc05e436c5d463b6

6 years agoMerge "Delay starting the webview_zygote until first use."
Robert Sesek [Wed, 28 Feb 2018 18:07:09 +0000 (18:07 +0000)]
Merge "Delay starting the webview_zygote until first use."
am: 6d9d717ab7

Change-Id: I7a2c485fcf04a5728081f99610435a970dc4bb1b

6 years agoReset bouncer instead of just hiding it
Lucas Dupin [Tue, 27 Feb 2018 19:32:16 +0000 (11:32 -0800)]
Reset bouncer instead of just hiding it

We can't just hide the view because the state should
be propagated to other parts of the system.

Test: show bouncer, launch camera
Change-Id: I76bb316a117d9a017b55d56a0e0750586e4f81fa
Fixes: 73905701

6 years agoAdd component ordering
Todd Kennedy [Thu, 22 Feb 2018 22:15:18 +0000 (14:15 -0800)]
Add component ordering

When multiple activities match the same Intent, allow app developers
to reorder matched results within their own application. This is not
a replacement for priority which reorders matched results between
applications.

Change-Id: I12ee987622e12e40d6b5b48f616cc362d01381de
Fixes: 64582537
Test: atest -it CtsAppSecurityHostTestCases:PackageResolutionHostTest

6 years agoMerge "Make "am kill" actually support --user all"
TreeHugger Robot [Wed, 28 Feb 2018 17:15:30 +0000 (17:15 +0000)]
Merge "Make "am kill" actually support --user all"

6 years agoMerge "frameworks/base: Set LOCAL_SDK_VERSION where possible."
Anton Hansson [Wed, 28 Feb 2018 17:09:04 +0000 (17:09 +0000)]
Merge "frameworks/base: Set LOCAL_SDK_VERSION where possible."

6 years agoMerge "Revert "Update A11y action serialization to use longs""
TreeHugger Robot [Wed, 28 Feb 2018 17:08:47 +0000 (17:08 +0000)]
Merge "Revert "Update A11y action serialization to use longs""

6 years agoMerge "Use the proper API to get managed profile user drawable"
TreeHugger Robot [Wed, 28 Feb 2018 17:03:20 +0000 (17:03 +0000)]
Merge "Use the proper API to get managed profile user drawable"