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)
Loading
Please register or sign in to comment