OSDN Git Service

android-x86/frameworks-base.git
5 years agoMerge "Do not call postDrawVk if did not call drawVk"
TreeHugger Robot [Tue, 5 Feb 2019 06:23:40 +0000 (06:23 +0000)]
Merge "Do not call postDrawVk if did not call drawVk"

5 years agoMerge "Merge "Temporarily disable clang-tidy for dex_builder.cc." am: 171dfad60c...
Android Build Merger (Role) [Tue, 5 Feb 2019 06:18:06 +0000 (06:18 +0000)]
Merge "Merge "Temporarily disable clang-tidy for dex_builder.cc." am: 171dfad60c am: e6d84ae4c9 am: 6cb189e322"

5 years agoMerge "Temporarily disable clang-tidy for dex_builder.cc." am: 171dfad60c am: e6d84ae4c9
Chih-Hung Hsieh [Tue, 5 Feb 2019 06:17:39 +0000 (22:17 -0800)]
Merge "Temporarily disable clang-tidy for dex_builder.cc." am: 171dfad60c am: e6d84ae4c9
am: 6cb189e322

Change-Id: I65741102dfe0989c82f4244ef4c45954129dd513

5 years agoMerge "Log noteProxyOp and startOp as well"
Chad Brubaker [Tue, 5 Feb 2019 06:15:21 +0000 (06:15 +0000)]
Merge "Log noteProxyOp and startOp as well"

5 years agoMerge "Merge "Add IntDef for SIP response code." am: 0d16222125 am: 7509f9f890 am...
Android Build Merger (Role) [Tue, 5 Feb 2019 06:04:55 +0000 (06:04 +0000)]
Merge "Merge "Add IntDef for SIP response code." am: 0d16222125 am: 7509f9f890 am: 4b983b7aa6"

5 years agoMerge "Add IntDef for SIP response code." am: 0d16222125 am: 7509f9f890
Youming Ye [Tue, 5 Feb 2019 06:03:43 +0000 (22:03 -0800)]
Merge "Add IntDef for SIP response code." am: 0d16222125 am: 7509f9f890
am: 4b983b7aa6

Change-Id: Idce325965095ad8c3fc4a90a021eaf8c79f9e8a3

5 years agoMerge "Translate sandboxed paths correctly for MediaStore.SCAN_FILE_CALL."
Sudheer Shanka [Tue, 5 Feb 2019 06:00:06 +0000 (06:00 +0000)]
Merge "Translate sandboxed paths correctly for MediaStore.SCAN_FILE_CALL."

5 years agoMerge "Separate privapp grant for dialer" am: 5d7fc9568e am: ce448e631b
Anton Hansson [Tue, 5 Feb 2019 05:52:05 +0000 (21:52 -0800)]
Merge "Separate privapp grant for dialer" am: 5d7fc9568e am: ce448e631b
am: a0a2d9a09a

Change-Id: I84a41eeb16cab36cec91d7d6a53695fcadc984ee

5 years agoMerge "Improve AsyncTask API documentation" am: 1cbb20b2df am: 8f39deb490
Hans Boehm [Tue, 5 Feb 2019 05:42:51 +0000 (21:42 -0800)]
Merge "Improve AsyncTask API documentation" am: 1cbb20b2df am: 8f39deb490
am: 6ff6c4de73

Change-Id: Ib34c98b1ca5bd4c3e17b29c465344f3418cc3376

5 years agoMerge "Temporarily disable clang-tidy for dex_builder.cc." am: 171dfad60c
Chih-Hung Hsieh [Tue, 5 Feb 2019 05:36:52 +0000 (21:36 -0800)]
Merge "Temporarily disable clang-tidy for dex_builder.cc." am: 171dfad60c
am: e6d84ae4c9

Change-Id: I13efd650ad82f46e7c060558809109b72de17047

5 years agoMerge "Add IntDef for SIP response code." am: 0d16222125
Youming Ye [Tue, 5 Feb 2019 05:28:30 +0000 (21:28 -0800)]
Merge "Add IntDef for SIP response code." am: 0d16222125
am: 7509f9f890

Change-Id: I7ea711dd09f233d69568144a5d4d150d0941a9cb

5 years agoMerge "[automerger skipped] Merge "Replace hardcoded cgroup paths" am: 1e4b9d7583...
Android Build Merger (Role) [Tue, 5 Feb 2019 05:23:31 +0000 (05:23 +0000)]
Merge "[automerger skipped] Merge "Replace hardcoded cgroup paths" am: 1e4b9d7583 am: 26cbd94d67 am: 87e6e5058f -s ours am skip reason: change_id Ic2dc2a94328cf1927fafaa9506537aeb213df413 with SHA1 3fc4af6568 is in history"

