summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFlanker <i@flanker017.me>2015-10-22 22:28:01 +0000
committerandroid-build-merger <android-build-merger@google.com>2015-10-22 22:28:01 +0000
commita82ace99f76ed815e16ab64eae2e9e55871a8b8f (patch)
tree84452b1e89976357675daf0e9e1582a932fddbca /include
parent8121177b5e8c406570f0eaf6593c6fd1db232ddf (diff)
parent9830f11dc6b6aa4001c79147966fdb9eaa71c2f2 (diff)
downloadframeworks_native-a82ace99f76ed815e16ab64eae2e9e55871a8b8f.zip
frameworks_native-a82ace99f76ed815e16ab64eae2e9e55871a8b8f.tar.gz
frameworks_native-a82ace99f76ed815e16ab64eae2e9e55871a8b8f.tar.bz2
add number constraint for samples per MotionEvent am: 5d17838ade am: 72c8ca4a01 am: 9964d83869 am: 90dc6dc825
am: 9830f11dc6 * commit '9830f11dc6b6aa4001c79147966fdb9eaa71c2f2': add number constraint for samples per MotionEvent
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 4a67f47..92b3d36 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.)