summaryrefslogtreecommitdiffstats
path: root/services/inputflinger/InputDispatcher.h
Commit message (Collapse)AuthorAgeFilesLines
* Add new MotionEvent flag for partially obscured windows.Michael Wright2016-04-211-1/+8
| | | | | | | | | | | | | | | | | | | Due to more complex window layouts resulting in lots of overlapping windows, the policy around FLAG_WINDOW_IS_OBSCURED has changed to only be set when the point at which the window was touched is obscured. Unfortunately, this doesn't prevent tapjacking attacks that overlay the dialog's text, making a potentially dangerous operation seem innocuous. To avoid this on particularly sensitive dialogs, introduce a new flag that really does tell you when your window is being even partially overlapped. We aren't exposing this as API since we plan on making the original flag more robust. This is really a workaround for system dialogs since we generally know their layout and screen position, and that they're unlikely to be overlapped by other applications. Bug: 26677796 Change-Id: I9e336afe90f262ba22015876769a9c510048fd47
* Send cancelation events to monitors when injection fails.Michael Wright2015-06-121-0/+1
| | | | | Bug: 20649729 Change-Id: I46cd14ac1f040d404c0b1581b38fa07a944e5fb9
* Only log dropped input when disabled for the first event.Michael Wright2015-06-101-0/+2
| | | | | Bug: 19851495 Change-Id: I8cb8076723c1ca1732c3bc37f283d8eb48b7bee0
* Revert "Revert "Add new MotionEvent actions for button press and release.""Michael Wright2015-05-141-3/+4
| | | | This reverts commit 70b41ef580644fd0fe6fa9b8ac7e4a745cfb6db3.
* Revert "Add new MotionEvent actions for button press and release."Michael Wright2015-05-141-4/+3
| | | | This reverts commit 48a8a0e4322969e1551536d6183af3a1faa2240b.
* Add new MotionEvent actions for button press and release.Michael Wright2015-05-141-3/+4
| | | | | | | | | | | | | | Introduce ACTION_BUTTON_PRESS and ACTION_BUTTON_RELEASE as actions to signal a button press or release. If these actions happen simulanteously with a DOWN or UP event then they're explicitly ordered to happen after the DOWN or preceding the UP in order to send them to the most recently targeted view. Also, introduce new stylus button constants that differ from the constants we use for mouse buttons. Bug: 20704355 Change-Id: Ib960a5004db5429ad2fc8db020704773e2978327
* InputDispatcher: Optimize count()Jon McCaffrey2014-11-261-2/+9
| | | | | | | | | | | | Count items as they are added and removed rather than iterating over the entire list to count them. Increases performance slightly, particularly when tracing is turned on, which causes count to be queried more often, and when the number of items in the queues grow large. This can happen due to applications not responding, for example. Change-Id: I0f11f7edd46089612af910cdfabfeb3ee685d7d9
* Improve ANR diagnostics.Jeff Brown2014-10-101-2/+4
| | | | | | | | | | | | | Print more details about the exact reason that an ANR has occurred. Also start checking that the window actually has a registered input connection that is not in a broken state. These windows are supposed to be cleaned up by the window manager promptly as if the app had crashed but the pattern of ANRs we are observing suggests that broken windows might be sticking around longer than they should. Bug: 17721767 Change-Id: Ie2803a3fa9642381ecadc198fec15e1b70d93c20
* Revert "Revert "Add system accelerators for BACK and HOME.""Michael Wright2014-08-061-0/+14
| | | | | | This reverts commit d671f98a27f547ebcddff8dc962fe895549355e2. Change-Id: Ibec48f81653bd2f755fc59a241fa7836baf53233
* Revert "Add system accelerators for BACK and HOME."Michael Wright2014-08-061-14/+0
| | | | This reverts commit 278b525d25b852554015ec4f92862f9297b502fd.
* Add system accelerators for BACK and HOME.Michael Wright2014-08-061-0/+14
| | | | | | | | Meta+Backspace -> BACK Meta+Enter -> HOME Bug: 14066931 Change-Id: Iff1d027300fa9911626785944a6d8efe4f62235e
* Plumb display power state through display manager.Jeff Brown2014-04-111-3/+0
| | | | | | | | Eliminated the bright here and woke here policy flags since they were unused. Simplified the input dispatch policy somewhat. Bug: 13133142 Change-Id: I74b4dc866c44c46ed43006a48a857f0da4c07cc9
* Add support for injecting events into ActivityContainers.Jeff Brown2014-02-111-4/+5
| | | | | | | | | Enhanced the input system to support concurrent dispatch of touch events on multiple displays which is required for this to work. Add method to apply offset to PointerCoords. Change-Id: I55fe4a9a8785ae5a2d3341d214fa3c5107f3963a
* Move inputservice over to frameworks/nativeMichael Wright2014-02-111-0/+1123
| | | | | | | | | | Add all of the underlying input system pieces, minux PointerController and SpriteController, to inputflinger. This is in preparation for moving input to its own process and the addition of the input HAL. Try 2. Change-Id: I5f571fe86eb570885ae994e1f0552fb558930346
* Revert "Move inputservice over to frameworks/native"Michael Wright2014-02-101-1123/+0
| | | | This reverts commit 2dceb67f1f32bd2ec589c4ac3d83da0b8dbe4a5c.
* Move inputservice over to frameworks/nativeMichael Wright2014-02-101-0/+1123
Add all of the underlying input system pieces, minux PointerController and SpriteController, to inputflinger. This is in preparation for moving input to its own process and the addition of the input HAL. Change-Id: I1419a740b38756bd0d54fef5f5ca337e6815b1b0