summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSiarhei Vishniakou <svv@google.com>2023-09-19 13:30:24 -0700
committerSiarhei Vishniakou <svv@google.com>2023-09-27 13:50:59 +0000
commit2d151ac3e2f6280f541fd75a9578ee1ab13ea405 (patch)
treea249116abc04f19c56535e686de54df16e0af2aa /include
parenta22dbac767b580ecb55a0adc93b0296b0f7cd432 (diff)
downloadnative-2d151ac3e2f6280f541fd75a9578ee1ab13ea405.tar.gz
InputVerifier: only check pointer sources
Check for the source inside InputVerifier. Sources like MOUSE_RELATIVE could send ACTION_MOVE events without a prior DOWN event. Verifying such streams is tricky, so let's simply skip such events for now. Also in this CL, add some verifications to the number of pointers inside the event. Bug: 211379801 Test: enable event verification and run native tests Test: atest inputflinger_tests libinput_tests Change-Id: I3703ba57af7ede77712b91b7429ac46c0624a616
Diffstat (limited to 'include')
-rw-r--r--include/input/InputVerifier.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/input/InputVerifier.h b/include/input/InputVerifier.h
index b8574829f3..14dd463425 100644
--- a/include/input/InputVerifier.h
+++ b/include/input/InputVerifier.h
@@ -46,7 +46,7 @@ class InputVerifier {
public:
InputVerifier(const std::string& name);
- android::base::Result<void> processMovement(int32_t deviceId, int32_t action,
+ android::base::Result<void> processMovement(int32_t deviceId, int32_t source, int32_t action,
uint32_t pointerCount,
const PointerProperties* pointerProperties,
const PointerCoords* pointerCoords, int32_t flags);