OSDN Git Service

android-x86/frameworks-base.git
5 years agoDo not engage IAuthSecret when running a GSI.
David Anderson [Wed, 13 Feb 2019 00:25:56 +0000 (16:25 -0800)]
Do not engage IAuthSecret when running a GSI.

The GSI is not the device owner (it has a separate userdata partition
that can have a separate PIN), and therefore, it should not take part in
anything AuthSecret related.

Bug: 123716647
Test: atest SyntheticPasswordTests
Test: atest LockSettingsServiceTests
Test: PIN unlocks device after booting into GSI
Change-Id: Ide06fc17f91410c562113c0db9a9a08b914b2c4e

5 years agoDon't overwrite the host FRP when running a GSI.
David Anderson [Thu, 7 Feb 2019 22:07:23 +0000 (14:07 -0800)]
Don't overwrite the host FRP when running a GSI.

Bug: 123777418
Test: manual test
Change-Id: Ia251dd939af71126a8236bc5c5cfed6622b2c946

5 years agoMerge "Reinflate notifications for overlay changes"
Selim Cinek [Wed, 13 Feb 2019 02:19:11 +0000 (02:19 +0000)]
Merge "Reinflate notifications for overlay changes"

5 years agoMerge "Adding additional atoms for assist gestures."
Joshua Mccloskey [Wed, 13 Feb 2019 02:02:24 +0000 (02:02 +0000)]
Merge "Adding additional atoms for assist gestures."

5 years ago[automerger skipped] Merge "Do not load xml metadata for unchanged packages in Regist...
Zhi An Ng [Wed, 13 Feb 2019 01:49:44 +0000 (17:49 -0800)]
[automerger skipped] Merge "Do not load xml metadata for unchanged packages in RegisteredServicesCache" into pi-dev am: 7ed81d17ba -s ours
am: b323683c45 -s ours
am skip reason: change_id I5c1f57108c4b67d24b198000d57216c63d35290a with SHA1 1033db8ddf is in history

Change-Id: I15fef0fde31b7b15c6444fbc6ed9ef9c328880c4

5 years agoDo not load xml metadata for unchanged packages in RegisteredServicesCache
Ng Zhi An [Wed, 13 Feb 2019 01:44:07 +0000 (17:44 -0800)]
Do not load xml metadata for unchanged packages in RegisteredServicesCache
am: 1033db8ddf

Change-Id: I66a105a63a5636a9c63f5b548e37d2b876132729

5 years ago[automerger skipped] Merge "Do not load xml metadata for unchanged packages in Regist...
Zhi An Ng [Wed, 13 Feb 2019 01:40:22 +0000 (17:40 -0800)]
[automerger skipped] Merge "Do not load xml metadata for unchanged packages in RegisteredServicesCache" into pi-dev
am: 7ed81d17ba -s ours
am skip reason: change_id I5c1f57108c4b67d24b198000d57216c63d35290a with SHA1 1033db8ddf is in history

Change-Id: Id074701210f4522750df7cd83f84a5f23bfb5b2d

5 years agoMerge "Adds new HardwareBuffer plane-locking functions to NDK"
Marius Renn [Wed, 13 Feb 2019 01:16:12 +0000 (01:16 +0000)]
Merge "Adds new HardwareBuffer plane-locking functions to NDK"

5 years agoMerge "Remove unused destroy methods"
TreeHugger Robot [Wed, 13 Feb 2019 01:03:09 +0000 (01:03 +0000)]
Merge "Remove unused destroy methods"

5 years agoMerge "Add Settings Panels proto enums"
TreeHugger Robot [Wed, 13 Feb 2019 00:53:58 +0000 (00:53 +0000)]
Merge "Add Settings Panels proto enums"

5 years agoMerge "Added unit tests for Passpoint/Osu integration in WifiTracker"
Quang Luong [Wed, 13 Feb 2019 00:39:48 +0000 (00:39 +0000)]
Merge "Added unit tests for Passpoint/Osu integration in WifiTracker"

5 years agoMerge "Adds lerpInv, saturate, lerpInvSat and constrainedMap to MathUtils."
Zak Cohen [Wed, 13 Feb 2019 00:26:04 +0000 (00:26 +0000)]
Merge "Adds lerpInv, saturate, lerpInvSat and constrainedMap to MathUtils."

5 years agoMerge "Framework should not send out <Inactive Source> when user disables CEC"
Amy Zhang [Wed, 13 Feb 2019 00:21:36 +0000 (00:21 +0000)]
Merge "Framework should not send out <Inactive Source> when user disables CEC"

5 years agoMerge "Factor out calls to apexservice in a class."
Dario Freni [Wed, 13 Feb 2019 00:13:14 +0000 (00:13 +0000)]
Merge "Factor out calls to apexservice in a class."

