summaryrefslogtreecommitdiff
path: root/libs/androidfw/misc.cpp
diff options
context:
space:
mode:
author Juan Sebastian Martinez <juansmartinez@google.com> 2023-08-02 11:39:00 -0700
committer Juan Sebastian Martinez <juansmartinez@google.com> 2023-08-07 21:33:45 +0000
commitafa5fd51a57ba3ef5ad373f3c6b297e4c14dde73 (patch)
tree1b4e844695bd1af63f64cdb29e21443c0b50fb8c /libs/androidfw/misc.cpp
parent0ac981822da297e3eece69869c3d9e7f25c06141 (diff)
Using performHapticFeedback on LockIconViewController
Moving towards new haptics API that triggers haptics directly from the UI thread. The LockIconViewController can use the new performHapticFeedback method in the events of (DOWN) HOVER_ENTER and (MOVE) HOVER_MOVE (via LongPress). The haptics for the HOVER_ENTER event use the CONTEXT_CLICK constant. Consistent with the intended behavior and relation to the UdfpsController, haptics for the case of a long press (due to HOVER_MOVE) use the LONG_PRESS constant. The changes are controlled by a feature flag. Test: Tests were added to the LockIconViewControllerTest class to verify the use of old and new vibration methods on the above events. Bug: 245528624 Change-Id: I6ab402df7339df33b4ee54585478d75ff9ffac40
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions