* 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.
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
Moved postdrawtransaction application to layout pass, but didn't
set layoutNeeded.
Bug: 200134598
Test: atest MagnifierTest
Change-Id: Ic1be2db52469645d4da12c449c3e13cdb746e7ee
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
Migrate native Spatializer callbacks to use new
specific head tracking callback.
Bug: 188502620
Test: make
Change-Id: Ib004153070f44e448f67bd9ac4ed5b5d58bf01d5
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
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
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
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
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
Marks DeviceStateManagerServiceTest#requestState_becomesUnsupported and
DeviceStateManagerServiceTest#requestState_pendingStateAtRequest as
flaky
Bug: 200332057
Test: N/A
Change-Id: I2dc9377c06029a0384c84eaeb0a50060a2e89c54
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
* 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
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
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
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)