5 years agoFactor out calls to apexservice in a class.
Dario Freni [Wed, 6 Feb 2019 14:55:16 +0000 (14:55 +0000)]
Factor out calls to apexservice in a class.

The ApexManager class provides a cleaner interface to the apex service,
as well as providing caching for active packages, which can't change on
a running system. The cache is populated at boot time.

This CL will also cause PackageManager to stop reporting APEX packages
on devices that ship with flattened APEXs.

Test: atest apex_e2e_tests; used small app to verify API calls still
work; checked output of dumpsys.
Test: checked that on marlin (target with flatten APEX) no APEXs are
reported and no crashes are experienced at boot.
Fix: 123052859
Fix: 122638509
Fix: 124299505
Bug: 122952270
Change-Id: Iefe4fb42e455a7479ff47eb776d3492de8395469

5 years agoMerge "Update GNSS listener maps when clients die abnormally."
Anil Admal [Tue, 12 Feb 2019 23:55:31 +0000 (23:55 +0000)]
Merge "Update GNSS listener maps when clients die abnormally."

5 years agoMerge "ANGLE In Use Dialog Box"
Tim Van Patten [Tue, 12 Feb 2019 23:48:00 +0000 (23:48 +0000)]
Merge "ANGLE In Use Dialog Box"

5 years agoMerge "Enable isolated storage by default."
Jeff Sharkey [Tue, 12 Feb 2019 23:43:57 +0000 (23:43 +0000)]
Merge "Enable isolated storage by default."

5 years agoMerge "Add GnssMeasurementState::STATE_2ND_CODE_LOCK to GnssMeasurement API"
TreeHugger Robot [Tue, 12 Feb 2019 23:22:05 +0000 (23:22 +0000)]
Merge "Add GnssMeasurementState::STATE_2ND_CODE_LOCK to GnssMeasurement API"

5 years agoMerge "Switch clock face while docked."
TreeHugger Robot [Tue, 12 Feb 2019 23:17:43 +0000 (23:17 +0000)]
Merge "Switch clock face while docked."

5 years agoDo not load xml metadata for unchanged packages in RegisteredServicesCache
Ng Zhi An [Thu, 24 Jan 2019 21:45:57 +0000 (13:45 -0800)]
Do not load xml metadata for unchanged packages in RegisteredServicesCache

RegisteredServicesCache caches services in an xml, so the system doesn't
have to scan all the apks. Whenever a package is changed
(add/remove/replaced), the broadcast receiver in RegisteredServicesCache
will refresh this cache by quering all matching services and reading
their
xml metadata. There is extra work done here, because only the changed
package
will have services added/removed.

The edge case is after a cache is invalidated, we want to query package
manager for everything, regardless of what changedUids is (we could
have arrived here if invalidateCache is called, and then a package
change event fires, before a getAllServices is called to rescan
everything).

Add a new test to verify that the optimization takes care of the case
when the cache is invalidated.

Bug: 117755076
Bug: 122912184
Test: atest RegisteredServicesCache
Test: dumpsys content # check sync adapters
Change-Id: I5c1f57108c4b67d24b198000d57216c63d35290a
(cherry picked from commit dc66ef5ed383a889779adcd455826dcd1534ccf9)

5 years agoMerge "Revert "[Magnifier-77] Show it on long press selection""
TreeHugger Robot [Tue, 12 Feb 2019 23:04:28 +0000 (23:04 +0000)]
Merge "Revert "[Magnifier-77] Show it on long press selection""

5 years agoMerge "Restrict usage of AccessibilityManager::mIsEnabled after P"
TreeHugger Robot [Tue, 12 Feb 2019 22:53:12 +0000 (22:53 +0000)]
Merge "Restrict usage of AccessibilityManager::mIsEnabled after P"

5 years agoMerge "Throws an exception there is a problem when collecting CPU metrics instead...
TreeHugger Robot [Tue, 12 Feb 2019 22:42:49 +0000 (22:42 +0000)]
Merge "Throws an exception there is a problem when collecting CPU metrics instead of returning empty data."

5 years agoMerge "Telephony: Add 7bit Ascii support for long message"
Brad Ebinger [Tue, 12 Feb 2019 21:39:15 +0000 (21:39 +0000)]
Merge "Telephony: Add 7bit Ascii support for long message"

5 years agoAdd Settings Panels proto enums
Matthew Fritze [Mon, 11 Feb 2019 21:31:42 +0000 (13:31 -0800)]
Add Settings Panels proto enums

Test: manual
Bug: 117804231
Change-Id: I8f9637e69e98745608464fcd76727fde9259722e

