OSDN Git Service

add number constraint for samples per MotionEvent am: 5d17838ade am: 72c8ca4a01 am...
authorFlanker <i@flanker017.me>
Thu, 22 Oct 2015 02:15:13 +0000 (02:15 +0000)
committerandroid-build-merger <android-build-merger@google.com>
Thu, 22 Oct 2015 02:15:13 +0000 (02:15 +0000)
am: 90dc6dc825

* commit '90dc6dc825ebd1f0f4c9474fad887cd7eac8e9bd':
  add number constraint for samples per MotionEvent

1  2 
include/input/Input.h

diff --combined include/input/Input.h
@@@ -111,6 -111,11 +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.)
@@@ -149,22 -154,10 +154,22 @@@ enum 
       * NOTE: If you want a flag to be able to set in a keylayout file, then you must add it to
       * InputEventLabels.h as well. */
  
 +    // Indicates that the event should wake the device.
      POLICY_FLAG_WAKE = 0x00000001,
 +
 +    // Indicates that the key is virtual, such as a capacitive button, and should
 +    // generate haptic feedback.  Virtual keys may be suppressed for some time
 +    // after a recent touch to prevent accidental activation of virtual keys adjacent
 +    // to the touch screen during an edge swipe.
      POLICY_FLAG_VIRTUAL = 0x00000002,
 +
 +    // Indicates that the key is the special function modifier.
      POLICY_FLAG_FUNCTION = 0x00000004,
  
 +    // Indicates that the key represents a special gesture that has been detected by
 +    // the touch firmware or driver.  Causes touch events from the same device to be canceled.
 +    POLICY_FLAG_GESTURE = 0x00000008,
 +
      POLICY_FLAG_RAW_MASK = 0x0000ffff,
  
      /* These flags are set by the input dispatcher. */