Commit Graph

772314 Commits

Author SHA1 Message Date
TreeHugger Robot
242b670b62 Merge "Avoid too long trace section name to crash FrameTracker" into tm-qpr-dev 2022-08-05 19:54:14 +00:00
Aseem Kumar
32072c713e [automerger skipped] Merge "DO NOT MERGE Move accountname and typeName length check from Account.java to AccountManagerService." into sc-v2-dev am: 98c58054c4 -s ours am: e1be97bf7b -s ours
am skip reason: subject contains skip directive

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

Change-Id: I21f6beb2df6e87a4a963f0f0c5557990eb23d705
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-05 19:16:54 +00:00
Aseem Kumar
616d79afec [automerger skipped] DO NOT MERGE am: e9ec322720 -s ours am: e3b2d76c57 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ic4b3a553fd219219032c6e4c80e54b88b057610c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-05 19:16:46 +00:00
Aseem Kumar
a7fd96bf38 [automerger skipped] DO NOT MERGE am: 3f218c9a5e am: e0243c7661 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I662d6e6e5476b298d24de3903bc7cfa2f339afb9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-05 19:15:08 +00:00
Winson Chung
cc5e0d2b62 Ensure default and remote transition handlers are first
- When Transitions migrated to ShellInit, the default/remote handlers
  got added after PipTransitionController (which should really also
  use ShellInit (to be fixed in a follow up CL)).  For now, we can
  be explicit about where they should be added in the list.

Bug: 241515409
Bug: 241484248
Test: atest PinnedStackTests
Test: atest WMShellFlickerTests:com.android.wm.shell.flicker.pip.AutoEnterPipOnGoToHomeTest
Change-Id: I696327004e06e7ddd402a509fa18c86c60b244d4
2022-08-05 18:49:47 +00:00
TreeHugger Robot
e2823f9a50 Merge "Fix some issues that make caption insets remain" into tm-qpr-dev 2022-08-05 18:45:00 +00:00
Aseem Kumar
e1be97bf7b [automerger skipped] Merge "DO NOT MERGE Move accountname and typeName length check from Account.java to AccountManagerService." into sc-v2-dev am: 98c58054c4 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I56e85ed6ea67beedbc392e62ff91633dadda078f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-05 18:35:12 +00:00
Aseem Kumar
e3b2d76c57 [automerger skipped] DO NOT MERGE am: e9ec322720 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ibfbb0f722b502689f95f178ff94850681421f3dd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-05 18:34:04 +00:00
Aseem Kumar
e0243c7661 DO NOT MERGE am: 3f218c9a5e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17595878

Change-Id: Ide4ce7536d9637969b483d05f729e6d8c800b49c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-05 18:33:55 +00:00
Aseem Kumar
98c58054c4 Merge "DO NOT MERGE Move accountname and typeName length check from Account.java to AccountManagerService." into sc-v2-dev 2022-08-05 18:10:52 +00:00
Evan Rosky
c0888dcbfc FreeformHandler should just intercept, not claim animations
There are already animations for most of these operations (eg. in
launcher), so instead of "claiming" the transition animation
and doing nothing, this should just update state (window decor)
and then let other handlers play the animations.

Bug: 241486751
Test: launch app from launcher, go back.
Change-Id: Ic5d01b76c04d6adab484d53d24d1a89b001a4c80
2022-08-05 10:32:44 -07:00
Ahan Wu
41998f864b Avoid too long trace section name to crash FrameTracker
android.os.Trace#beginSection limits the length of the section to 127,
otherwise, a IllegalArgumentException throws. We limit the length before
passing the argument to avoid this.

Bug: 239860117
Test: atest InteractionJankMonitorTest FrameTrackerTest
Change-Id: I3d9cbc65a8036c18680edf11aace0b324a1befb6
2022-08-05 16:53:31 +00:00
Chandru
eabd91006d Stop running face detection on bouncer if both face and fp are enrolled.
Add s'more tests
https://screencast.googleplex.com/cast/NTE1ODQ4MjYyMjgwODA2NHxkY2FkNzg5MC1jZg

Fixes: 232876541
Test: atest KeyguardUpdateMonitorTest
Test: verified manually
Change-Id: Ia51bd773e90024159ce68d6b5536be440887eaa9
2022-08-05 13:28:26 +00:00
Naomi Musgrave
9390121fc8 [MediaProjection] Unregister IMediaProjectionCallback for the VirtualDisplay
Address memory leak where the callback is never unregistered.