5 years agoAdding additional atoms for assist gestures.
joshmccloskey [Thu, 10 Jan 2019 02:25:57 +0000 (18:25 -0800)]
Adding additional atoms for assist gestures.

Test: manual
Bug: 119898637
Bug: 121074595
Change-Id: I1a146569398a0a3cb224a1709662a37cb5f0c7cd

5 years agoMerge "Make ENABLE_ROLLBACK_TIMEOUT configurable"
TreeHugger Robot [Tue, 12 Feb 2019 21:19:31 +0000 (21:19 +0000)]
Merge "Make ENABLE_ROLLBACK_TIMEOUT configurable"

5 years agoMerge "Sharesheet - file preview support"
Matt Pietal [Tue, 12 Feb 2019 21:09:46 +0000 (21:09 +0000)]
Merge "Sharesheet - file preview support"

5 years agoANGLE In Use Dialog Box
Tim Van Patten [Wed, 19 Dec 2018 00:47:52 +0000 (17:47 -0700)]
ANGLE In Use Dialog Box

When ANGLE is enabled for an app, show a dialog box to the user to
indicate that ANGLE is in use.   This is useful because there are
not (or at least shouldn't be) any visual indication that a different
OpenGL driver is in use.

Bug: 120489005
Test: atest CtsAngleIntegrationHostTestCases
Test: Load an app with ANGLE enabled and verify dialog box is shown.
Test: Load an app without ANGLE and verify dialog box is not shown.
Change-Id: I5e87ec96582d43666cfcca2266b46ce98b859a32

5 years agoMerge "Add trackingBug to Typeface.sSystemFontMap."
TreeHugger Robot [Tue, 12 Feb 2019 20:51:34 +0000 (20:51 +0000)]
Merge "Add trackingBug to Typeface.sSystemFontMap."

5 years agoMerge "A few missing pieces for logging in ExtServices"
TreeHugger Robot [Tue, 12 Feb 2019 20:18:39 +0000 (20:18 +0000)]
Merge "A few missing pieces for logging in ExtServices"

5 years agoMerge "[WIFI] Update javadoc for getConfiguredNetworks"
Etan Cohen [Tue, 12 Feb 2019 20:16:18 +0000 (20:16 +0000)]
Merge "[WIFI] Update javadoc for getConfiguredNetworks"

5 years agoMerge "Persist the Persons field in ShortcutInfo"
Mehdi Alizadeh [Tue, 12 Feb 2019 20:12:09 +0000 (20:12 +0000)]
Merge "Persist the Persons field in ShortcutInfo"

5 years agoReinflate notifications for overlay changes
Selim Cinek [Tue, 12 Feb 2019 02:42:55 +0000 (18:42 -0800)]
Reinflate notifications for overlay changes

Previously it would still retain the old font,
we're now reinflating them and also the other
notification related views which have fonts.

Test: manual, change theme
Bug: 120987987
Change-Id: I6ff2639dfea82317680759610567aec1a80ccf51

5 years agoMerge "Update service callback for HeadsetProfile"
Lei Yu [Tue, 12 Feb 2019 19:40:18 +0000 (19:40 +0000)]
Merge "Update service callback for HeadsetProfile"

5 years agoMerge "Use rethrowFromSystemServer instead of RuntimeException"
TreeHugger Robot [Tue, 12 Feb 2019 19:35:41 +0000 (19:35 +0000)]
Merge "Use rethrowFromSystemServer instead of RuntimeException"

5 years agoAdd GnssMeasurementState::STATE_2ND_CODE_LOCK to GnssMeasurement API
Yu-Han Yang [Sat, 2 Feb 2019 03:52:28 +0000 (19:52 -0800)]
Add GnssMeasurementState::STATE_2ND_CODE_LOCK to GnssMeasurement API

- Also updates the Javadoc of getReceivedSvTimeNanos

Bug: 123297074
Test: builds and tested on cuttlefish
Change-Id: I96c828b2e66545a3615689cc299585511e13f9bf

5 years agoMerge "Merge "Remove duplicate networkstack-aidl-interfaces-java" am: 3e141a27c9...
Android Build Merger (Role) [Tue, 12 Feb 2019 19:24:09 +0000 (19:24 +0000)]
Merge "Merge "Remove duplicate networkstack-aidl-interfaces-java" am: 3e141a27c9 am: df3a9f41c4 am: 8eacbb3396"

5 years agoMerge "Do not load xml metadata for unchanged packages in RegisteredServicesCache...
Zhi An Ng [Tue, 12 Feb 2019 19:23:30 +0000 (19:23 +0000)]
Merge "Do not load xml metadata for unchanged packages in RegisteredServicesCache" into pi-dev

5 years agoMerge "Remove duplicate networkstack-aidl-interfaces-java" am: 3e141a27c9 am: df3a9f41c4
Steven Moreland [Tue, 12 Feb 2019 19:23:22 +0000 (11:23 -0800)]
Merge "Remove duplicate networkstack-aidl-interfaces-java" am: 3e141a27c9 am: df3a9f41c4
am: 8eacbb3396

Change-Id: Id30768cf31dd3a416d0a6b6bbac4496a51d0e56e

5 years agoMerge "Split blacklist from versioned blacklists."
TreeHugger Robot [Tue, 12 Feb 2019 19:23:01 +0000 (19:23 +0000)]
Merge "Split blacklist from versioned blacklists."

5 years agoMerge "Device ID attestation for PO: Address API review"
TreeHugger Robot [Tue, 12 Feb 2019 19:18:47 +0000 (19:18 +0000)]
Merge "Device ID attestation for PO: Address API review"

5 years agoMerge "Avoid NPE when fetching ContentProviderRecord#name."
TreeHugger Robot [Tue, 12 Feb 2019 19:14:38 +0000 (19:14 +0000)]
Merge "Avoid NPE when fetching ContentProviderRecord#name."

5 years agoMerge "Remove duplicate networkstack-aidl-interfaces-java" am: 3e141a27c9
Steven Moreland [Tue, 12 Feb 2019 19:13:15 +0000 (11:13 -0800)]
Merge "Remove duplicate networkstack-aidl-interfaces-java" am: 3e141a27c9
am: df3a9f41c4

Change-Id: Ia542e16910f9c65fabe22344bbe8e8975a274045

5 years agoMerge "Sharesheet - use config for rounded corners"
TreeHugger Robot [Tue, 12 Feb 2019 19:11:38 +0000 (19:11 +0000)]
Merge "Sharesheet - use config for rounded corners"

5 years agoMerge "Remove unnecessary SystemApi annotation from EasyConnectCallbackProxy"
TreeHugger Robot [Tue, 12 Feb 2019 18:56:40 +0000 (18:56 +0000)]
Merge "Remove unnecessary SystemApi annotation from EasyConnectCallbackProxy"

5 years agoMerge "Remove duplicate networkstack-aidl-interfaces-java"
Steven Moreland [Tue, 12 Feb 2019 18:51:10 +0000 (10:51 -0800)]
Merge "Remove duplicate networkstack-aidl-interfaces-java"
am: 3e141a27c9

Change-Id: I8cf5e8c2f41e990b6c19890605543bb06d99198b

5 years agoSwitch clock face while docked.
Robert Snoeberger [Wed, 23 Jan 2019 19:06:22 +0000 (14:06 -0500)]
Switch clock face while docked.

Bug: 120772327
Test: Added tests ClockManagerTest and DefaultClockSupplierTest
Change-Id: I404c6d52e1bd087d453d928faf373cf8dea9e2b2

5 years agoMerge "Adding callback for setPreferredDataSubscriptionId."
Xiangyu/Malcolm Chen [Tue, 12 Feb 2019 18:40:09 +0000 (18:40 +0000)]
Merge "Adding callback for setPreferredDataSubscriptionId."

5 years agoMerge "Remove duplicate networkstack-aidl-interfaces-java"
Steven Moreland [Tue, 12 Feb 2019 18:29:24 +0000 (18:29 +0000)]
Merge "Remove duplicate networkstack-aidl-interfaces-java"

5 years agoMerge "Merge "Remove ParcelFileDescriptor.aidl" am: c7c7fe6325 am: 21f4e04f3d am...
Android Build Merger (Role) [Tue, 12 Feb 2019 18:29:01 +0000 (18:29 +0000)]
Merge "Merge "Remove ParcelFileDescriptor.aidl" am: c7c7fe6325 am: 21f4e04f3d am: a1f96c0af8"

5 years agoMerge "Remove ParcelFileDescriptor.aidl" am: c7c7fe6325 am: 21f4e04f3d
Steven Moreland [Tue, 12 Feb 2019 18:28:18 +0000 (10:28 -0800)]
Merge "Remove ParcelFileDescriptor.aidl" am: c7c7fe6325 am: 21f4e04f3d
am: a1f96c0af8

Change-Id: I8ee7c8ae5e66ceb7a9f12e8def48ebdd1dedaa18

5 years agoMerge "Updated permission name according to API review"
TreeHugger Robot [Tue, 12 Feb 2019 18:27:47 +0000 (18:27 +0000)]
Merge "Updated permission name according to API review"

5 years agoMerge "Provide custom icon/title for OTA_UPDATE_UID"
Doris Ling [Tue, 12 Feb 2019 18:27:31 +0000 (18:27 +0000)]
Merge "Provide custom icon/title for OTA_UPDATE_UID"

5 years agoMerge "Update keyguard charging text to indicate wireless"
TreeHugger Robot [Tue, 12 Feb 2019 18:26:17 +0000 (18:26 +0000)]
Merge "Update keyguard charging text to indicate wireless"

5 years agoMerge "Correctly insert platformBuildVersionCode/Name"
TreeHugger Robot [Tue, 12 Feb 2019 18:17:19 +0000 (18:17 +0000)]
Merge "Correctly insert platformBuildVersionCode/Name"

5 years agoMerge "Add ambient-display CCT LUT to Display White Balance"
Daniel Solomon [Tue, 12 Feb 2019 18:16:28 +0000 (18:16 +0000)]
Merge "Add ambient-display CCT LUT to Display White Balance"

5 years agoMerge "Make SessionParams.setStaged SystemApi."
TreeHugger Robot [Tue, 12 Feb 2019 18:15:16 +0000 (18:15 +0000)]
Merge "Make SessionParams.setStaged SystemApi."

5 years agoMerge "Remove ParcelFileDescriptor.aidl" am: c7c7fe6325
Steven Moreland [Tue, 12 Feb 2019 18:11:54 +0000 (10:11 -0800)]
Merge "Remove ParcelFileDescriptor.aidl" am: c7c7fe6325
am: 21f4e04f3d

Change-Id: Ibd87a9a61ae70779baa90ced2eaab5526d4d815d

5 years agoMerge "Remove unused build variable framework_docs_args" am: bbd757d791 am: 662428ca71
Paul Duffin [Tue, 12 Feb 2019 18:08:15 +0000 (10:08 -0800)]
Merge "Remove unused build variable framework_docs_args" am: bbd757d791 am: 662428ca71
am: a03a4a69c6

Change-Id: I6901c48bc1a8aa7c6908d37802e05210acaab204

5 years agoMerge "Remove ParcelFileDescriptor.aidl"
Steven Moreland [Tue, 12 Feb 2019 18:02:23 +0000 (10:02 -0800)]
Merge "Remove ParcelFileDescriptor.aidl"
am: c7c7fe6325

Change-Id: I508f7591ad990d774b7866a831ac84f7a8fb6f77

5 years agoMerge "Remove unused build variable framework_docs_args" am: bbd757d791
Paul Duffin [Tue, 12 Feb 2019 17:57:29 +0000 (09:57 -0800)]
Merge "Remove unused build variable framework_docs_args" am: bbd757d791
am: 662428ca71

Change-Id: I2fb33849674d68de445ba46c3591b473fffb35cb

5 years agoMerge "Remove ParcelFileDescriptor.aidl"
Steven Moreland [Tue, 12 Feb 2019 17:51:35 +0000 (17:51 +0000)]
Merge "Remove ParcelFileDescriptor.aidl"

5 years agoMerge "Use local textclassifier in perf test"
TreeHugger Robot [Tue, 12 Feb 2019 17:48:31 +0000 (17:48 +0000)]
Merge "Use local textclassifier in perf test"

5 years agoMerge "Remove unused build variable framework_docs_args"
Paul Duffin [Tue, 12 Feb 2019 17:44:11 +0000 (09:44 -0800)]
Merge "Remove unused build variable framework_docs_args"
am: bbd757d791

Change-Id: I774c0fd64c120be6d2da5bc91356f6ecd652a197

5 years agoMerge "Updated GradientDrawable to expose public APIs to reduce reflection usages"
Nader Jawad [Tue, 12 Feb 2019 17:43:15 +0000 (17:43 +0000)]
Merge "Updated GradientDrawable to expose public APIs to reduce reflection usages"

5 years agoMerge "Remove CtsViewTestCases in TEST_MAPPING file"
Dan Shi [Tue, 12 Feb 2019 17:42:02 +0000 (17:42 +0000)]
Merge "Remove CtsViewTestCases in TEST_MAPPING file"

5 years agoMerge "Restrict reflection access to NumberPickers's mSelectionWheelPaint"
TreeHugger Robot [Tue, 12 Feb 2019 17:39:08 +0000 (17:39 +0000)]
Merge "Restrict reflection access to NumberPickers's mSelectionWheelPaint"

5 years agoRemove CtsViewTestCases in TEST_MAPPING file
Dan Shi [Tue, 12 Feb 2019 17:33:07 +0000 (09:33 -0800)]
Remove CtsViewTestCases in TEST_MAPPING file

The test config has an option to use package filter, which does not
work with another TEST_MAPPING which has the same test but use a
class filter.
startop/view_compiler/TEST_MAPPING

Bug: 124248633
Test: none
Change-Id: Id989d9df8983e7a08be38616e92e10f70fe4846a

5 years agoMerge "Remove unused build variable framework_docs_args"
Treehugger Robot [Tue, 12 Feb 2019 17:32:40 +0000 (17:32 +0000)]
Merge "Remove unused build variable framework_docs_args"

5 years agoMerge "Removed unused variables in cat service" am: 9718148ef7 am: 40b897fd7a
Jack Yu [Tue, 12 Feb 2019 17:26:30 +0000 (09:26 -0800)]
Merge "Removed unused variables in cat service" am: 9718148ef7 am: 40b897fd7a
am: b4428a9919

Change-Id: Id9d19239b6e5cd7c0a3c5344cefbdd2c2338df1f

5 years agoMake ENABLE_ROLLBACK_TIMEOUT configurable
Mohammad Samiul Islam [Fri, 11 Jan 2019 15:43:15 +0000 (15:43 +0000)]
Make ENABLE_ROLLBACK_TIMEOUT configurable

Bug: 112431924
Test: atest RollbackTest
Test: manual testing
      - disable the RollbackManagerService by commenting out
        BroadcastReceiver for ACTION_PACKAGE_ENABLE_ROLLBACK
      - configure timeout: adb shell device_config put rollback
        enable_rollback_timeout 60000
      - install apk: adb install --enable-rollback
        out/target/product/taimen/data/app/RollbackTest/
        RollbackTest.apk
      - search for "rollback timed out" in `adb logcat`

Change-Id: I61600cf376755d80c735ad954a80ca98de508bda

5 years agoUpdate GNSS listener maps when clients die abnormally.
Anil Admal [Wed, 6 Feb 2019 23:26:33 +0000 (15:26 -0800)]
Update GNSS listener maps when clients die abnormally.

In the LocationManagerService class, the GNSS measurements
and navigation message listener maps are not updated when
clients die abnormally without calling unregister callback.
This causes the maps to grow and contain invalid entries.

Also, the GNSS status listeners are not managed the same way
as the measurements/navigaton message listeners (b/120449926)
Fixes are somewhat related hence better to do in the same CL.

Fixes: 119584292
Fixes: 120481270
Fixes: 120449926
Test: Verified with GnssLogger using the repro steps mentioned
      in b/119584292 and b/120481270.

Change-Id: Ibf0283d7e8b2af09e19892d2e22d7f3650420033

5 years agoSplit blacklist from versioned blacklists.
Peiyong Lin [Thu, 7 Feb 2019 23:52:38 +0000 (15:52 -0800)]
Split blacklist from versioned blacklists.

Previously we use blacklist to get all blacklists, to maintain the consistency
between blacklist and whitelist, and to move blacklist processing to GPU
service, we added blacklists to store all blacklists, and now blacklist will
only represent one blacklist.

BUG: 120869311
Test: Build, flash and boot. Verified in master patch ag/6288554
Change-Id: Ifac875177ad959705c8f80672341c4cbee7bbc93
Exempt-From-Owner-Approval: Change in CoreSettingsObserver.java is too minor

5 years agoMerge "Removed unused variables in cat service" am: 9718148ef7
Jack Yu [Tue, 12 Feb 2019 17:14:57 +0000 (09:14 -0800)]
Merge "Removed unused variables in cat service" am: 9718148ef7
am: 40b897fd7a

Change-Id: Id32d50057c15903c57f8ec3f5fe2c151d7150439

5 years agoMerge "Removed unused variables in cat service"
Jack Yu [Tue, 12 Feb 2019 17:03:43 +0000 (09:03 -0800)]
Merge "Removed unused variables in cat service"
am: 9718148ef7

Change-Id: I4c2e1bd86a96a2ec73169353d4a9f2da0d0e9c01

5 years agoMerge "Removed unused variables in cat service"
Jack Yu [Tue, 12 Feb 2019 16:52:48 +0000 (16:52 +0000)]
Merge "Removed unused variables in cat service"

5 years agoMerge "Test to null-check NotificationEntryManager.performRemoveNotification()"
Gustav Sennton [Tue, 12 Feb 2019 16:44:36 +0000 (16:44 +0000)]
Merge "Test to null-check NotificationEntryManager.performRemoveNotification()"

5 years agoCorrectly insert platformBuildVersionCode/Name
Ryan Mitchell [Tue, 12 Feb 2019 16:06:26 +0000 (08:06 -0800)]
Correctly insert platformBuildVersionCode/Name

AAPT(1) encodes platformBuildVersionCode and
platformBuildVersionName into the manifest along with
compileSdkVersion and compileSdkVersionCodename. AAPT2 was extracting
the platform attributes from the app being created rather than the
framework.

This change inserts the correct platform attributes.

Bug: 124227171
Test: aapt2_tests
Change-Id: I4bc7986d25f065cecf01b9e988de4d37283ef7de

5 years agoMerge "metrics: num saved networks with mac randomization"
Oscar Shu [Tue, 12 Feb 2019 16:12:45 +0000 (16:12 +0000)]
Merge "metrics: num saved networks with mac randomization"

5 years agoRestrict usage of AccessibilityManager::mIsEnabled after P
Matvei Malkov [Fri, 8 Feb 2019 17:41:00 +0000 (17:41 +0000)]
Restrict usage of AccessibilityManager::mIsEnabled after P

Setting this field with reflection leaves AccessibilityManager in
improper state. Restrict access to this field in future apis

Bug: b/124052733
Test: accessibility tests passed
Change-Id: I776e1092ab33cf9660f593a22585695c17852e1e

5 years agoMerge "Add DeviceConfig permissions to manifest so that AppCompactorTest can run...
Stanislav Zholnin [Tue, 12 Feb 2019 15:27:36 +0000 (15:27 +0000)]
Merge "Add DeviceConfig permissions to manifest so that AppCompactorTest can run after permissions are enforced."

5 years agoA few missing pieces for logging in ExtServices
Tony Mak [Mon, 11 Feb 2019 20:38:26 +0000 (20:38 +0000)]
A few missing pieces for logging in ExtServices

1. Log TYPE_ACTIONS_GENERATED with a list of suggestion type.
2. Log the score of the clicked suggestion.
    a) For replies, the score is stored in session.
    b) For actions, the score is stored in the extras.