5 years agoMerge "Separate privapp grant for dialer" am: 5d7fc9568e
Anton Hansson [Tue, 5 Feb 2019 05:22:03 +0000 (21:22 -0800)]
Merge "Separate privapp grant for dialer" am: 5d7fc9568e
am: ce448e631b

Change-Id: Ie21c9f81e3cf92a9c88a10a029bc1eb3f4848f91

5 years agoMerge "Don't throw a runtime exception in getPackageInfo."
TreeHugger Robot [Tue, 5 Feb 2019 05:18:26 +0000 (05:18 +0000)]
Merge "Don't throw a runtime exception in getPackageInfo."

5 years agoMerge "Improve AsyncTask API documentation" am: 1cbb20b2df
Hans Boehm [Tue, 5 Feb 2019 05:16:57 +0000 (21:16 -0800)]
Merge "Improve AsyncTask API documentation" am: 1cbb20b2df
am: 8f39deb490

Change-Id: Idd279158405207d9afac604b8acc6bf49232cb2f

5 years ago[automerger skipped] Merge "Replace hardcoded cgroup paths" am: 1e4b9d7583 am: 26cbd94d67
Suren Baghdasaryan [Tue, 5 Feb 2019 05:16:07 +0000 (21:16 -0800)]
[automerger skipped] Merge "Replace hardcoded cgroup paths" am: 1e4b9d7583 am: 26cbd94d67
am: 87e6e5058f -s ours
am skip reason: change_id Ic2dc2a94328cf1927fafaa9506537aeb213df413 with SHA1 3fc4af6568 is in history

Change-Id: I044d23a6c2c9bc3b9510ed9b7021e0d278db8eaa

5 years ago[automerger skipped] Merge "Add NR to preferred network type combination" am: 996f047...
Chen Xu [Tue, 5 Feb 2019 05:01:32 +0000 (21:01 -0800)]
[automerger skipped] Merge "Add NR to preferred network type combination" am: 996f047394 am: 21cdfe4c14 -s ours
am: 8c46a8e790 -s ours
am skip reason: change_id I08a8f7bf44a62ef109583b82b22f65fd6f89c71d with SHA1 32993551f3 is in history

Change-Id: Ia84f58f66db16412b4464ec5219445ff6900f5d8

5 years agoMerge "Replace hardcoded cgroup paths" am: 1e4b9d7583
Suren Baghdasaryan [Tue, 5 Feb 2019 04:56:48 +0000 (20:56 -0800)]
Merge "Replace hardcoded cgroup paths" am: 1e4b9d7583
am: 26cbd94d67

Change-Id: I9bd49a1757384bf72902fca46695fad237ce09ff

5 years ago[automerger skipped] Merge "Add NR to preferred network type combination" am: 996f047394
Chen Xu [Tue, 5 Feb 2019 04:50:08 +0000 (20:50 -0800)]
[automerger skipped] Merge "Add NR to preferred network type combination" am: 996f047394
am: 21cdfe4c14 -s ours
am skip reason: change_id I08a8f7bf44a62ef109583b82b22f65fd6f89c71d with SHA1 32993551f3 is in history

Change-Id: I699396e5ecc42551939fcd39716a9fc4d6e0c6fd

5 years ago[automerger skipped] Add NR to preferred network type combination
chen xu [Tue, 5 Feb 2019 04:45:15 +0000 (20:45 -0800)]
[automerger skipped] Add NR to preferred network type combination
am: 32993551f3 -s ours
am skip reason: change_id I08a8f7bf44a62ef109583b82b22f65fd6f89c71d with SHA1 8bcdc4cf66 is in history

Change-Id: I17e71193ca71314fc722a4d239e34db05790d899

5 years agoMerge "Format fixing for ArcTerminationActionFromAvrTest."
TreeHugger Robot [Tue, 5 Feb 2019 04:22:17 +0000 (04:22 +0000)]
Merge "Format fixing for ArcTerminationActionFromAvrTest."

5 years agoMerge "Game Driver: clean up GraphicsEnvironment"
TreeHugger Robot [Tue, 5 Feb 2019 04:20:36 +0000 (04:20 +0000)]
Merge "Game Driver: clean up GraphicsEnvironment"

5 years agoAdd NR to preferred network type combination
chen xu [Thu, 31 Jan 2019 08:44:52 +0000 (00:44 -0800)]
Add NR to preferred network type combination

