Commit Graph

651112 Commits

Author SHA1 Message Date
Andrii Kulian
f74b9ddc8a Merge "Delete dependent TaskFragments in the same transaction" into sc-v2-dev 2021-08-06 21:01:39 +00:00
Galia Peycheva
2635342df3 Merge "Disable blurs during critical thermal state" into sc-dev am: 12740585ed
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15472902

Change-Id: I96ba30e98b38adc21398e2dc0cd62ccc7835c7b5
2021-08-06 20:51:04 +00:00
Galia Peycheva
12740585ed Merge "Disable blurs during critical thermal state" into sc-dev 2021-08-06 20:39:31 +00:00
Song Hu
377d2e66c7 Merge "Fix sharesheet timeout by sending CreatePredictionSession request immediately instead of pushing it to the main thread Looper queue. CreatePredictionSession request is latency-sensitive.Its sendImmediately flag was flipped to be false accidentally in I937cdaa6081d2b85d27ee0192f6af7f197b8e102." into sc-dev am: 5fac6c75bd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15475656

Change-Id: Iacc1e3e38930a28db45dfb99115d855ed556f0da
2021-08-06 20:17:05 +00:00
Song Hu
5fac6c75bd Merge "Fix sharesheet timeout by sending CreatePredictionSession request immediately instead of pushing it to the main thread Looper queue. CreatePredictionSession request is latency-sensitive.Its sendImmediately flag was flipped to be false accidentally in I937cdaa6081d2b85d27ee0192f6af7f197b8e102." into sc-dev 2021-08-06 19:49:02 +00:00
Ahaan Ugale
6c1b160aa4 Merge "Make Trusted Hotword session permissions follow previous behavior" into sc-dev am: e81ea6bebd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15474471

Change-Id: I356f3384b26713de01e4b9948ccb409a81e287c9
2021-08-06 19:36:27 +00:00
Ahaan Ugale
e81ea6bebd Merge "Make Trusted Hotword session permissions follow previous behavior" into sc-dev 2021-08-06 19:21:30 +00:00
Peter Kalauskas
cd01ffe5b6 Merge "Only auto create guests when device is provisioned" into sc-dev am: 683ecb0acd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15474610

Change-Id: I967cc221fc8b9bd303195c3a533149341cba97d7
2021-08-06 18:59:30 +00:00
Peter Kalauskas
683ecb0acd Merge "Only auto create guests when device is provisioned" into sc-dev 2021-08-06 18:40:14 +00:00
Emilian Peev
04f853bbd6 Merge "Camera: Release extension resources after closing handler thread" into sc-dev am: aae08711e8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15463697

Change-Id: I3344037ee1f9460570fea4f5f1f039221b8d9fbc
2021-08-06 18:35:17 +00:00
Emilian Peev
aae08711e8 Merge "Camera: Release extension resources after closing handler thread" into sc-dev 2021-08-06 18:18:41 +00:00
Josh Tsuji
01681509df Merge "Fix KeyguardTests#testScreenOffCausesSingleStopAod" into sc-dev am: c4c7e0b47e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15476108

Change-Id: If5f1edc07b6f8b5db0033ba0ad3df84d323889e5
2021-08-06 18:09:36 +00:00
Josh Tsuji
c4c7e0b47e Merge "Fix KeyguardTests#testScreenOffCausesSingleStopAod" into sc-dev 2021-08-06 17:55:27 +00:00
Dave Mankoff
64eea77e08 Merge "Add flag listeners." into sc-v2-dev 2021-08-06 16:52:59 +00:00
Garfield Tan
7e23f324dd Merge "Add a minimal FreeformTaskListener" into sc-v2-dev 2021-08-06 16:29:14 +00:00
Garfield Tan
9f2c659f1a Add a minimal FreeformTaskListener
WM team starts to remove functionalities that were made for unmanaged
tasks so take this step 1 to avoid regressions from this type of
changes.