3. Suppress logging if suggestions are not going to be used by SysUI
4. Removed @NonNull annotation. SmartActionsHelpers are fully annotated,
   so we only need @Nullable annotation.
5. TextClassificationManager cannot be null, and getTextClassifier()
   won't return null either, so removed some null checks.

Test: atest SmartActionsHelperTest
Test: Manual. Send a message to myself, observer generated event is
      loggeed. Tap on it, seeing the score is logged.
Test: Manual, send a message with app generated replies, observe that
      only generated event is logged.

BUG: 120803809

Change-Id: I1c18decb237cbeb267f2a3db6ebb149232b786b4

5 years agoMerge "Make notifications from the default dialer and SMS app unblockable."
Julia Reynolds [Tue, 12 Feb 2019 14:59:03 +0000 (14:59 +0000)]
Merge "Make notifications from the default dialer and SMS app unblockable."

5 years agoMerge "Push the device owner packageName from DPMS to ATMS instead of calling DPM...
Michal Karpinski [Tue, 12 Feb 2019 14:55:04 +0000 (14:55 +0000)]
Merge "Push the device owner packageName from DPMS to ATMS instead of calling DPM.isDeviceOwnerApp()"

5 years agoRevert "[Magnifier-77] Show it on long press selection"
Mihai Popa [Tue, 12 Feb 2019 12:02:32 +0000 (12:02 +0000)]
Revert "[Magnifier-77] Show it on long press selection"

This reverts commit 88fbed49afaa657cca68b931c1d1aa03d33f1af3.

Reason for revert: We decided to punt this functionality to R, in order to keep consistency with WebView and Chrome. (b/119819194)

Change-Id: I625a8bca52687e3f15957f4dc4a0982c1ad28a2a

5 years agoUse rethrowFromSystemServer instead of RuntimeException
Charles Chen [Tue, 12 Feb 2019 12:58:12 +0000 (20:58 +0800)]
Use rethrowFromSystemServer instead of RuntimeException

Fixes: 123587667
Test: atest ActivityManagerMultiDisplayTests
Change-Id: Ie34462e28b3d14dbc058a115a3de046e6b42bcc1

5 years agoRemove unused build variable framework_docs_args
Paul Duffin [Tue, 12 Feb 2019 12:37:20 +0000 (12:37 +0000)]
Remove unused build variable framework_docs_args

Bug: 124218911
Test: make checkbuild
Change-Id: I39c73bc8bee3824161e91967ec187ce60e838b48

5 years agoPush the device owner packageName from DPMS to ATMS
Michal Karpinski [Tue, 12 Feb 2019 11:51:47 +0000 (11:51 +0000)]
Push the device owner packageName from DPMS to ATMS
instead of calling DPM.isDeviceOwnerApp()