This add NR 5G to preferred network type and move preferredNetworkMode
from SystemApi to hidden api as we are not going to support
preferredNetworMode enum in the future.

Bug: 111453000
Test: build
Change-Id: I08a8f7bf44a62ef109583b82b22f65fd6f89c71d
(cherry picked from commit 8bcdc4cf66e9d654fa31d7c62654ff81ee04cdc6)
Merged-in: I08a8f7bf44a62ef109583b82b22f65fd6f89c71d

5 years agoDo not call postDrawVk if did not call drawVk
Bo Liu [Mon, 4 Feb 2019 22:55:02 +0000 (14:55 -0800)]
Do not call postDrawVk if did not call drawVk

Reland enable vulkan webview functor

Bug: 123877499
Bug: 115613038
Test: Gmail in bug no longer crashing.
Change-Id: I7df761a4691ceaa6c2a02b256d61554e57139409

5 years agoMerge changes Ib3997487,Ifed8351b
Tarandeep Singh [Tue, 5 Feb 2019 03:56:58 +0000 (03:56 +0000)]
Merge changes Ib3997487,Ifed8351b

* changes:
  Link InsetsController to IME (IME transitons 4/n)
  Send IME control to client

5 years agoMerge "MediaPlayer2: add doc referencing androidx"
TreeHugger Robot [Tue, 5 Feb 2019 03:34:04 +0000 (03:34 +0000)]
Merge "MediaPlayer2: add doc referencing androidx"

5 years agoMerge "Fix AVRCP volume control from UI volume slider"
TreeHugger Robot [Tue, 5 Feb 2019 03:26:26 +0000 (03:26 +0000)]
Merge "Fix AVRCP volume control from UI volume slider"

5 years agoMerge "Remove quickswitch flag toggled by systemui"
TreeHugger Robot [Tue, 5 Feb 2019 03:15:25 +0000 (03:15 +0000)]
Merge "Remove quickswitch flag toggled by systemui"

5 years agoTranslate sandboxed paths correctly for MediaStore.SCAN_FILE_CALL.
Sudheer Shanka [Tue, 5 Feb 2019 02:16:15 +0000 (18:16 -0800)]
Translate sandboxed paths correctly for MediaStore.SCAN_FILE_CALL.

Bug: 123642484
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore_DownloadsTest.java
Change-Id: Ie19beb12e546b1b78e8e0d056558444a255f394d

5 years agoGame Driver: clean up GraphicsEnvironment
Yiwei Zhang [Tue, 5 Feb 2019 01:53:57 +0000 (17:53 -0800)]
Game Driver: clean up GraphicsEnvironment

Bug: 123529932
Test: Build, flash and boot. Verify by installing game driver apk
Change-Id: Id73605125410a2b4054d9179227022e177d20af2

5 years agoMerge "Add runtime_native_boot namespace"
Mathieu Chartier [Tue, 5 Feb 2019 01:36:32 +0000 (01:36 +0000)]
Merge "Add runtime_native_boot namespace"

5 years agoMerge "Revert "Enable vulkan webview draw functor""
TreeHugger Robot [Tue, 5 Feb 2019 01:15:34 +0000 (01:15 +0000)]
Merge "Revert "Enable vulkan webview draw functor""

5 years agoMerge "More TEST_MAPPING for role + permissions"
Philip P. Moltmann [Tue, 5 Feb 2019 01:03:55 +0000 (01:03 +0000)]
Merge "More TEST_MAPPING for role + permissions"

5 years agoMerge "audiopolicy: get rid of hardcoded attributes <--> stream types"
Eric Laurent [Tue, 5 Feb 2019 01:02:43 +0000 (01:02 +0000)]
Merge "audiopolicy: get rid of hardcoded attributes <--> stream types"

5 years agoMerge "Fix ArrayIndexOOB crash with invalid sim slot"
Evan Laird [Tue, 5 Feb 2019 00:59:29 +0000 (00:59 +0000)]
Merge "Fix ArrayIndexOOB crash with invalid sim slot"

5 years agoMerge "atoms: Fix HardwareErrorCode to match Stats HAL definition"
Maggie White [Tue, 5 Feb 2019 00:57:03 +0000 (00:57 +0000)]
Merge "atoms: Fix HardwareErrorCode to match Stats HAL definition"

5 years agoMerge "Make SmsHelper local to Assistant rather than a singleton (I accidentally...
Nadia Benbernou [Tue, 5 Feb 2019 00:54:56 +0000 (00:54 +0000)]
Merge "Make SmsHelper local to Assistant rather than a singleton (I accidentally forgot to include this piece in my previous CL it looks like)."

