diff options
author | 2016-04-18 18:57:54 +0000 | |
---|---|---|
committer | 2016-04-18 18:57:54 +0000 | |
commit | bc57aaed0e9ac88a63fa989dba145dc35d048c48 (patch) | |
tree | f9d1fe514f38f4d6bf598da5fb629caccc468eda | |
parent | 70b32c1609fc5dcdb7642c58c1f77ab9dc8c2524 (diff) | |
parent | a8064c2a8b54881bceade03a9d2f6c1223e055f3 (diff) |
Merge "Add new, hidden MotionEvent flag for partially obscured windows." into mnc-dev am: 224582e am: c6629bd
am: a8064c2
* commit 'a8064c2a8b54881bceade03a9d2f6c1223e055f3':
Add new, hidden MotionEvent flag for partially obscured windows.
Change-Id: I4e8d2bff82a3308c5966a0b0c154209b727db669
-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 527d7e51c3e3..e0c9d596cc9a 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. |