QS long-press effect without coroutines and touch listeners
Setting a touch listener in the QS long-press effect has been a source
of regression. In addition, small increases in the main thread work
during the required input event handling have created other
regressions. This change aims to write the long-press effect in the most
minimal way possible. Here, we only spy on touch events on the tile view
and remove the overhead of coroutine continuations by adding a callback
mechanism.
Test: atest SystemUITests:QSTileViewImplTest
Test: atest SystemUiRobotTests:QSLongPressEffectTest
Bug: 345363816
Flag: com.android.systemui.quick_settings_visual_haptics_longpress
Change-Id: Ic00f25597af977f7d94cf4248c1456d36ac7b69c
6 files changed