OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Fixes OpaLayoutTest to pass by adding SysuiTestCase (1/2)" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 20:09:42 +0000 (20:09 +0000)]
Merge "Fixes OpaLayoutTest to pass by adding SysuiTestCase (1/2)" into pi-dev

6 years agoMerge "Revert "Clear pattern on completion (if fade is enabled)."" into pi-dev
Vishwath Mohan [Thu, 29 Mar 2018 19:57:37 +0000 (19:57 +0000)]
Merge "Revert "Clear pattern on completion (if fade is enabled)."" into pi-dev

6 years agoRevert "Clear pattern on completion (if fade is enabled)."
Vishwath Mohan [Thu, 29 Mar 2018 17:56:33 +0000 (17:56 +0000)]
Revert "Clear pattern on completion (if fade is enabled)."

This reverts commit b8e9782f70d6aa28368798cdb969607831c826ce.

Bug: 77257848
Test: Can change from pattern to pin/password

Change-Id: I17f9625e506c8e0839fffa95a62c904890cac603

6 years agoMerge "Tidy up users of TRANSPORT constants." into pi-dev
Jeff Sharkey [Thu, 29 Mar 2018 19:23:38 +0000 (19:23 +0000)]
Merge "Tidy up users of TRANSPORT constants." into pi-dev

6 years agoMerge "Switch reference time to ZonedDateTime" into pi-dev
Jeff Sharkey [Thu, 29 Mar 2018 19:22:47 +0000 (19:22 +0000)]
Merge "Switch reference time to ZonedDateTime" into pi-dev

6 years agoMerge "Add the compilation reason to the dexopt dumps" into pi-dev
Calin Juravle [Thu, 29 Mar 2018 19:15:44 +0000 (19:15 +0000)]
Merge "Add the compilation reason to the dexopt dumps" into pi-dev

6 years agoMerge "Update BleScanStateChanged comment" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 19:05:19 +0000 (19:05 +0000)]
Merge "Update BleScanStateChanged comment" into pi-dev

6 years agoMerge "Bouncer should not show over the full screen user switcher on boot." into...
TreeHugger Robot [Thu, 29 Mar 2018 18:28:12 +0000 (18:28 +0000)]
Merge "Bouncer should not show over the full screen user switcher on boot." into pi-dev

6 years agoMerge "Fix letterbox insets when starting app" into pi-dev
Jorim Jaggi [Thu, 29 Mar 2018 18:21:29 +0000 (18:21 +0000)]
Merge "Fix letterbox insets when starting app" into pi-dev

6 years agoMerge "RemoteAnimations: Add failsafe" into pi-dev
Adrian Roos [Thu, 29 Mar 2018 18:10:28 +0000 (18:10 +0000)]
Merge "RemoteAnimations: Add failsafe" into pi-dev

6 years agoMerge "Improved documentation of AutofillFieldClassificationService.onGetScores(...
TreeHugger Robot [Thu, 29 Mar 2018 18:00:55 +0000 (18:00 +0000)]
Merge "Improved documentation of AutofillFieldClassificationService.onGetScores()" into pi-dev

6 years agoMerge "Add FLAG_INCREMENTAL support to LocalTransport." into pi-dev
Anton Philippov [Thu, 29 Mar 2018 17:54:52 +0000 (17:54 +0000)]
Merge "Add FLAG_INCREMENTAL support to LocalTransport." into pi-dev

6 years agoMerge "Prefer default orientation for secondary displays" into pi-dev
Andrii Kulian [Thu, 29 Mar 2018 17:32:57 +0000 (17:32 +0000)]
Merge "Prefer default orientation for secondary displays" into pi-dev

6 years agoMerge "Indicate whether BandConfig initialization is required or not." into pi-dev
Tomasz Wasilczyk [Thu, 29 Mar 2018 17:27:56 +0000 (17:27 +0000)]
Merge "Indicate whether BandConfig initialization is required or not." into pi-dev

6 years agoMerge "Root (uid=0) should be core. Fix UserHandle.isCore()." into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 17:17:23 +0000 (17:17 +0000)]
Merge "Root (uid=0) should be core. Fix UserHandle.isCore()." into pi-dev

6 years agoMerge "Fix StatsCompanionService pull on bucket ends" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 17:00:25 +0000 (17:00 +0000)]
Merge "Fix StatsCompanionService pull on bucket ends" into pi-dev