5 years agoMerge "Refactor locks in "audio" service for device management"
Jean-Michel Trivi [Tue, 5 Feb 2019 00:54:51 +0000 (00:54 +0000)]
Merge "Refactor locks in "audio" service for device management"

5 years agoDon't throw a runtime exception in getPackageInfo.
Dario Freni [Mon, 4 Feb 2019 19:54:29 +0000 (19:54 +0000)]
Don't throw a runtime exception in getPackageInfo.

If the input is invalid, we need to just return null, otherwise we'll
make PackageManager crash.

Bug: 123676932
Fix: 123878869
Test: used a small app to query the API, reproduce the bug and
verified that the new code fixes it.

Change-Id: Icefb108cc95ec01e36021a5259c59dabdc24c4d6

5 years agoMerge "Turn off TimeController job skipping."
TreeHugger Robot [Tue, 5 Feb 2019 00:44:30 +0000 (00:44 +0000)]
Merge "Turn off TimeController job skipping."

5 years agoMerge "Fix `break` location for WM Service message handler"
Nataniel Borges [Tue, 5 Feb 2019 00:39:23 +0000 (00:39 +0000)]
Merge "Fix `break` location for WM Service message handler"

5 years agoMerge "Clean up on metalava_updatable_media_args"
TreeHugger Robot [Tue, 5 Feb 2019 00:33:49 +0000 (00:33 +0000)]
Merge "Clean up on metalava_updatable_media_args"

5 years agoFormat fixing for ArcTerminationActionFromAvrTest.
Amy [Fri, 27 Jul 2018 22:42:20 +0000 (15:42 -0700)]
Format fixing for ArcTerminationActionFromAvrTest.

Test: atest com.android.server.hdmi
Change-Id: Ie800465adefa3e0c2d2acdbed25f4c03586c2202

5 years agoRemove quickswitch flag toggled by systemui
Matthew Ng [Tue, 5 Feb 2019 00:03:08 +0000 (16:03 -0800)]
Remove quickswitch flag toggled by systemui

Test: manual
Bug: 112934365

Change-Id: Ic17cdba0f4bf301ef366aadd66421c20dfc3495b

5 years agoaudiopolicy: get rid of hardcoded attributes <--> stream types
François Gaffie [Mon, 30 Jul 2018 07:33:05 +0000 (09:33 +0200)]
audiopolicy: get rid of hardcoded attributes <--> stream types

Linked to CL in frameworks/av:
"audio policy service: Add introspection API to retrieve AudioProductStrategies"

Test: CTS: AudioTrackTest AudioRecordTest
Test: audio smoke test on sailfish, walleye blueline

Change-Id: I14515704bf8de76815f0d9ad7ed4b46f42a441b0
Signed-off-by: François Gaffie <francois.gaffie@renault.com>
5 years agoMerge "audio: fix AudioRecordingConfiguration.equals()"
TreeHugger Robot [Mon, 4 Feb 2019 23:58:33 +0000 (23:58 +0000)]
Merge "audio: fix AudioRecordingConfiguration.equals()"

5 years agoFix AVRCP volume control from UI volume slider
Jean-Michel Trivi [Mon, 4 Feb 2019 23:44:28 +0000 (15:44 -0800)]
Fix AVRCP volume control from UI volume slider

Fix error where volume index rescaling was happening twice in the
  setStreamVolume code path for AVRCP absolute volume code path.

Bug: 123857725
Test: see bug
Change-Id: Iadfa664e6eb6298acf712f02f98b892ad2d36d44

5 years agoMediaPlayer2: add doc referencing androidx
Wei Jia [Mon, 4 Feb 2019 23:39:02 +0000 (15:39 -0800)]
MediaPlayer2: add doc referencing androidx

Test: compiles
Change-Id: I8267c40eae23e3faa188c2cd6b68eb3bb2fd2a9a

5 years agoMerge "Expose a few keys that's already used by apps"
TreeHugger Robot [Mon, 4 Feb 2019 23:25:48 +0000 (23:25 +0000)]
Merge "Expose a few keys that's already used by apps"

5 years agoMerge "Added maxSdk annotation to mNinePatchChunk field on Bitmap"
TreeHugger Robot [Mon, 4 Feb 2019 23:21:55 +0000 (23:21 +0000)]
Merge "Added maxSdk annotation to mNinePatchChunk field on Bitmap"

5 years agoRevert "Enable vulkan webview draw functor"
Bo Liu [Mon, 4 Feb 2019 23:05:44 +0000 (23:05 +0000)]
Revert "Enable vulkan webview draw functor"

