History log of /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
194e004e81f74c4124184ad8597d68e3837ea560 02-Oct-2013 Satoshi Kataoka <satok@google.com> Prepare for changing text color for functional keys

Bug: 10786040

Change-Id: I0de7d4923ea13b44adcf1f4ea456796cd02ef27b
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
803ea61d552e9c1df34f5d58f1e59e5b7612d6e1 28-Aug-2013 Tadashi G. Takaoka <takaoka@google.com> Add recents keyboard

Bug: 6370846
Change-Id: I5dc235395fe9b3bd95711fee2fe9b678b4660760
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
0154e3620f907f781d58e99a9a79824abd46aa3e 19-Aug-2013 Tadashi G. Takaoka <takaoka@google.com> Merge "Rename KeyStyle.getFlag to getFlags"
784416f73bc5053114ceb8274dba4bdabbbda700 19-Aug-2013 Tadashi G. Takaoka <takaoka@google.com> Make all KeyboardRow attributes private

Change-Id: Ifaca6ad5e642964d8c3a77a96a1cd74f363ee996
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
0cfd2b08af8cab26ac858c8296c13f4a5e076666 19-Aug-2013 Tadashi G. Takaoka <takaoka@google.com> Rename KeyStyle.getFlag to getFlags

Change-Id: Iff3d850466cb6016a53bf86104cd5d22363f96a8
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
7dc60f9db729e93cb591492574a436418c553ebf 12-Aug-2013 Tadashi G. Takaoka <takaoka@google.com> Add getters and copy constructor to Key class

Change-Id: I78eb96dcc26378926dc63acbfeb4828cbd44435d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
e18439d5c78efa14b2861f6bd4a38285388655e4 14-Aug-2013 Tadashi G. Takaoka <takaoka@google.com> Add empty key background type

Change-Id: I9b07c58a9b70ae0228f87e1f066ca8cd959b4f03
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
45d020586258e4c9b2cc317be4e0559088d6e257 07-Aug-2013 Tadashi G. Takaoka <takaoka@google.com> Make key label from supplementary code point

Change-Id: I0a7834b5c4908a2116a8772cf85985ab8bed7091
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
e28eba5074664d5716b8e58b8d0a235746b261eb 23-Jun-2013 Ken Wakasa <kwakasa@google.com> Move util classes to the latin/utils directory

Change-Id: I1c5b27c8edf231680edb8d96f63b9d04cfc6a6fa
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
9552badf3c24d2098d227b0ddca0721b928a10b1 22-May-2013 Tadashi G. Takaoka <takaoka@google.com> Add CODE_CAPSLOCK for long press shift key

This change utilizes the no panel auto more key feature to implement
long press shift key for shift lock.

Change-Id: I3995d25dc35aea3c67b5aa29299815462eff9cad
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
94027c7201a376107a35ec78cd21db1905662601 24-May-2013 Tadashi G. Takaoka <takaoka@google.com> Use Locale.ROOT for locale neutral operations

Bug: 9112465
Change-Id: I6cd63007287b5a1a57cfbabff35d53f66fc5620e
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
43ad100d8bc20fc1327a462f24b5f8c99849ffbe 13-May-2013 Tadashi G. Takaoka <takaoka@google.com> Disable long press timer while sliding input mode

Bug: 8915171
Change-Id: Id8685f90766c7de55b56476de83abf97150a186d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
914d054ea26d18a1ba6a60f8c5e749136477bbf2 08-Mar-2013 Tadashi G. Takaoka <takaoka@google.com> Move logic of selecting key preview attribute to Key class

This change also fixes the size of a key preview letter to follow a
keyLabelFlags specification.

Change-Id: Ie13790788a16c5a053c1a2cbcac3d38314b14b7f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
e1f091c5d44981ec81c12b674aefa37fec2af5cb 30-Jan-2013 Tadashi G. Takaoka <takaoka@google.com> Add keyboardLetfPadding and keyboardRightPadding attributes

This change splits keyboardHorizontalEdgesPadding attributes of
Keyboard into two attributes.

Change-Id: Iefdb358783b81af4027e8d9e991db36a6c429cf1
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
5ee2d79e41872610946b5a5c1caf14f3e5696c26 29-Jan-2013 Tadashi G. Takaoka <takaoka@google.com> Remove "dimension|fraction" format from Key and Keyboard attributes

Change-Id: Ieec8b7f5ccdf2a57bcc539dcb5313b6353f926d7
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
8aa9963a895f9dd5bb1bc92ab2e4f461e058f87a 21-Jan-2013 Tadashi G. Takaoka <takaoka@google.com> Fix Apache license comment

Change-Id: Ic56167f952a7f4449da366e1e81610e72c966086
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
240871ecafde7834ebb4270cd7758fc904a5f3a7 29-Oct-2012 Tadashi G. Takaoka <takaoka@google.com> Move code point constants from Keyboard to Constants class

Change-Id: Iee01d4d2b916d0b584531104ac865ae6e6370a3d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
a28a05e971cc242b338331a3b78276fa95188d19 27-Sep-2012 Tadashi G. Takaoka <takaoka@google.com> Cleanup: Make some classes as final

Change-Id: I6009b3c1950ba32b7f1e205a3db2307fe0cd688e
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
e30c4e0bb1522f45b3bb37b54c35ee1f6a21dd4b 11-Sep-2012 Ken Wakasa <kwakasa@google.com> Stabilize gesture recognition algorithm that looks for the nearest key.

It relies on the order of the key array.

Change-Id: I58fa71a7b330e59cd774fc208e5b6bc1a3decd2e
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
dc34da218a22489d92d1015e9e5dac8d951b89f4 30-Aug-2012 Tadashi G. Takaoka <takaoka@google.com> Support per-Key and per-Keyboard key visual attributes

This change refactors KeyDrawParams and KeyPreviewDrawParams to
separate KeyVisualAttributes.

Change-Id: I4de549eef303e1debe4b8f84668e042445fc18da
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
35ff94547c16c84c5b6fafdae0b4a683be782b97 30-Aug-2012 Tadashi G. Takaoka <takaoka@google.com> Separate inner classes of keyboard package out under internal package

Change-Id: Ia3969bd5ddec5aa5d81d05ad4cf676d818587922
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
29d5973fd35438a83acf7f44b5d55d5620278ee3 28-Aug-2012 Tadashi G. Takaoka <takaoka@google.com> Optimize rare Key attributes to separate class

This change also removes per-Key verticalGap and horizontalGap.

