Commit Graph

640958 Commits

Author SHA1 Message Date
Treehugger Robot
997d0aa82e Merge "Add additional biometric OWNERs" am: 9674d6d6d6 am: 1176cad7f2 am: 3f0c3db187
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1691211

Change-Id: I6d429cf95cdaec8ead1607154efacc972177a03c
2021-04-30 01:02:04 +00:00
Alexander Dorokhine
45bb21c98d Update Framework from Jetpack.
Included changes:
* 4c1b251: Sync AppSearch with google3 update ag/14342999 (8f8b43)
* cdf1913: Add a GenericDocument#toBuilder API.
* 64f80f3: Improve snippeting and matching per API feedback.
* 23dd35c: Move AppSearchEmail out of the prod tree into the test utils.

Bug: 171882200
Bug: 186520196
Bug: 186717514
Test: Presubmit
Change-Id: I9d8e1fb87e6e74c57a38f3a27cdd04a1a3ccf90b
2021-04-29 18:00:32 -07:00
jorgegil@google.com
b2f5a2f985 Synchronize PIP menu fade out with task dismiss
This CL addreses two issues:
1. PipMenuView.dismissPip was previously fading out the PIP
menu, waiting for that to complete, then notifying the task
organizer to remove and fade out the window, and then it would
fade the menu out again even though it was already hidden.
This resulted in a quick flash because the menu and the window
are not faded out in sync.
2. The menu fade out animation had a fixed duration of 150ms,
meaning that even if it starting fading out at the same time
as the PIP window, it would not finish at the same time because
the PIP exit anim duration is longer.

To fix both of them, the X button now hides the menu and starts
dismissing the task at the same time (once), and the dismiss
animation duration is equal to the task fade out animation
duration.

Previous: http://recall/-/e8RgaQ0dFlwFuh0c7GRpyy/g7XMbvBGMyAOKZMuFlYpW0
With CL: http://recall/-/e8RgaQ0dFlwFuh0c7GRpyy/g7XMbvBGMyAOKZMuFlYpW0

Bug: 182727923
Test: Tap X to dismiss PIP, no flashes seen
Change-Id: If9bdda8d0fd8b819c00ec4a592d1b2441d642d00
2021-04-29 17:56:02 -07:00
Andy Hung
bd3a68b6f1 Audio: Add ENCODING_DTS_UHD
See ETSI TS 103 491 V1.2.1 (2019-05)
DTS-UHD Audio Format; Delivery of Channels,
Objects and Ambisonic Sound Fields

Test: atest AudioFormatTest
Bug: 184538197
Merged-In: I740a9ba041ad444ead5513fb3b632a78d391ab1c
Change-Id: I740a9ba041ad444ead5513fb3b632a78d391ab1c
2021-04-29 17:55:34 -07:00
Heemin Seog
931952ec3d Change generic container ids to be more specific
CarSystemUI has an overlayable.xml for OEMs to overlay. However there
are name collisions for R.id.container for some library we depend on.

Bug: 186786197
Test: manual
Change-Id: Ibb7c2d36e37a039baa7bcddc68b4633ba05bf013
2021-04-29 17:51:54 -07:00
TreeHugger Robot
45997792e1 Merge "Fix 2 LaunchParamsPersister issues" into sc-dev 2021-04-30 00:46:52 +00:00
Treehugger Robot
3f0c3db187 Merge "Add additional biometric OWNERs" am: 9674d6d6d6 am: 1176cad7f2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1691211

Change-Id: Ie6d4938961f7725cc141dd1a43f69a906b913f24
2021-04-30 00:35:10 +00:00
Matt Pietal
c3fd47a6f0 Merge "Wallet affordance - Fix taps" into sc-dev 2021-04-30 00:32:36 +00:00
Matt Pietal
2aecd8d73d Merge "AOD/LS - Fix 24 hour clock" into sc-dev 2021-04-30 00:32:12 +00:00
Beth Thibodeau
c077ca0ccd Merge "Fix timing issue for flaky tests" into sc-dev 2021-04-30 00:31:24 +00:00
Nate Myren
4399632290 Merge "Add RECORD_INCOMING_PHONE_AUDIO app op" into sc-dev 2021-04-30 00:30:20 +00:00
TreeHugger Robot
ed17f3e2c7 Merge "Change clearEvents() to clear existing events rather than setting mEvents to null to remove possible NPE." into sc-dev 2021-04-30 00:29:02 +00:00
Treehugger Robot
1176cad7f2 Merge "Add additional biometric OWNERs" am: 9674d6d6d6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1691211

Change-Id: Ic0ec9c3c12571b3405c1b7668528f5c50d083896
2021-04-30 00:13:30 +00:00
Brad Ebinger
984d20822b Merge "Bound Telecom logging recursion" into sc-dev 2021-04-30 00:12:15 +00:00
Amy Zhang
75d890a7f3 Merge "Get media share memory handle only when the filter is not a passthrough media filter" into sc-dev 2021-04-30 00:02:05 +00:00
Jeff DeCew
64c85ac6f5 Fix VIP conversations alerting incorrectly.
Transfer alerts (HUN/pulse) from the group to priority conversations which are isolated from that group.

Note: In cases where the alert is transferred from a group with 2+ children to the priority, there can be very small flickering because the group is inflated synchronously, so it starts displaying before the message is received to transfer the alert to the priority conversation, which then needs to be inflated asynchronously.

Fixes: 185680162
Test: Using WA, receive messages from 2+ people, where some but not all of those conversations have been set to Priority.  Test different numbers of people in each category (single vs. multile) and ensure that whenever an alert displays it shows the message that was just received.
Change-Id: I3c51cc20fe9ade4e24df2cc7d6784471be3ed509
2021-04-29 20:01:38 -04:00
Zhen Zhang
9ac468fc35 Clear calling identity before calling into AMS
Clear calling identity before calling into AMS in
unhibernatePackageForUser() to make sure we are calling as system user
and avoid security exception

Bug: 186701008
Test: built and flashed to wembley device, then run adb shell cmd
app_hibernation set-state PACKAGE_NAME false. No exceptions found.
Test: atest AppHibernationServiceTest

Change-Id: Icf0c72b85f4c611c84129a6fb9425f4344b4681b
2021-04-29 16:58:56 -07:00
TreeHugger Robot
93203cb1d3 Merge "Update TODO docs in TunerClient on resource id/handle mapping" into sc-dev 2021-04-29 23:57:47 +00:00
TreeHugger Robot
bfc6048a9c Merge "[incremental] don't uninstall on unhealthy" into sc-dev 2021-04-29 23:54:24 +00:00
Treehugger Robot
9674d6d6d6 Merge "Add additional biometric OWNERs" 2021-04-29 23:52:46 +00:00
Lajos Molnar
d8ae2f19a1 build: allow MEDIA_PERFORMANCE_CLASS for R
This is now defined for R and up.

Bug: 186800737
Change-Id: I32774c7973f04cdf5271a285853b15195205c704
2021-04-29 16:39:01 -07:00
Automerger Merge Worker
3a1e0aa142 Merge "[automerger skipped] Merge "LockSettingsService: migrate to its own keystore namespace" am: b8e5426266 am: fc7a26cd21 am: 8f2e634505 -s ours" into sc-dev 2021-04-29 23:37:49 +00:00
Treehugger Robot
e25461b6ef [automerger skipped] Merge "LockSettingsService: migrate to its own keystore namespace" am: b8e5426266 am: fc7a26cd21 am: 8f2e634505 -s ours
am skip reason: Merged-In Iac339e64812232875afa9dc6109b848b50b0ef2f with SHA-1 f53bf832bd is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1675900

Change-Id: I8956c359f9f1cabd6375df5b143ddb71bf2523c3
2021-04-29 23:37:38 +00:00
TreeHugger Robot
50e1340661 Merge "Part of compatibility getRaw() support" into sc-dev 2021-04-29 23:37:34 +00:00
Kelvin Zhang
2e9e91b5bb Merge "Add API to ApexManager for compressed APEX" am: 4890c80904 am: bce6d733a8 am: 9934485847
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1675675

Change-Id: Ief56104fae0b743e9e8a6e8ad169f97e1127c991
2021-04-29 23:36:58 +00:00
cecilia
3f2e85a9c4 Update Smartspace media recommendation card appearance to match the latest mock.
A contextual card header is added, and also the expanded version of recommendation card.

