Optimizing the QSLongPressEffect
StateFlows in the QSLongPressEffect need to emit and be collected on the
main thread to avoid thread-switching and preventing jank. Therefore,
the need for a background scope has been removed. In terms of
testability, the concern of setting touch listeners has been delegated
to the QSLongPressEffectViewBinder
Test: SystemUITests:QSTileViewImplTest
Test: SystemUiRobotTests:QSLongPressEffectTest
Bug: 332903800
Flag: ACONFIG quick_settings_visual_haptics_longpress TEAMFOOD
Change-Id: I6efe612c3bfda4ac39525b97c3a7797c61f54b8b
6 files changed