6 years agoMerge "Move Path to NAR" into pi-dev
John Reck [Thu, 29 Mar 2018 16:53:41 +0000 (16:53 +0000)]
Merge "Move Path to NAR" into pi-dev

6 years agoMerge "Change alarm/ringer status QS separator." into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 16:50:21 +0000 (16:50 +0000)]
Merge "Change alarm/ringer status QS separator." into pi-dev

6 years agoSwitch reference time to ZonedDateTime
Jan Althaus [Thu, 29 Mar 2018 15:51:57 +0000 (17:51 +0200)]
Switch reference time to ZonedDateTime

Bug: 74838195
Test: atest FrameworksCoreTests:TextClassificationManagerTest
Test: atest FrameworksCoreTests:TextClassificationTest
Test: atest CtsViewTestCases:TextClassificationManagerTest
Test: atest CtsViewTestCases:TextClassifierValueObjectsTest
Change-Id: I0df9dddf415fa558435553336a8a0a15621e9b05

6 years agoMerge "Save KeyChainSnapshots to disk" into pi-dev
Robert Berry [Thu, 29 Mar 2018 16:27:42 +0000 (16:27 +0000)]
Merge "Save KeyChainSnapshots to disk" into pi-dev

6 years agoMerge "Add more hidden API uses to light greylist" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 16:22:47 +0000 (16:22 +0000)]
Merge "Add more hidden API uses to light greylist" into pi-dev

6 years agoMerge "NotificationManagerService: don't play notif in SILENT mode" into pi-dev
Jean-Michel Trivi [Thu, 29 Mar 2018 16:14:10 +0000 (16:14 +0000)]
Merge "NotificationManagerService: don't play notif in SILENT mode" into pi-dev

6 years agoAdd FLAG_INCREMENTAL support to LocalTransport.
Anton Philippov [Mon, 26 Mar 2018 18:12:08 +0000 (19:12 +0100)]
Add FLAG_INCREMENTAL support to LocalTransport.

Implement performBackup() with flags argument:

1. If FLAG_INCREMENTAL is passed and transport has no data for this
package or supports only non-incremental backups, request a non-incremental retry.
2. If FLAG_NON_INCREMENTAL is passed, but transport has data, discard
that data and continue.

Bug: 72212840
Test: GTS test in the same topic
Change-Id: I4c4a1dbfa1a807e4d4c523f42bb6a404a39731e9

6 years agoMerge "Don't print contents of user-provided bundles." into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 15:36:43 +0000 (15:36 +0000)]
Merge "Don't print contents of user-provided bundles." into pi-dev

6 years agoMerge "Better public volumes handling on secondary users." into pi-dev
Jeff Sharkey [Thu, 29 Mar 2018 15:15:54 +0000 (15:15 +0000)]
Merge "Better public volumes handling on secondary users." into pi-dev

6 years agoMerge "API for granting/revoking runtime permissions." into pi-dev
Jeff Sharkey [Thu, 29 Mar 2018 15:14:34 +0000 (15:14 +0000)]
Merge "API for granting/revoking runtime permissions." into pi-dev

6 years agoMerge "DPM: API review for installKeyPair" into pi-dev
Eran Messeri [Thu, 29 Mar 2018 15:00:30 +0000 (15:00 +0000)]
Merge "DPM: API review for installKeyPair" into pi-dev

6 years agoMerge "Federate platform docs against AndroidX" into pi-dev
Alan Viverette [Thu, 29 Mar 2018 14:47:47 +0000 (14:47 +0000)]
Merge "Federate platform docs against AndroidX" into pi-dev

6 years agoIndicate whether BandConfig initialization is required or not.
Tomasz Wasilczyk [Tue, 27 Mar 2018 20:28:42 +0000 (13:28 -0700)]
Indicate whether BandConfig initialization is required or not.

The broadcastradio HAL 1.x requires waiting for onConfigChanged callback
to indicate the initialization is done, while HAL 2.0 does not have the
config setting (at the tuner session level) at all.

This change makes it possible to cleanly workaround race condition in the
radio app retaining support for both HAL revisions. Future versions of the
RadioManager will provide a method to open a session without taking care
about these nuances.