Screenshots:
[Compact]
- http://screen/U3SPZQHPYLyoU4t
- http://screen/8ccMqUqUmBQUvmd
[Expanded]
- http://screen/9ASnXWGHWoyph2B
- http://screen/A6hzbLDjpfsjVkA

Demo: https://drive.google.com/file/d/1iRZBhC81q-HflRQDUgzMbNeBagkAo9aS/view?usp=sharing

Fixes: 186165627
Test: Studio builds
Change-Id: Ib7f65bdcbe7ede1901c7969d04f3efbbc7c2461d
2021-04-29 19:36:52 -04:00
Hui Yu
a6b92260d3 Do not allow FGS start when temp allowlist reasonCode is REASON_PUSH_MESSAGING_OVER_QUOTA
If temp allowlist reasonCode is REASON_PUSH_MESSAGING_OVER_QUOTA, check
DeviceConfig key "push_messaging_over_quota_behavior" to decide if
temp allowlist and FGS start are allowed. Three options:
1. -1, temp allowlist not allowed, FGS start not allowed.
2. 0, temp allowlist allowed, FGS start allowed.
3. 1, temp allowlist allowed, FGS start not allowed. This is default.

The device config command to change the behavior:
adb shell device_config set activity_manager push_messaging_over_quota_behavior <-1|0|1>

If temp allowlist reasonCode is REASON_DENIED, do not allow temp allowlist
at all.

Also, in DeviceIdleController.addPowerSaveTempAllowlistAppInternal(),
there used to be a check if the callingUid is on the mPowerSaveWhitelistSystemAppIds list,
this is unnecessary because upstream callers already checked if callingUid has
 permission CHANGE_DEVICE_IDLE_TEMP_WHITELIST, and this permission is a privileged permission,
so removing the check of mPowerSaveWhitelistSystemAppIds should be safe.

Bug: 182796372
Test: atest cts/tests/app/src/android/app/cts/ActivityManagerFgsBgStartTest.java#testPushMessagingOverQuota
Test: atest cts/tests/app/src/android/app/cts/ActivityManagerFgsBgStartTest.java#testTempAllowListReasonCode

Change-Id: Id34b1c26c819dc4fe07838eb2e3a8f0138cbcf8f
2021-04-29 16:27:41 -07:00
Nate Myren
c05d205e55 Merge "TEMP: note "RECORD_AUDIO_HOTWORD" in SoundTriggerMiddleware" into sc-dev 2021-04-29 23:18:48 +00:00
Abhijoy Saha
b4cea78181 Merge "Add phone call check to app opp usage callback." into sc-dev 2021-04-29 23:15:54 +00:00
Kohsuke Yatoh
7b7f417d92 Use AtomicFile in UpdatableFontDir.
Also add more precondition checks.
Bug: 186785560
Test: atest FrameworksServicesTests:UpdatableFontDirTest
Test: atest UpdatableSystemFontTest

Change-Id: I4edaf1d2f6dcc9de1f0b1adc7db4a83a76d5f2a2
2021-04-29 16:07:45 -07:00
George Mount
ee5ed9dfaa Merge "Fling while overscrolled: ScrollView/HorizontalScrollView" into sc-dev 2021-04-29 23:05:32 +00:00
Treehugger Robot
8f2e634505 Merge "LockSettingsService: migrate to its own keystore namespace" am: b8e5426266 am: fc7a26cd21
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1675900

Change-Id: I987c4a882529bf55ba9697889347b6a50b583942
2021-04-29 23:03:32 +00:00
Kelvin Zhang
9934485847 Merge "Add API to ApexManager for compressed APEX" am: 4890c80904 am: bce6d733a8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1675675

Change-Id: Ic5a2ea0dcecfa4e2e2c470457c5ca3b44c65c23b
2021-04-29 23:02:32 +00:00
TreeHugger Robot
80bd76c77a Merge "Handle STOPPED to PAUSED Usage events" into sc-dev 2021-04-29 23:02:08 +00:00
Mady Mellor
8e29f94a89 Merge "Fix text color for bubble user education screens" into sc-dev 2021-04-29 23:00:20 +00:00
Ben Lin
7fc1313d39 Merge "PiP: Take inset into consideration when calculating stash offset." into sc-dev 2021-04-29 22:51:26 +00:00
Treehugger Robot
fc7a26cd21 Merge "LockSettingsService: migrate to its own keystore namespace" am: b8e5426266
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1675900

