diff options
author | Jessica Wagantall <jwagantall@cyngn.com> | 2016-06-07 10:10:00 -0700 |
---|---|---|
committer | Jessica Wagantall <jwagantall@cyngn.com> | 2016-06-07 10:10:00 -0700 |
commit | 03ea3114f6f2ace98a1b892343161cc9f4bd45bc (patch) | |
tree | afb48079395855d65502d0050a6a4ad445e33c6a /core | |
parent | 423a82e0870ff4fdf6ea60f5a56b37be062557b5 (diff) | |
parent | 9878bb99b77c3681f0fda116e2964bac26f349c3 (diff) | |
download | frameworks_base-03ea3114f6f2ace98a1b892343161cc9f4bd45bc.zip frameworks_base-03ea3114f6f2ace98a1b892343161cc9f4bd45bc.tar.gz frameworks_base-03ea3114f6f2ace98a1b892343161cc9f4bd45bc.tar.bz2 |
Merge tag 'android-6.0.1_r46' into HEAD
Android 6.0.1 release 46
# gpg: Signature made Mon 06 Jun 2016 10:38:22 AM PDT using DSA key ID 9AB10E78
# gpg: Can't check signature: public key not found
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/view/MotionEvent.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/core/java/android/view/MotionEvent.java b/core/java/android/view/MotionEvent.java index 527d7e5..e0c9d59 100644 --- a/core/java/android/view/MotionEvent.java +++ b/core/java/android/view/MotionEvent.java @@ -417,6 +417,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, * such as when a pointer move event is sent but the pointer is not down. |