Change-Id: Id4d2129022fbbfbf5d740b8d1257032c945bb775
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
92821614fd80112527e133f069e31ee48250314f 29-Aug-2012 Tadashi G. Takaoka <takaoka@google.com> Revert "Revert "Move resource related methods to ResourceUtils""

This reverts commit bfc02a7005ab9a2950cbe09a13a88e4edcbb051e.

Change-Id: Ife4c0312ea3260211b1b5ee39b239e8e9d7db67e
Depends: I3d862515568be36d5aa80d12e7e5c0a9bf4d06a6
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
bfc02a7005ab9a2950cbe09a13a88e4edcbb051e 29-Aug-2012 Ken Wakasa <kwakasa@google.com> Revert "Move resource related methods to ResourceUtils"

This reverts commit 160dc0f98e513819a6ebf11a2d65cdc851389344

Change-Id: Ic5a3d9c70b8f6f2993d8455799945ec2633cad66
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
160dc0f98e513819a6ebf11a2d65cdc851389344 29-Aug-2012 Tadashi G. Takaoka <takaoka@google.com> Move resource related methods to ResourceUtils

Change-Id: I14535b030e58363315dd2daecaaef4edd6990cd9
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
75fb3ce1be3c879bb614097a2534f791c833dd7c 30-Jul-2012 Tadashi G. Takaoka <takaoka@google.com> More readable Key.toString() and MoreKeySpec.toString()

Change-Id: Iee3c33dedd0c00ba259aa55e8b0c1c57b84eccdd
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
907ba593975d5761f5ba01e689ae2d978b63c2f3 05-Jun-2012 Tadashi G. Takaoka <takaoka@google.com> Can specify Key.backgroundType in <Row> and <include> attribute

Bug: 6568834
Change-Id: I138464b5445e13eaf062ce84a1ba332dfd1afafa
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
8f590c77e8a435d8e35020f1b7e66fdf53ab7953 28-May-2012 Tadashi G. Takaoka <takaoka@google.com> Use Math.round instead of (int) to convert Key coordinates from float to int

Bug: 6566563
Change-Id: I97d1e9727077cb4d9abbf1ad5bd5d3f061c7bce7
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
7ab7f66c2d0f4a0b2e29be718b310ccaf368a4f4 26-May-2012 Tadashi G. Takaoka <takaoka@google.com> Fix adjusting key's label/code case

With this fix, we may probably be able to revert I76c3e917 (Make
KeySpecParser case insensitive).

Bug: 6561272
Change-Id: Ic7571560d7b422ffc9a07f0acecd388e0b330d50
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
0a57156c07990b024b69100f1729997e61cb86c1 18-May-2012 Tadashi G. Takaoka <takaoka@google.com> Don't use KeyDrawParams as argument of Key#selectTextSize

This is a follow up of Ide48c361.

Bug: 6509415
Change-Id: I59f6e47d06ebfbac6d354d36fca6788f092ed41d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
aee147e2167b9d5147ec9fc315723bdf2a70eb2c 18-May-2012 Tadashi Takaoka <takaoka@google.com> Revert "Make KeyDrawParams and KeyPreviewDrawParams to top level class"

This reverts commit 4c9e6a15d174f85dfd28fbf89341549fbb986acf
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
4c9e6a15d174f85dfd28fbf89341549fbb986acf 18-May-2012 Tadashi G. Takaoka <takaoka@google.com> Make KeyDrawParams and KeyPreviewDrawParams to top level class

This is a follow up of Ide48c361.

Bug: 6509415
Change-Id: Ib45c476924bc4b6b2ca65e0cae91d719109a9cb1
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
a08759f6b1ddfae65c063e1eb48608d8b7f4047a 17-May-2012 Tadashi G. Takaoka <takaoka@google.com> Support large label text ratio in KeyboardView

Bug: 6509415
Change-Id: Ide48c36126c23d91612c322a1027257c9b967e6b
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
1f2d0aa6c9b343848ee51e5bc13ccaaadf3ba4fe 16-May-2012 Tadashi G. Takaoka <takaoka@google.com> Set divider icon's alpha value on the fly

Bug: 6183494
Change-Id: I61a0c7617648d9c52e5001b3479afa0ab4913adc
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
2f83e9e53244651dded489f91879f5150fb9c39d 01-May-2012 Tadashi G. Takaoka <takaoka@google.com> Can override key-style

Bug: 6412932
Change-Id: I9576ae5b42bcc54cfd8ede0bae5148f3b04c1978
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
cf41aff251ecc94b729307ede05208a104fcd8b0 19-Apr-2012 Tadashi G. Takaoka <takaoka@google.com> Use string attribute for icon name

Change-Id: I336acf33c7e6bc993b9da9b17ec689975fa8127d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
a58ebc73ae3eb2783713c471d8abb348c7dfc8da 18-Apr-2012 Tadashi G. Takaoka <takaoka@google.com> Fix typo of some methods' name

Also changes some methods' argument type from Locale to String.

Change-Id: Ib68b528a450dc68a01546483403230f76500bee4
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
ab0d0d8a021a9b0f179281ac9e18604ad331cc43 10-Apr-2012 Tadashi G. Takaoka <takaoka@google.com> Add followKeyLabelRatio flag for keyLabelFlags of Key attribute

This change renames largeLetter flag to followKeyLargeLetterRatio as
well.

Change-Id: Ida777aac57e4d885fa051654fe863f493f8e946a
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
2be51f4fd0c5cd70c7a2757558ffe45e703700cf 05-Apr-2012 Tadashi G. Takaoka <takaoka@google.com> Generate KeyboardLabelsSet from donottranslate-more-keys.xml

This change introduces makelabel tool that reads all languages'
donottranslate-more-keys and generate KeyboardLabelsSet.java source
file. The makelabel command must be invoked prior to compile LatinIME.

Change-Id: I7515c7919c535e30f9c80a37bdc831d0f682cd43
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
ed3bac91f242850c6d1833a5f8981b9cc208c5dd 09-Apr-2012 Tadashi G. Takaoka <takaoka@google.com> Introduce KeyboardCodesSet.java and remove keycodes.xml

Change-Id: Icfd6d06f47425aa037682d22c895548ba6f047d8
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
9f0ea52a5db9710df6bef4672d8e193c48451df0 22-Mar-2012 Ken Wakasa <kwakasa@google.com> Add missing Word.hashCode()

Some cleanups too.

bug: 6209651
Change-Id: I94e2e29c92e90e554e4952d277d590e093766c4f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
b03529aa0119d38054fe825156669c45f7a6c8c3 12-Mar-2012 Tadashi G. Takaoka <takaoka@google.com> Support disableAdditionalMoreKeys and disableKeyLabelHint

Change-Id: Idfa586417acd4a223380d52f044e3a86eb780b21
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
cc8c8b99bd0463f5977dea82f5e2379ea1dd4e73 08-Mar-2012 Tadashi G. Takaoka <takaoka@google.com> Split Utils class to StringUtils, SubtypeUtils, and JniUtils

Change-Id: I09e91675fe7d573dad8c933ad513b21d7e409144
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
8e14e783771fb45c3c161123fcd3fb8d4e6fbd88 07-Mar-2012 Tadashi G. Takaoka <takaoka@google.com> Fix duplicate flag value in Key

Change-Id: I98e77e5432a228e4455998bf09a2cc671b113c4e
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
8c80fb9bcbe4375fa296bc12ef2c144d7f6f64f9 05-Mar-2012 Tadashi G. Takaoka <takaoka@google.com> Fix Key to use a disabled icon when the key is disabled

Bug: 6114350
Change-Id: I419bc1736c27046dfea254ac510f5da478b6412c
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
e491be6e8690ffb8359887838fa12d5873346be5 05-Mar-2012 Tadashi G. Takaoka <takaoka@google.com> Support embedded more key

This is a followup change to Ie10b3e0b.

Change-Id: I1f91d96e32357b83bd0546537d561d638b6ff0c6
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
5ef4fccbb90491e1f6c2e87b47ebf9f3659949fb 29-Feb-2012 Tadashi G. Takaoka <takaoka@google.com> Support dividers in MoreKeysKeyboard

Bug: 6080806
Change-Id: Iacd78c6aab6abf948717d34da7489a79c41316d2
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
e4c45c6ef920b9cd1754f345446f53c504a64c5f 29-Feb-2012 Tadashi G. Takaoka <takaoka@google.com> Explicitly specify that labels might be in more keys

Bug: 6080806
Bug: 6081427
Change-Id: I455a0210e65ea2a7774e0e0071cea5f4a99577bd
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
42fd1d2d72c097b2227d4b22f0f824dbb34a4d0c 01-Mar-2012 Tadashi G. Takaoka <takaoka@google.com> Refactor more keys spec handling

Change-Id: Ibd95eff0725724ea35ad58e1d1ec7ec3d02a6e90
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
aeeed758480b0fac848f4556884d978f3004555b 13-Feb-2012 Tadashi G. Takaoka <takaoka@google.com> Support fixed order more keys

Change-Id: I979f54e8b54243da4d23cfbe08198d2aa495f870
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
fdb6999e553009e98fc87856ce607677eab5af28 09-Feb-2012 Tadashi G. Takaoka <takaoka@google.com> Key should be distinguished also by moreKeys contents and etc.

Change-Id: Ib2caabee6af78153b5a7be0e4df522288f2a7d48
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
7a39bd4454664b5c37b30e9b5362ddbcdce3b374 07-Feb-2012 Tadashi G. Takaoka <takaoka@google.com> Shift+Smiley key will register newline character of textMultiLine

This change also
* Honors the custom action label in EditorInfo.actionLabel.
* Invokes InputConnection.performeEditorAction if action is specifed
at EditorInfo.imeOptions or actionLabel/actionId.
* Stops using InputMethodService.sendKeyChar. Implements
sendKeyCodePoint instead.

Bug: 2498607
Bug: 5961809
Bug: 5368408
Change-Id: If4cd5eb3dacfc6b6a7ea434b0617c2438e06e42d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
2affaf91a04d63e0994102299816014a8bbe11e1 08-Feb-2012 Tadashi G. Takaoka <takaoka@google.com> Rename mini keyboard to more keys keyboard

Change-Id: Ie4c85e8ca5a1f41a420aae5c1cd9c1cb07e237e5
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
c217dc9237e5d1e1e721b9007139d771dcb41145 07-Feb-2012 Tadashi G. Takaoka <takaoka@google.com> Convert one letter Key.outputText to Key.code

This change also uses Key.code instead of Key.outputText for the
variety of parentheses keys taht introduced by I85998f17.

Bug: 5975484
Change-Id: I86879c9942d264edc71e5893325a2f582763d12f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
17f53103ee0d0360d8f93f6bac41ef37a0021402 07-Feb-2012 Tadashi G. Takaoka <takaoka@google.com> Fix KeyStyles to be able to override the value in style

Change-Id: Ib7476cdc0f81dfeb6292ef663e9dbab6d2b949ba
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
e7948a8692a102c89aca70a79ca62573d77efde3 02-Feb-2012 Tadashi G. Takaoka <takaoka@google.com> Get rid of Key.setIcon(Drawable)

Change-Id: If6ebbdefcbfd0cc14c72858f9bb44861e8abe079
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
44e0e4f99e70b84176ff5c985e456b821a8f0b14 02-Feb-2012 Tadashi G. Takaoka <takaoka@google.com> Fix Key.equals(Key)

Bug: 5956068
Change-Id: I2901ae28bd9121ec4f4429a53b83aae128b75e0c
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
e01d272603f3643ce613e61dd3204379f4f4fb73 02-Feb-2012 Tadashi G. Takaoka <takaoka@google.com> Make KeySpecParser and CSV parser code point aware

This change also renames MoreKeySpecParser to KeySpecParser

Change-Id: I35733cdbb344f16b57ffa2cfe79055c089b4e409
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
71c695da22fd99e56ba5b267ad21b750ab1534b5 01-Feb-2012 Tadashi G. Takaoka <takaoka@google.com> Remove BIDI mirroring hack from Key

This change also removes isRtlKeyboard attribute from <Keyboard/>

Bug: 5948247
Change-Id: I85998f17ae146a4c8cd0f419ab820b746cb8974f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
a5c96f376ad57e78a88942bb618e067054ed818a 01-Feb-2012 Tadashi G. Takaoka <takaoka@google.com> Move long press shift handling from PointerTracker to KeyboardState

This change also
* Rename phone shift keyboard to phone symbols keyboard.
Use CODE_SWITCH_ALPHA_SYMBOL code to switch between phone and phone symbols keyboard.
* Remove phone symbols keyboard from tablet.
* Introduces enableLongPress flag of Key.keyActionFlags attribute.
* Remove clumsy long press code from PointerTracker.
* Remove CODE_CAPSLOCK handling from LatinIME.
* Make KeyboardSwitcher to invoke haptic and audio feedback.

Change-Id: I00e1f697a10ab5112aec75e36853b96246ff5054
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
ca2f051cc173acc3bce384ebfe08068564bc8e07 26-Jan-2012 Tadashi G. Takaoka <takaoka@google.com> Auto generate various shift states alphabet keyboard automatically

