summaryrefslogtreecommitdiff
path: root/include/input
diff options
context:
space:
mode:
authorSiarhei Vishniakou <svv@google.com>2021-09-14 14:43:25 -0700
committerSiarhei Vishniakou <svv@google.com>2022-01-31 09:37:53 -0800
commitba0a8758240241a852d7fd78603be5c10cb0f05c (patch)
treec3ed943e4502a6d3af9c44359c1b788cfabc0296 /include/input
parentc22af23cc8c884ecfbdbc44883b350402e6ece00 (diff)
downloadnative-ba0a8758240241a852d7fd78603be5c10cb0f05c.tar.gz
Add ChromeOS palm rejection model
This model will be used to block palm presses. It takes in a stream of evdev events, and reports back the pointers which should be considered palm. Bug: 198472780 Test: atest libpalmrejection_test inputflinger_tests Test: "adb shell device_config put input_native_boot palm_rejection_enabled 0" and make sure that "adb shell dumpsys input" shows that there aren't any palm rejectors inside UnwantedInteractionBlocker Change-Id: If979d335af29cf5e93b26336fea56a3a895cc562
Diffstat (limited to 'include/input')
-rw-r--r--include/input/Input.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/input/Input.h b/include/input/Input.h
index 55ebb90ff6..e421dee275 100644
--- a/include/input/Input.h
+++ b/include/input/Input.h
@@ -534,7 +534,7 @@ public:
inline int32_t getActionMasked() const { return getActionMasked(mAction); }
- static int32_t getActionIndex(int32_t action) {
+ static uint8_t getActionIndex(int32_t action) {
return (action & AMOTION_EVENT_ACTION_POINTER_INDEX_MASK) >>
AMOTION_EVENT_ACTION_POINTER_INDEX_SHIFT;
}