Bug: 74353024
Test: manual
Change-Id: I5de2d5e5c33626fcf0cfbbaf121d0b13e53d0bae

6 years agoMerge "Not allow shell to dump screen by using ui-automator if... DISALLOW_DEBUGGING_...
Tony Mak [Thu, 29 Mar 2018 14:36:55 +0000 (14:36 +0000)]
Merge "Not allow shell to dump screen by using ui-automator if... DISALLOW_DEBUGGING_FEATURES is set" into pi-dev

6 years agoFix letterbox insets when starting app
Jorim Jaggi [Wed, 28 Mar 2018 16:01:22 +0000 (18:01 +0200)]
Fix letterbox insets when starting app

Showing the letterbox with checking on HAS_DRAWN is too late. We
also need to show it in READY_TO_SHOW such that we have it
available when starting the transition.

Test: Open letterboxed app. Observe no flicker
Test: Capture winscope trace and make sure content insets when
reopening app are correct.
Bug: 76220728
Change-Id: I20ed8b1b5a90cc0a878d3eb1512e1aa1e4cd37f3

6 years agoMerge "Allow apps with dnd access to bypass DND" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 14:27:19 +0000 (14:27 +0000)]
Merge "Allow apps with dnd access to bypass DND" into pi-dev

6 years agoMerge "Add three more wifi APIs." into pi-dev
Nicolas Geoffray [Thu, 29 Mar 2018 14:23:10 +0000 (14:23 +0000)]
Merge "Add three more wifi APIs." into pi-dev

6 years agoChange alarm/ringer status QS separator.
Amin Shaikh [Thu, 29 Mar 2018 13:41:45 +0000 (09:41 -0400)]
Change alarm/ringer status QS separator.

Change-Id: Ib305e65e45a78f1db6091bb978e086c46205db5f
Fixes: 76208830
Test: visual

6 years agoSave KeyChainSnapshots to disk
Robert Berry [Thu, 29 Mar 2018 11:07:17 +0000 (12:07 +0100)]
Save KeyChainSnapshots to disk

Bug: 73921897
Test: runtest frameworks-services -p \
      com.android.server.locksettings.recoverablekeystore

Change-Id: I909f2f7f289d4e2a0cdff6a3f7184747e5deeae2

6 years agoMerge "Remove unused KeyStore field in RecoverableKeyStoreManager" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 13:44:59 +0000 (13:44 +0000)]
Merge "Remove unused KeyStore field in RecoverableKeyStoreManager" into pi-dev

6 years agoMerge "Utilize verbose KeyChain errors" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 13:31:14 +0000 (13:31 +0000)]
Merge "Utilize verbose KeyChain errors" into pi-dev

6 years agoMerge "Clear app data before full restore for specified packages" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 13:23:24 +0000 (13:23 +0000)]
Merge "Clear app data before full restore for specified packages" into pi-dev

6 years agoAdd more hidden API uses to light greylist
David Brazdil [Thu, 29 Mar 2018 13:21:48 +0000 (14:21 +0100)]
Add more hidden API uses to light greylist

Bug: 76443991
Bug: 64382372
Test: make
Change-Id: I5ec60bbf9b747230ab1a5ae539d7d014b24605b0

6 years agoMerge "DO NOT MERGE Unrevert update references to backup agent timeouts" into pi-dev
Annie Meng [Thu, 29 Mar 2018 12:55:42 +0000 (12:55 +0000)]
Merge "DO NOT MERGE Unrevert update references to backup agent timeouts" into pi-dev

6 years agoMerge "Rename ImageDecoder.setResize" into pi-dev
Leon Scroggins [Thu, 29 Mar 2018 12:40:24 +0000 (12:40 +0000)]
Merge "Rename ImageDecoder.setResize" into pi-dev

6 years agoMerge "Move graphics APIs to the light grey." into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 12:26:26 +0000 (12:26 +0000)]
Merge "Move graphics APIs to the light grey." into pi-dev

6 years agoAdd three more wifi APIs.
Nicolas Geoffray [Wed, 28 Mar 2018 23:00:12 +0000 (00:00 +0100)]
Add three more wifi APIs.

bug: 74066078
Test: m
Change-Id: I2c9a7499094c743de3923226bbcea3c1cd147d5f