If any shift state variants of alphabet keyboard layout is not
specified in KeyboardSet.Element, it will be automatically generated
from base alphabet keyboard definition.

This change also
* Eliminates KeyboardShiftState object from Keyboard.
* Removes various set shift state methods from Keyboard.
* Removes KeyboardSet.Element.elementAutoGenerate attribute.
* Separates "sticky" Key.backgroundType to "stickyOff" and "stickyOn"
* Add preserveCase flag to smiley, .com, and labeled special keys.
* Rename KeyboardShiftState class to AlphabetShiftState.
* Rename some attributes from *UppercaseLetter* to *ShiftedLetterHint*.
* Introduce shiftedLetterActivated to Key.keyLabelFlags

Change-Id: I01a0a8efeeaa76820ae728a5bdfa8d02b6ce74b7
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
15c99e9f1a7776b95325d36cf9e38b6d674e483b 30-Jan-2012 Tadashi G. Takaoka <takaoka@google.com> Support addtionalMoreKeys

This change also removes
* Unused more_keys_for_q, w, and p.

Change-Id: Idb99e5f6d8c2ad2d28437f42b35b21c282cd181f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
425e1996b837422480d5599e6ed832dd310cad30 27-Jan-2012 Tadashi G. Takaoka <takaoka@google.com> Add inactivatedLabel and inactivatedUppercaseLetter flags for Key.keyLabelFlags

Change-Id: I6c7dc79cbad360602b278283f4c3a24c54040622
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
09f8b126e532ca2ac6bbe00c0d78bf03e44b78a2 25-Jan-2012 Tadashi G. Takaoka <takaoka@google.com> Add Key preserveCase enum to keyLabelOptions attribute

To support auto generate key depending keyboard element id, the
KeysCache class is introduced to hold whole keys and reuse.

Change-Id: Icb81b5f1c1b3aaa31968dcdb93aa0a856e737f78
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
bcf2b79365d7b655e973809c775772479dd8dff5 25-Jan-2012 Tadashi G. Takaoka <takaoka@google.com> Prepare to get rid of Drawable reference from Key

Change-Id: If435f95b2863e0af8d8916c643e6b01feabd3ea5
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
38d6a18821794dc733760b55fd2a896626f784e2 25-Jan-2012 Tadashi G. Takaoka <takaoka@google.com> Use String instaed of CharSequence in Key class

Change-Id: Ia76a41daede402ed2a509e110ae97d6bb660c760
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
b009a24b838b560bd093ff295c99c0cf5fe27c81 20-Jan-2012 Tadashi G. Takaoka <takaoka@google.com> Support @icon/icon_name for more keys specification

Change-Id: I8842e5ce77f9d27a0969df947de292c1830e36b7
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
bd7b160cfb05ee543e3cb6ddc7bd231b3f3aba0b 20-Jan-2012 Tadashi G. Takaoka <takaoka@google.com> Change more key specification type to String from CharSequence

Change-Id: I5e910f8225a248fc6403771836dec4c0b7294caa
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
8cab0b56eb8db311f158b18a361d9ceb85cff482 10-Jan-2012 Tadashi G. Takaoka <takaoka@google.com> Get rid of Keyboard.CODE_DUMMY

Change-Id: Id2320f4d9b5f22f0ac844ab20ce42b0c4e7c6880
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
42fcb2de641c4cd5d57f34889c8752401e35dcc8 18-Dec-2011 Tadashi G. Takaoka <takaoka@google.com> Get rid of public reference to KeyboardIconsSet.ICON_* constants

As a consequence,
* Add Key.iconDisabledKey has been introduced and Key.getIcon honors
the enabled state of the key.
* The attribute id of disabled icon for shortcut key,
Keyboard_iconShortcutKeyDisabled, is renamed to
Keyboard_iconDisbledShortcutKey
* KeyboardIconsSet has getIconByIconId and getIconByAttrId methods
instead of getIcon.

Bug: 5778201
Change-Id: Ica93b073b9a04acd18ead7a33b60e3c6d813e7a1
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
4e1dab8cfaad891fe041ed8d71893186c05cef71 18-Dec-2011 Tadashi G. Takaoka <takaoka@google.com> Move KeyboardBuilder and KeyboardParams classes into Keyboard class

This change also moves XmlParseUtils to com.android.inputmethod.latin package.

Bug: 5778201
Change-Id: I7d9faa344460753ce178ad4048e0fadb65c75614
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
7bd714c086a78e2058543b0971ac92f5a30b2362 18-Dec-2011 Tadashi G. Takaoka <takaoka@google.com> Add extra key icons to KeyboardIconsSet

* Get rid of Key.keyIconShifted attribute.
Add Keyboard.iconShiftKeyShifted to KeyboardIconsSet.
* Get rid of LatinKeyboardView.disabledShortcutIcon attribute.
Add Keyboard.iconShortcurKeyDisabled to KeyboardIconsSet.
* Add Keyboard.iconSpaceKeyForNumber to KeyboardIconsSet.
* Fix misplaced autoCorrectionSpacebarLedIcon resources.

Change-Id: I381bff3789254977ab3cb18f58f95b3c433b1e1a
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
22b48de11ce6f31a0edf90e1308073e67a7a2adb 17-Dec-2011 Tadashi G. Takaoka <takaoka@google.com> Get rid of Key.needsSpecialPopupHint and related

Change-Id: I28e87ea3af9581f12094770b42f113e9018886c4
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
4a019a9c96b3a628265ef49f5522f20aeb5856cf 16-Dec-2011 Tadashi G. Takaoka <takaoka@google.com> Use Set to group Keys in Keyboard instead of List

In deriving various shift stated alphabet keyboards from base/main
keyboard, almost all keys should be shared among variants. Grouping
keys in Set instead of List is a essential refactor to have.

Bug: 5002108
Bug: 5679585
Change-Id: Idd5644d1c45a3276a24b61c984619c03d4e4c54c
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
0b6237da9456daa2fa9d94e57491445032233ea0 15-Dec-2011 Tadashi G. Takaoka <takaoka@google.com> Make Key.mPreviewIcon public final

Change-Id: I280b1fa6a018e095e9b36ea5475dde68e0965350
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
4665463ccd4880c2392d26baa784c5d28de986cc 14-Dec-2011 Tadashi G. Takaoka <takaoka@google.com> Add XmlParseUtils class

Change-Id: Ie288272bc75832db7d743262c4c4fbe73b6dca04
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
de66f3af8aa3407f4aab6d896866efcfd224013c 11-Dec-2011 Tadashi G. Takaoka <takaoka@google.com> Assign Key.mCode from the label only when outputText is not specified

