diff options
| author | 2022-08-10 11:46:14 +0800 | |
|---|---|---|
| committer | 2022-08-26 15:09:50 -0400 | |
| commit | 9f45a12cc16b956208cecfcd603ea0ea7af974d7 (patch) | |
| tree | 5cd0706d4e710452829a1db58852847a5dcb4467 /libs/input/PointerController.cpp | |
| parent | b37c41d36b777d144d0433b2a16702844cbbc35b (diff) | |
Intercept abnormal MotionEvent in GestureDetector#onTouchEvent
This could happen if an app started to send events to
GestureDetector.onTouchEvent without sending an ACTION_DOWN event first.
GestureDetector must see a complete event stream for a gesture to behave
correctly. A complete event stream is defined as:
-One ACTION_DOWN event
-Zero or more ACTION_MOVE events and matched pairs of
ACTION_POINTER_DOWN/ACTION_POINTER_UP
-One ACTION_UP or ACTION_CANCEL
Bug: 242021191
Test: run cts -m CtsViewTestCases -t android.view.cts.GestureDetectorTest
Change-Id: I22a5d1c162885d08ee7dfe9deef2aed0ed801d16
Signed-off-by: huyuxin <huyuxin@xiaomi.corp-partner.google.com>
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions