summaryrefslogtreecommitdiffstats
path: root/libs/ui
Commit message (Collapse)AuthorAgeFilesLines
* am d7cd560a: am 1d79a9d9: Use correct size of GAMEPAD_KEYCODESKenny Root2010-10-211-1/+1
|\ | | | | | | | | | | | | Merge commit 'd7cd560af506f75d07034c136bea09b409b4d408' * commit 'd7cd560af506f75d07034c136bea09b409b4d408': Use correct size of GAMEPAD_KEYCODES
| * Use correct size of GAMEPAD_KEYCODESKenny Root2010-10-211-1/+1
| | | | | | | | | | | | | | | | Compute the actual number of indices in the GAMEPAD_KEYCODES instead of the pure size in bytes. Bug: 3121536 Change-Id: I71edbd8bf6eff2c8cc0ea5c6845362b3d1e06466
* | am f2c40603: am 7689dd49: Merge "Fix bug where home presses were not poking ↵Jeff Brown2010-10-191-40/+28
|\ \ | |/ | | | | | | | | | | | | | | user activity." into gingerbread Merge commit 'f2c406030874b355ca9e4e67cc0e3aff6103c23e' * commit 'f2c406030874b355ca9e4e67cc0e3aff6103c23e': Fix bug where home presses were not poking user activity.
| * Fix bug where home presses were not poking user activity.Jeff Brown2010-10-181-40/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We now poke user activity twice: once upon dequeueing an event for dispatch and then again just before we dispatch it. The second poke is to compensate for the fact that it can take a few seconds to identify the dispatch target (if the application is responding slowly) but we want to keep the display from going to sleep for X amount of time after the app gets a chance to actually receive the event. This mirrors pre-Gingerbread behavior. Removed some unnecessary code that filters user activity pokes when sending events to KeyGuard. We don't need this because KeyGuard already tells the power manager to disable user activity. Bug: 3101397 Change-Id: I8c3a77601fdef8f584e84cfdd11aa79da0ff51db
* | Add support for calibrating touch position.Jeff Brown2010-10-181-5/+33
| | | | | | | | | | | | | | Useful for tweaking touch screen alignment without having to modify the kernel device driver x/y axis bounds. Change-Id: I6ca43d3c138548f9dfb76aa33150a0c853698fb6
* | am 9e0e0543: am 36e65ffd: Merge "Fix a native crash in input dispatcher when ↵Jeff Brown2010-10-181-1/+1
|\ \ | |/ | | | | | | | | | | | | | | windows are removed." into gingerbread Merge commit '9e0e054388689fd618c84a283c28ee484477b44d' * commit '9e0e054388689fd618c84a283c28ee484477b44d': Fix a native crash in input dispatcher when windows are removed.
| * Fix a native crash in input dispatcher when windows are removed.Jeff Brown2010-10-151-1/+1
| | | | | | | | | | Bug: 3101826 Change-Id: I040838600a6105c8d9f3235025dc0a7b5b27da2e
| * Add support for secure system overlays. (DO NOT MERGE)Jeff Brown2010-10-151-2/+3
| | | | | | | | | | | | | | | | | | | | This change adds a new window type for secure system overlays created by the system itself from non-secure system overlays that might be created by applications that have the system alert permission. Secure views ignore the presence of secure system overlays. Bug: 3098519 Change-Id: I8f8398f4fdeb0469e5d71124c21bedf121bd8c07
* | am 5f0cbfce: am c1e7b218: Merge "Improve input device calibration format." ↵Jeff Brown2010-10-161-111/+176
|\ \ | |/ | | | | | | | | | | | | | | into gingerbread Merge commit '5f0cbfcecc4db20f897507c826296b3aac70c592' * commit '5f0cbfcecc4db20f897507c826296b3aac70c592': Improve input device calibration format.
| * Improve input device calibration format.Jeff Brown2010-10-141-111/+176
| | | | | | | | | | | | | | | | | | Added support for calibrating touch size for devices that report size as an area measurement rather than as a width. Fixed some bugs. Bug: 3096045 Change-Id: I30a12e73752883516ed054f8af407204bca45814
* | Add support for secure system overlays.Jeff Brown2010-10-151-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | Manual merge from Gingerbread. This change adds a new window type for secure system overlays created by the system itself from non-secure system overlays that might be created by applications that have the system alert permission. Secure views ignore the presence of secure system overlays. Bug: 3098519 Change-Id: Id876736fd8bf332ff9a5428bde59f5268aa49c3a
* | Add keycodes and meta-key modifiers to support external keyboards.Jeff Brown2010-10-153-80/+285
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added new key maps for external keyboards. These maps are intended to be shared across devices by inheriting the "keyboards.mk" product makefile as part of the device's product definition. One of the trickier changes here was to unwind some code in MetaKeyKeyListener that assumed that only the low 8 bits of the meta key state were actually used. The new code abandons bitshifts in favor of simple conditionals that are probably easier to read anyways. The special meta key state constants used by MetaKeyKeyListener are now (@hide) defined in KeyEvent now so as to make it clearer that they share the same code space even if those codes are not valid for KeyEvents. The EventHub now takes care of detecting the appropriate key layout map and key character map when the device is added and sets system properties accordingly. This avoids having duplicate code in KeyCharacterMap to probe for the appropriate key character map although the current probing mechanism has been preserved for legacy reasons just in case. Added support for tracking caps lock, num lock and scroll lock and turning their corresponding LEDs on and off as needed. The key character map format will need to be updated to correctly support PC style external keyboard semantics related to modifier keys. That will come in a later change so caps lock doesn't actually do anything right now except turn the shiny LEDs on and off... Added a list of symbolic key names to KeyEvent and improved the toString() output for debug diagnosis. Having this list in a central place in the framework also allows us to remove it from Monkey so there is one less thing to maintain when we add new keycodes. Bug: 2912307 Change-Id: If8c25e8d50a7c29bbf5d663c94284f5f86de5da4
* | am 567db077: am 2d441e14: Merge "Make sure EventHub reports added/removed ↵Jeff Brown2010-10-151-3/+8
|\ \ | |/ | | | | | | | | | | | | | | devices immediately." into gingerbread Merge commit '567db07702f851f2e7fb1fb0021ce2871469183e' * commit '567db07702f851f2e7fb1fb0021ce2871469183e': Make sure EventHub reports added/removed devices immediately.
| * Make sure EventHub reports added/removed devices immediately.Jeff Brown2010-10-141-3/+8
| | | | | | | | | | | | | | | | Fixed a bug where EventHub would not report changes in devices until the next event. Bug: 3096147 Change-Id: Ie4c3e1d14d0ad806cfaa212611ce06034d1b94d4
* | am 4b255a23: am 03aa28fb: Merge "Improve the input policy handling a bit." ↵Jeff Brown2010-10-131-8/+6
|\ \ | |/ | | | | | | | | | | | | | | into gingerbread Merge commit '4b255a23041225103a6870e77a236f78c2816eda' * commit '4b255a23041225103a6870e77a236f78c2816eda': Improve the input policy handling a bit.
| * Improve the input policy handling a bit.Jeff Brown2010-10-121-8/+6
| | | | | | | | | | | | | | Fixed some issues with Monkeys turning off their own screens. Ook ook! Added some more comments to explain what's going on. Change-Id: Id2bc0466161a642a73ef7ef97725d1c81e984b12
* | am b05632aa: am a28d5aff: Merge "Fix a bug synthesizing cancelation events ↵Jeff Brown2010-10-131-1/+1
|\ \ | |/ | | | | | | | | | | | | | | for motions." into gingerbread Merge commit 'b05632aae37ea3a3573aabf10e6868733546de96' * commit 'b05632aae37ea3a3573aabf10e6868733546de96': Fix a bug synthesizing cancelation events for motions.
| * Fix a bug synthesizing cancelation events for motions.Jeff Brown2010-10-111-1/+1
| | | | | | | | Change-Id: I881c0fa16c1d22c4b1b6cca24deb0105405ff5b0
| * Fix an event injection bug when the policy is bypassed.Jeff Brown2010-10-111-33/+30
| | | | | | | | | | | | | | | | | | | | Added the concept of a "trusted" event to distinguish between events from attached input devices or trusted injectors vs. other applications. This change enables us to move certain policy decisions out of the dispatcher and into the policy itself where they can be handled more systematically. Change-Id: I4d56fdcdd31aaa675d452088af39a70c4e039970
* | Track input state when transferring touch focus.Jeff Brown2010-10-111-0/+30
| | | | | | | | | | | | | | Copies the input state to the destination window and sends synthesic cancelation events to the source window. Change-Id: Ia75820b0d756ed5d6cd22dce7830251ac85141ed
* | Fix an event injection bug when the policy is bypassed.Jeff Brown2010-10-111-33/+30
| | | | | | | | | | | | | | | | | | | | | | | | Added the concept of a "trusted" event to distinguish between events from attached input devices or trusted injectors vs. other applications. This change enables us to move certain policy decisions out of the dispatcher and into the policy itself where they can be handled more systematically. Cherry pick of b931a1b4 from gingerbread into master. Change-Id: I700a5f07b8b227878cea9437a289a45a245c0424
* | am 41aabeb5: am 1e6a3a53: Merge "Added more robust tracking and cancelation ↵Jeff Brown2010-10-112-314/+389
|\ \ | |/ | | | | | | | | | | | | | | of events." into gingerbread Merge commit '41aabeb51305d19747687f246080f44fc2a74435' * commit '41aabeb51305d19747687f246080f44fc2a74435': Added more robust tracking and cancelation of events.
| * Added more robust tracking and cancelation of events.Jeff Brown2010-10-102-314/+389
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change fixes several issues where events would be dropped in the input dispatch pipeline in such a way that the dispatcher could not accurately track the state of the input device. Given more robust tracking, we can now also provide robust cancelation of input events in cases where an application might otherwise become out of sync with the event stream due to ANR, app switch, policy decisions, or forced focus transitions. Pruned some of the input dispatcher log output. Moved the responsibility for calling intercept*BeforeQueueing into the input dispatcher instead of the input reader and added support for early interception of injected events for events coming from trusted sources. This enables behaviors like injection of media keys while the screen is off, haptic feedback of injected virtual keys, so injected events become more "first class" in a way. Change-Id: Iec6ff1dd21e5f3c7feb80ea4feb5382bd090dbd9
* | Merge "Move binder magic from the Surface class to GraphicBuffer."Jamie Gennis2010-10-101-0/+20
|\ \
| * | Move binder magic from the Surface class to GraphicBuffer.Jamie Gennis2010-10-101-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | - Register buffers with Gralloc when unflattening a GraphicBuffer (rather than doing it in the Surface class). - Add support for a GraphicBuffer that wraps an android_native_window_t*. Change-Id: I029ac086111bbac800e5ca37eb505f558b718cd8
* | | am f10929fb: am a1bf0a06: Merge "Minor fix for InputReader support for ↵Jeff Brown2010-10-101-1/+1
|\ \ \ | |/ / |/| / | |/ | | | | | | | | | | non-touchscreen devices." into gingerbread Merge commit 'f10929fb350395c21edd2cba7641479afe75e750' * commit 'f10929fb350395c21edd2cba7641479afe75e750': Minor fix for InputReader support for non-touchscreen devices.
| * Minor fix for InputReader support for non-touchscreen devices.Jeff Brown2010-10-071-1/+1
| | | | | | | | Change-Id: I2256e37dd1c6f3836f82786aae14ee5d0c98f4c6
* | am 56364bcd: am 78d15acf: Merge "Make secure views tolerate IME overlays." ↵Jeff Brown2010-10-071-27/+30
|\ \ | |/ | | | | | | | | | | | | | | into gingerbread Merge commit '56364bcd0d1a1b064db3e83fdb64f948ce5c2ad7' * commit '56364bcd0d1a1b064db3e83fdb64f948ce5c2ad7': Make secure views tolerate IME overlays.
| * Make secure views tolerate IME overlays.Jeff Brown2010-10-051-27/+30
| | | | | | | | Change-Id: I3cf09b9d91045f4d9c558b4aace482a7b0bbd3d8
* | am ea58d1ba: am e951ef07: Merge "Wait for initial device scan to finish ↵Jeff Brown2010-10-012-26/+32
|\ \ | |/ | | | | | | | | | | | | | | before updating config." into gingerbread Merge commit 'ea58d1bac2960c1794f048bfa5d1a60b1a3d23a1' * commit 'ea58d1bac2960c1794f048bfa5d1a60b1a3d23a1': Wait for initial device scan to finish before updating config.
| * Wait for initial device scan to finish before updating config.Jeff Brown2010-10-012-26/+32
| | | | | | | | | | | | | | This change narrows the opportunity for a race condition setting the resource Configuration while devices are being updated. Change-Id: I58efa563f4129ab0fce7108511d16a99dff7e451
* | am e11b76d3: am f6295b35: Merge "Minor logging changes to input dispatcher ↵Jeff Brown2010-10-013-70/+138
|\ \ | |/ | | | | | | | | | | | | | | to help with debugging." into gingerbread Merge commit 'e11b76d3efb056edea301d53a354d0730adf3520' * commit 'e11b76d3efb056edea301d53a354d0730adf3520': Minor logging changes to input dispatcher to help with debugging.
| * Minor logging changes to input dispatcher to help with debugging.Jeff Brown2010-10-013-70/+138
| | | | | | | | | | | | | | | | Added dumpsys reporting to EventHub. Made the formatting a bit clearer. Added 'Locked' suffix to some internal methods of EventHub. Change-Id: Ic449560bcce378f6361895d27c66854e9724abb0
* | am 57fa3e8b: am 9e32a438: Merge "Support haptic feedback for virtual keys ↵Jeff Brown2010-10-011-5/+5
|\ \ | |/ | | | | | | | | | | | | | | defined in key layout." into gingerbread Merge commit '57fa3e8b4c94125ddb5be015dd7fbde4a458894f' * commit '57fa3e8b4c94125ddb5be015dd7fbde4a458894f': Support haptic feedback for virtual keys defined in key layout.
| * Support haptic feedback for virtual keys defined in key layout.Jeff Brown2010-10-011-5/+5
| | | | | | | | Change-Id: I83e4108a87332692e03791dc066206becbc7941f
* | am 5d3cef8a: am e0c12c88: Merge "Move verbose logging of device capabilities ↵Jeff Brown2010-09-301-138/+161
|\ \ | |/ | | | | | | | | | | | | | | to dumpsys." into gingerbread Merge commit '5d3cef8a6d1baec29512764b9e0ba240ccd7fcfe' * commit '5d3cef8a6d1baec29512764b9e0ba240ccd7fcfe': Move verbose logging of device capabilities to dumpsys.
| * Move verbose logging of device capabilities to dumpsys.Jeff Brown2010-09-301-138/+161
| | | | | | | | Change-Id: I5d55eaebfdf049bd1ac1e7bab2758886cfefc9d7
| * Fix bug in split touches.Jeff Brown2010-09-281-1/+2
| | | | | | | | Change-Id: I808c2201a06938f82817058059f4ddcc9b1a9ae2
* | Fix bug in split touches.Jeff Brown2010-09-281-1/+2
| | | | | | | | | | | | Cherry-picked down to master. Change-Id: I786761bd6aecc021ae22d8c9a022324f3a9980d1
* | am 26d5786f: am 9c37447e: Merge "Fix pointer index when splitting secondary ↵Jeff Brown2010-09-281-0/+8
|\ \ | |/ | | | | | | | | | | | | | | pointers." into gingerbread Merge commit '26d5786fb1a43d82b40fa908e1220a018b748c93' * commit '26d5786fb1a43d82b40fa908e1220a018b748c93': Fix pointer index when splitting secondary pointers.
| * Fix pointer index when splitting secondary pointers.Jeff Brown2010-09-271-0/+8
| | | | | | | | Change-Id: Ib01e810ea5b64501b1303000bbef0f0a1db2114e
* | Add support for transferring touch focus.Jeff Brown2010-09-271-0/+64
|/ | | | | | Prerequisite for drag and drop. Change-Id: Iedbe93ed0f3e1c4083130fe66b4ba06d416afce0
* Add suuport for splitting touch events across windows.Jeff Brown2010-09-262-321/+563
| | | | | | | | | | This feature is currently used to enable dragging the start and end selection handles of a TextView at the same time. Could be used for other things later. Deleted some dead code in ArrowKeyMovementMethod and CursorControllers. Change-Id: I930accd97ca1ca1917aab8a807db2c950fc7b409
* Merge "Fix sim-eng build on Hardy" into gingerbreadBrian Carlstrom2010-09-161-0/+8
|\
| * Fix sim-eng build on HardyBrian Carlstrom2010-09-161-0/+8
| | | | | | | | | | | | | | | | Older glibc version do not include BSD htole32 and htole64 which are present in bionic. This worksaround a sim-eng build issue by only using htole32/htole64 if the host is not little endian. Change-Id: Ia8d0d36285f3c34c51a331790458e52a21c2925f
* | Merge "Ensure input dispatcher and native looper handles EINTR." into ↵Jeff Brown2010-09-161-2/+9
|\ \ | | | | | | | | | gingerbread
| * | Ensure input dispatcher and native looper handles EINTR.Jeff Brown2010-09-161-2/+9
| |/ | | | | | | Change-Id: I0a42db5f273b9bfe4ab174e4ee65d5d852f9f6bc
* | Fix app switch latency optimization.Jeff Brown2010-09-161-48/+75
|/ | | | | | This optimization was broken due to recent changes in how ANRs are handled. Change-Id: Ic99248a12755fadac8d4893e7d305b773e038d3d
* Merge "Input API review." into gingerbreadJeff Brown2010-09-161-3/+0
|\
| * Input API review.Jeff Brown2010-09-141-3/+0
| | | | | | | | | | | | | | Drop currently unsupported input features. Add documentation comments. Change-Id: I407d2e1dd90c5ee82983a3ccf177430d35ee7592