summaryrefslogtreecommitdiffstats
path: root/services/inputflinger/tests
Commit message (Collapse)AuthorAgeFilesLines
* Inputflinger: hook up key event replacement processingDmitry Torokhov2015-09-291-2/+6
| | | | | | | | | | | | | | | Add handling of "replacement" key events in InputReader and EventHub by consulting device's character key map (if exists) for presence of replacement key code for given get code and meta state combination, before passing it to InputDispatcher. This enables defining special keys, such as ESC, on keyboards lacking enough physical keys, via combination of normal keys and modifiers, for example AltR + 1 => ESC. Bug: 24504154 Change-Id: I7e36104808bedcf724436c1fbb63d37c35cca8af
* Revert "Revert "Add new MotionEvent actions for button press and release.""Michael Wright2015-05-141-10/+10
| | | | This reverts commit 70b41ef580644fd0fe6fa9b8ac7e4a745cfb6db3.
* Revert "Add new MotionEvent actions for button press and release."Michael Wright2015-05-141-10/+10
| | | | This reverts commit 48a8a0e4322969e1551536d6183af3a1faa2240b.
* Add new MotionEvent actions for button press and release.Michael Wright2015-05-141-10/+10
| | | | | | | | | | | | | | 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
* Fuse stylus and touch screen data.Michael Wright2015-04-171-0/+8
| | | | | | | TODO: Ensure we dispatch new pressure and button data when stylus is stationary. Change-Id: I10a665a9b81ff4b9acd01bf72f0fc2e0c2abc203
* Remove eng tag from input tests.Michael Wright2015-02-231-2/+1
| | | | | | | Tests always get built with the platform now anyways. Also, remove the dependency on libandroidfw since it causes issues on PDK builds. Change-Id: Ib73ec620abac3782d9fdae48778064c06b30aae0
* Move frameworks/native to libc++.Dan Albert2014-11-151-11/+1
| | | | | | | | I'm pretty sure I had done this before... Must have been new dependencies that slipped in when L merged in. Bug: 15193147 Change-Id: Ib9b1b8a65665d25c33c6141b9476a8e13c4084e0
* Clean up unused parameter warnings.Narayan Kamath2014-10-172-47/+41
| | | | | | Manual application of change 692018430f115343e36b0680acc659f2a731a5d7. Change-Id: I100f838d70e591a13abb198dc420000ef114a429
* Plumb display power state through display manager.Jeff Brown2014-04-111-4/+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
* Support unique calibration per orientationJason Gerecke2014-03-101-1/+2
| | | | | | | | | Updates the format of the calibration XML to store the Surface rotation that a specific calibration applies to. Also updates the API to require a rotation value for get/set, and has the native framework supply this according to the current rotation whenever it changes. Change-Id: If38563ceba27c9d8a75f9fd7928c8d7c9d187afb
* Add test for InputReader location calibrationJason Gerecke2014-03-101-1/+50
| | | | | | | This patch adds a test for the new native location calibration code. The Java interface is not tested. Change-Id: Id7496486f6b6e2ade12ada607b62d1594af488e8
* Initialize mAffineTransform and update on modificationJason Gerecke2014-03-101-0/+4
| | | | | | | | This patch causes the InputReader to update its mAffineTransform to reflect the currently-set calibration on startup and whenever its value is changed through the InputManagerService. Change-Id: I4719122a28afa9833772040f0433780a84240b9d
* Add support for injecting events into ActivityContainers.Jeff Brown2014-02-111-12/+27
| | | | | | | | | 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-113-0/+5397
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