6 years agoMerge "Exempt some notis from DND visual suppression" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 12:25:02 +0000 (12:25 +0000)]
Merge "Exempt some notis from DND visual suppression" into pi-dev

6 years agoMerge "Persist KeyChainSnapshot to XML" into pi-dev
Robert Berry [Thu, 29 Mar 2018 10:59:17 +0000 (10:59 +0000)]
Merge "Persist KeyChainSnapshot to XML" into pi-dev

6 years agoExempt some notis from DND visual suppression
Julia Reynolds [Wed, 28 Mar 2018 14:48:37 +0000 (10:48 -0400)]
Exempt some notis from DND visual suppression

Specifically, foreground service notifications
and media notifications.

Fixes: 75261156
Test: atest SystemUITests
Change-Id: I2f1fddbf748a274177d2c8dddb1b72fce82c8c4c

6 years agoRemoteAnimations: Add failsafe
Adrian Roos [Mon, 26 Mar 2018 15:34:06 +0000 (17:34 +0200)]
RemoteAnimations: Add failsafe

Adds failsafe mechanisms to RemoteAnimation and RecentsAnimation:
- cancel animations on binder death
- schedule a short timeout for RecentsAnimation after HOME and POWER events

Also enables RemoteAnimationControllerTest for presubmit, since it's turned
out to be reliable.

Change-Id: Id0bfdbee7d36f662eb386727195da8de2ed1684a
Fixes: 73496879
Test: kill / suspend launcher during animations; verify animations get aborted as expected.
Test: atest RemoteAnimationControllerTest

6 years agoMove graphics APIs to the light grey.
Nicolas Geoffray [Wed, 28 Mar 2018 22:15:54 +0000 (23:15 +0100)]
Move graphics APIs to the light grey.

The APIs have just started being removed in public APIs, and some
non-vendor apps are using them.

bug: 77224796
Test: m

Change-Id: I5c3afd18244a888ec77f14eaa6d839faf4f6d2be

6 years agoClear app data before full restore for specified packages
Artem Iglikov [Tue, 27 Mar 2018 14:12:18 +0000 (15:12 +0100)]
Clear app data before full restore for specified packages

In some cases (deferred restore) the app data needs to be cleared even
if the app has implemented backup agent. As a quick fix introduce
PACKAGES_TO_CLEAR_DATA_BEFORE_FULL_RESTORE secure setting, which
transport can fill prior to restore.

Bug: 69069240
Test: adb shell settings put secure packages_to_clear_data_before_full_restore com.google.android.apps.nexuslauncher && adb shell bmgr restore com.google.android.apps.nexuslauncher
Change-Id: I2a4651365d9cf4747f32d2ba69312f54cd03d118

6 years agoUtilize verbose KeyChain errors
Eran Messeri [Mon, 26 Mar 2018 15:43:14 +0000 (16:43 +0100)]
Utilize verbose KeyChain errors

As KeyChain reports detailed error codes about failure to generate keys
or attestation records for them, log these detailed errors and throw an
exception if the hardware does not support Device ID attestation.

Bug: 72642093
Bug: 73448533
Test: cts-tradefed run commandAndExit  cts-dev -s 127.0.0.1:50487 -a x86_64 -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceOwnerTest#testKeyManagement -l DEBUG
Change-Id: Ib12efcf48c158373e1fc28cc51d67e70282d029e

6 years agoRemove unused KeyStore field in RecoverableKeyStoreManager
Robert Berry [Thu, 29 Mar 2018 09:30:29 +0000 (10:30 +0100)]
Remove unused KeyStore field in RecoverableKeyStoreManager

Test: runtest frameworks-services -p \
      com.android.server.locksettings.recoverablekeystore
Bug: 74944591

Change-Id: Ibe0167adb103beded9eb0138825f4a975f12c29e

6 years agoRemove unused KeyChainSnapshot tables
Robert Berry [Thu, 29 Mar 2018 09:09:03 +0000 (10:09 +0100)]
Remove unused KeyChainSnapshot tables

This will be persisted as an XML file instead.

Bug: 73921897
Test: none, it's just removing unused consts
Change-Id: Idaeb437d0a7258d03418932d4aba75189092b3fe

6 years agoPersist KeyChainSnapshot to XML
Robert Berry [Wed, 28 Mar 2018 19:26:57 +0000 (20:26 +0100)]
Persist KeyChainSnapshot to XML

