summaryrefslogtreecommitdiff
path: root/libs/input/SpriteController.cpp
diff options
context:
space:
mode:
author Shan Huang <shanh@google.com> 2024-04-10 13:40:55 -0700
committer Shan Huang <shanh@google.com> 2024-04-22 16:49:03 -0700
commit11bc9d559f2f682e65f237b0d36e63da6fa17e8d (patch)
tree17c968c8e54e19f9d6bba3ba989a03db502a5da5 /libs/input/SpriteController.cpp
parent4b4854d2ac2c172966c3488622f815564991cdc1 (diff)
Generate progress events from app process for app animations.
The goal is to address touch latency when apps should handle back. Main changes invovled: - SysUI now only steals pointers from apps when the back navigation type is home, another activity or another task. - Previously apps receive an ACTION_CANCEL when the back threshold is crossed. To keep behavior the same, we now generate this from the app process, by having the DecorView returning true from onInterceptTouchEvent when it should. - We now track touch and compute progress from the app process when back nav type is APP_CALLBACK. Bug: 261654570 Test: atest BackNavigationControllerTest Test: atest OnBackInvokedCallbackGestureTest Test: atest BackAnimationControllerTest Test: atest BackTouchTrackerTest Test: atest WindowOnBackInvokedDispatcherTest Flag: None Change-Id: Iab6a97ff6316367de83ad32ca87879d8a4c995f3
Diffstat (limited to 'libs/input/SpriteController.cpp')
0 files changed, 0 insertions, 0 deletions