summaryrefslogtreecommitdiff
path: root/java/src/com/android/inputmethod/keyboard/Key.java
Commit message (Collapse)AuthorAgeFilesLines
* Remove ALS from LatinIME.Dan Zivkovic2015-03-111-1/+1
| | | | | | This fixes unit tests and brings us closer to a green build. Change-Id: Iffcc392eda4a7671a238b79cc7367320ca648725
* Add null analysis annotations to keyboard packageTadashi G. Takaoka2014-11-271-13/+33
| | | | Change-Id: I6f020ece3c45d584d413e4265d6d3fbdf1ea8bd8
* Rename StringUtils methods that handle title case manipulationTadashi G. Takaoka2014-11-191-9/+18
| | | | Change-Id: Iee0dd077a0423f110f4f8dad0f04933045baef2a
* Move StringUtils under common.Jean Chalard2014-10-281-1/+1
| | | | | Bug: 18108776 Change-Id: Ia46a4102a0e86e71118ca5e641f9f531998e166b
* Move Constants.java to the latin.common packageKen Wakasa2014-10-231-5/+5
| | | | | | | Our intention is to have classes of latinime-common under the common package as much as we can. Change-Id: I76efbbbe7bebf1a4aa943715cdff64f91675e20d
* [ML14] Forward the locale list to relevant places, againJean Chalard2014-10-061-9/+9
| | | | | | | | | | | | | | | | Diff: +++ b/java/src/com/android/inputmethod/keyboard/internal/KeyboardBuilder.java @@ -735,7 +735,7 @@ public class KeyboardBuilder<KP extends KeyboardParams> { private boolean matchLocaleCodes(TypedArray caseAttr, final Locale[] locales) { // TODO: adujst this for multilingual input - return matchString(caseAttr, R.styleable.Keyboard_Case_languageCode, locales[0].toString()); + return matchString(caseAttr, R.styleable.Keyboard_Case_localeCode, locales[0].toString()); } private boolean matchLanguageCodes(TypedArray caseAttr, Locale[] locales) { Change-Id: Icefac18dd6d5fea97f591177cf8df1ba6de7f4f0
* Revert "[ML14] Forward the locale list to relevant places"Ken Wakasa2014-10-031-9/+9
| | | | | | | | | | This reverts commit 15dbd38283fc9c8fdfd2540f1d94d4dbf2eabcb5. Bug: 11230254 Reverting due to unit test breakage. Change-Id: Icf29ba5c808c754515aef2d1b4162d72f606acfe
* [ML14] Forward the locale list to relevant placesJean Chalard2014-10-031-9/+9
| | | | | Bug: 11230254 Change-Id: Idf3ed27b396d63ade9800c72c5ce0ed613f5f669
* Add allowRedundantMoreKeys attributeTadashi G. Takaoka2014-09-251-1/+13
| | | | | | | This CL also adds a couple of custom layout tests of Nordic languages. Bug: 10787354 Change-Id: I5e875d3f30863395511afa82f0a02deb093d3a6f
* Add methods to get a Key's horizontal and vertical gaps.David Faden2014-09-181-6/+41
| | | | | | | | Record the horizontal and vertical gap for the key, adding corresponding accessors. This info is helpful in interpreting corresponding touch points data. Bug: 17400259 Change-Id: I825c537a48db35baab71580ff5c41cd911094a4b
* am cf5fc1ea: am 4e1f1689: am 5ae05786: Merge "Fix drawing of custom action ↵Tadashi G. Takaoka2014-09-161-0/+4
|\ | | | | | | | | | | | | label key" into lmp-dev * commit 'cf5fc1ea065873cd6d7b1d5d467940e4e45354d3': Fix drawing of custom action label key
| * Fix drawing of custom action label keyTadashi G. Takaoka2014-09-161-0/+4
| | | | | | | | | | Bug: 17488054 Change-Id: I433561ed19ec2a79402867a0395a3e388730f087
* | am c29276b7: am 12814352: am 486c4894: Keep aspect ratio of Material action ↵Tadashi G. Takaoka2014-09-091-0/+5
|\| | | | | | | | | | | | | key background * commit 'c29276b782cfc45be5ab79177e991f2cba8fb04b': Keep aspect ratio of Material action key background
| * Keep aspect ratio of Material action key backgroundTadashi G. Takaoka2014-09-091-0/+5
| | | | | | | | | | Bug: 15681452 Change-Id: Ie4b823dca541b76b68cade580845a21ff0b21e2f
* | am ad4de3fc: am 9ca6658e: am 0f33e614: Implement Floating Action Button more ↵Tadashi G. Takaoka2014-09-081-0/+4
|\| | | | | | | | | | | | | keys keyboard * commit 'ad4de3fc819d658775eed470fc74ad76da5caad2': Implement Floating Action Button more keys keyboard
| * Implement Floating Action Button more keys keyboardTadashi G. Takaoka2014-09-081-0/+4
| | | | | | | | | | Bug: 15681452 Change-Id: I8484e4fe4d989b391f2b5230836dc9dfac218429
* | am c297197b: am 1c2cf719: Add new value "spacebar" to Key.backgroundType ↵Tadashi G. Takaoka2014-09-031-1/+5
|\| | | | | | | | | | | | | attribute * commit 'c297197b1548307c31017ba3dc89bbb6bbf2223e': Add new value "spacebar" to Key.backgroundType attribute
| * Add new value "spacebar" to Key.backgroundType attributeTadashi G. Takaoka2014-09-031-1/+5
| | | | | | | | | | Bug: 17318036 Change-Id: Ie84438a6aa3adc14a9db603d0cd4d5e37a55d612
* | am ec7d6752: am 5a9c9649: Removes "customAction" value from ↵Tadashi G. Takaoka2014-09-031-4/+0
|\| | | | | | | | | | | | | Key.backgroundType attribute * commit 'ec7d67529e0dd4e5bf87e3b96c4b78db44adb96f': Removes "customAction" value from Key.backgroundType attribute
| * Removes "customAction" value from Key.backgroundType attributeTadashi G. Takaoka2014-09-031-4/+0
| | | | | | | | | | Bug: 17318036 Change-Id: I6a36d50ba2e69eafbb0faa049014281bd4d4ddfc
* | am 034a4a5a: am c4710124: Merge "Fix the order of keys on more keys ↵Tadashi G. Takaoka2014-08-291-14/+36
|\| | | | | | | | | | | | | keyboard" into lmp-dev * commit '034a4a5a19ba37dba8999b3763ae756fe748deaf': Fix the order of keys on more keys keyboard
| * Fix the order of keys on more keys keyboardTadashi G. Takaoka2014-08-291-14/+36
| | | | | | | | | | | | | | | | | | | | This CL fixes the behavior of !autoColumnOrder!<n> flag in a more keys specification. Formerly the <n> value specifies the maximum number of column of more keys. With this CL, the <n> value specifies the exact number of column of more keys. Bug: 16603887 Change-Id: I2120620fa512ee30043bb146ad675a942a375129
* | Adds documentation for a few methods.David Faden2014-08-261-4/+20
|/ | | | Change-Id: I6bdae25a8b81cdac931f2591f33570b01e34fb2c
* Fix Tamil keyboardTadashi G. Takaoka2014-08-111-1/+2
| | | | | | | | | This CL adds Tamil (Sri Lanka) and Tamil (Singapore) subtypes. This CL also fixes Sinhala Keyboard's currency symbol. Bug: 9978106 Bug: 6911143 Change-Id: I2060978097882d0f4b1ec10f1103260ed8a447d0
* Revert "Revert "Align hint label to bottom""Tadashi G. Takaoka2014-08-071-0/+5
| | | | This reverts commit 02c4a80afea802859c5cb4d1033a7374c3132c96.
* Revert "Revert "Remove unused Key and Keyboard attributes""Tadashi G. Takaoka2014-08-071-3/+0
| | | | | | This reverts commit 44e20f4fb42380061b1c4aa8905c2b301d7130cd. Change-Id: I6560c8f4ef15bf8318d9eedf68a9eb5031f0581d
* Revert "Revert "Add Key label off center attribute""Tadashi G. Takaoka2014-08-071-3/+3
| | | | | | This reverts commit 787e9a37b41c67e8683e854538b2743a2bc8fdcd. Change-Id: I177b8f5d08eb487c19180c09101cc073222c4efe
* Revert "Add Key label off center attribute"Ken Wakasa2014-08-071-3/+3
| | | | | | | | | This reverts commit ba49920e8046ca592d6c914b2e3f7394bf9c281c. Due to unit test breakage. Bug: 14419121 Change-Id: I6f4fc30b86227e59c883d202551b162dc91b4166
* Merge "Revert "Remove unused Key and Keyboard attributes"" into lmp-devKen Wakasa2014-08-051-0/+3
|\
| * Revert "Remove unused Key and Keyboard attributes"Ken Wakasa2014-08-071-0/+3
| | | | | | | | | | | | | | | | This reverts commit cdcaa37a372799eecf796f7002bf49bf3a5f42c1. Due to unit test breakage. Change-Id: I1c22edf983f6e03a34b86d7c1fae3d3188447a75
* | Revert "Align hint label to bottom"Ken Wakasa2014-08-071-5/+0
| | | | | | | | | | | | | | | | | | This reverts commit f1784266ec80244dcefdbd70a43147f1cd847547. Due to unit test breakage. Bug: 14419121 Change-Id: Ibc201649e71135292530b26337d9305a6681f446
* | Align hint label to bottomTadashi G. Takaoka2014-08-071-0/+5
| | | | | | | | | | Bug: 14419121 Change-Id: I9147d3c4a3687ed745ffdddfff221d88652919b2
* | Merge "Remove unused Key and Keyboard attributes" into lmp-devTadashi G. Takaoka2014-08-041-3/+0
|\|
| * Remove unused Key and Keyboard attributesTadashi G. Takaoka2014-08-071-3/+0
| | | | | | | | | | | | | | | | This CL removes the following unused Key attributes - Key.keyLabelFlags' followKeyLargeLabelRatio - Keyboard.keyLargeLabelRatio Change-Id: Ib4fb13cc7ca902ac1733ecf27bd284d07e10bc3e
* | Add Key label off center attributeTadashi G. Takaoka2014-08-071-3/+3
|/ | | | | | | | | | This CL adds two Key attributes to control how much a label should be off centered. - keyLabelOffCenterRatio - keyHintLabelOffCenterRatio Bug: 14419121 Change-Id: I26650eefdd375f0eeca8a1ca6034a8339d2a3182
* Align space key icon to bottom of a keyTadashi G. Takaoka2014-08-071-0/+5
| | | | | | | | | The Key.keyLabelFlags's flag "alignButtom" (misspelled) has been removed by Iae3cd66744. This CL re-introduce the same flag with "alignIconToBottom". Bug: 16803172 Change-Id: I412590f394c6ca9b36358d6acfe8675071403bdd
* Add dedicated background for custom action label keyTadashi G. Takaoka2014-08-061-64/+36
| | | | | Bug: 15526978 Change-Id: Ia73d825c7e00097018822704e61272d0e448f39a
* Remove unused Key.keyLabelFlags' valuesTadashi G. Takaoka2014-07-191-25/+0
| | | | Change-Id: Iae3cd6674448f258ee0a4bf2966bf3c347876b4f
* Remove unused keyPreviewIcon attributesTadashi G. Takaoka2014-07-081-20/+9
| | | | | | This CL also removes unused tabKeyPreview icon. Change-Id: Ia69ba9c3d7c67ccb8983275bed262292eb422db2
* Fix Sinhala keyboard for tablet deviceTadashi G. Takaoka2014-07-071-5/+10
| | | | | | | | | | This CL introduces fontDefault flag to keyLabelFlags of Key attribute to reset font specification to keyTypeface attribute. This is a followup of I065824f3fa. Bug: 6911143 Change-Id: I33bd4a23aaea73e2b17175ddd39053ec915d5451
* Fix NPE by disabling key preview popup of Emoji paletteTadashi G. Takaoka2014-06-131-1/+2
| | | | | Bug: 15579928 Change-Id: I6bcf885f2c1aa37b337a85978409ccf41e459c2a
* More concise Key.toString()Tadashi G. Takaoka2014-06-031-8/+17
| | | | Change-Id: I0ef983f54e828193e9c7e4a10c888f72702d499c
* Support 9-patch drawable for spacebar iconTadashi G. Takaoka2014-05-151-0/+5
| | | | | Bug: 14419121 Change-Id: I901ea2a5bfae870b3aae8fea3bc38d999b2354b8
* Use slightly dimmed text color for functional keysTadashi G. Takaoka2014-05-151-0/+4
| | | | | | | | | This CL introduces two new key attributes to achieve this. - KeyboardView.functionalTextColor - followFunctionalTextColor flag for Key.keyLabelFlags Bug: 14419121 Change-Id: I45ca433dcc9cc8c6cf891e21d5316ee4048b0cad
* Separate functional key background from normal oneTadashi G. Takaoka2014-05-141-22/+29
| | | | | | | | | | This CL also moves spacebarBackground attribute from MainKeyboardView to KeyboardView. This CL must be checked in together with I48c383ca97. Bug: 14419121 Change-Id: Id356d0086a8fb21375fb5c66076873258fb3d63e
* Add Key.getIconId for testabilityTadashi G. Takaoka2014-02-251-2/+6
| | | | | Bug: 13017434 Change-Id: I94ff45da3f58b74cc9dd4d38179670fbcf619d92
* Revert "Prepare for changing text color for functional keys"Tadashi G. Takaoka2014-02-241-18/+1
| | | | | | | This reverts commit 194e004e81f74c4124184ad8597d68e3837ea560. Bug: 10786040 Change-Id: I4c5287d46cabe287abce5cba77635cf26d2cd192
* Remove RTL aware !code and add corresponding !textTadashi G. Takaoka2014-02-131-5/+4
| | | | Change-Id: I9021c8fa1cf2d4ac07579237a939c15551509a0b
* Refactor Key constructorsTadashi G. Takaoka2014-02-101-46/+24
| | | | | | This is a followup of I76432556ca. Change-Id: Ie2c8f7c23352a33db28e89ee8e6ebaba9eb760a3
* Allow an empty keySpec for SpacerTadashi G. Takaoka2014-02-091-2/+4
| | | | | Bug: 12933248 Change-Id: I76432556caf319ce23c1fb7fa3d6b94118e64cf8