summaryrefslogtreecommitdiffstats
path: root/services/input
Commit message (Collapse)AuthorAgeFilesLines
* am b2db2fbc: am 6d90862f: am d65825ab: Merge "Private flags are masked in ↵Adam Lesinski2013-10-032-10/+13
|\ | | | | | | | | | | | | correct variable" into klp-dev * commit 'b2db2fbce33dbcfa52ccb20267ad4897c558c34f': Private flags are masked in correct variable
| * Private flags are masked in correct variableAdam Lesinski2013-10-022-10/+13
| | | | | | | | | | | | | | | | | | Newly added private flags were being masked in the public flag variable as opposed to the correct privateFlags variable. bug:11033280 bug:11043194 Change-Id: Idda3a70a083457f3f1b7d4b46d231f4a7e704cf0
* | Move EventHub over to using EPOLLWAKEUP when availableMichael Wright2013-09-253-7/+28
|/ | | | | Bug: 10901016 Change-Id: If63c0de5cf120cdf1534d63fc2382d2925b35c6a
* Propagate input ANR reason to activity manager log.Jeff Brown2013-09-103-3/+8
| | | | | | | | Make it a little easier to diagnose input dispatch timeouts by providing the detailed reason as the ANR annotation in the log. Bug: 10689184 Change-Id: Ie18fd9ad066b0673d1f57c030e027ad0085f4650
* Drop touch events when no window was touched.Jeff Brown2013-08-221-15/+1
| | | | | | | | | | | | | | | Prevent spurious ANRs in the case where an input event is simply undeliverable because there is no window at the touched location. Previously, we would assume that we were just waiting for an application to start and become available to handle the event but this assumption is no longer valid. Monkeys in particular have a tendency to inject events outside of the boundaries of the display which results in spurious ANRs. So we should just reject them. Bug: 9774124 Change-Id: I5c40ce4c942f0557593a229dc5253a0e0bdb8466
* Bound touch and tool axes lengths below at 0Michael Wright2013-08-141-0/+3
| | | | Change-Id: I75ca196312201773cfabb74ee5b28a7d80f6ba60
* Dump information about recent input events.Jeff Brown2013-08-072-6/+62
| | | | | | | | To help track down ANRs, include more information about recent events in the input dispatcher dumps. Bug: 9774124 Change-Id: I94732f173d3518c2f4780668d2eb3ee9ae9fcb10
* Add controller numbers for gamepads / joysticksMichael Wright2013-07-235-29/+90
| | | | Change-Id: I30ac9add6a2473a5ebd83a022c571545e61d1136
* Merge "Add input device property for buttons under touchpads"Michael Wright2013-07-192-0/+5
|\
| * Add input device property for buttons under touchpadsMichael Wright2013-07-172-0/+5
| | | | | | | | | | Bug: 8990644 Change-Id: I2cc10457595a861b707c0394bd435d60efa8405b
* | Merge "Properly set the tap down time when entering non-tap modes"Michael Wright2013-07-191-2/+14
|\ \ | |/ |/|
| * Properly set the tap down time when entering non-tap modesMichael Wright2013-07-021-2/+14
| | | | | | | | | | | | | | This prevents us from erroneously generating tap gestures on things like quick button presses. Change-Id: I708e7df9341df589927fd2c0e15c202ccb30ba9b
* | am 7e0fad1d: am 8b95d259: am b7925f22: Merge "Revert "Stop marking gamepads ↵Satoshi Kataoka2013-07-111-8/+5
|\ \ | |/ |/| | | | | | | | | as keyboards"" into jb-mr2-dev * commit '7e0fad1d442428b9a2ba5d88ce7f8a59869acb0e': Revert "Stop marking gamepads as keyboards"
| * am 8b95d259: am b7925f22: Merge "Revert "Stop marking gamepads as ↵Satoshi Kataoka2013-07-091-8/+5
| |\ | | | | | | | | | | | | | | | | | | keyboards"" into jb-mr2-dev * commit '8b95d259b9f66342ba5ae6e8f4ea262dcb1de05b': Revert "Stop marking gamepads as keyboards"
| | * Merge "Revert "Stop marking gamepads as keyboards"" into jb-mr2-devSatoshi Kataoka2013-07-091-8/+5
| | |\
| | | * Revert "Stop marking gamepads as keyboards"Ken Wakasa2013-07-051-8/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 74c8fb601ef75d8e12df5221489c41c125e3b846. Change-Id: If8ca4d09b4d52f11d48dabebf2dff2984760cdc0 bug: 8896129
* | | | Move input library code to frameworks/native.Jeff Brown2013-07-0112-26/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No longer compile libandroidfw as a static library on the device since it already exists as a shared library. Keeping the static library would force us to provide a static library version of libinput for the device as well which doesn't make sense. Change-Id: I3517881b87b47dcc209d80dbd0ac6b5cf29a766f
* | | | am ef0c3e26: am c8c82009: resolved conflicts for merge of 7573e594 to ↵Jeff Brown2013-05-281-4/+8
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | stage-aosp-master * commit 'ef0c3e269f15200a3a1111ce9f80516b2d38590a': Properly rotate full [-pi, +pi] orientation range if available
| * | | resolved conflicts for merge of 7573e594 to stage-aosp-masterJeff Brown2013-05-281-4/+8
| |\ \ \ | | |/ / | |/| | | | | | Change-Id: Ic19294c82ec023707e23b5848901426433b22e9f
| | * | Properly rotate full [-pi, +pi] orientation range if availableJason Gerecke2013-03-151-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The code currently in place assumes that orientation has a range of [-pi/2, +pi/2] as may be found with a touch digitizer. However, when used with a digitzer that can report the full [-pi, +pi] range of orientations (e.g. a stylus) the calculations here are incorrect. This patch checks if the post-rotation value is out of range for the axis, and wraps it back around. Change-Id: I03a22f7bf9526a5d995df1a18430d6dd24c6d6ee
| * | | Pipe through bounding box information (DO NOT MERGE)Michael Wright2013-05-232-4/+90
| | | | | | | | | | | | | | | | | | | | Bug: 9110236 Change-Id: I7aefe6589fbaf92e5c71a0ba5425623578bafe95
* | | | Merge "Pipe through bounding box information"Michael Wright2013-05-212-4/+90
|\ \ \ \
| * | | | Pipe through bounding box informationMichael Wright2013-05-202-4/+90
| | | | | | | | | | | | | | | | | | | | Change-Id: Ic09f2f8f18e21f9582e4ed10aad3b7ec1cc41ddc
* | | | | Merge "Build native libinput tests using BUILD_NATIVE_TESTS"Brett Chabot2013-05-211-1/+1
|\ \ \ \ \ | |_|/ / / |/| | | |
| * | | | Build native libinput tests using BUILD_NATIVE_TESTSBrett Chabot2013-05-161-1/+1
| |/ / / | | | | | | | | | | | | Change-Id: Ic50c828e1e8879e70aa85de63303ead11886d498
* | | | Remove assist swipe from TOUCH_NAVIGATION devicesMichael Wright2013-05-172-66/+0
|/ / / | | | | | | | | | | | | Bug: 9019927 Change-Id: I0a67ee00038b6fba7818f64ba02515767e34fe06 (cherry picked from commit 681a3d710402b80a8375a05172b1fb6f720295be)
* | | Mirror LTRIGGER / RTRIGGER as BRAKE / GAS for compatibilityMichael Wright2013-04-242-6/+52
| | | | | | | | | | | | | | | Bug: 8590913 Change-Id: If2918a67ecdd946ed850acc002ca021e150ec39d
* | | Merge "Stop marking gamepads as keyboards" into jb-mr2-devMichael Wright2013-04-101-5/+8
|\ \ \ | | |/ | |/|
| * | Stop marking gamepads as keyboardsMichael Wright2013-04-081-5/+8
| | | | | | | | | | | | Change-Id: I0ba49aa3235b2e0a50405cf6d68632e268fe4183
* | | Rewrite touch navigation dpad synthesis.Jeff Brown2013-04-104-10/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new implementation more accurately tracks the velocity of flings and takes care to avoid obvious discontinuities. The main goal is for a fling to appear to be a linear extension of the movement already in progress. The minimum fling velocity is set to ensure that flings appear to be fairly smooth despite being discretized. Use sequences of repeated key events instead of individual down/up events to represent continuous motions in one direction which can be helpful for stopping flings at boundaries such as when flinging the cursor position within a text view. Compute the movement thresholds based on the physical size of the touch pad, if known. If not known, we assume a nominal size. Support stopping flings with a tap just like we do for normal touch events elsewhere in the framework. Moved the detection of ASSIST swipes into the InputReader where it belongs. These swipes must be detected globally to ensure consistent behavior across the all applications. Added a custom protocol in EventHub to enable input device drivers to override the timestamp of the following events in a packet. This change enables input device drivers that have a better idea of when an input event was actually generated to pass this information to the input system. Particularly useful with uinput. Bug: 8583760 Change-Id: I8ef4e827804786d549cfaa00793a2b9dd0fda465
* | | Add liblogYing Wang2013-04-092-0/+2
|/ / | | | | | | | | Bug: 8580410 Change-Id: I746aa8258866508c3a725d0773faf4518096548f
* | Pipe through device resolution informationMichael Wright2013-04-042-27/+47
| | | | | | | | | | Bug: 8424494 Change-Id: Iafeeee0d5cd29342c1cdc86b9616222aaa5d1b94
* | Deliver key repeats for artificial dpad eventsMichael Wright2013-03-261-0/+2
| | | | | | | | | | Bug: 8425219 Change-Id: Ib41b06ed40d43f2e30ce2a647871a76cea80177b
* | Add APP_SWITCH to app switch input dispatching optimizationMichael Wright2013-03-211-1/+3
| | | | | | | | Change-Id: I8a95fbf311ebd62bcdaaeecfacaea7996ddaec74
* | Add touch navigation input sourceMichael Wright2013-03-112-0/+9
| | | | | | | | | | Bug: 8276741 Change-Id: I674b9804bf9ae76d694ae7073b54a7d43474a43c
* | Merge "Disable kernel keyrepeat"Michael Wright2013-02-231-0/+6
|\ \
| * | Disable kernel keyrepeatMichael Wright2013-02-221-0/+6
| | | | | | | | | | | | | | | Bug: 6332980 Change-Id: Ife69167285aad24ed3e4fa5b65abf59d8dfa4f0a
* | | am ceec31b7: Merge changes I5a218ca1,I853a76d9Mathias Agopian2013-02-151-11/+12
|\ \ \ | |/ / | | | | | | | | | | | | * commit 'ceec31b7dab6a23e443d5dcbcfac4a23b720cfde': Refactoring: Rename SurfaceTextureClient to Surface clean-up following Surface split
| * | Refactoring: Rename SurfaceTextureClient to SurfaceMathias Agopian2013-02-151-11/+12
| | | | | | | | | | | | Change-Id: I5a218ca11abeeec05e3a4c3cfc581bcc788814ea
| * | Revert "Merge remote-tracking branch 'goog/master-chromium' into ↵Chris Craik2013-02-131-1/+2
|/ / | | | | | | | | | | | | | | | | | | | | | | 'goog/master'" DO NOT MERGE This reverts commit 6c0307dd0aefe9a08794b155fc03ee60ebd14f25, reversing changes made to a2cd828b749c444d55c2c41c7dbb85088ff94b9f. Conflicts: packages/SystemUI/res/values-sv/strings.xml Change-Id: Ia178efe8b14751583d47b2826bfe3d3d5463dd2e
* | Remove calls to SkCanvas::setBitmapDevice()Derek Sollenberger2013-01-081-2/+1
|/ | | | Change-Id: Ib0aa2f65b77802b105c0e8a9d7cdde2e863d3673
* Eliminate potential reentrance from unregisterInputChannel.Jeff Brown2012-10-312-6/+16
| | | | | | | | | | | | | | Ensure that all callbacks into the window manager policy occur on the input dispatcher thread in the right place. This fixes a potential deadlock that may occur if the window manager unregisters an input channel while holding its own lock. The change is simply to defer running asynchronous commands (usually callbacks into the policy) until the next iteration of the dispatch looper thread. Bug: 7382388 Change-Id: I90095580d717fcddb2209ef332df56400f837a34
* Recover from bad input event timestamps from the kernel.Jeff Brown2012-10-052-2/+37
| | | | | | | | | This can happen due to a race when the input device is opened or if the kernel happens to be missing the required Android patches to set the timestamp correctly. Bug: 7291243 Change-Id: If4319440eaff2889147c86296abd39efc5664346
* New internal API to eliminate poke locks.Jeff Brown2012-10-012-0/+12
| | | | | | | | | | | Added a new WindowManager.LayoutParams inputFeatures flag to disable automatic user activity behavior when an input event is sent to a window. Added a new WindowManager.LayoutParams field userActivityTimeout. Bug: 7165399 Change-Id: I204eafa37ef26aacc2c52a1ba1ecce1eebb0e0d9
* Bundle correlated switch changes atomically.Jeff Brown2012-09-278-19/+46
| | | | | | | This is a prerequisite for headset jack detection on Manta. Bug: 6548391 Change-Id: I549a194344511c0cee578b00f6a9ab5fdbdfb99c
* Make input system aware of multiple displays.Jeff Brown2012-09-108-133/+301
| | | | | | | | | | | | | | | | | | | | The input system needs to know about the window that has focus, even if it is on a secondary display. So now we send it the list of all windows and indicate which display they are on. We filter the list of windows as necessary when delivering touch events. To keep things simple, monitor input channels and input filters are not supported except on the main display. We also do not pass the display id to applications; it is only used inside the input system for now. Properly scale touch coordinates based on the viewport. This will be needed to ensure that touch works on external display as well as when the internal display is being used to simulate a different resolution. Change-Id: I1815579a52fcc852c519b5391fc7ab8767c2dc59
* Make display manager tell input system about viewports.Jeff Brown2012-09-085-94/+124
| | | | | | | The window manager is no longer responsible for telling the input system about the display viewport. Change-Id: I932882bae55decef55f25093bb2a7ebac1620bb1
* Remove unused "layer" argument from show().Jeff Brown2012-08-271-1/+1
| | | | Change-Id: I795edb8889bbacdf20fc54d755034040295f281a
* Add plumbing for new surface flinger display API.Jeff Brown2012-08-271-1/+2
| | | | | | | | | | | | | | Cleaned up the implementation of Surface and SurfaceSession to use more consistent naming and structure. Added JNI for all of the new surface flinger display API calls. Enforced the requirement that all Surfaces created by the window manager be named. Updated the display manager service to use the new methods. Change-Id: I2a658f1bfd0437e1c6f9d22df8d4ffcce7284ca2
* Use new surface flinger API.Jeff Brown2012-08-271-1/+1
| | | | Change-Id: Ic888577408a59a36481a48010e19c5e77c24e211