Change-Id: Ibc8bdbcf832b90e3a5628829a6206374c9504374
2021-04-29 22:43:19 +00:00
Taran Singh
2fef6def9a Merge "Add log for showSoftInput called from Insets API" into sc-dev 2021-04-29 22:41:26 +00:00
Kelvin Zhang
bce6d733a8 Merge "Add API to ApexManager for compressed APEX" am: 4890c80904
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1675675

Change-Id: If4e1adb75ec311a7cddd1db28f76cf87da779529
2021-04-29 22:37:33 +00:00
Treehugger Robot
b8e5426266 Merge "LockSettingsService: migrate to its own keystore namespace" 2021-04-29 22:35:52 +00:00
Sean Stout
136f17dbc2 Fix "Screen on" time reporting
this CL fixes issues with "screen on" time reporting as there were
incidences of this time taking much longer than in reality.

Bug: 184765461
Test: Manual - check power on time reporting
Change-Id: If716e6842b8a214b5af0f66ba41f7f2b70fbc51b
2021-04-29 15:31:23 -07:00
Nathan Harold
ee37ef15d4 Fix Typo in CellIdentityNr
s/fomrat/format/

Bug: 176222981
Test: compilation (docstring only change)
Change-Id: I9c488d468f3e9f207922b13c16dccbaa96c0df7f
2021-04-29 15:30:54 -07:00
Ilya Matyukhin
c091528fcc Fix onClientFinished for generate and revoke challenge
Bug: 186765400
Test: on flame
Test: on sunfish
Test: atest CtsBiometricsTestCases
Change-Id: Ic64f6c5238a7e2e83ebe5f78abd63cfd61e7d27f
2021-04-29 15:27:20 -07:00
Mady Mellor
8e5f4733ee Restrict the width of bubble expanded view on large screens
* Width is restricted via padding applied to the view when the device
  is considered large screen
* Adjusted animation code so bubbles slide in from edges when showing
  vertically
* Overflow uses max height available when on a large screen
* Fixed a bug where overflow height wasn't being updated correctly
  since it's no longer using an activity
* Fixed a bug where when the view was expanded & you rotated its
  position could be off

Test: manual - expand bubble on large screen from left / right edges
               in landscape & portrait
            => bubbles should be anchored to edge they are opened from
               & positioned vertically along the edge
             - expand bubble on phone in portrait
            => bubbles should be anchored to the top edge &
               horizontally
             - expand bubble on phone in landscape, check overflow
            => bubbles should be anchored to the edge they are opened
               from & positioned vertically along the edge, the
               overflow should have a restricted width
Bug: 175211639

Change-Id: I7c3f3024260a08ebdf4c6e7c7724e51fbc480f61
2021-04-29 15:24:49 -07:00
Jeff Sharkey
9a9fa815f1 Merge "Ensure privileged APIs require runtime permission." into sc-dev 2021-04-29 22:22:25 +00:00
Kelvin Zhang
4890c80904 Merge "Add API to ApexManager for compressed APEX" 2021-04-29 22:16:08 +00:00
TreeHugger Robot
7cdf712306 Merge "Skip FontFamily creation if the font files don't exists." into sc-dev 2021-04-29 22:08:35 +00:00
Kevin Chyn
bda79da64b Add additional biometric OWNERs
Change-Id: I024252070bd806d50d54377190fdc5cd5b4445e1
2021-04-29 15:07:35 -07:00
Jeff Sharkey
093e12ef1d Grant "Nearby devices" to Bluetooth MIDI service.
MidiManager.BLUETOOTH_MIDI_SERVICE_PACKAGE is a built-in package
which mediates Bluetooth MIDI connections.  It functions similar to
CompanionDeviceManager and has no UI to request runtime permissions,
since it's proxying operations on behalf of other apps which have
already requested the permission.

Bug: 184920451
Test: manual
Change-Id: Ifd92ba0c701bb3d2aa927cac7c61cb435437444a
2021-04-29 16:07:29 -06:00
Sean Stout
8b9809f10d Merge "Fix sandman crash" into sc-dev 2021-04-29 22:04:20 +00:00