Bug: 5742827
Change-Id: I72b55ce246b14a2d8f4fd16211b71dc716db30b2
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
2013bab89ca2f82589f99d98d9cf3b41ea5aac65 30-Nov-2011 Tadashi G. Takaoka <takaoka@google.com> Add Key.altCode attribute

* Registering alternate code and while key is typing.
* Showing press/release graphics of the key that has the above altenate code.
* Showing press/release graphics of all shift keys.
* Renaming Key.ignoreWhileTyping to Key.altCodeWhileTyping.

Bug: 5639503
Change-Id: I67fb45bae76284a1f0deb6fd12ae5fb781d06cc3
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
e22baaadd314c80f835e2e96fb0dfc73838ac2cd 29-Nov-2011 Tadashi G. Takaoka <takaoka@google.com> Get rid of usage of key index

Change-Id: I7596ce3ae52fde436d06c2dd95ae873c7aa5ef7f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
c1f7d39b4aabe71ecf7934272a848d8c0fe5a7f0 23-Nov-2011 Tadashi G. Takaoka <takaoka@google.com> Introduce ignoreWhileTyping flags to Key.keyActionFlags

Bug: 5639503
Change-Id: Ic2afad6766edb2538a58f722209e2daa40aa488d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
13d5f6605be6a6e8d9e5dde5b204dc050a862550 22-Nov-2011 Tadashi G. Takaoka <takaoka@google.com> Add Key.keyActionFlags and obsolete Key.isRepeatable

This change also renames Key.keyLabelOption to keyLabelFlags.

Change-Id: Iedd0bfaa420ad382c07ce084416355690e390919
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
431ce9392561f42f49e55a531197d3d5d19252d4 18-Nov-2011 Tadashi G. Takaoka <takaoka@google.com> Introduce noKeyPreview Key attribute

This change also removes hacks in LatinKeyboardView by utilizing
noKeyPreview attribute.

Bug: 5638595
Change-Id: Icd8a3af3b7849b941f8f5532e2b432e126a909e6
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
8fbf29e2d54027a17993cd0d4ad486e3454b56f6 28-Oct-2011 Tadashi G. Takaoka <takaoka@google.com> Make some private method static

Change-Id: Ia23765268be0ef89d7fe7c3f5372ed32d6615765
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
406a54f41c3e2bb90bedefb6ff80d7b874242f83 06-Oct-2011 Tadashi G. Takaoka <takaoka@google.com> Use XmlPullParser interface instead of XmlResourceParser

Change-Id: I00e8a82aaaf5fec1e27707bce0a82cbfd1bc9fae
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
2fc4248700023853980b0006c12425079e3f9257 28-Sep-2011 Tadashi G. Takaoka <takaoka@google.com> Introduce hit box to Key and get rid of edge flags

Change-Id: I2b78d2ca756223b5497d01127c3a0190dcc81e57
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
287f4f83e9faa51efce6cc750c5a26b9556db728 26-Sep-2011 Tadashi G. Takaoka <takaoka@google.com> Add horizontal edges paddings to phone/number layout

Bug: 4948171
Change-Id: I8a06a25ffcbd141c9418e77e982233166a347914
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
8fbfac4ffb7079e8e71fd4e3ddc04e362239ebb3 22-Sep-2011 Tadashi G. Takaoka <takaoka@google.com> Fix keyboard row height calculation

The keyboard height will be distrubuted as:
top_padding + (key_height + vertical_gap) * row_count - vertical_gap + bottom_padding

Change-Id: I841f356b9dbf8cfaf3756178bc9e4e6b2aa61364
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
5b0c124ca888ee4ecbde9a51f11c4e9887a96636 15-Sep-2011 Tadashi G. Takaoka <takaoka@google.com> Remove Key.isStick, use backgroundType="stick" instead

Change-Id: I50e88c0870a3fe360b81f19163ca2f64ec38d8e8
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
a6d3a4d61b9655816128aa929331b7624476df64 15-Sep-2011 Tadashi G. Takaoka <takaoka@google.com> Make action key background more visually prominent

Bug: 5232726
Change-Id: I76ff2fb431ca295693ceb231a0f13da44f9293e6
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
7918ed016960908700582e47322e52d74c328cc7 15-Sep-2011 Tadashi G. Takaoka <takaoka@google.com> Refactor Key.isFunctional to more generic Key.keyType

Bug: 5232726
Change-Id: Idc861ca725f62eaf37795f57401573394a17d6d3
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
4486d7727038ca6be2dda16cc213549dc080ba8d 12-Sep-2011 Tadashi G. Takaoka <takaoka@google.com> Introduce autoXScale label option

Bug: 5267649
Change-Id: I7fdcb98c209b7ccf73075ef3a4e758782fe161e3
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
30bd8cb2daf6c26a2e89a74f1d2aa4f11a17cf16 08-Sep-2011 Tadashi G. Takaoka <takaoka@google.com> Add visual dividers to more suggestions panel

Bug: 5275003
Change-Id: I9464db71388a40ea768984b4cf06c8da05bfa26c
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
18453d69e0ef7631500826bf4e0b6f684c948cb3 08-Sep-2011 Tadashi G. Takaoka <takaoka@google.com> Make Spacer as extended Key class

Bug: 5275003
Change-Id: I809a8ca363ba72b22ac5cfd926414990f7e8467c
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
d4d9b33c394e767db8e852187745ce3f7a01c314 02-Sep-2011 Tadashi G. Takaoka <takaoka@google.com> Move Row class into KeyboardBuilder

This is a followup of I5929e656.

Bug: 5245837
Change-Id: I06bc2774f77a2c5ddf0b6fe1b3ee70e9b3a7dd23
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
b58925ea0d358c1d966cb16ffd14459f637a450c 02-Sep-2011 Tadashi G. Takaoka <takaoka@google.com> Calculate x coordinate with floating point

This change also fixes some keyboard layouts a bit.

Bug: 5245837
Change-Id: I5929e656763b150e71afe89238386904da214e21
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
e84274ede1f29154838e1b5e99773d1497c3ecd3 02-Sep-2011 Tadashi G. Takaoka <takaoka@google.com> Move current x coordinate value into Row class

This is a preparation to address the issue.

Bug: 5245837
Change-Id: If5d463304c1689a840c8b761fedb0a8e2193734b
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
9d5601e9013c5ec9a7ac75db16f4a0a8218b02bf 31-Aug-2011 Tadashi G. Takaoka <takaoka@google.com> Rename PopupCharactersParser to MoreKeySpecParser

Also renames PopupPanel to MoreKeysPanel

Change-Id: I37209a5a8fe7dbba1eef03e3be88ba5253653926
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
9237a72634be821c22911633ef0848130e162d58 31-Aug-2011 Tadashi G. Takaoka <takaoka@google.com> Rename PopupMiniKeyboardView to MiniKeyboardView

Change-Id: Ic83cd1200cfb8f8c0b0cfbcad449031b8e8a29e0
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
241f1cfdf6eebf8312006fb9c48215ebe5b9ef75 30-Aug-2011 Tadashi G. Takaoka <takaoka@google.com> Add outputText and icon to the Key constructor

This is a follow up change for I737bacb1.

Bug: 5023981
Change-Id: I980e3e993c81afe4fbdb95c9c263d7aa52aff66c
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
392276d73dd6a1787afd3b859c213378e8e7bdb5 30-Aug-2011 Tadashi G. Takaoka <takaoka@google.com> Add Key constructor for suggestions pane

Bug: 5023981
Change-Id: I737bacb1a6bb40f70be65d6eff85614afe6c79ed
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
84b1284d01ffa1f730763471e1f2e9eddfb8ddea 30-Aug-2011 Tadashi G. Takaoka <takaoka@google.com> Revert "Add hintLabel to Key constructor"

This reverts commit be34d973349909196dc3427a5653f4e119092ea7.

Bug: 5023981
Change-Id: I34f75cde035f04a9a82c9259442ed0e255cb7118
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
be34d973349909196dc3427a5653f4e119092ea7 30-Aug-2011 Tadashi G. Takaoka <takaoka@google.com> Add hintLabel to Key constructor

This change also partialy reverts I5832421c, because of incorrect
popup mini key width calculation.

Bug: 5023981
Change-Id: I1acde090c01d3d861fcc5559cad81e638de2c2bb
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
f9da4c548f7baa003d8dcee04b42d3652cf2ebc3 23-Aug-2011 Tadashi G. Takaoka <takaoka@google.com> Remove password field special handling

Change-Id: Iaf1b4bbb54be7a4cade856d1ba363e976774f442
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
11b7febc0bea46a6afb30d7fa040b841eadd7410 09-Aug-2011 Ken Wakasa <kwakasa@google.com> Ellipsis for "Space" key for triggering the IME switcher

bug:5136497
Change-Id: Iab7c68135500e9fed212521484090b52943550ca
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
62d4a96497951d4de784156f86626efdd55813fe 03-Aug-2011 Tadashi G. Takaoka <takaoka@google.com> Support label with icon key

Bug: 5108339
Change-Id: I7cd4258a95a7e25b8b1114b43ffcca5b77c5c1e3
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
1be29abab2e112f0253a8a5da3478740bb866d27 02-Aug-2011 Tadashi G. Takaoka <takaoka@google.com> Cleanup Keyboard related code and rename some classes

This is a follow up change of I90ffbde0

Bug: 5023981
Change-Id: I3a6b862d05f5f907dee954cd6d6fee983b20ab5e
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
8da9a13760896cd78235b60d0ea680ea13620532 29-Jul-2011 Tadashi G. Takaoka <takaoka@google.com> Make Keyboard object immutable except shift state

This is the first step to implement suggestions pane as mini keyboard.

Bug: 5023981
Change-Id: I90ffbde0fda19b4be68add449310997b56bf6904
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
4d8eb2e8886f4e06ac4aa2264847f86997168bf7 02-Aug-2011 Tadashi G. Takaoka <takaoka@google.com> Make horigontalGap and verticalGap attributes of Row obsolete

Bug: 5023981
Change-Id: Ifb07b54a68cfdd32ff2ea79812188fb6158bd073
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
723dd753e92f361e813bffbd5ae8c91f80b44bb7 02-Aug-2011 Tadashi G. Takaoka <takaoka@google.com> Remove Keyboard reference from Key object

Bug: 5023981
Change-Id: Ib0b9debf2018a0a9e9efe9323738e85174589e71
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
30479de9e5e59102fda480c74caeb1b1cdb7200f 02-Aug-2011 Tadashi G. Takaoka <takaoka@google.com> Merge "Cleanup key label case adjustment"
c499866948f725d14fb2ce95213f9c6f3a7da8b5 02-Aug-2011 Tadashi G. Takaoka <takaoka@google.com> Cleanup key label case adjustment

Bug: 5023981
Change-Id: Ida06fc6a588c4eb8543455d932e71ac2797d27e5
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
b118d4cb58c27131f6333ada281c772edfcaa74b 02-Aug-2011 Tadashi G. Takaoka <takaoka@google.com> Cleanup icon drawable related code

Bug: 5023981
Change-Id: I729354f32797eef354ec9af8e05f17839f0a361c
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
2fe68b9616ebdeb24daf043fbc590ea6a11f10a0 01-Aug-2011 Tadashi G. Takaoka <takaoka@google.com> Filter non-ascii popup charcters from password keyboard

Change-Id: I10885efd317770f892165b6bb059313abf241436
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
6d9bcd5e1317722207116ab6a3ddfcb152005701 28-Jul-2011 Tadashi G. Takaoka <takaoka@google.com> Remove enableShiftLock attribute from KeyboardId

This change is a follow up of Ia72de236.

Bug: 4311428
Change-Id: I0ad0f1fb93545ceb40df8dffe377240b020c2602
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
e9d74adcc83e1a9fdc3055c08385c6323d22632f 26-Jul-2011 Ken Wakasa <kwakasa@google.com> Merge "Take care of bidi-mirrored characters in suggestion strip as well"
83ffff2a49beeb41874b7cb40819a75001f708e2 26-Jul-2011 Ken Wakasa <kwakasa@google.com> Take care of bidi-mirrored characters in suggestion strip as well

Follow up to I1b884848

bug: 5047217
Change-Id: I18b9962c4943363bae88009354fcc75ab60ad2ba
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
34ce778802f10881602d484c54d5a65f4bc71dc6 25-Jul-2011 Tadashi G. Takaoka <takaoka@google.com> Add Bidi-Mirrored letter list link as comment

Bug: 5047217
Change-Id: I29449892803c5150726aebfe97ecef6d481e1e97
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
7139335dcd84209285c028f5d83cb72bfbf1a966 25-Jul-2011 Tadashi G. Takaoka <takaoka@google.com> Swap parenthesis-like character code on RTL keyboard

Bug: 5047217
Change-Id: I1b88484825f5c035401cf083522bf95bbee30edb
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
426723a9cfb18d742602cb5098092808d592ea6d 19-Jul-2011 Tadashi G. Takaoka <takaoka@google.com> Remove Key edge flags from XML

The first key and the last of the row are automatically marked as left
and right edge key respectively. The existence of Spacer will prevent
those automatic marking.

Bug: 5038844
Change-Id: Ie34169ceaf76e24923b8d8125eda6ecb95cf1fee
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
6989e0b804bbbf65ffdd6a22a8a7b859d01f1fef 13-Jul-2011 Tadashi G. Takaoka <takaoka@google.com> Update Arabic keyboard

Bug: 4161983
Change-Id: Ie163cd17c87773bf2ca37fff7cff79611fff644f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
d773bf38a3c8f49ea56de67d3b828f8126f46ed2 28-Jun-2011 Tadashi G. Takaoka <takaoka@google.com> Cleanup key drawing code

This change also modifies 9-patch drawables to fix the following
issues. In order to draw key background drawable just on the
coordinates we want, we have to know where an actual "visible" part is
in the drawable. The only clue we can use is "padding" of the
drawable. To achieve this, the 9-patch drawable must have its
"visible" part marked as "content". Please refer the Bug: 4948171 for
more detailed explanation.

This change also reverts the following "black" drawables back from
Gingerbread because recent change broke these (I70019a91).
* drawable-hdpi/sym_bkeyboard_*.png
* drawable-hdpi/btn_keyboard_key_*_stone.9.png

Bug: 4948171
Change-Id: I6e4d03b3144caa95c793aac97af22df34c5f454f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
520a297ad1d148a57bcf6559a9802d5d49182d70 25-Jun-2011 Tadashi G. Takaoka <takaoka@google.com> Draw phone/number keyboard layout witout icon

This change introduces:

* New KeyboardView attribute
* keyLargeLetterRatio to specify large letter text size.
* keyHintLabelRatio to specify hint label text size.
* keyHintLabelColor to specify hint label text color.
* keyPreviewTextRatio to specify key preview text size.
* New Key.keyLabelOption flags
* alignLeftOfCenter, align the key label slightly left of the key center.
* largeLetter, use keyLargeLetterRatio to draw key letter.
* hasHintLabel, draw keyHintLabel at the right of key letter.
* followKeyHintLabelRatio, draw the key label following keyHintLabelRatio size.
* Renames
* Key.keyHintLetter to keyHintLabel.
* Key.keylLabelOption fontFixedWidth to fontMonoSpace.
* Key.keylLabelOption popupHint to hasPopupHint.
* Removes
* number icon releted attributes and declarations.

Change-Id: I2f456737e3a46209e5f48b5155951b2b21a33859
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
e7759091ddb5ec18268945d70d9212195bf6497b 23-Jun-2011 Tadashi G. Takaoka <takaoka@google.com> Move Key class out of internal package

Bug: 4903326
Change-Id: I2493d6dae613d2e37dfa8ce96b4cddc9a038160c
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
72934bd5967d0127f71fd4d66158b18b4e6ceefe 22-Jun-2011 Tadashi G. Takaoka <takaoka@google.com> Move keyboard related internal class to separate package

Change-Id: Ic1459066b865cde5104b3734193f76c997959c68
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
9d9522abdcee70408c9e99ac20c8e1c224eef19d 14-Jun-2011 Tadashi G. Takaoka <takaoka@google.com> Add Key.keyHintLabel and remove Key.keyHintIcon

This change also removes manualTemporaryUpperCaseCode and
manualTemporaryUpperCaseHintIcon. Instead of these keyLabelOption now
has hasUppercaseLetter flag value.

Bug: 4436327
Change-Id: I88fdac1e888a7123735296f5ef45f5fdd565cd2e
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
327763e5181fe73a1d6d806a57e2456c84159f2a 30-May-2011 Tadashi G. Takaoka <takaoka@google.com> Adaptive keyboard width/position parser

This change introduces the following features to Keyboard XML format.

* "keyXPos" can specify the key X coordinate directly.
* "keyXPos" can be negative. The X coordinate will be calcluated from
the right edge of the keyboard toward left.
* "keyWidth" can be zero to be filled up to the right side.
* "keyWidth can be negative. The key will be filled up to both sides.
* Spacer's horizontalGap is renamed as keyWidth, and can be inherited
from key-style.
* Spacer can have keyXPos attribute.

Using these syntax, all keyboard layouts have been re-written.

Cherry-Pick: I314b2e8ca2aa145ff9506cbf927140a15685af42
Bug: 4442045
Change-Id: I048fe5eaef020d8472ab577e9d326042bae2f3fa
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
9d98a7ed188965dbc86754d295007e215890d956 20-May-2011 Tadashi G. Takaoka <takaoka@google.com> Merge "Fix copyright author from Google to AOSP"
8632bff2d5a8e1160989008dea6eff4b94b065dd 19-May-2011 Tadashi G. Takaoka <takaoka@google.com> Fix copyright author from Google to AOSP

Change-Id: Iaceedc783181e43af6dd48ece218a42eace66532
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
96f185d8af58137d55fc65110f48914221bb78f5 19-May-2011 Tadashi G. Takaoka <takaoka@google.com> Fix NPE in Key.isDigitPopupCharacter

Change-Id: Ie6e8d31e41010db27e2db415b577458b73a9f1a2
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
ff483e8d0c30864a469481f20a26ffb54a75d458 12-May-2011 Tadashi G. Takaoka <takaoka@google.com> Add minKeyboardHeight attribute to Keyboard layout

Bug: 4411676
Change-Id: I1f56ba58bacb90790f82326718bf9de95dba5d28
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
44fe4a0598d831ad33e62cd7742709fd45c60387 28-Apr-2011 Tadashi G. Takaoka <takaoka@google.com> Include horizontal and vertical gap in the count of Key.isOnKey

This change also reverts I8f6102d6 and considers that the point is on
the key while sorting in proximity key detection.

Bug: 4348994
Change-Id: I3ee913675e28da7e7b164805a7a683f0814b38b9
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
ba9aefcc188b7f8ac99ba6cfef42a032b7d693a4 21-Apr-2011 Tadashi G. Takaoka <takaoka@google.com> Disable key preview of space, return and delete

This change also re-orders punctuation mini keyboard.

Change-Id: I987ef14fe5956d13439a0a76de367feed825314c
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
56abeabcedf68f4640bb4ebd4af3ead1e3916c3c 11-Apr-2011 Tadashi G. Takaoka <takaoka@google.com> Add visualInsetsLeft and Right as Key attribute

Bug: 4269094
Change-Id: Ic38d326a8e9ef802453c909f3a81d556863acc9b
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
967d6073bfd5f3d0e21512754d78d2e87c958e27 08-Apr-2011 Tadashi G. Takaoka <takaoka@google.com> Disable popup preview and long press on disabled key

