Skip to content
Commit 1d19a4e4 authored by Nigel Wang's avatar Nigel Wang
Browse files

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)
parent 46d2d95b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment