summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFlanker <i@flanker017.me>2015-09-07 15:28:58 +0800
committerThe Android Automerger <android-build@google.com>2015-10-27 10:38:38 -0700
commit8ac7474234d62958e88d60bc0e942711ad9272ed (patch)
treecb2ca6909b7f9cea566ece0f31ad3424fcf01778 /include
parent67a7582bae53bc29c64975226be6c58f5864f1d5 (diff)
downloadframeworks_native-8ac7474234d62958e88d60bc0e942711ad9272ed.zip
frameworks_native-8ac7474234d62958e88d60bc0e942711ad9272ed.tar.gz
frameworks_native-8ac7474234d62958e88d60bc0e942711ad9272ed.tar.bz2
add number constraint for samples per MotionEventandroid-5.1.1_r34android-5.1.1_r33android-5.1.1_r30
Bug:23905002 Signed-off-by: Adam Lesinski <adamlesinski@google.com> (cherry picked from commit 552a8a5d8df32f659b8d11311a244cdc6d3b7733) Change-Id: I9b7ea859889b7697bee4165a2746602212120543
Diffstat (limited to 'include')
-rw-r--r--include/input/Input.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/input/Input.h b/include/input/Input.h
index 96b6885..a8df11b 100644
--- a/include/input/Input.h
+++ b/include/input/Input.h
@@ -111,6 +111,11 @@ enum {
#define MAX_POINTERS 16
/*
+ * Maximum number of samples supported per motion event.
+ */
+#define MAX_SAMPLES UINT16_MAX
+
+/*
* Maximum pointer id value supported in a motion event.
* Smallest pointer id is 0.
* (This is limited by our use of BitSet32 to track pointer assignments.)