This reverts commit dec730fda539fa941f7db1b9ed231a4585654dbe.

Reason for revert: b/123877499

Change-Id: I14fc562c81f5ef5dab0f5404402b64858e54e364

5 years agoMerge "Removed the Content Capture blacklist APIs."
TreeHugger Robot [Mon, 4 Feb 2019 23:04:48 +0000 (23:04 +0000)]
Merge "Removed the Content Capture blacklist APIs."

5 years agoMerge "Restrict reflection access to INotificationManager from Toast"
TreeHugger Robot [Mon, 4 Feb 2019 23:02:47 +0000 (23:02 +0000)]
Merge "Restrict reflection access to INotificationManager from Toast"

5 years agoMerge "WifiConfiguration: New disable network status for no subscription"
Ecco Park [Mon, 4 Feb 2019 23:00:47 +0000 (23:00 +0000)]
Merge "WifiConfiguration: New disable network status for no subscription"

5 years agoAdd runtime_native_boot namespace
Mathieu Chartier [Sat, 2 Feb 2019 00:51:12 +0000 (16:51 -0800)]
Add runtime_native_boot namespace

For runtime properties that require reboots.

Bug: 120794191
Bug: 123524494
Test: set a property and ensure it can be read in AndroidRuntime.cpp

Change-Id: I6287320465f633447a7ef65af6c29cd9f8cce18d

5 years agoMerge "Implement screen edge swipe for prototype"
TreeHugger Robot [Mon, 4 Feb 2019 22:44:22 +0000 (22:44 +0000)]
Merge "Implement screen edge swipe for prototype"

5 years agoMerge "SurfaceView: Check correct OPAQUE flag for background visibility."
TreeHugger Robot [Mon, 4 Feb 2019 22:34:43 +0000 (22:34 +0000)]
Merge "SurfaceView: Check correct OPAQUE flag for background visibility."

5 years agoMerge "Add InspectionCompanionProvider"
Ashley Rose [Mon, 4 Feb 2019 22:28:51 +0000 (22:28 +0000)]
Merge "Add InspectionCompanionProvider"

5 years agoMerge "Change provider packages API to test all providers"
Soonil Nagarkar [Mon, 4 Feb 2019 22:28:45 +0000 (22:28 +0000)]
Merge "Change provider packages API to test all providers"

5 years agoMerge "Better interpolation and duration for animations"
TreeHugger Robot [Mon, 4 Feb 2019 22:26:42 +0000 (22:26 +0000)]
Merge "Better interpolation and duration for animations"

5 years agoMake SmsHelper local to Assistant rather than a singleton (I accidentally
Nadia Benbernou [Mon, 4 Feb 2019 19:26:39 +0000 (14:26 -0500)]
Make SmsHelper local to Assistant rather than a singleton (I accidentally
forgot to include this piece in my previous CL it looks like).

Bug: 123365364
Test: Unit tests and manual testing.
Change-Id: I7c7096890c06d98f04e307f00f10c4138eee2868

5 years agoMerge "Create a default package name for device level events."
TreeHugger Robot [Mon, 4 Feb 2019 22:20:19 +0000 (22:20 +0000)]
Merge "Create a default package name for device level events."

5 years agoClean up on metalava_updatable_media_args
Dongwon Kang [Mon, 4 Feb 2019 22:18:38 +0000 (14:18 -0800)]
Clean up on metalava_updatable_media_args

Test: TH
Bug: 123253805
Change-Id: I640280ba93b7424418c4ba28eaa39e7fc2b1ef46

5 years agoTurn off TimeController job skipping.
Kweku Adams [Mon, 4 Feb 2019 22:17:51 +0000 (14:17 -0800)]
Turn off TimeController job skipping.

The job skipping checks are increasing lock contention and app startup
times. I'm turning this off while I work on a proper fix.

Bug: 123756120
Bug: 123879683
Test: N/A
Change-Id: Iab1dd9e77a5bb77f47cd730c2867dca75537ea45

5 years agoMerge "[Multi-user] Support permission backup for multi-user"
Ruslan Tkhakokhov [Mon, 4 Feb 2019 22:12:50 +0000 (22:12 +0000)]
Merge "[Multi-user] Support permission backup for multi-user"

5 years agoMerge "CamcorderProfiles: Add new camcorder profiles"
TreeHugger Robot [Mon, 4 Feb 2019 22:10:52 +0000 (22:10 +0000)]
Merge "CamcorderProfiles: Add new camcorder profiles"

5 years agoMerge "Make RoleManager inject DefaultBrowserProvider into PackageManager."
TreeHugger Robot [Mon, 4 Feb 2019 22:09:28 +0000 (22:09 +0000)]
Merge "Make RoleManager inject DefaultBrowserProvider into PackageManager."

5 years agoRefactor locks in "audio" service for device management
Jean-Michel Trivi [Fri, 1 Feb 2019 17:58:54 +0000 (09:58 -0800)]
Refactor locks in "audio" service for device management

Do not use shared locks across AudioDeviceBroker, BtHelper
  and AudioDeviceInventory.
Synchronize package private  tmethods on BtHelper and avoid
  dealing with external locks.
Clean up code ordering, more nullability annotations and
  annotation for connection state.

Bug: 112863932
Test: regression test on BT usecases
Change-Id: Id9e19e3c5e5241af913d06275f325fe505c1b509

5 years agoMerge "Fix HdmiCecLocalDeviceAudioSystem audio status report log"
TreeHugger Robot [Mon, 4 Feb 2019 22:05:25 +0000 (22:05 +0000)]
Merge "Fix HdmiCecLocalDeviceAudioSystem audio status report log"

5 years agoRestrict reflection access to INotificationManager from Toast
Adam Powell [Mon, 4 Feb 2019 21:29:11 +0000 (13:29 -0800)]
Restrict reflection access to INotificationManager from Toast

Bug: 123768917
Change-Id: Ice757d9f10f08f6d50dc34ca5c459e44d1ade10d

5 years agoMerge "Adds mShowCursor to dark-grey list above P"
TreeHugger Robot [Mon, 4 Feb 2019 21:27:50 +0000 (21:27 +0000)]
Merge "Adds mShowCursor to dark-grey list above P"

5 years agoMerge "Revert "Revert "Add public API to use new interfaces from cas@1.1"""
Henry Fang [Mon, 4 Feb 2019 21:25:34 +0000 (21:25 +0000)]
Merge "Revert "Revert "Add public API to use new interfaces from cas@1.1"""

5 years agoAdded maxSdk annotation to mNinePatchChunk field on Bitmap
Nader Jawad [Mon, 4 Feb 2019 21:18:49 +0000 (13:18 -0800)]
Added maxSdk annotation to mNinePatchChunk field on Bitmap

Hidden API usage in Bitmap->mNinePatchChunk. Annotated the field
with the max sdk annotation as there is a public getNinePatchChunk
method on Bitmap.

Bug: 123769491
Test: N/A
Change-Id: I59cee2b8af238e5656b1366c044600f6feaa95ab

5 years agoMerge "verity: Fix memory leaks"
TreeHugger Robot [Mon, 4 Feb 2019 21:17:36 +0000 (21:17 +0000)]
Merge "verity: Fix memory leaks"

5 years agoFix `break` location for WM Service message handler
Nataniel Borges [Mon, 4 Feb 2019 20:42:33 +0000 (12:42 -0800)]
Fix `break` location for WM Service message handler

The message handler for the WM Service is implemented in a switch
statement. For each case the `break` command is located in different
locations, making it harder to debug and easier to make mistakes.

Move the break conditions to the same location in all messages.

Test: Check the conditions of the `handleMessage` method. All messages
should end with a `break` command, within their body

Change-Id: Ibd225547d46ae1b092c071824570e5dbe01a8dca

5 years agoMerge "Remove support for updatable media components in apk"
Marco Nelissen [Mon, 4 Feb 2019 21:10:47 +0000 (21:10 +0000)]
Merge "Remove support for updatable media components in apk"

5 years agoMerge "Temporarily disable clang-tidy for dex_builder.cc."
Chih-Hung Hsieh [Mon, 4 Feb 2019 21:02:14 +0000 (13:02 -0800)]
Merge "Temporarily disable clang-tidy for dex_builder.cc."
am: 171dfad60c

Change-Id: Ibb2773ff0e5977caacd826c1d79eca2e71ac1419

5 years agoBetter interpolation and duration for animations
Jorim Jaggi [Fri, 18 Jan 2019 16:36:10 +0000 (17:36 +0100)]
Better interpolation and duration for animations

Test: Open IME
Bug: 111084606
Change-Id: I3c64fe8b772a8164573c8fe3de94d3573e8cd238

5 years agoMerge "Update Task surface position when bounds are changed"
TreeHugger Robot [Mon, 4 Feb 2019 20:49:49 +0000 (20:49 +0000)]
Merge "Update Task surface position when bounds are changed"

5 years agoMerge "Temporarily disable clang-tidy for dex_builder.cc."
Treehugger Robot [Mon, 4 Feb 2019 20:46:26 +0000 (20:46 +0000)]
Merge "Temporarily disable clang-tidy for dex_builder.cc."

5 years agoLink InsetsController to IME (IME transitons 4/n)
Tarandeep Singh [Wed, 30 Jan 2019 02:09:15 +0000 (18:09 -0800)]
Link InsetsController to IME (IME transitons 4/n)

With this change, InsetsController.show/hide now links to IME. This also
takes care of animating IME along with other types.
Insets API are reactive i.e. they remain in sync with state of IME.

Test: atest InsetsControllerTest
Test: atest ImeInsetsConsumerTest
Bug: 118118435

Change-Id: Ib3997487bd19351d1d23bc70173fc9bdfd23a704

5 years agoSend IME control to client
Tarandeep Singh [Sat, 12 Jan 2019 02:24:37 +0000 (18:24 -0800)]
Send IME control to client

Sends the IME control to the client by calling
InsetsStateController.onImeTargetChanged.

Furthermore, since the frame we use to calculate the insets isn't
necessarily the surface frame, we also need to pass down the
surface position such that the client can calculate the final
leash position correctly.

Test: Open IME
Bug: 111084606
Change-Id: Ifed8351b12d47f698efde504205bd7b77032d36b

5 years agoaudio: fix AudioRecordingConfiguration.equals()
Eric Laurent [Mon, 4 Feb 2019 20:31:15 +0000 (12:31 -0800)]
audio: fix AudioRecordingConfiguration.equals()

Use Arrays.equals() instead of equals() methods on the effects
Arrays contained in AudioRecordingConfiguration.

Bug: 123702064
Test: cts-tradefed run cts-dev -m CtsMediaTestCases -t android.media.cts.AudioRecordingConfigurationTest
Change-Id: I11d1321f1a5d8f50c248a4702bbba6a309280b5a

5 years agoMerge "TEST_MAPPING: Remove CtsActivityManagerDeviceSdk25TestCases"
TreeHugger Robot [Mon, 4 Feb 2019 20:26:11 +0000 (20:26 +0000)]
Merge "TEST_MAPPING: Remove CtsActivityManagerDeviceSdk25TestCases"

5 years agoSurfaceView: Check correct OPAQUE flag for background visibility.
Robert Carr [Mon, 4 Feb 2019 20:24:17 +0000 (12:24 -0800)]
SurfaceView: Check correct OPAQUE flag for background visibility.

No explanation beyond: Typo.

Bug: 123644326
Test: Manual
Change-Id: I2c2cf9eb441fd92703189e5566d70c07b048373c

5 years agoMerge "Fix crash when VulkanSurface is no longer valid"
TreeHugger Robot [Mon, 4 Feb 2019 20:14:57 +0000 (20:14 +0000)]
Merge "Fix crash when VulkanSurface is no longer valid"

5 years agoMerge "Add closing div tag for ContentResolver javadoc" into pi-dev am: a3a280e4d8
Ng Zhi An [Mon, 4 Feb 2019 20:12:39 +0000 (12:12 -0800)]
Merge "Add closing div tag for ContentResolver javadoc" into pi-dev am: a3a280e4d8
am: 5a7c4f1c75

Change-Id: I62b91239ceba7b3cfda24230547ec755a02bd298

5 years ago[Multi-user] Support permission backup for multi-user
Ruslan Tkhakokhov [Wed, 30 Jan 2019 09:19:13 +0000 (09:19 +0000)]
[Multi-user] Support permission backup for multi-user

Bug: 123349308
Test: 1) atest RunBackupFrameworksServicesRoboTests
         2) atest CtsBackupTestCases
         3) atest CtsBackupHostTestCases
         4) atest GtsBackupTestCases
         5) atest GtsBackupHostTestCases