Due to lock ordering AM/ATM cannot call DPM directly.

Bug: 123950811
Test: atest WmTests:ActivityStarterTests
Test: atest FrameworksServicesTests:DevicePolicyManagerTest
Test: manual with TestDPC (set DO, reboot device, etc.)
Change-Id: I14c6f48fe07243fe324ea41e9403c37aaceea304

5 years agoSharesheet - file preview support
Matt Pietal [Tue, 5 Feb 2019 13:07:07 +0000 (08:07 -0500)]
Sharesheet - file preview support

Support sharing 1 or more non-image type files, with potential
for system generated thumbnail image

Bug: 120419296
Test: atest ChooserActivityTest

Change-Id: I17c44435bb0444035e2ec7675cbc367b75cc3a8e

5 years agoMerge "Compatible behavior for non-resizable activity (1/N)"
TreeHugger Robot [Tue, 12 Feb 2019 12:24:48 +0000 (12:24 +0000)]
Merge "Compatible behavior for non-resizable activity (1/N)"

5 years agoMerge "Compatible behavior for non-resizable activity (2/N)"
TreeHugger Robot [Tue, 12 Feb 2019 12:23:56 +0000 (12:23 +0000)]
Merge "Compatible behavior for non-resizable activity (2/N)"

5 years agoMerge "Support touch event on letterbox surface"
TreeHugger Robot [Tue, 12 Feb 2019 12:23:45 +0000 (12:23 +0000)]
Merge "Support touch event on letterbox surface"