Adds parser and serializer, and round trip test.

Bug: 73921897
Test: runtest frameworks-services -p \
      com.android.server.locksettings.recoverablekeystore
Change-Id: I8259ec398ee076823ac8bbf847534738514de8dc

6 years agoAdd warning comment about serialization
Robert Berry [Thu, 29 Mar 2018 09:21:50 +0000 (10:21 +0100)]
Add warning comment about serialization

As it's important we do not break serialization of KeyChainSnapshot
(as it could fail in weird and mysterious ways if we did), add
comments warning anybody editing those files to also update the
serializer and deserializer, as well as appropriate tests.

Test: none, just adding comments
Bug: 73921897
Change-Id: If73162b8fb2a0b44fd954b72c9030cd9e042282b

6 years agoDPM: API review for installKeyPair
Eran Messeri [Fri, 23 Mar 2018 13:32:17 +0000 (13:32 +0000)]
DPM: API review for installKeyPair

Per API council review, make installKeyPair take a single, integer flags
argument rather than two boolean ones.

Bug: 71818124
Test: cts-tradefed run commandAndExit cts-dev -a armeabi-v7a -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceOwnerTest#testKeyManagement -l DEBUG
Change-Id: Ia04f8d617ae0d1db028bd9bcef3a4bf486449468

6 years agoMerge "Update to lock task features API" into pi-dev
Benjamin Franz [Thu, 29 Mar 2018 09:02:17 +0000 (09:02 +0000)]
Merge "Update to lock task features API" into pi-dev

6 years agoMerge "Permission Check For DPM Get IME API" into pi-dev
Eric Sandness [Thu, 29 Mar 2018 08:25:09 +0000 (08:25 +0000)]
Merge "Permission Check For DPM Get IME API" into pi-dev

6 years agoNot allow shell to dump screen by using ui-automator if...
Tony Mak [Mon, 26 Mar 2018 19:43:06 +0000 (20:43 +0100)]
Not allow shell to dump screen by using ui-automator if...
DISALLOW_DEBUGGING_FEATURES is set

(adb unroot first)
Test: Turn on DISALLOW_DEBUGGING_FEATURES in work profile.
      Can dump personal window + Cannot dump work window by using
      adb shell uiautomator dump
Test: Turn off DISALLOW_DEBUGGING_FEATURES in work profile.
      Can dump window in both profiles
Test: atest CtsAccessibilityServiceTestCases
Test: Enable talkback, try launching a few apps and interact with them.

Fixes: 73147467

Change-Id: I044a1546f9b568b0d19714154d6e7e5ab7232d26

6 years agoFix StatsCompanionService pull on bucket ends
Chenjie Yu [Wed, 28 Mar 2018 17:07:22 +0000 (10:07 -0700)]
Fix StatsCompanionService pull on bucket ends

+ change StatsPullerManager internal time units to be consistent
+ use series of alarms for pullers, instead of use setRepeating

Bug: 76223345
Bug: 75970648
Test: cts test
Change-Id: I9e6ac0ce06541f5ceabd2a8fa444e13d40e36983

6 years agoMerge "Use commas to separate API exemptions list, not colon." into pi-dev
Mathew Inwood [Thu, 29 Mar 2018 06:50:23 +0000 (06:50 +0000)]
Merge "Use commas to separate API exemptions list, not colon." into pi-dev

6 years agoMerge "Configurable hidden API exemptions." into pi-dev
Mathew Inwood [Thu, 29 Mar 2018 06:49:27 +0000 (06:49 +0000)]
Merge "Configurable hidden API exemptions." into pi-dev

6 years agoMerge "Fallback to ML prediction after short ACTIVE states" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 06:03:17 +0000 (06:03 +0000)]
Merge "Fallback to ML prediction after short ACTIVE states" into pi-dev

6 years agoMerge "Add slice pinning to list of reasons for usage" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 05:51:24 +0000 (05:51 +0000)]
Merge "Add slice pinning to list of reasons for usage" into pi-dev

6 years agoMerge "Refactor how we calculate offset for PIP animation" into pi-dev
Tracy Zhou [Thu, 29 Mar 2018 05:24:42 +0000 (05:24 +0000)]
Merge "Refactor how we calculate offset for PIP animation" into pi-dev

