summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
author Akhilesh Sanikop <sanikop@google.com> 2025-02-04 09:43:26 +0000
committer Akhilesh Sanikop <sanikop@google.com> 2025-02-18 07:36:15 +0000
commitf54ab06b547439bcd03c58fd5d3f52a42f84c3d4 (patch)
treebb2a6759f7bebc65610a6e7d14679b65027fdecd /include
parent56f5ad2d6000332f1bd7631effb03abf39daf225 (diff)
inputflinger: Restricted invalid MotionEvent button enum values
Fixes an issue by passing valid MotionEvent buttons through NotifyMotionArgs() in FuzzedInputStream.h. Added IfThisThenThat Lint to remind the actionButton to sync Test: m frameworks/native/services/inputflinger/tests/fuzzers Bug: 392345690 Flag: EXEMPT bugfix in fuzzer Change-Id: I7c2108a255114b24e6544aa930696079e4f06b77
Diffstat (limited to 'include')
-rw-r--r--include/android/input.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/android/input.h b/include/android/input.h
index 5f445509fa..2f6c5b57ff 100644
--- a/include/android/input.h
+++ b/include/android/input.h
@@ -862,7 +862,7 @@ enum {
AMOTION_EVENT_BUTTON_FORWARD = 1 << 4,
AMOTION_EVENT_BUTTON_STYLUS_PRIMARY = 1 << 5,
AMOTION_EVENT_BUTTON_STYLUS_SECONDARY = 1 << 6,
- // LINT.ThenChange(/frameworks/native/libs/input/rust/input.rs)
+ // LINT.ThenChange(/frameworks/native/libs/input/rust/input.rs,/frameworks/native/services/inputflinger/tests/fuzzers/FuzzedInputStream.h)
};
/**