5 years agoMerge "Marks the bucket as invalid when it reaches the guard rail limit."
Olivier Gaillard [Tue, 12 Feb 2019 11:56:26 +0000 (11:56 +0000)]
Merge "Marks the bucket as invalid when it reaches the guard rail limit."

5 years agoMerge "Revert "Revert "Add view inflation device config property"""
Mathieu Chartier [Tue, 12 Feb 2019 11:11:33 +0000 (11:11 +0000)]
Merge "Revert "Revert "Add view inflation device config property"""

5 years agoMerge "Renames ChunkListing.java to ChunkListingMap.java."
TreeHugger Robot [Tue, 12 Feb 2019 10:57:42 +0000 (10:57 +0000)]
Merge "Renames ChunkListing.java to ChunkListingMap.java."

5 years agoMerge "Fix flaky AppWindowTokenTests"
TreeHugger Robot [Tue, 12 Feb 2019 10:39:33 +0000 (10:39 +0000)]
Merge "Fix flaky AppWindowTokenTests"

5 years agoAdd DeviceConfig permissions to manifest so that AppCompactorTest
Stanislav Zholnin [Fri, 8 Feb 2019 17:17:43 +0000 (17:17 +0000)]
Add DeviceConfig permissions to manifest so that AppCompactorTest
can run after permissions are enforced.