6 years agoMerge "Rename MediaDrm security levels" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 05:18:32 +0000 (05:18 +0000)]
Merge "Rename MediaDrm security levels" into pi-dev

6 years agoMerge changes from topic "MediaSessionManager_isTrustedForMediaControl" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 04:50:59 +0000 (04:50 +0000)]
Merge changes from topic "MediaSessionManager_isTrustedForMediaControl" into pi-dev

* changes:
  MediaBrowserService: Create getCurrentBrowserInfo()
  MediaSession: Create getCurentControllerInfo()
  MediaSessionManager: Add isTrustedForMediaControl()

6 years agoMerge "Bluetooth HIDD: Remove unplug()" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 04:23:46 +0000 (04:23 +0000)]
Merge "Bluetooth HIDD: Remove unplug()" into pi-dev

6 years agoMerge "Fix deadlock when ParallelPackageParserCallback is used" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 04:18:51 +0000 (04:18 +0000)]
Merge "Fix deadlock when ParallelPackageParserCallback is used" into pi-dev

6 years agoMerge "Properly filter alert window notifications" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 03:50:31 +0000 (03:50 +0000)]
Merge "Properly filter alert window notifications" into pi-dev

6 years agoMerge "Add additional logging for EMBMS edge cases" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 03:01:34 +0000 (03:01 +0000)]
Merge "Add additional logging for EMBMS edge cases" into pi-dev

6 years agoMerge "[Notif] Write AppUid earlier in NotificationInfo" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 02:43:23 +0000 (02:43 +0000)]
Merge "[Notif] Write AppUid earlier in NotificationInfo" into pi-dev

6 years agoMediaBrowserService: Create getCurrentBrowserInfo()
Hyundo Moon [Mon, 26 Mar 2018 08:12:21 +0000 (17:12 +0900)]
MediaBrowserService: Create getCurrentBrowserInfo()

Bug: 65739365
Test: Ran MediaBrowserServiceTest
Change-Id: I629d74bcf9a08a2271463fecbacc2d998dce4387

6 years agoMediaSession: Create getCurentControllerInfo()
Hyundo Moon [Thu, 22 Mar 2018 08:22:14 +0000 (17:22 +0900)]
MediaSession: Create getCurentControllerInfo()

Bug: 65739365
Test: Ran MediaControllerTest
Change-Id: I05c9179546d826e8fabb4fd4e4e03837dd4685ff

6 years agoMediaSessionManager: Add isTrustedForMediaControl()
Jaewan Kim [Thu, 22 Mar 2018 15:13:51 +0000 (00:13 +0900)]
MediaSessionManager: Add isTrustedForMediaControl()

The API checks whether an app is granted MEDIA_CONTENT_CONTROL
permisison or has enabled notification listener. Such apps can be
considered as the system component (e.g. Bluetooth) or equivalent (e.g.
Auto/Wearable companion app), so sessions shouldn't refuse connection
request from it.

It needs to be public because API for checking whether an app has an
enabled notification listener can only be called by the system service.
(see: NotificationManager.getEnabledNotificationListeners(int))
With the MediaSessionManager#isTrustedForMediaControl(),
MediaSessionService will query the information indirectly for a session
to tell an app is trusted.

Note that this isn't workaround for bypassing permission check of
NotificationManager API calls. It's indirectly available through
the android.provider.Settings.Secure with the *deprecated* key
ENABLD_NOTIFICATION_LISTENERS and it doesn't need any permission.
MediaSessionManager#isTrustedForMediaControl() is needed to avoid using
deprecated key for querying notification listeners.

Bug: 75500592
Test: Build
Change-Id: I8d1183aa946aa0d2ec35dbd7f31933d1c2717f99

6 years agoFix deadlock when ParallelPackageParserCallback is used
Jaekyun Seok [Thu, 29 Mar 2018 02:02:10 +0000 (11:02 +0900)]
Fix deadlock when ParallelPackageParserCallback is used

Bug: 77232370
Test: succeeded building and tested with taimen
Change-Id: I425686c65a3cee88c10fceb7b5d0b5d89e49fc70

6 years agoMerge "Add Battery time to location dumpsys" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 02:08:04 +0000 (02:08 +0000)]
Merge "Add Battery time to location dumpsys" into pi-dev