Also remove UNSUPPORTED_WINDOWING_MODES because ShellTaskOrganizer can
handle all windowing modes now.

Bug: 192310211
Bug: 165794880
Bug: 165794636
Test: Maximize, drag and resize freeform windows.
Change-Id: If130b449fe6cf37c39f0e1424e4f23cdb2d33dd5
2021-08-06 16:25:14 +00:00
Beverly Tai
fe1e9e09bf Merge "Update lock icon and udfps padding" into sc-dev am: 2486a5f188
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15446128

Change-Id: I2b8853310fb9d18aa32a8cd1c644d314f2ca0533
2021-08-06 15:15:44 +00:00
Beverly Tai
2486a5f188 Merge "Update lock icon and udfps padding" into sc-dev 2021-08-06 15:04:47 +00:00
Ming-Shin Lu
ba838a19e8 Merge "Revert "Fix flickering when switched to the task without IME shown"" into sc-v2-dev 2021-08-06 13:52:46 +00:00
Charles Chen
57f0866d49 Merge "Fix IOOBE in forAllLeafTasksAndLeafTaskFragments" into sc-v2-dev 2021-08-06 13:21:04 +00:00
Josh Tsuji
b6e25d2b81 Fix KeyguardTests#testScreenOffCausesSingleStopAod
When the devices goes into doze mode to display AOD contents, the screen
turns off before displaying AOD contents on some devices (i.e.
config_displayBlanksAfterDoze=true).

On such devices, SysUI calls IActivityTaskManager#setLockScreenShown
first before start dozing, otherwise ATMS/WM wakes up the activities
when dozing starts.

Bug: 193479273
Test: manual
  1. adb root && adb shell setprop debug.force_blanking 1 && adb reboot
  2. atest KeyguardTests
Change-Id: I64cecd8e866f1debdcd7429ca4987cd70eceb45c
2021-08-06 13:37:52 +02:00
Galia Peycheva
150831e55f Disable blurs during critical thermal state
Bug: 195642101
Test: adb shell cmd thermalservice override-status 0/1/2/3/4/5/6
Change-Id: I693e2f49accd4cd4cdd1fbc97b41320bf6334aac
2021-08-06 13:19:56 +02:00
Alex Florescu
c26e08020c Merge "Fix test failure" into sc-v2-dev 2021-08-06 10:29:14 +00:00
Alex Florescu
9ff10b86c9 Merge "Fix test when running on large screen devices" into sc-v2-dev 2021-08-06 10:27:43 +00:00
Charles Chen
3cce8dd16f Fix IOOBE in forAllLeafTasksAndLeafTaskFragments
fixes: 195729546
Test: manual - reproducible step in b/195729546#comment1
Change-Id: I7a75a45518ad9633c4c314d2509ccedc30a062d8
2021-08-06 18:01:57 +08:00
Jason Chang
b7edaae151 Merge "Fix one-handed mode tap app to exit doesn't work in factory boot" into sc-dev am: 20c38783c2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15472778

Change-Id: I2bf121d0ce528eca6960d4bf3d9181fb76ba73bb
2021-08-06 05:48:23 +00:00
Jason Chang
20c38783c2 Merge "Fix one-handed mode tap app to exit doesn't work in factory boot" into sc-dev 2021-08-06 05:36:49 +00:00
Kevin Chyn
c7b6619d05 Merge "Fix KeyguardUpdateMonitor auth lifecycle issues" into sc-dev am: 755ee24f4c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15474434

Change-Id: I76e9fa2971f214bff6ade49c99bc3d89c3745e09
2021-08-06 04:53:08 +00:00
Kevin Chyn
755ee24f4c Merge "Fix KeyguardUpdateMonitor auth lifecycle issues" into sc-dev 2021-08-06 04:38:05 +00:00
Ming-Shin Lu
7f2a6b011a Revert "Fix flickering when switched to the task without IME shown"
This reverts commit 7d9eb2b6f9.

Reason for revert: Regression happens in "com.instagram.android" that IME will cover the comment fields

Bug: 195385541
Bug: 192337037
Bug: 194746204
Change-Id: Id33459ab4f53f8bec2027759302dafc1a4f02fae
(cherry picked from commit 9eca14b72b)
2021-08-06 03:57:38 +00:00
Ahaan Ugale
3873a09959 Make Trusted Hotword session permissions follow previous behavior
A prior change to the permissions flow for Trusted Hotword
(I80dabaf6ae0e781028dde16ead3321fbff319542) made the system enforce
the required permissions on the APIs the conventional way - by throwing
a SecurityException. But the existing behavior was to silence these
exceptions and instead return error results. This change brings back
the old behavior which exists in the SoundTrigger layer.

Also removes permissions checks for a couple of APIs to again be
consistent with the old behavior (and the current behavior in the
SoundTrigger layer).

Fix: 193116894
Test: manual - remove permission and reboot / remove permission after
 boot, stop/start reco
Test: atest HotwordDetectionServiceBasicTest
Change-Id: I56391260fd4375a04233eb3261bacec8696bda99
2021-08-06 02:19:30 +00:00
Peter Kalauskas
613e8e1f5d Only auto create guests when device is provisioned
Test: atest com.android.cts.devicepolicy.DeviceOwnerTest
Test: atest com.android.cts.devicepolicy.MixedDeviceOwnerTest
Fixes: 195704842
Change-Id: Ibba75bee2640113b7700de54f4a2f6280ffaeedc
2021-08-05 18:55:16 -07:00
Jason Chang
413ab9d586 Fix one-handed mode tap app to exit doesn't work in factory boot
Root cause:
1. Design change "tap app to exit" -> always being true, and settings
remove this option.
2. Tuning performance, due to 1, no longer listens to the key change,
so we remove the listener.

Solution:
Change getSettingsTapsAppToExit() API to return default TRUE.

Bug: 195629000
Test: Build ROM and factory-reset to test
Test: atest WMShellUnitTests
Change-Id: Id3c265258ed28f7e0aa54505c339671885d28fa7
2021-08-06 01:53:39 +00:00
Louis Chang
c3a85ce0c5 Merge "Supporting independent back nav while task embedded" into sc-v2-dev 2021-08-06 01:42:47 +00:00
Kevin Chyn
a04d57070d Fix KeyguardUpdateMonitor auth lifecycle issues
This is split into two high-level issues which together cause
strange auth behavior on keyguard:

============= Issue 1 =============
For fingerprint, auth ends when:
1) Success
2) Error

For face, auth ends when:
1) Success
2) Reject
3) Error

This change ensures that cancellation signal is set to null upon
any of these conditions, so that there is never an opportunity of
using a stale CancellationSignal.

Furthermore, do not invoke stale cancellation signal when
starting authentication. In the off chance the bug is re-introduced,
or if some other situation can cause a cancellation signal to be
non-null when keyguard requests auth again (e.g. bad state management
in keyguard), do NOT invoke the stale cancellation signal's cancel
method. The framework already handles this case gracefully and will
automatically cancel the previous operation.

============= Issue 2 =============

We have a runnable that's scheduled to run after X ms if
ERROR_CANCELED is not received after cancel() is requested. However,
there are various bugs around that logic:

1) shared runnable for both fp and face, leading to unexpected
   and incorrect state changes (e.g. face does not respond to cancel
   within X ms, both fp and face will go to STATE_STOPPED, even though
   cancel() was never requested of fp
2) Always remove and re-add runnable when requesting cancel() though
   it should never occur that cancel() is requested in close temporal
   proximity, it never hurts to have the correct timeout before
   resetting the state.

