Commit Graph

654221 Commits

Author SHA1 Message Date
Michał Brzeziński
41e02db201 Merge "Fix brightness animation in split shade" into sc-v2-dev 2021-09-22 11:38:36 +00:00
TreeHugger Robot
8f8783ca1b Merge "Support configurable multi-stage UDFPS enrollment" into sc-v2-dev 2021-09-22 07:32:28 +00:00
PETER LIANG
5996de34d2 Merge changes I27530b15,Ic5d88cf3 into sc-v2-dev
* changes:
  Fixing the a11y floating menu could overlap the keyboard when rotated in a foldable device.
  Fixing the a11y floating menu could overlap the taskbar in a foldable device.
2021-09-22 06:01:42 +00:00
Peter_Liang
809296282a Fixing the a11y floating menu could overlap the keyboard when rotated in a foldable device.
Root cause:
WindowInsets have different values depend on timing and when to call it.

Actions:
Updating the latest ime inset to the menu when onApplyWindowInsets was triggered, and then adjust the position.

Bug: 200759679
Test: atest AccessibilityFloatingMenuViewTest
Change-Id: I27530b154cb3c89650be69b0d0e2116dc88a7b39
2021-09-22 05:59:52 +00:00
TreeHugger Robot
11f14b1e2e Merge "Fix flakiness of testTransferLaunchCookie" into sc-v2-dev 2021-09-22 04:01:09 +00:00
Evan Rosky
6d71d15808 Merge "Fix test failure due to hanging layout" into sc-v2-dev 2021-09-22 02:40:06 +00:00
Chris Li
dde5115d05 Merge "Add animation for TASK_FRAGMENT_CHANGE transition" into sc-v2-dev 2021-09-22 00:14:21 +00:00
Chris Li
1dd66dc2a3 Merge "Do not set TaskFragment surface position if in change transition" into sc-v2-dev 2021-09-22 00:13:41 +00:00
Evan Rosky
b9a368df59 Fix test failure due to hanging layout
Moved postdrawtransaction application to layout pass, but didn't
set layoutNeeded.

Bug: 200134598
Test: atest MagnifierTest
Change-Id: Ic1be2db52469645d4da12c449c3e13cdb746e7ee
2021-09-21 14:28:00 -07:00
Eric Laurent
ffce25278d Merge "AudioService: SpatializerHelper: native head tracking callback" into sc-v2-dev 2021-09-21 16:35:44 +00:00
Michal Brzezinski
a53453f826 Fix brightness animation in split shade
Implementing moving QQS brightness slider into position of QS slider in QSAnimator. In split shade most of QS slider animation is disabled as that slider becomes visible only at the end of the transition.

Test: Open split shade -> expand quick settings -> admire brightness slider moving to the new position
Bug: 196957888
Change-Id: I63bb6f01723d85b1b8080b1d4ccbaa15db4a0ba5
2021-09-21 17:18:06 +01:00
Nick Chameyev
c87aa1a23e Merge "Add should use default unfold transition attribute to wallpaper" into sc-v2-dev 2021-09-21 16:09:41 +00:00
TreeHugger Robot
348a0e6e3c Merge "SurfaceControl: Add setDropInputMode api" into sc-v2-dev 2021-09-21 15:37:27 +00:00
Jean-Michel Trivi
bb190d2f32 Merge "Spatializer: support for effect parameters" into sc-v2-dev 2021-09-21 14:44:51 +00:00
Eric Laurent
d709886eaf AudioService: SpatializerHelper: native head tracking callback
Migrate native Spatializer callbacks to use new
specific head tracking callback.

Bug: 188502620
Test: make
Change-Id: Ib004153070f44e448f67bd9ac4ed5b5d58bf01d5
2021-09-21 15:12:03 +02:00
TreeHugger Robot
33138749a5 Merge "Add a click listener to QQS drag handler" into sc-v2-dev 2021-09-21 12:37:50 +00:00
TreeHugger Robot
b17f8f0e0f Merge "Fixing tiles losing subtext in split shade" into sc-v2-dev 2021-09-21 12:34:37 +00:00
Riya Ghai
c82c4b8dcb Merge "Refactor out PackageConfigurationUpdaterImpl" into sc-v2-dev 2021-09-21 10:07:34 +00:00
Kenneth Ford
57f7ff4c0b Merge "Marks two DeviceStateManagerService tests as flaky" into sc-v2-dev 2021-09-21 05:19:33 +00:00
Chris Li
83d5a591f2 Merge changes Ib5ad3250,Iff58afdb into sc-v2-dev
* changes:
  Flag whether a RemoteAnimationTarget has parent in animation
  Use TaskFragment bounds instead of TaskBounds for Activity animation
2021-09-21 05:18:46 +00:00
Jean-Michel Trivi
7966f9aa68 Spatializer: support for effect parameters
Add set/get API for implementatation-specific parameters

Bug: 191404931
Test: atest SpatializerSystemTest
Change-Id: Ibc49e05670c7bc473dad2421808b4a60970f16c9
2021-09-20 22:02:03 -07:00
Chris Li
bd6816c6f5 Merge "Handle remote animation for split API" into sc-v2-dev 2021-09-21 04:20:29 +00:00
Curtis Belmonte
cc50932c4f Support configurable multi-stage UDFPS enrollment
Implements multi-stage enrollment for UDFPS. This implementation
supports both highlighting the progress bar when a help message is
received and configuring the progress thresholds between enroll stages
via an XML resource.

Test: Manual

Bug: 198928407
Bug: 200076382
Change-Id: I6f6111ab0ed29ca7f1be01303f0457764d5afe01
2021-09-20 21:07:40 -07:00
TreeHugger Robot
c31f380a7d Merge "Clear mSeamlessRotating in InsetsSourceProvider.setWindow" into sc-v2-dev 2021-09-21 03:18:46 +00:00
Shan Huang
e23dd065ec Merge "Fix race condition wen setting boot color sysprops (round 2)" into sc-v2-dev 2021-09-21 00:49:34 +00:00
Chris Li
1e0e7a6848 Add animation for TASK_FRAGMENT_CHANGE transition
Bug: 196173550
Test: test with demo app
Change-Id: I2f2b9450ceefa60020707a3dd7d168c90ed33f31
2021-09-21 08:44:21 +08:00
Chris Li
d4a6bad8cd Do not set TaskFragment surface position if in change transition
When it is freezed in change transition, the animation handler should
handle the position change. After the animation leash is removed, the
TaskFragment position will be updated in #onAnimationLeashLost

Bug: 196173550
Test: test with demo app
Change-Id: I4048dbe8ae0db0354cd9bf0ef08bab9d897a65b0
2021-09-21 08:37:02 +08:00
Chris Li
79ab7ea034 Flag whether a RemoteAnimationTarget has parent in animation
There is case when a TaskFragment is resizing while one of its children
is open/close. In such case, both the TaskFragment and its child will be
included in the transition, but we don't want to animate both of them.
Use the new flag to determine if the child need to be animated.

Bug: 196173550
Test: test with demo app
Change-Id: Ib5ad32501e046e5b612f6d5ae2faed6266d99f3d
2021-09-21 08:33:16 +08:00
Chris Li
e045dd6e81 Use TaskFragment bounds instead of TaskBounds for Activity animation
The animation bounds is used as the RemoteAnimationTarget#localBounds.
It should be the TaskFragment bounds instead of Task bounds because the
Activity may not fill the Task when it is in a TaskFragment.

Also clean up ROOT_TASK_CLIP_BEFORE_ANIM which has no more use case.

Bug: 196173550
Test: test with demo app
Test: atest WmTests:ActivityRecordTests
Change-Id: Iff58afdb0bbae95d3f6a5756de06c0d2dfff7c88
2021-09-21 08:31:07 +08:00
Chris Li
211d6cf754 Handle remote animation for split API
Use the default app open/close animation.
TODO:
1. Handle two TaskFragment open/close as one
2. Handle change transition based on the new motion design

Bug: 196173550
Test: test with demo app
Change-Id: I7b446840270edfc3c9e3fe188585b2cd839fa9f1
2021-09-21 08:26:49 +08:00
Evan Rosky
b8e297fb73 Merge "Use binder for remote unregister comparison" into sc-v2-dev 2021-09-21 00:26:29 +00:00
Kenneth Ford
a870da3b1e Marks two DeviceStateManagerService tests as flaky
Marks DeviceStateManagerServiceTest#requestState_becomesUnsupported and
DeviceStateManagerServiceTest#requestState_pendingStateAtRequest as
flaky

Bug: 200332057
Test: N/A
Change-Id: I2dc9377c06029a0384c84eaeb0a50060a2e89c54
2021-09-20 23:21:44 +00:00
Shan Huang
684b66adb2 Fix race condition wen setting boot color sysprops (round 2)
Bug: 197690550
Test: ThemeOverlayApplierTest, ThemeOverlayControllerTest. Set wallpaper
and reboot.