Bug: 4268147
Change-Id: Ibcb54791ef78737dd09d8a594b5a53b0909609d6
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
e7c0e73a19e6eb6cb9a4aded8a0a7240db544d85 07-Apr-2011 Tadashi G. Takaoka <takaoka@google.com> Simplify the Key's on state transition

Because handling shift locked state of alphabet keyboard is done by
KeyboardSwitcher, there is no need to change the "on" state of Key
when releasing the key. On the other hand, symbol and symbol shifted
keyboard has fixed "on" state "ALT/MORE" key.

This change also renames the attribute "isModifier" to "isFunctional".

Change-Id: I082885bd2376ae26bdfc378c14add2b5d6be1d4e
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
aa721c4783616e65a42fb5f234f2b3909ccdd931 18-Feb-2011 Tadashi G. Takaoka <takaoka@google.com> Add "enabled" as an attribute of Key in Keyboard xml

If the key is marked as "enabled=false", the key will not respond to be pressed.

Bug: 3384942
Change-Id: I1ea82d9f3dfa5a9916ff3bbc736ea7e6c77426ae
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
5cd87e1b1c4258e8d016518914eccfbb4437cace 24-Jan-2011 Tadashi G. Takaoka <takaoka@google.com> Disable shortcut key when network is not available

Bug: 3345931
Change-Id: I1deef774598b8e78da4404535b6d3814464a9d2d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
f16028b92e15c0fdf3fdc364d7888cf024723b00 06-Jan-2011 Tadashi G. Takaoka <takaoka@google.com> Remove digit popup characters from mini keyboard of tablet

Bug: 3321376
Change-Id: I38d963952d3c6d2cf1ad19a69b32f90191f17178
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
cc55d947adce18f315fee80d4008965bac1b50b8 01-Jan-2011 Tadashi G. Takaoka <takaoka@google.com> Calculate mini keyboard key width from labels

Change-Id: I4259753bd10fdf488fcffacb6b131e30511e780f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
e89af1fa5fe392af560d0dac206db62fb5dcce85 01-Jan-2011 Tadashi G. Takaoka <takaoka@google.com> Remove Row object from MiniKeyboardBuilder

Change-Id: I981278f29fdd23d80c3da21ecdbbda6d62a0dfde
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
2b13b4f5e55b2bf5086b112f2d5d438810fdd70f 21-Dec-2010 Tadashi G. Takaoka <takaoka@google.com> Suppress long press timer on hinted key while temporary upper case mode

Bug: 3301932
Change-Id: I29b5e5a9aa8b44681e763a4d6485109f3f99f6fa
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
c4f71668d7b8203dc66f0f04c089a363189eb4ce 20-Dec-2010 Tadashi G. Takaoka <takaoka@google.com> Remove multi-tap feature

Change-Id: Ife44b3f9d420d77d2cfb51044a8356f02ed63e8b
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
9b6d1d52d91f8f18952ae3841f4bb0d7309bfc0e 14-Dec-2010 Tadashi G. Takaoka <takaoka@google.com> Add popupKeyboardTemplate attribute to Keyboard

This change
- introduces the popupKeyboardTemplate attribute of Keyboard to
specify XML Keyboard file for popup mini keyboard.
- introduces the maxPopupKeyboardColumn attribute of Keyboard to
specify the maximum column of popup mini keyboard.
- changes the content format of the popupCharacters attribute of Key.
It now represents keyLabel, codes and keyTextOutput of each key of
popup mini keyboard using CSV format.

Bug: 2214959
Change-Id: I539e310f7e38a049ee193de0b4ad5d7afdce37b1
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
4a734aa21e283b0039a5d460054892a7bad97981 08-Dec-2010 Tadashi G. Takaoka <takaoka@google.com> Fix popup mini keyboard for smiley and .com key

Change-Id: Idd156b14a4a259bc7dcaf498fbc8a121a069cbe9
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
9f01ed51d78d9a236d3c321a00ab74165a34630a 08-Dec-2010 Tadashi G. Takaoka <takaoka@google.com> Support keyboardHeight and maxKeyboardHeight to Keyboard XML

This change introduces,
- new attribute keyboardHeight to specify default keyboard height.
- new attribute maxKeyboardHeight to specify maximum keyboard height,
usually specified by percentage to the screen height.
- keyHeight attribute is obsoleted
- new attribute rowHeight to specify a row height, can be specifed as
percentage of the keyboard height. And verticalGap is included to
the row height (row height = key height + vertical gap).

Change-Id: I48a2f2661e8a91a998503a847437c1baf1de9b9c
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
292faee8ba73797c8a97052c02f9b571cfb128b3 07-Dec-2010 Tadashi G. Takaoka <takaoka@google.com> Fix ghost popup mini keyboard

Bug: 3257700
Change-Id: I522ceb426b825575c90e8445336191bcf889f05d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
a275e9eb4884c9cc3d98776d62adcfe3be192730 03-Dec-2010 Tadashi G. Takaoka <takaoka@google.com> Make Key, Row and Keyboard attributes final

Change-Id: Ie87e9e8936646334646cc93b228e0f6a93a79e5b
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
7545ec8df000538f775f01746070b321a70a6dd0 03-Dec-2010 Tadashi G. Takaoka <takaoka@google.com> Fix no smiley popup mini keyboard

Change-Id: I0e010c6f0c06fd59b7aef75fc142a4ce0089e740
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
391a7ce6d8d20825c13764c3730f8b4dd1053b31 03-Dec-2010 Tadashi G. Takaoka <takaoka@google.com> Remove LatinKey class

Change-Id: I56b15980d994eed698566a1d0451e3ec7ab490a0
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
571bdb401f670b92bd7710a12a990cb65a99b7d3 02-Dec-2010 Tadashi G. Takaoka <takaoka@google.com> Refactor LatinKeyboard and LatinKey

This change also moves KeyboardSwitcher and related classes to
com.android.inputmethod.keyboard package.

Multi project change with Ib23017b2

Change-Id: Id7d54b24615fe22ebb540ca847549909e346ee24
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java
5a309f57155fb95667c2ccdda730eaf175de8876 02-Dec-2010 Tadashi G. Takaoka <takaoka@google.com> Move some inner static class to top class in new package

This change introduces new package com.android.inputmethod.keyboard
which hosts keyboard related classes.

Also adds missing @Override and @SuppressWarning("unused") annotation

Change-Id: I0317f5cfa317e13f3c77815f48ffc69b5d1ade05
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/Key.java