6 years agoAdd the compilation reason to the dexopt dumps
Calin Juravle [Thu, 29 Mar 2018 02:00:18 +0000 (19:00 -0700)]
Add the compilation reason to the dexopt dumps

Knowing why we compiled a package will make some investigations easier.

Test: adb shell dumpsys package dexopt
Bug: 76425903
Change-Id: I67b5bc980d198340aa52affb24fb3ce7e3080d67

6 years agoMerge "Clear pattern on completion (if fade is enabled)." into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 01:06:06 +0000 (01:06 +0000)]
Merge "Clear pattern on completion (if fade is enabled)." into pi-dev

6 years agoMerge "[Notif] Remove old blocking helper button" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 00:57:22 +0000 (00:57 +0000)]
Merge "[Notif] Remove old blocking helper button" into pi-dev

6 years ago[Notif] Write AppUid earlier in NotificationInfo
Rohan Shah [Wed, 28 Mar 2018 21:46:50 +0000 (14:46 -0700)]
[Notif] Write AppUid earlier in NotificationInfo

Noticed that appuid was being used but it wasn't set until later in the
lifecycle of the notificationinfo (rendering the channel logic moot).

If the notif is now posting notificiations to the default channel while
having multiple channels, it'll now show "Uncategorized" in the blocking
helper/notification info screens.

Fixes: 77240828
Test: Ran NotifInfoTest (added one new test case)
Test: Visually, artificially sent default ch notif with app having 9 ch
Change-Id: I45f2c35fb6dae610e511b2d316b3c184b84f2d09

6 years agoMerge "Add an option to display HVAC temp values in sysui" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 00:46:29 +0000 (00:46 +0000)]
Merge "Add an option to display HVAC temp values in sysui" into pi-dev

6 years agoNotificationManagerService: don't play notif in SILENT mode
Jean-Michel Trivi [Sat, 24 Mar 2018 01:04:00 +0000 (18:04 -0700)]
NotificationManagerService: don't play notif in SILENT mode

Fix the test for playing a notification sound:
  play sound when 1/ no exclusive focus
             AND  2/ volume not 0
Previous test would play a notification if device was in SILENT
  mode (volume was 0, but ringer mode was != VIBRATE)

Bug: 75043398
Test: enter silent mode, play notification, verify no ducking
Change-Id: I0e19d068f719a89c7a8a3c239da86c1dfce701ec

6 years agoMerge "Add constants for reporting criteria" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 00:23:37 +0000 (00:23 +0000)]
Merge "Add constants for reporting criteria" into pi-dev

6 years agoRename MediaDrm security levels
Jeff Tinker [Thu, 29 Mar 2018 00:16:50 +0000 (17:16 -0700)]
Rename MediaDrm security levels

API review requested that MediaDrm security
levels be prefixed with a common string.

bug:76449152
bug:74831432
Change-Id: I2b4d5ed2c881f736659f29aa76c556a79d1335f4

6 years agoMerge "Add adb command to force generate network watchlist report for testing" into...
Ricky Wai [Thu, 29 Mar 2018 00:04:26 +0000 (00:04 +0000)]
Merge "Add adb command to force generate network watchlist report for testing" into pi-dev

6 years agoMerge "Fix keywords hint and add some hints and a subtype to Slice" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 23:59:37 +0000 (23:59 +0000)]
Merge "Fix keywords hint and add some hints and a subtype to Slice" into pi-dev

6 years agoMerge "Opalayout can check quickstep icons without needing navbarview (1/2)" into...
TreeHugger Robot [Wed, 28 Mar 2018 23:55:22 +0000 (23:55 +0000)]
Merge "Opalayout can check quickstep icons without needing navbarview (1/2)" into pi-dev

6 years agoRoot (uid=0) should be core. Fix UserHandle.isCore().
Makoto Onuki [Wed, 28 Mar 2018 23:49:47 +0000 (16:49 -0700)]
Root (uid=0) should be core. Fix UserHandle.isCore().

Bug: 77240427
Change-Id: I057e8f50370fb1cd74ff2ebdab41990a682cec6f
Fix: 77240427
Test: build & boot
Test: "am set-standby-bucket com.google.android.apps.docs 40" will override ACTIVE

