summaryrefslogtreecommitdiff
path: root/libs/androidfw/Util.cpp
diff options
context:
space:
mode:
author Juan Sebastian Martinez <juansmartinez@google.com> 2024-12-03 16:14:44 -0800
committer Juan Sebastian Martinez <juansmartinez@google.com> 2024-12-17 15:19:49 -0800
commit96cb65407515987eead787cea70d8a9778d737d7 (patch)
tree29da98058bd4ee9091a548ead5d5424848347e2d /libs/androidfw/Util.cpp
parent7415da587004876bef28332721e9fb0a2c5d8ab1 (diff)
Adding MSDL haptics to interactions with lockscreen shortcuts.
The KeyguardQuickAffordanceHapticViewModel is introduced to make use of data flows about interactions with quick affordances. With these, the view-model produces a Flow of haptic states, which can then be collected to play the corresponding haptics using the MSDL player in SysUI. Test: KeyguardQuickAffordanceHapticViewModelTest Test: manual. Verified failure haptics when tapping on a shortcut. Test: manual. Verified long-press haptics when launching from a shortcut. Test: manual. Verified switch on haptics when long-pressing a shortcut turns a control on. Test: manual. Verified switch off haptics when long-pressing a shortcut turns a control off. Flag: com.android.systemui.msdl_feedback Bug: 361320572 Change-Id: I9a4268251a4d5380cae3023ba23ccf30a6560ad5
Diffstat (limited to 'libs/androidfw/Util.cpp')
0 files changed, 0 insertions, 0 deletions