Bug: 237185281
Test: Manual
Change-Id: Ia520e8398c213b927ac5d4cc95757f2ea9096c25
2022-08-05 11:07:02 +00:00
TreeHugger Robot
7c09300459 Merge "Fixing shade expanded after unfolding and unlocking with fingerprint" into tm-qpr-dev 2022-08-05 09:28:04 +00:00
Aseem Kumar
c48f5407d5 DO NOT MERGE
Move accountname and typeName length check from Account.java to AccountManagerService.

Bug: 169762606
Test: atest AccountManagerServiceTest
Change-Id: I80fabf3a64c55837db98ff316e7e5420129c001b
(cherry picked from commit 0adcadb0b2)
2022-08-04 23:01:02 +00:00
Aseem Kumar
5c3d1dceb0 DO NOT MERGE
Move accountname and typeName length check from Account.java to AccountManagerService.

Bug: 169762606
Test: atest AccountManagerServiceTest
Change-Id: I80fabf3a64c55837db98ff316e7e5420129c001b
(cherry picked from commit 0adcadb0b2)
Merged-In: I80fabf3a64c55837db98ff316e7e5420129c001b
2022-08-04 22:32:07 +00:00
Aseem Kumar
e9ec322720 DO NOT MERGE
Move accountname and typeName length check from Account.java to AccountManagerService.

Bug: 169762606
Test: atest AccountManagerServiceTest
Change-Id: I80fabf3a64c55837db98ff316e7e5420129c001b
(cherry picked from commit 0adcadb0b2)
Merged-In: I80fabf3a64c55837db98ff316e7e5420129c001b
2022-08-04 22:28:26 +00:00
Aseem Kumar
945e78f9d6 DO NOT MERGE
Move accountname and typeName length check from Account.java to AccountManagerService.

Bug: 169762606
Test: atest AccountManagerServiceTest
Change-Id: I80fabf3a64c55837db98ff316e7e5420129c001b
(cherry picked from commit 0adcadb0b2)
Merged-In: I80fabf3a64c55837db98ff316e7e5420129c001b
2022-08-04 22:27:53 +00:00
Aseem Kumar
3f218c9a5e DO NOT MERGE
Move accountname and typeName length check from Account.java to AccountManagerService.

Bug: 169762606
Test: atest AccountManagerServiceTest
Change-Id: I80fabf3a64c55837db98ff316e7e5420129c001b
2022-08-04 22:21:52 +00:00
Hongwei Wang
a2cedf9ce5 Fix PiP disappearance after unlock
KeyguardUpdateMonitor uses WeakReference internally for all the
registered callbacks, therefore an anonymous class may be released and
unable to receive any callback after registration.

Changed also the ConfigurationListener and
KeyguardStateController.Callback in WMShell.

Bug: 241249835
Test: repeatedly lock and unlock device with PiP being present
Change-Id: I1c3ea269ee9955847212bebbebdd0d7130dbdce5
2022-08-04 15:09:54 -07:00
Yuncheol Heo
0dfdd607b7 Merge "Allow getTasks to filter tasks by displayId." into tm-qpr-dev 2022-08-04 20:54:51 +00:00
Mark Renouf
a97e6db869 Merge "Extracts image acquisition to a separate class" into tm-qpr-dev 2022-08-04 19:44:07 +00:00
Bill Yi
09e05e31cf Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I3d36228396c6b2bfb731b50c0c4cde6adc9df1c8
2022-08-04 12:42:21 -07:00
Bill Yi
1fc928d18c Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I40cf368ecc3db221d971f10fb6e35d74700c27e6
2022-08-04 12:40:45 -07:00
Bill Yi
46cf83e1cf Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I7c62c912b8e22955889b5c686ef2da8df787c0f1
2022-08-04 12:09:54 -07:00
Beverly
d63046028f Improve UDFPS unlock animation experience
- Don't expand shade if touch started from KG and then
ended when KG was not longer showing. This can happen
if the security setting is set to swpe to open,
and the user transitions to the SHADE. Then, the touch can
be canceled if a window is transitioning to landscape.
- Don't propagate notification panel expansion to the bouncer
when the device is unlocking with biometric (MODE_DISMISS_BOUNCER).
Since KeyguardBouncer.EXPANSION_VISIBLE = 0 panel expansion, calls
during the unlock transition to collapse the notification panel
unintentionally end up showing the bouncer.
- If the KG isn't showing and the bouncer is in transit, reset the
bouncer expansion to HIDDEN.

Test: open fruit ninja (which is locked to landscape)
and swipe to unlock, notice that panel does not expand on unlock
Test: unlock using udfps by sliding finger from slightly below/diagonal
of the UDFPS sensor (so that the bouncer transition begins), and then
successfully authenticate with UDFPS => observe the bouncer UI doesn't
flash on the screen after successful authentication.
Test: atest StatusBarKeyguardViewManagerTest
Fixes: 240487038
Fixes: 240763673
Merged-In: I9e1fb108147ffb4c812ea2b94a50d6201eaf008a
Change-Id: I9e1fb108147ffb4c812ea2b94a50d6201eaf008a
2022-08-04 18:00:38 +00:00
TreeHugger Robot
36931daf18 Merge "Improve UDFPS unlock animation experience" into tm-qpr-dev 2022-08-04 17:58:16 +00:00
Omer Osman
165f760907 Merge "Add support for Opus over A2DP" into tm-qpr-dev 2022-08-04 17:40:20 +00:00
Govinda Wasserman
c3ddc1f465 Merge "Move Kotlin test helpers into shared directory" into tm-qpr-dev 2022-08-04 17:06:47 +00:00
Aaron Liu
cea783e8a6 [Bouncer] Add bouncer feature flag.
The bouncer refactor changes some of the existing behavior. To add an
easy way to revert back to the old behavior, we want to enable/disable
the refactor with a feature flag.

Bug: 240299776
Test: None as this does not change any behavior
Change-Id: I1335325599a554d5d98a2a840169191540165672
Merged-In: I1335325599a554d5d98a2a840169191540165672
2022-08-04 17:00:27 +00:00
TreeHugger Robot
065fd52a00 Merge "Fixing getSafeZone() method in AdaptiveIcon" into tm-qpr-dev 2022-08-04 16:54:52 +00:00
Eric Laurent
06350ce4ff Merge "AudioService: Fix SpatializerHelper asserts" into tm-qpr-dev 2022-08-04 16:45:13 +00:00
Dave Mankoff
162a34a3d4 Remove Unused DataCollector and SensorLoggerSession.
These were used in the past to collect data for the FalsingManager
and are no longer used.

Fixes: 218350933
Test: manual
Change-Id: Ib35dfeb4c879353aa0fb6daf83691b9189d12c6c
2022-08-04 16:39:16 +00:00
Cutter Coryell
fddc399c3e Merge "Load back-gesture model on background thread." into tm-qpr-dev 2022-08-04 16:32:53 +00:00
TreeHugger Robot
686bce22be Merge "Make sure prefetch tracking affects job readiness." into tm-qpr-dev 2022-08-04 16:20:19 +00:00
Sunny Goyal
24f130cbfd Optimizing some icon generation code in bubble
> Generating only one bitmap when creating appIcon
> Extracting the scale during icon generation for main icon
  instead of running icon normalizer again
> Avoiding unnecessary color extraction on main icon

Bug: 238937089
Test: Verified on device
Change-Id: Ia01801f15e5982593852f05c2512d0f1f737f5f7
2022-08-04 09:02:20 -07:00
Rahul Banerjee
6c11adfa42 Merge "Actually trigger back action on Back Arrow fling" into tm-qpr-dev 2022-08-04 15:09:45 +00:00
Rahul Banerjee
15ebdf1e7c Actually trigger back action on Back Arrow fling
Currently, when the New Back Arrow is flung and the finger lifted, we do
not actually send the trigger event -- but we do if the finger is lifted
after coming to a "stop", i.e., a commit without a "fling".

To test, swipe from the right edge inwards, and release while your finger is in motion (as opposed to "stop moving, and then lift").

