summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2010-10-11 14:20:19 -0700
committerJeff Brown <jeffbrown@google.com>2010-10-11 16:26:13 -0700
commitb931a1b4183386ba840edc1bcc507eccf11b5cbe (patch)
treef9e1ba1030d392ab288ad13e5eaba32c65a96c76 /core
parentb699726018a0049665d8ad6b90dbc5af0e18f135 (diff)
downloadframeworks_base-b931a1b4183386ba840edc1bcc507eccf11b5cbe.zip
frameworks_base-b931a1b4183386ba840edc1bcc507eccf11b5cbe.tar.gz
frameworks_base-b931a1b4183386ba840edc1bcc507eccf11b5cbe.tar.bz2
Fix an event injection bug when the policy is bypassed.
Added the concept of a "trusted" event to distinguish between events from attached input devices or trusted injectors vs. other applications. This change enables us to move certain policy decisions out of the dispatcher and into the policy itself where they can be handled more systematically. Change-Id: I4d56fdcdd31aaa675d452088af39a70c4e039970
Diffstat (limited to 'core')
-rw-r--r--core/java/android/view/WindowManagerPolicy.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/java/android/view/WindowManagerPolicy.java b/core/java/android/view/WindowManagerPolicy.java
index ef7716e..1fd31a3 100644
--- a/core/java/android/view/WindowManagerPolicy.java
+++ b/core/java/android/view/WindowManagerPolicy.java
@@ -77,6 +77,7 @@ public interface WindowManagerPolicy {
public final static int FLAG_VIRTUAL = 0x00000100;
public final static int FLAG_INJECTED = 0x01000000;
+ public final static int FLAG_TRUSTED = 0x02000000;
public final static int FLAG_WOKE_HERE = 0x10000000;
public final static int FLAG_BRIGHT_HERE = 0x20000000;