cf39bdf3dff5e29447f6ce734b76dc3490385e58 |
18-May-2012 |
Jeff Brown <jeffbrown@google.com> |
Add support for switching between multiple keyboard layouts. Also show a notification when an external keyboard is connected and does not have a keyboard layout selected yet. Bug: 6405203 Change-Id: Id0ac6d83b3b381f8a236b2244a04c9acb203db3c
eneric.kcm
irtual.kcm
|
80b2760332f0c9af3757597ae6e5e5ab6bb69c38 |
26-Apr-2012 |
Jeff Brown <jeffbrown@google.com> |
Map KEY_SELECT to DPAD_CENTER. Change-Id: If387be6b233db2222347e39e9edb3ad886e936a3
eneric.kl
|
9a2bbf680e3b5b98051b9f2913ab6bd31b77f79a |
18-Apr-2012 |
Jeff Brown <jeffbrown@google.com> |
Improve handling of certain keyboard layout properties. Automatically choose a default value for the 'number' property based on the characters that the key can generate. Don't generate any character when ctrl, alt or meta is pressed unless the behavior exactly matches the modifier keys that are pressed. Simplified the basic keyboard layouts taking into account the new features. Bug: 6110399 Change-Id: Ibc0f0b50c2dcf3f962a33ac77c24d2993b77637d
eneric.kcm
irtual.kcm
|
7511f9cd2ff39075ff56c2558c785caffc8b4383 |
10-Feb-2012 |
Yang Chuang <Yang_Chuang@asus.com> |
Add Japanese specific key codes. These keys are specific to Japanese hardware keyboard which can be used by input method. Patch ported from AOSP, with the addition of EISU and KANA mappings. Change-Id: I647473cdd257458e3b9d134b0fc623eae946c3e0
eneric.kl
|
6651a638348c15e89e265b0a53c775cac9beafa2 |
28-Nov-2011 |
Jeff Brown <jeffbrown@google.com> |
Fix application launch shortcuts. Improved quick launch bookmarks to support category-based shortcuts instead of hardcoding package and class names for all apps. Added a set of Intent categories for typical applications on the platform. Added support for some of the HID application launch usages to reduce reliance on quick launch for special purpose keys. Some keyboard vendors have hardcoded launch keys that synthesize "Search + X" type key combos. The goal is to encourage them to stop doing this by implementing more of HID. Bug: 5674723 Change-Id: I79f1147c65a208efc3f67228c9f0fa5cd050c593
eneric.kl
|
4f3aa5849066841dcf3fcce2f3f367f77c48ddfe |
10-Oct-2011 |
Ying Wang <wangying@google.com> |
Remove non-module names from PRODUCT_PACKAGES Bug: 5430740 Those files are in PRODUCT_COPY_FILES but not modules that can be put in PRODUCT_PACKAGES. Change-Id: I9e2f60de7ac2e12e6880e1365a36615835ca747c
eyboards.mk
|
eee00495f5c65340bff80e8afa8090b3b18619de |
10-Aug-2011 |
Jeff Brown <jeffbrown@google.com> |
Update keymaps. Bug: 5069142 Add some additional mappings for the POWER key to support more standard HID devices. Remove some non-standard mappings that don't make sense anymore. Change-Id: Ie95a72c60d4dc4bfb3c90f6f3b343365f8e76685
eneric.kl
|
5487500cf3d9f6d7703ce0704cb91837aa95d716 |
07-Apr-2011 |
Jeff Brown <jeffbrown@google.com> |
Minor Alt-TAB / Recent Apps Dialog improvements. Alt-TAB should have different semantics from the APP_SWITCH key or long-press on HOME. Accordingly, remove the fallback action for Alt-TAB and initiate the task switching behavior directly in the policy. Modified RecentApplicationsDialog to be more precise about the initial modifiers that it considers to be holding the dialog. The dialog is now dismissed by a second press on the APP_SWITCH key or by a second long press on HOME. Change-Id: Idf4d803f51103819057cb655ff3b770b7729e4be
eneric.kcm
|
8c769cb9cc02fe0496c16b51bc555729accf70c4 |
30-Mar-2011 |
Jeff Brown <jeffbrown@google.com> |
Support primitive ALT-TAB style navigation using Recent Apps. Change-Id: I6dc774326c971826d160c82126fb39acb5b9124b
eneric.kcm
|
3a22fa057091cd6614f58ebc57a7ce4fe29462bb |
04-Mar-2011 |
Jeff Brown <jeffbrown@google.com> |
Joystick tweaks. Ensure that the joystick can always reach -1.0, 0.0 and 1.0 positions even when noise filtering is applied. (Bug: 3514510) Add support for a few more standard axes. Add additional mapping modes for axes. Some axes are inverted from standard interpretation or are actually intended to be split into two distict axes such as left/right trigger controls or accelerator/brake. Add key layout file for a G25 racing wheel and XBox 360 controller to tweak behavior. They work fine without them but the axis mappings are not ideal. Change-Id: Id4c86a0a272331c680039a9bde6815bb7eba44ab
eneric.kl
endor_045e_Product_028e.kl
endor_046d_Product_c294.kl
endor_046d_Product_c299.kl
ommon.mk
|
e7b2029a0b7b948daf2d6accbc200a56d72f96ca |
03-Mar-2011 |
Jeff Brown <jeffbrown@google.com> |
Recognize 3D joysticks. Change-Id: Ie4eae09c0334f69c2ccfcf7eaede075f9ba02eab
eneric.kl
|
6f2fba428ca5e77a26d991ad728e346cc47609ee |
19-Feb-2011 |
Jeff Brown <jeffbrown@google.com> |
Add new axes for joysticks and mouse wheels. Added API on InputDevice to query the set of axes available. Added API on KeyEvent and MotionEvent to convert keycodes and axes to symbolic name strings for diagnostic purposes. Added API on KeyEvent to query if a given key code is a gamepad button. Added a new "axis" element to key layout files to specify the mapping between raw absolute axis values and motion axis ids. Expanded the axis bitfield to 64bits to allow for future growth. Modified the Makefile for keyboard prebuilts to run the keymap validation tool during the build. Added layouts for two game controllers. Added default actions for game pad button keys. Added more tests. Fixed a bunch of bugs. Change-Id: I73f9166c3b3c5bcf4970845b58088ad467525525
ndroid.mk
eneric.kcm
eneric.kl
endor_046d_Product_c216.kl
endor_054c_Product_0268.kl
ommon.mk
|
dc9988feecada1db5da6d1bb661508ba34395a30 |
26-Jan-2011 |
Jeff Brown <jeffbrown@google.com> |
am f0ea11d7: am 8b557459: Merge "Fix emulator touchscreen." into honeycomb * commit 'f0ea11d7128f3e654d91683ea6efe59ac714b9ef': Fix emulator touchscreen.
|
77ef8b50616dc21f02dc09d77bfdcda166d24a74 |
26-Jan-2011 |
Jeff Brown <jeffbrown@google.com> |
Fix emulator touchscreen. Bug: 3393763 Change-Id: Ief16640344d61d283aac08ef4b53e85d7ee3c73f
werty.idc
werty2.idc
|
1df27c02ec96fd2a4a17494cdef4fea8610ecc7c |
25-Jan-2011 |
Jeff Brown <jeffbrown@google.com> |
am 1f26ea13: am 561a434b: Merge "Fix emulator trackball." into honeycomb * commit '1f26ea1306a018a0d0eac2295a5ca235b9475d86': Fix emulator trackball.
|
76646cef5fea10ec64b804bb3c640c6a545395f5 |
25-Jan-2011 |
Jeff Brown <jeffbrown@google.com> |
Fix emulator trackball. Bug: 3369229 Change-Id: I97ce0ac664636224decb040c743704dfcbd90c81
werty.idc
werty2.idc
|
cb1404e45639d20439d7700b06d57ca1a1aad1fa |
16-Jan-2011 |
Jeff Brown <jeffbrown@google.com> |
Add joystick support to framework. Change-Id: I95374436708752e1a9cff3f85c5b9bc3e0987961
eneric.kl
|
7a863b4bdae1d01d4ac972fe8ff8968bbfed6709 |
17-Dec-2010 |
Jaikumar Ganesh <jaikumar@google.com> |
Add PLAY and PAUSE keycodes and remove PLAY_PAUSE keycode. Change-Id: I0b17bea189c90fcacff42e182e9e47ef179c28ca
VRCP.kl
|
49ed71db425c5054e3ad9526496a7e116c89556b |
07-Dec-2010 |
Jeff Brown <jeffbrown@google.com> |
Add support for fallback keycodes. This change enables the framework to synthesize key events to implement default behavior when an application does not handle a key. For example, this change enables numeric keypad keys to perform their associated special function when numlock is off. The application is informed that it is processing a fallback keypress so it can choose to ignore it. Added a new keycode for switching applications. Added ALT key deadkeys. New default key mappings: - ESC -> BACK - Meta+ESC -> HOME - Alt+ESC -> MENU - Meta+Space -> SEARCH - Meta+Tab -> APP_SWITCH Fixed some comments. Fixed some tests. Change-Id: Id7f3b6645f3a350275e624547822f72652f3defe
eneric.kcm
endor_05ac_Product_0239.kl
endor_22b8_Product_093d.kl
irtual.kcm
|
9065504a63d6bf37bf621191fda1d1fe4da76ee3 |
02-Dec-2010 |
Jeff Brown <jeffbrown@google.com> |
Improve support for external keyboards. Use Vendor ID, Product ID and optionally the Version to locate keymaps and configuration files for external devices. Moved virtual key definition parsing to native code so that EventHub can identify touch screens with virtual keys and load the appropriate key layout file. Cleaned up a lot of old code in EventHub. Fixed a regression in ViewRoot's fallback event handling. Fixed a minor bug in FileMap that caused it to try to munmap or close invalid handled when released if the attempt to map the file failed. Added a couple of new String8 conveniences for formatting strings. Modified Tokenizer to fall back to open+read when mmap fails since we can't mmap sysfs files as needed to open the virtual key definition files in /sys/board_properties/. Change-Id: I6ca5e5f9547619fd082ddac47e87ce185da69ee6
pple_Wireless_Keyboard.kl
ogitech_USB_Receiver.kl
otorola_Bluetooth_Wireless_Keyboard.kl
endor_046d_Product_c532.kl
endor_05ac_Product_0239.kl
endor_22b8_Product_093d.kl
ommon.mk
eyboards.mk
werty.idc
werty2.idc
werty2.kl
|
47e6b1b5eef8ee99872f278f66bc498c4fcca0d8 |
30-Nov-2010 |
Jeff Brown <jeffbrown@google.com> |
Support non-orientation aware keyboards and other devices. Fixed a bug with dpad keys on external keyboards being rotated according to the display orientation by adding a new input device configuration property called "keyboard.orientationAware". Added a mechanism for overriding the key layout and key character map in the input device configuration file using the new "keyboard.layout" and "keyboard.characterMap" properties. Also added "trackball.orientationAware", "touch.orientationAware" and "touch.deviceType" configuration properties. Rewrote the configuration property reading code in native code so that it can be used by EventHub and other components. Added basic support for installable idc, kl, and kcm files in /data/system/devices. However, there is no provision for copying files there yet. Disabled long-press character pickers on full keyboards so that key repeating works as expected. Change-Id: I1bd9f0c3d344421db444e7d271eb09bc8bab4791
pple_Wireless_Keyboard.kl
ogitech_USB_Receiver.kl
werty.kcm
|
d49c347921cc2a3b2544803ea1916f80a564584c |
26-Nov-2010 |
Jeff Brown <jeffbrown@google.com> |
Tweak key layouts. Change-Id: I19777ec4e5d0a5485cfe2a44a15e2b0680557d08
pple_Wireless_Keyboard.kl
eneric.kl
ogitech_USB_Receiver.kl
otorola_Bluetooth_Wireless_Keyboard.kcm
otorola_Bluetooth_Wireless_Keyboard.kl
ommon.mk
|
061cf758841dfc972be3f0ec4857762fafe49aa6 |
19-Nov-2010 |
Jeff Brown <jeffbrown@google.com> |
Port Emulator keymaps. Also added a validation tool for keymaps (not currently integrated into the build system but getting there). This change brings back Android.mk with the intent that it will be used to validate keymaps in a later change. Added some missing keys that are present on phones. Bug: 3215210 Bug: 3225421 Change-Id: Id817c6e2215164616942c51a42752915d9ceacd3
ndroid.mk
eneric.kcm
irtual.kcm
ommon.mk
eyboards.mk
werty.kcm
werty.kl
werty2.kcm
werty2.kl
|
6b53e8daa69cba1a2a5a7c95a01e37ce9c53226c |
11-Nov-2010 |
Jeff Brown <jeffbrown@google.com> |
Added support for full PC-style keyboards. BREAKING CHANGE: Redesigned the key character map format to accomodate full keyboards with more comprehensive suite of modifiers. Old key character maps will not work anymore and must be updated. The new format is plain text only and it not compiled to a binary file (so the "kcm" tool will be removed in a subsequent check-in). Added FULL keyboard type to support full PC-style keyboards. Added SPECIAL_FUNCTION keyboard type to support special function keypads that do not have any printable keys suitable for typing and only have keys like HOME and POWER Added a special VIRTUAL_KEYBOARD device id convention that maps to a virtual keyboard with a fixed known layout. This is designed to work around issues injecting input events on devices whose built-in keyboard does not have a useful key character map (ie. when the built-in keyboard is a special function keyboard only.) Modified several places where events were being synthesized to use the virtual keyboard. Removed support for the "qwerty" default layout. The new default layout is "Generic". For the most part "qwerty" was being used as a backstop in case the built-in keyboard did not have a key character map (probably because it was a special function keypad) and the framework needed to be able to inject key events anyways. The latter issue is resolved by using the special VIRTUAL_KEYBOARD device instead of BUILT_IN_KEYBOARD. Added the concept of a key modifier behavior so that MetaKeyKeyListener can distinguish between keyboards that use chorded vs. toggled modifiers. Wrote more robust key layout and key character map parsers to enable support for new keyboard features and user installable key maps. Fixed a bug in InputReader generating key ups when keys are released out of sequence. Updated tons of documentation. Currently QwertyKeyListener is being used for full keyboards with autotext and capitalization disabled. This mostly works but causes some problems with character pickers, etc. These issues will be resolved in subsequent changes. Change-Id: Ica48f6097a551141c215bc0d2c6f7b3fb634d354
VRCP.kl
ndroid.mk
eneric.kcm
otorola_Bluetooth_Wireless_Keyboard.kcm
irtual.kcm
ommon.mk
eyboards.mk
|
b0418da0e7594a8c2164a46985c5f1993632e010 |
01-Nov-2010 |
Jeff Brown <jeffbrown@google.com> |
Add plumbing for volume mute key. Full support for the volume mute key will be implemented in a later change. Bug: 2912307 Change-Id: I98c27d6360f159c8b7447e04b45f442eff87b38a
eneric.kl
otorola_Bluetooth_Wireless_Keyboard.kl
|
497a92cc5ba2176b8a8484b0a7da040eac0e887b |
13-Sep-2010 |
Jeff Brown <jeffbrown@google.com> |
Add keycodes and meta-key modifiers to support external keyboards. 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
ndroid.mk
eneric.kcm
eneric.kl
otorola_Bluetooth_Wireless_Keyboard.kcm
otorola_Bluetooth_Wireless_Keyboard.kl
ommon.mk
eyboards.mk
|