Manual testing (for system/secondary users):
  * Install Textra Sms (third-party sms client, requires sms
  permissions) and give permissions
  * adb shell bmgr --user [user-id] backupnow android
  * Uninstall and reinstall the app
  * abd shell bmgr --user [user-id] restore [token] android
  * Launch the app and verify permission dialog doesn't appear

Change-Id: I61ec4eb9c593465363dcf43059584b15f4aa81f5

5 years agoFix HdmiCecLocalDeviceAudioSystem audio status report log
Dmitry Shmidt [Mon, 22 Oct 2018 20:24:38 +0000 (13:24 -0700)]
Fix HdmiCecLocalDeviceAudioSystem audio status report log

Bug: 118165614
Test: Manual

Change-Id: I2899b00d34b8356e82f3223371d551425074faec
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
(cherry picked from commit 8eb171afa02ee1d44b9c39d451d17e170d14957b)

5 years agoMerge "Add closing div tag for ContentResolver javadoc" into pi-dev
Ng Zhi An [Mon, 4 Feb 2019 19:52:44 +0000 (11:52 -0800)]
Merge "Add closing div tag for ContentResolver javadoc" into pi-dev
am: a3a280e4d8

Change-Id: I12f32a13f8b6ca1c33bee80207c6e1bed6f7cb4b