Bug: 195365422
Bug: 193477749
Test: manual
Change-Id: I3702f41c8af7e870798f19c43012a26281a6632a
2021-08-05 18:04:35 -07:00
Evan Rosky
9751bc2fec Merge "Differentiate seamless rotations in shell transitions" into sc-v2-dev 2021-08-06 00:15:30 +00:00
Song Hu
468e4332eb Fix sharesheet timeout by sending CreatePredictionSession request immediately instead of pushing it to the main thread Looper queue. CreatePredictionSession request is latency-sensitive.Its sendImmediately flag was flipped to be false accidentally in I937cdaa6081d2b85d27ee0192f6af7f197b8e102.
Bug: 195411307
Test: atest CtsSharesheetTestCases:android.sharesheet.cts.CtsSharesheetDeviceTest
Test: manually test on the device
Change-Id: If7d3f7acadcbed3340616b0ab239c776dedf7af7
(cherry picked from commit 13b9f947e0)
2021-08-06 00:04:20 +00:00
Lucas Dupin
8aea18699a Merge "Do not run background animation without a Looper" into sc-dev am: c359d54b49
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15474611

Change-Id: I81c6ea0e6f53592654558208c65fae823ede1229
2021-08-05 23:05:50 +00:00
Lucas Dupin
c359d54b49 Merge "Do not run background animation without a Looper" into sc-dev 2021-08-05 22:44:56 +00:00
Beverly
83dde708cc Update lock icon and udfps padding
By default, use 48px. This value can be
overridden by overlays.

Update stroke width of lock and udfps icons from 2.5 => 2
Update stroke width of aod udfps icon from 1 => 1.3

Test: manual
Change-Id: I7c3883c9acac68acc02684a3115e9e6512fe9a1f
Bug: 195564809
2021-08-05 17:39:01 -04:00
Winson Chung
97c59ee57d Merge "Make sure recents animation input consumer is above the top task" into sc-v2-dev 2021-08-05 20:38:09 +00:00
Josh Tsuji
27146852af Merge "Don't let ringer drawer icons be clicked while the drawer is animating closed." into sc-dev am: 286530b685
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15474817

Change-Id: I3c505ef4cc2542be67397bfc11ca592beb94a94e
2021-08-05 19:30:03 +00:00
Ahaan Ugale
1850753280 Merge "Send the HotwordDetectionService UID to AudioPolicy" into sc-dev am: 298c5093dc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15465671

Change-Id: I647647a218ee2ae43b1d2c7740e5a22da11087ab
2021-08-05 19:29:48 +00:00
Neha Jain
8b067c5503 Merge "Paired BT devices are not displaying in volume control panel" into sc-dev am: 060a40095d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15460611

Change-Id: I9bdf5127376319fd94449cb79bc387535d32d9af
2021-08-05 19:24:28 +00:00
Josh Tsuji
286530b685 Merge "Don't let ringer drawer icons be clicked while the drawer is animating closed." into sc-dev 2021-08-05 19:19:52 +00:00
Ahaan Ugale
298c5093dc Merge "Send the HotwordDetectionService UID to AudioPolicy" into sc-dev 2021-08-05 19:16:00 +00:00
Neha Jain
060a40095d Merge "Paired BT devices are not displaying in volume control panel" into sc-dev 2021-08-05 19:05:56 +00:00
Dave Mankoff
07ba23a580 Add flag listeners.
Allows code to subscribe to changes in specific flag values.

Bug: 194781951
Test: atest SystemUITests
Change-Id: Icae5c80cb32f0dd425e53297aa28e555f34a07a5
2021-08-05 15:00:22 -04:00
Patrick Baumann
43ca62a657 Merge "Revert "Apply overlay updates to widget provider info"" into sc-dev am: e2c96ac3ad
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15463732

Change-Id: Ied32b64575a75f47011e40504c999f376f302a8b
2021-08-05 18:19:03 +00:00
Jayant Chowdhary
d5de4879d9 Merge "camera2: Fix backward compatibility breakage for setting metering regions." into sc-dev am: 4eeeee0f14
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15451329

Change-Id: I0f934de9c1be223f5178c46ab3662b39c0fad05d
2021-08-05 18:18:40 +00:00