diff options
| author | 2010-10-11 16:27:36 -0700 | |
|---|---|---|
| committer | 2010-10-11 16:27:36 -0700 | |
| commit | 1da8d4d1697cec871dea8c30dad67e90db10bde6 (patch) | |
| tree | 9a9fe2f4a87edb3e0816ef5b28f1076e476803e8 /include/ui/Input.h | |
| parent | 44104df10660c711129fd263364afc2174f40ac2 (diff) | |
| parent | b931a1b4183386ba840edc1bcc507eccf11b5cbe (diff) | |
Merge "Fix an event injection bug when the policy is bypassed." into gingerbread
Diffstat (limited to 'include/ui/Input.h')
| -rw-r--r-- | include/ui/Input.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ui/Input.h b/include/ui/Input.h index 66061fd71935..8c6018bfeeb2 100644 --- a/include/ui/Input.h +++ b/include/ui/Input.h @@ -95,6 +95,10 @@ enum { // Indicates that the input event was injected. POLICY_FLAG_INJECTED = 0x01000000, + // Indicates that the input event is from a trusted source such as a directly attached + // input device or an application with system-wide event injection permission. + POLICY_FLAG_TRUSTED = 0x02000000, + /* These flags are set by the input reader policy as it intercepts each event. */ // Indicates that the screen was off when the event was received and the event |