5 years agoMerge "Add closing div tag for ContentResolver javadoc" into pi-dev
TreeHugger Robot [Mon, 4 Feb 2019 19:38:42 +0000 (19:38 +0000)]
Merge "Add closing div tag for ContentResolver javadoc" into pi-dev

5 years agoFix ArrayIndexOOB crash with invalid sim slot
Fabian Kozynski [Mon, 4 Feb 2019 14:21:38 +0000 (09:21 -0500)]
Fix ArrayIndexOOB crash with invalid sim slot

Added guards for multiple ArrayIndexOOB Exceptions.

CarrierTextController needs to be refactored to show proper names and
not need split

Test: atest
Bug: 123753387
Change-Id: I55fa40ec26d91da0379440b010c20b61a0941f66

5 years agoAdd InspectionCompanionProvider
Ashley Rose [Tue, 29 Jan 2019 23:40:22 +0000 (18:40 -0500)]
Add InspectionCompanionProvider

Bug: 117616612
Test: atest GeneratedInspectionCompanionProviderTest
Change-Id: I7998f4f8d9fdbb042e01b5b0c2fc66933b2035d1

5 years agoExpose a few keys that's already used by apps
Chong Zhang [Tue, 5 Jun 2018 22:43:15 +0000 (15:43 -0700)]
Expose a few keys that's already used by apps

bug: 80314065
Change-Id: Ia9369decb8c454fe091fca77f8996e1400c14790

5 years agoverity: Fix memory leaks
George Burgess IV [Fri, 1 Feb 2019 19:52:55 +0000 (11:52 -0800)]
verity: Fix memory leaks

This CL refactors this code slightly in order to fix memory leaks
reported by the static analyzer. In general, RAII classes are
stack-allocated and moveable, rather than being heap-allocated. (If they
are heap-allocated, they should sit in a unique_ptr.)

Since it looks like this class has no children (adding `final` still
builds without issue), this devirtualizes its dtor, as well.

Finally, it looks like one instance of this class can easily be replaced
with a stack variable, so that's done, too.

Bug: None
Test: Built with the analyzer. Complaints are gone.
Change-Id: I6d284b06828afd47987534720bdaaa99e54b2c4c

5 years agoChange provider packages API to test all providers
Soonil Nagarkar [Thu, 31 Jan 2019 22:36:56 +0000 (14:36 -0800)]
Change provider packages API to test all providers

This will replace the LocationManager.getNetworkProviderPackage() API
with LocationManager.isProviderPackage(). The network provider should
not be considered special.

In addition, providers now have the ability to specify additional
packages that may make location requests on their behalf, so that those
packages can be considered location providers as well.

Bug: 117177078
Test: manually
Change-Id: I204b56e7bb40874ac3347988474fb8afa787feb8

5 years agoRevert "Revert "Add public API to use new interfaces from cas@1.1""
Henry Fang [Fri, 1 Feb 2019 19:24:55 +0000 (19:24 +0000)]
Revert "Revert "Add public API to use new interfaces from cas@1.1""

This reverts commit cdcaed6acb426f50bd5dfe4e30792ff22219c690.

Reason for revert: <Verified build locally, CL is fine. original issue may be caused by conflict between merges>

Change-Id: Id9707692a704c3d4475aee1f6c580208eb6ab744
Test: Manual
Bug: 122472761

5 years agoMerge "Update navigation bar upon change of display density"
TreeHugger Robot [Mon, 4 Feb 2019 18:52:57 +0000 (18:52 +0000)]
Merge "Update navigation bar upon change of display density"

5 years agoMerge "Migrate default browser to use role."
TreeHugger Robot [Mon, 4 Feb 2019 18:50:34 +0000 (18:50 +0000)]
Merge "Migrate default browser to use role."

5 years agoMerge changes from topic "cp pi-tv-dev 6162606"
Shubang Lu [Mon, 4 Feb 2019 18:47:15 +0000 (18:47 +0000)]
Merge changes from topic "cp pi-tv-dev 6162606"

* changes:
  Add System Audio Mode Status handler to update sam status
  Add setSystemAudioMode handler to update isSystemAudioModeActivated.
  Migrate systemAudioActivated to HdmiControlService