Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc57aaed authored by Michael Wright's avatar Michael Wright Committed by android-build-merger
Browse files

Merge "Add new, hidden MotionEvent flag for partially obscured windows." into...

Merge "Add new, hidden MotionEvent flag for partially obscured windows." into mnc-dev am: 224582e0 am: c6629bd5
am: a8064c2a

* commit 'a8064c2a':
  Add new, hidden MotionEvent flag for partially obscured windows.

Change-Id: I4e8d2bff82a3308c5966a0b0c154209b727db669
parents 70b32c16 a8064c2a
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -416,6 +416,21 @@ public final class MotionEvent extends InputEvent implements Parcelable {
     */
    public static final int FLAG_WINDOW_IS_OBSCURED = 0x1;

    /**
     * This flag indicates that the window that received this motion event is partly
     * or wholly obscured by another visible window above it.  This flag is set to true
     * even if the event did not directly pass through the obscured area.
     * A security sensitive application can check this flag to identify situations in which
     * a malicious application may have covered up part of its content for the purpose
     * of misleading the user or hijacking touches.  An appropriate response might be
     * to drop the suspect touches or to take additional precautions to confirm the user's
     * actual intent.
     *
     * Unlike FLAG_WINDOW_IS_OBSCURED, this is actually true.
     * @hide
     */
    public static final int FLAG_WINDOW_IS_PARTIALLY_OBSCURED = 0x2;

    /**
     * Private flag that indicates when the system has detected that this motion event
     * may be inconsistent with respect to the sequence of previously delivered motion events,