Change-Id: I7d304d442e3f6839ad047944cae21dc07d7c3dea
Merged-In: I7d304d442e3f6839ad047944cae21dc07d7c3dea
2021-09-20 23:14:40 +00:00
TreeHugger Robot
bc617435cf Merge "SurfaceView: Fix SurfaceControl synchronization issues" into sc-v2-dev 2021-09-20 22:59:15 +00:00
Vinit Nayak
bf0ee05d8a Merge "Update edgeBackGestureHandler for Taskbar on init/destroy()" into sc-v2-dev 2021-09-20 22:52:19 +00:00
TreeHugger Robot
8ad71b1731 Merge "Fix RuntimeException in GestureDetector for Letterbox." into sc-v2-dev 2021-09-20 21:47:25 +00:00
Ben Lin
d21de41100 Merge "Load animation for freeform windows." into sc-v2-dev 2021-09-20 20:56:14 +00:00
TreeHugger Robot
f247750dd4 Merge "[DO NOT MERGE] Ambient music - Update for favoriting intent" into sc-v2-dev 2021-09-20 20:22:35 +00:00
Mariia Sandrikova
472a79e4d7 Fix RuntimeException in GestureDetector for Letterbox.
RuntimeException in GestureDetector happened because GestureDetector constructor may only be used from android.os.Looper thread which wasn't always true. Fixing by explicitly providing the UI thread handler in GestureDetector constructor.

Also, fix tests that were incorrectly changed in ag/15731742 due to this exception.

Fix: 199596390
Test: manual - double tap now works for all apps.
Change-Id: I622474bf2635d7d183b9e04994d0b6f25b1b1e94
2021-09-20 21:01:37 +01:00
Vinit Nayak
d6bb344225 Update edgeBackGestureHandler for Taskbar on init/destroy()
* TaskbarDelegate wasn't calling
mEdgeBackGestureHandler.onNavBarDetatched() when going from
large screen to phone screen
* Also cache taskbar visibility to prevent multiple instances
of the same listener from being added

Bug: 197058461
Test: Went from tablet to phone, used back,
saw Launcher#onBackPressed() only got called once

Change-Id: I63b742b047cbfac1421c5a0e8422e9e341c62627
2021-09-20 12:01:31 -07:00
TreeHugger Robot
7f973b2e6e Merge "Fix spacing between clock and date" into sc-v2-dev 2021-09-20 18:04:29 +00:00
Vishnu Nair
e2b63cb1f9 SurfaceControl: Add setDropInputMode api
Introduces an API to drop input events on this SurfaceControl. This
policy will be inherited by its children. The caller must hold the
ACCESS_SURFACE_FLINGER permission.

Options include:
ALL: SurfaceControl and its children will not receive any
input regardless of whether it has a valid input channel.
OBSCURED: SurfaceControl and its children will not
receive any input if the layer is obscured, cropped by its parent or
translucent.

These policies are used to enable features that allow for a less trusted
interaction model between apps. See the bug for more details.

Test: atest libgui_test InputDispatcherDropInputFeatureTest
Bug:197364677

Merged-In: Ifcb4133306a43874e74e8fb0f42b60842daf6f25
Change-Id: Ifcb4133306a43874e74e8fb0f42b60842daf6f25
2021-09-20 17:37:34 +00:00
TreeHugger Robot
66889d3212 Merge "Add null checks for ConcurrentHashmap queries" into sc-v2-dev 2021-09-20 15:34:08 +00:00
Matt Pietal
18950dd70d [DO NOT MERGE] Ambient music - Update for favoriting intent
Support tapping the icon to allow for directly favoriting the song. If
no favoriting intent is set, fallback to using the other PendingIntent
to open the 'now playing' music list.

Also, cleanup all legacy code that was showing ambient music inside
the indication area.

Fixes: 199879413
Test: atest AmbientIndicationServiceTest
Change-Id: If06865fb78f15d247900c717d4021e1c20b2e9cc
2021-09-20 14:39:01 +00:00
Matt Pietal
abd63e9310 Merge "[DO NOT MERGE] Smartspace - Don't connect until setup" into sc-v2-dev 2021-09-20 14:08:49 +00:00
Michał Brzeziński
1c7308511f Merge "Fixing customizer scroll in collapsed split shade" into sc-v2-dev 2021-09-20 13:00:32 +00:00
Andrei Onea
227595f050 Add null checks for ConcurrentHashmap queries
Ensure all queries done in CompatChange are only done for non-null
package names.
The previous change broke several tests.

Bug: 200155796
Test: atest com.android.server.wm.DisplayAreaTest#testGetOrientation
Change-Id: I7fc9ccb45987e03f6f172a077303c25d5ae1ccf3
Merged-In: I7fc9ccb45987e03f6f172a077303c25d5ae1ccf3
(cherry picked from commit 8596dd12ca)
2021-09-20 12:44:07 +00:00
“riyaghai”
50fcfe7883 Refactor out PackageConfigurationUpdaterImpl
Test: Build + Manual testing

Bug: 199815981
Change-Id: I71e050f2141dda5b6de7b4510d8a5575e038771e
2021-09-20 11:45:29 +00:00
Jamie Garside
2044a05ad6 Merge "Fix bug preventing pattern bouncer entering half height mode." into sc-v2-dev 2021-09-20 11:39:33 +00:00
Chris Li
f061f27f16 Merge "Include activity reparent in transition" into sc-v2-dev 2021-09-20 10:13:36 +00:00