summaryrefslogtreecommitdiffstats
path: root/libs/androidfw/Input.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Move input library code to frameworks/native.Jeff Brown2013-07-011-634/+0
| | | | | | | | | 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 75701e8f: am 7eb4db35: am b9185fd1: Merge "Fix PointerCoords Parcel ↵Jeffrey Brown2013-02-061-2/+2
|\ | | | | | | | | | | | | | | | | incorrectly storing values as Int32" # By Ilya Polenov # Via Android Git Automerger (2) and Gerrit Code Review (2) * commit '75701e8fc92285680637f69e0f004741919ddc10': Fix PointerCoords Parcel incorrectly storing values as Int32
| * Fix PointerCoords Parcel incorrectly storing values as Int32Ilya Polenov2013-01-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | PointerCoords stores its values as float and its Parcel should do the same. Wrong behaviour may be noticed when MotionEvent is injected using Instrumentation method sendPointerSync. All its PointerCoords values(size, orientation, pressure, etc) will be casted to integer omitting their decimal part. This fix addresses this issue. Change-Id: Ifa3dfce4d5c2e6c060852f4208cb5684e827c7e6 Signed-off-by: Ilya Polenov <daioptych@gmail.com>
* | Add initial plumbing for brightness keysMichael Wright2013-02-011-0/+4
|/ | | | Change-Id: I595e8a25e6c245e4b22f06df9a8acdbb75e4b041
* Improve touch event resampling.Jeff Brown2012-05-141-20/+0
| | | | | | | | | | | | | | | | | | | Fixed a few bugs related to the id-to-index mapping for pointer coordinates. Tightened the bounds on the resampling time interval to avoid predicting too far into the future. Only lerp X and Y components of motion events. Alter the future to satisfy past predictions. (Rewrite touch events to conceal obvious discontinuities.) Added a system property to control whether resampling is enabled for debugging purposes. Bug: 6375101 Change-Id: I35972d63278bc4e78148053a4125ad9abeebfedb
* Minor refactoring before starting on velocity tracker changes.Jeff Brown2012-05-111-508/+2
| | | | | Bug: 6413587 Change-Id: I5eba2bb57193bff78cb3740de5f87aca0b31d154
* Resample touch events on frame boundaries.Jeff Brown2012-04-271-0/+20
| | | | | Bug: 6375101 Change-Id: I8774e366306bb2b6b4e42b913525bf25b0380ec3
* Request key maps from input manager service.Jeff Brown2012-04-101-158/+16
| | | | | | | | | | | | | | | | | | Instead of each application loading the KeyCharacterMap from the file system, get them from the input manager service as part of the InputDevice object. Refactored InputManager to be a proper singleton instead of having a bunch of static methods. InputManager now maintains a cache of all InputDevice objects that it has loaded. Currently we never invalidate the cache which can cause InputDevice to return stale motion ranges if the device is reconfigured. This will be fixed in a future change. Added a fake InputDevice with ID -1 to represent the virtual keyboard. Change-Id: If7a695839ad0972317a5aab89e9d1e42ace28eb7
* Add a unique input device descriptor.Jeff Brown2012-04-061-3/+6
| | | | | | | | | | | | | The purpose of the input device descriptor is to make it possible to associate persistent settings for each input device, such as the keyboard layout. The descriptor is a hash of the information we have about the device, such as its vendor id, product id, unique id, name, or location. Bug: 6110399 Change-Id: Idb80f946819b3f0dbf4e661bb0a753dbc2b60981
* Fix spurious ANRs in native activities.Jeff Brown2012-03-131-0/+52
| | | | | | | | | | | | | | Some native activities experienced ANRs when the input consumer deferred an input event due to client-side batching. If the input channel was fully emptied then the client had no way of knowing that it should wake up to handle the deferred input event. This patch also fixes some lock issues in the native activity input queue implementation. In at least one error case, it was possible for a function to exit without releasing the lock. Bug: 6051176 Change-Id: I4d9d843237e69b9834f8d8b360031b677fcab8c3
* frameworks/base refactoringMathias Agopian2012-02-201-0/+1223
create the new libandroidfw from parts of libui and libutils Change-Id: I1584995616fff5d527a2aba63921b682a6194d58