Bug: 240272871
Test: Manual
Change-Id: I81d6e6b1bb42c2cd12d14ae861ba8eb9f3081d11
2022-08-04 15:00:52 +00:00
Chandru S
61852ac6ef Merge "Add more unit tests for the current face auth logic in KUM" into tm-qpr-dev 2022-08-04 14:59:13 +00:00
Mark Renouf
9ae4e8626b Merge "Screenshot request processor" into tm-qpr-dev 2022-08-04 14:46:29 +00:00
Matt Pietal
37aeb26b0a Do not dismiss keyguard after SIM PUK unlock
After PUK unlock, multiple calls to
KeyguardSecurityContainerController#dismiss() were being called from
the KeyguardSimPukViewController, which begins the transition to the
next security screen, if any. At the same time, other parts of the
system, also listening to SIM events, recognize the PUK unlock and
call KeyguardSecurityContainer#showSecurityScreen, which updates which
security method comes next. After boot, this should be one of PIN,
Password, Pattern, assuming they have a security method. If one of the
first dismiss() calls comes AFTER the security method changes, this is
incorrectly recognized by the code as a successful
PIN/pattern/password unlock. This causes the keyguard to be marked as
done, causing screen flickers and incorrect system state.

The solution: every call to dismiss() should include a new parameter
for the security method used. If there is a difference between this
parameter and the current value in KeyguardSecurityContainerCallback,
ignore the request, as the system state has changed.

Fixes: 238804980
Bug: 218500036
Test: atest KeyguardSecurityContainerTest
AdminSecondaryLockScreenControllerTest KeyguardHostViewControllerTest
KeyguardSecurityContainerControllerTest

Change-Id: I7c8714a177bc85fbce92f6e8fe911f74ca2ac243
Merged-In: I7c8714a177bc85fbce92f6e8fe911f74ca2ac243
2022-08-04 14:42:07 +00:00
TreeHugger Robot
02e7600f61 Merge "Dump NotificationWakeUpCoordinator state to bugreports." into tm-qpr-dev 2022-08-04 14:40:53 +00:00
Evan Laird
1e8d802647 Merge changes from topic "revert-19436880-revert-19279477-UFVLVIEMJU-NPEBAMHHJM" into tm-qpr-dev
* changes:
  Remove remaining references to COMBINED_STATUS_BAR_SIGNAL_FLAGS
  Revert^2 "Remove support for COMBINED_SIGNAL_ICONS"
  Revert^2 "Create a MobileStatusTrackerFactory"
  Revert^2 "Change from deprecated telephony api"
  Revert^2 "[Cleanup] Order NetworkController's intent filters"
  Revert^2 "Add an @Inject-able MobileSignalControllerFactory"
2022-08-04 13:44:58 +00:00
TreeHugger Robot
9f8a5c028b Merge "Don't reset the keyguard on occlusion if it's going away." into tm-d1-dev am: f50462e680
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19509200

Change-Id: I0dd7d5ab7921d84bae5db791954db5d695441568
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-04 12:10:13 +00:00
TreeHugger Robot
799cb3f04d [automerger skipped] Merge "Fix keyguard dismiss animation with occludable activities." into tm-d1-dev am: e847f7ed3b -s ours
am skip reason: Merged-In Ie80187a5ca9b61b8178bbe977bf252db654d9fa4 with SHA-1 1a3135ee5c is already in history

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

Change-Id: I86e6aca7d195c0f30ebf53df5e7cbf519e87cd1f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-04 12:10:11 +00:00
Jordan Demeulenaere
a4acf35a96 [automerger skipped] Fix keyguard dismiss animation with occludable activities. am: 07d87012c1 -s ours
am skip reason: Merged-In Ie80187a5ca9b61b8178bbe977bf252db654d9fa4 with SHA-1 1a3135ee5c is already in history

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

Change-Id: I688271a31fdc996b3558899ef8ce25ee15eff900
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-04 12:09:58 +00:00
Eric Laurent
5b0218abe5 Merge "AudioService: fix initial spatial audio enable state." into tm-qpr-dev 2022-08-04 12:00:06 +00:00
Eric Laurent
2e76f6b609 AudioService: Fix SpatializerHelper asserts
Fix state update in onRoutingUpdated() in case of failure to
communicate to the native spatializer: this can cause an exception later
in setDispatchFeatureEnabledState(). Instead, try to recover by
triggering a reset.

Fix other places where exceptions are thrown instead of just logging an
error or triggering a reset.

Bug: 241018866
Test: make
Change-Id: I2ca01b76d701e7f5db7ba08d159bba843b145e4e
2022-08-04 11:58:08 +00:00
TreeHugger Robot
f50462e680 Merge "Don't reset the keyguard on occlusion if it's going away." into tm-d1-dev 2022-08-04 11:41:51 +00:00