Test: atest AppCompactorTest
Change-Id: Ie0994d3fc539f1305d7c8c153d0116d605ae03f6

5 years agoLog user IDs for both IME and IME-client in StartInputHistory
Yohei Yukawa [Tue, 12 Feb 2019 10:01:10 +0000 (02:01 -0800)]
Log user IDs for both IME and IME-client in StartInputHistory

This is a follow up CL to my recent CL [1], which added an @hide API
EditorInfo#targetInputMethodUser for privileged components such as
System UI to be able to override the expected IME user, based on their
INTERACT_ACROSS_USERS_FULL permission.  This is critical for
per-profile IME mode and direct-reply to coexist.

To make it easier to diagnose this new scenario, this CL updates our
retrospective debugging mechanism called StartInputHistory [2].  With
this CL, InputMethodManagerService starts keeping track of both IME
user ID and IME client user ID for each StartInput so that we can see
them later into the StartInputHistory section of the bugreport.

For Direct-Reply scenario for instance, we would see a log like this:

  ... imeUserId=10 ... targetUserId=0 ...

There should be no user-visible behavior change.

 [1]: Ia7ea944438d69669ccdf9111b34ba400e786a602
      0f5eade4a492fc91130da1aedcad0999932f4137
 [2]: Icb29c4ef0703553ead8654d3255a554de6d1a9b4
      357b2f60e147d18af9c8399b346a9e63de1baaf3

Bug: 35079353
Bug: 120744418
Test: Manually verified as follows.
  1. Build aosp_taimen-userdebug and flash it.
  2. adb shell pm create-user test_user
  3. adb shell am switch-user 10
  4. make -j EditTextVariations
  5. adb install -r \
       $ANDROID_TARGET_OUT_TESTCASES/EditTextVariations/EditTextVariations.apk
  6. adb shell am start \
       -n com.android.inputmethod.tools.edittextvariations/.EditTextVariations
  7. Tap the menu icon on the EditTextVariations then click "Direct Reply"
  8. Open notification shade.
  9. Tap reply icon on "Message from UserHandle{10}".
 10. Make sure that AOSP Keyboard is shown.
 11. adb shell dumpsys input_method
 12. Make sure that you can see both "imeUserId=10" and
     "targetUserId=0" in the last StartInputHistory.
Change-Id: Ica21e2f4cb41c7a5f4195f08f05220e2f65c1bf1