6 years agoMerge "Use sentence case on "clear all" button" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 23:43:39 +0000 (23:43 +0000)]
Merge "Use sentence case on "clear all" button" into pi-dev

6 years agoMerge "Ripple and opa diamond animation plays after a timeout (1/2)" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 23:39:47 +0000 (23:39 +0000)]
Merge "Ripple and opa diamond animation plays after a timeout (1/2)" into pi-dev

6 years agoFixes OpaLayoutTest to pass by adding SysuiTestCase (1/2)
Matthew Ng [Tue, 27 Mar 2018 01:01:37 +0000 (18:01 -0700)]
Fixes OpaLayoutTest to pass by adding SysuiTestCase (1/2)

Copied SysuiTestCase to systemui Google to be able to inflate
KeyButtonView that is dependent on StatusBar. Also fixed the connection
failure catch exception when proxy cannot connect to service in tests.

Test: atest com.google.android.systemui.OpaLayoutTest
Change-Id: Ica2a894ce92e06af30c208afcc6a22adeac3a843
Fixes: 76416916

6 years agoBluetooth HIDD: Remove unplug()
Hansong Zhang [Wed, 28 Mar 2018 19:56:05 +0000 (12:56 -0700)]
Bluetooth HIDD: Remove unplug()

Remove the hidden unplug() API because it is not used and it can cause
the remote device to be unpaired. System apps should use unbond() and
user apps should not use reflection to invoke it.

Bug: 67866553
Test: SL4A
Change-Id: I1bdc06dbb5460c9fd52230b78cbf9434a4349d24
(cherry picked from commit dbc6d14f6ec399e63cee29adbe01fffcb166500f)

6 years agoMerge "Change MeteredDataDisabled function names for clarity" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 23:18:01 +0000 (23:18 +0000)]
Merge "Change MeteredDataDisabled function names for clarity" into pi-dev

6 years agoDon't print contents of user-provided bundles.
Felipe Leme [Wed, 28 Mar 2018 23:09:45 +0000 (16:09 -0700)]
Don't print contents of user-provided bundles.

Test: atest CtsAutoFillServiceTestCases:SimpleSaveActivityTest#testSaveWithParcelableOnClientState
Bug: 72986827

Change-Id: I91523a6c6c0297ff36ade3583e9c25cb2287cdf2

6 years agoMerge "Add vibrate/mute details to QS header." into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 23:02:26 +0000 (23:02 +0000)]
Merge "Add vibrate/mute details to QS header." into pi-dev

6 years agoMerge "A18y: Don't double announce 'searching for printers.'" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 23:02:04 +0000 (23:02 +0000)]
Merge "A18y: Don't double announce 'searching for printers.'" into pi-dev

6 years agoMerge "Remove no longer needed workaround for new devices that previously" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 23:00:35 +0000 (23:00 +0000)]
Merge "Remove no longer needed workaround for new devices that previously" into pi-dev

6 years agoMerge "Save internal state to disk after updating whitelist revoked uids." into pi-dev
Sudheer Shanka [Wed, 28 Mar 2018 22:56:13 +0000 (22:56 +0000)]
Merge "Save internal state to disk after updating whitelist revoked uids." into pi-dev

6 years agoOpalayout can check quickstep icons without needing navbarview (1/2)
Matthew Ng [Wed, 28 Mar 2018 21:02:00 +0000 (14:02 -0700)]
Opalayout can check quickstep icons without needing navbarview (1/2)

Opalayout should not need NavigationBarView to determine if the icon
should be for quickstep icons. It does not need to know if recents is
disabled because of lock tasks and so the check is now in
OverviewProxyService. Then when Opalayout needs to layout the home
button it should be able to get the information regardless if
NavigationBarView is available or not.

Bug: 76210393
Fixes: 76434966
Fixes: 74071465
Test: change language in settings

Change-Id: I246175c3e2d5c990da6823df4108d48522b258bd

6 years agoAdd an option to display HVAC temp values in sysui
Brad Stenning [Tue, 27 Mar 2018 20:57:29 +0000 (13:57 -0700)]
Add an option to display HVAC temp values in sysui

Bug: 77148007
Test: on device that has a real HVAC unit
Change-Id: I97b303dd947858157ede72c5d537ae6a1e40cc67