summaryrefslogtreecommitdiff
path: root/libs/androidfw/AssetsProvider.cpp
diff options
context:
space:
mode:
author Michal Brzezinski <brzezinski@google.com> 2024-12-27 16:48:18 +0100
committer Michal Brzezinski <brzezinski@google.com> 2025-01-03 17:10:49 +0000
commit150e45970e8023747c0dca1df2db05121a6e1650 (patch)
tree39a9e8bbec8108d31d67938976d5c558f7e38179 /libs/androidfw/AssetsProvider.cpp
parentd00d46e22dae09b398a452fb8ecc0321c34dcd1b (diff)
1/n refactoring: splitting ViewModels into separate smaller classes
Splitting ViewModels into smaller more cohesive classes with extracted common logic: - GestureRecognizerAdapter transforms callback based GestureRecognizer into Flow and substitutes GestureFlowAdapter - GestureRecognizerProvider which hides complexity of observing changes in resources and refreshing GestureRecognizer - TouchpadGestureResources extracts common code for accessing latest values for distance and velocity In that new class structure ViewModels responsibility is only to transform business state into Ui state that is to collect latest GestureState from GestureRecognizerAdapter and transform it into GestureUiState. Bug: 384509663 Test: all unit tests Flag: com.android.systemui.shared.new_touchpad_gestures_tutorial Change-Id: I2da7cbeb530a1d4de91746d22b8126fd74e7154b
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions