summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.cpp
diff options
context:
space:
mode:
author Nigel Wang <chenyangw@google.com> 2023-05-17 03:33:56 +0000
committer Nigel Wang <chenyangw@google.com> 2023-07-26 03:24:25 +0000
commit1d19a4e4d4ccc2881116e541aa9347a2e8c7b1cb (patch)
treed30c7b14ede2c0e183ceee3cf544eaf6fdbb10d7 /libs/hwui/FrameInfoVisualizer.cpp
parent46d2d95b04a62589478353158d85786cf11d683d (diff)
Add magnification edge haptic feature.
This change add logic to fire a haptic when user panning the screen horizontally and reaches the left and right of the screen. 1. Added FullScreenMagnificationVibrationHelper to hold all the logic to fire the haptic. 2. Added VibrationEffectSupportedProvider in FullScreenMagnificationVibrationHelper. Because VibrationEffectSupportedProvider is calling some final function to determine if the device is able to play vibration effect or not. But those final methods cannot be mocked. So adding VibrationEffectSupportedProvider, so we change inject different implementation. 3. Added the new tests for FullScreenMagnificationVibrationHelper and FullScreenMagnificationGestureHandler Test Video: https://drive.google.com/file/d/1Gd28dfzaws-67jNKWvtiiL-tPJudayIX/view?usp=sharing Bug: 280315691 Defer-CP-To-Master: 279498927 Test: atest FullScreenMagnificationGestureHandlerTest Change-Id: I0a07909bf6ea88042ab05aad7e8b792cc33f9a3b Defer-CP-To-Maste:283170514 (cherry picked from commit 4fc0416f5d822a470d413781b8226f78e2033653)
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions