summaryrefslogtreecommitdiff
path: root/java/src/com/android/inputmethod/keyboard/internal/KeyboardBuilder.java
Commit message (Collapse)AuthorAgeFilesLines
* Remove ALS from LatinIME.Dan Zivkovic2015-03-111-17/+11
| | | | | | This fixes unit tests and brings us closer to a green build. Change-Id: Iffcc392eda4a7671a238b79cc7367320ca648725
* Refactor KeysCache to UniqueKeysCacheTadashi G. Takaoka2014-11-271-4/+0
| | | | Change-Id: I8e3c4705c705a1c6e05e9112211d7012912d7e41
* Add null analysis annotations to keyboard packageTadashi G. Takaoka2014-11-271-1/+3
| | | | Change-Id: I6f020ece3c45d584d413e4265d6d3fbdf1ea8bd8
* Move isRtlLanguage method to LocaleUtilsTadashi G. Takaoka2014-11-121-1/+0
| | | | Change-Id: I485a076b81927fed0da593216fea2c740449ef4c
* Add RichInputMethodSubtype.getKeyboardLayoutSetNameTadashi G. Takaoka2014-11-121-1/+1
| | | | Change-Id: I90cc74ee882e8aa2b243885d3b994223ca3b6f44
* 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-1/+1
| | | | | | | Our intention is to have classes of latinime-common under the common package as much as we can. Change-Id: I76efbbbe7bebf1a4aa943715cdff64f91675e20d
* Fix Javadoc and null analysis related warningsTadashi G. Takaoka2014-10-231-1/+3
| | | | | | | This CL also adds @SuppressWarning("unused" to java-overridable package. Bug: 18003991 Change-Id: If70527e30654384705d7a814f5efd181d9f539e1
* Fix some compiler warningsTadashi G. Takaoka2014-10-211-3/+3
| | | | | | | | | | | | | | | | | | | | | This CL fixes the following compiler warnings. - Indirect access to static member - Access to a non-accessible member of an enclosing type - Parameter assignment - Method can be static - Local variable declaration hides another field or variable - Value of local variable is not used - Unused import - Unused private member - Unnecessary 'else' statement - Unnecessary declaration of throw exception - Redundant type arguments - Missing '@Override' annotation - Unused '@SuppressWarning' annotations Bug: 18003991 Change-Id: Icfebe753e53a2cc621848f769d6a3d7ce501ebc7
* [ML14] Forward the locale list to relevant places, againJean Chalard2014-10-061-7/+24
| | | | | | | | | | | | | | | | 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-24/+7
| | | | | | | | | | 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-7/+24
| | | | | Bug: 11230254 Change-Id: Idf3ed27b396d63ade9800c72c5ce0ed613f5f669
* Add allowRedundantMoreKeys attributeTadashi G. Takaoka2014-09-251-0/+5
| | | | | | | This CL also adds a couple of custom layout tests of Nordic languages. Bug: 10787354 Change-Id: I5e875d3f30863395511afa82f0a02deb093d3a6f
* Start showing the split keyboard layoutSandeep Siddhartha2014-09-171-2/+7
| | | | | | | | | | | Change [3/3] Added tests for Qwerty/en-US/split Parse the switch-case statement from KeyboardBuilder to use the right layout. Bug: 4968173 Change-Id: If4d6d71d5900525290268d8affa55dccf1ebd4f2
* Add new "keyboardTheme" <case> predicatorTadashi G. Takaoka2014-09-031-6/+12
| | | | | Bug: 17318036 Change-Id: Ief386c84969d8646fb5cfe2050a2f59a7db16c88
* Fix NPE by disabling key preview popup of Emoji paletteTadashi G. Takaoka2014-06-131-0/+1
| | | | | Bug: 15579928 Change-Id: I6bcf885f2c1aa37b337a85978409ccf41e459c2a
* Remove unused supportsSwitchingToShortcutIme attributeTadashi G. Takaoka2014-06-061-9/+2
| | | | Change-Id: I51c5247ac925a158facb79057f704b763b903552
* Add isIconDefined predicate to Keyboard_Case attributeTadashi G. Takaoka2014-05-131-2/+17
| | | | | Bug: 14259323 Change-Id: I9450a5125b1809b9fada6ee6e6b253cabfa2e2b4
* Consolidate KeyboardTextsSet.setLocale and loadStringResoucresTadashi G. Takaoka2014-03-201-14/+1
| | | | Change-Id: Idaf8f0d80fdeef4f1430f11d4083366e8ab7f6e0
* Remove RTL aware !code and add corresponding !textTadashi G. Takaoka2014-02-131-1/+0
| | | | Change-Id: I9021c8fa1cf2d4ac07579237a939c15551509a0b
* Refactor Key constructorsTadashi G. Takaoka2014-02-101-5/+23
| | | | | | This is a followup of I76432556ca. Change-Id: Ie2c8f7c23352a33db28e89ee8e6ebaba9eb760a3
* Use SubtypeLocaleUtils.isRtlLanguageTadashi G. Takaoka2014-02-061-6/+5
| | | | Change-Id: Ic0208412cd9c02975641cb5c448d092f28786746
* Reset to 9bd6dac4708ad94fd0257c53e977df62b152e20cKen Wakasa2013-12-131-14/+11
| | | | | | The bulk merge from -bayo to klp-dev should not have been merged to master. Change-Id: I527a03a76f5247e4939a672f27c314dc11cbb854
* Unfortunately, hide some broken "emoji"sSatoshi Kataoka2013-10-011-0/+8
| | | | | Bug: 10923117 Change-Id: I27ba38e5f388cc15ae331fd05d63db4e4a41cbbf
* Add keyboardLayoutSet attribute to <case> conditionTadashi G. Takaoka2013-08-291-7/+13
| | | | Change-Id: I017c4a3c1c7b2e4c6f607940078f61e120042270
* Add GridRows tag to support emoji keyboardTadashi G. Takaoka2013-08-261-1/+77
| | | | | Bug: 6370846 Change-Id: Ia68284b2402e52d835040da900a51cca669add2f
* Save and restore Row attributes using stackTadashi G. Takaoka2013-08-191-25/+6
| | | | Change-Id: I5cb402060946a711384ee53fa1caaeac86aa10cc
* Make all KeyboardRow attributes privateTadashi G. Takaoka2013-08-191-1/+1
| | | | Change-Id: Ifaca6ad5e642964d8c3a77a96a1cd74f363ee996
* Fix cosmetic source code formattingTadashi G. Takaoka2013-08-151-142/+131
| | | | Change-Id: I33c14a20bc55b826082e468c0aecfa026ba5d9f3
* Add getters and copy constructor to Key classTadashi G. Takaoka2013-08-151-1/+1
| | | | Change-Id: I78eb96dcc26378926dc63acbfeb4828cbd44435d
* Make RunInLocale as top-level classTadashi G. Takaoka2013-07-241-2/+2
| | | | Change-Id: I07ed606b7aba098a5be85533e5baff300b21fb44
* Move subtype related utility class to utils packageTadashi G. Takaoka2013-07-241-2/+2
| | | | Change-Id: I3564796531ea85f2ebafde40cd822b806b8741df
* Move util classes to the latin/utils directoryKen Wakasa2013-06-241-4/+4
| | | | Change-Id: I1c5b27c8edf231680edb8d96f63b9d04cfc6a6fa
* Use XmlPullParser.getEventType()Tadashi G. Takaoka2013-03-261-12/+12
| | | | Change-Id: Ie423d3416639f81409cc920658c8088b7519b045
* Clean up XmlParserUtilsTadashi G. Takaoka2013-03-261-9/+9
| | | | Change-Id: I636e8f359d47f39e61a7f77e3e686f2721779b6f
* Clean up InflateException reference from KeyboardBuilderTadashi G. Takaoka2013-03-211-2/+1
| | | | Change-Id: If9daa00b6d829ce2069a027e4bfec310ec108615
* CleanupsJean Chalard2013-02-111-2/+2
| | | | | | Follow-up to Idc6f419a Change-Id: I4aae8f4e19f27a0a309879dc19af6e40906d58c5
* Add keyboardLetfPadding and keyboardRightPadding attributesTadashi G. Takaoka2013-01-301-8/+8
| | | | | | | This change splits keyboardHorizontalEdgesPadding attributes of Keyboard into two attributes. Change-Id: Iefdb358783b81af4027e8d9e991db36a6c429cf1
* Remove "dimension|fraction" format from Key and Keyboard attributesTadashi G. Takaoka2013-01-301-22/+27
| | | | Change-Id: Ieec8b7f5ccdf2a57bcc539dcb5313b6353f926d7
* Remove {max,min}keyboardHeight attribute from KeyboardTadashi G. Takaoka2013-01-291-30/+1
| | | | | | This change removes a DisplayMetrics reference from KeyboardBuilder. Change-Id: I512694274e69e5281d5be47c3f938bcfd6571152
* Fix Apache license commentTadashi G. Takaoka2013-01-211-8/+8
| | | | Change-Id: Ic56167f952a7f4449da366e1e81610e72c966086
* Set default audio and haptic feedback settingsTadashi G. Takaoka2012-12-281-5/+6
| | | | | | | | - Default keypress volume is set to 0.2f in resource. - Default keypress vibration duration is set to 10 msec in resource. Bug: 7055329 Change-Id: I83bd6288d171d9787d52e2b02e4e5305f1435681
* Fix label of switch to symbols key when symbols has shortcut keyTadashi G. Takaoka2012-12-131-4/+8
| | | | | | | This change fixes the labels of switch to symbols key and switch back from more symbols key when symbols layout has shortcut key. Change-Id: I3fbbef2d929486d0f0542f4d89cb086d9f5bad82
* Add @UsedForTesting and @ExternallyReferenced annotationsTadashi G. Takaoka2012-10-221-1/+2
| | | | | Bug: 7268357 Change-Id: I0b7e0c19f04af9ae30874d0a4c26ad81bc80be8c
* Fix touch position correction data passingTadashi G. Takaoka2012-09-251-4/+3
| | | | | Bug: 7225811 Change-Id: I3dcc0385ed633585d6810fdb742e0f88c2efbbd2
* Support per-Key and per-Keyboard key visual attributesTadashi G. Takaoka2012-08-311-13/+1
| | | | | | | This change refactors KeyDrawParams and KeyPreviewDrawParams to separate KeyVisualAttributes. Change-Id: I4de549eef303e1debe4b8f84668e042445fc18da
* Move some key top visual attributes from KeyboardView to KeyTadashi G. Takaoka2012-08-301-14/+11
| | | | Change-Id: I1e2d59bf8c438ca653e2e415ccf66fd4f15d5394
* Separate inner classes of keyboard package out under internal packageTadashi G. Takaoka2012-08-301-0/+829
| | | | Change-Id: Ia3969bd5ddec5aa5d81d05ad4cf676d818587922
* Move KeyboardBuilder and KeyboardParams classes into Keyboard classTadashi G. Takaoka2011-12-181-833/+0
| | | | | | | This change also moves XmlParseUtils to com.android.inputmethod.latin package. Bug: 5778201 Change-Id: I7d9faa344460753ce178ad4048e0fadb65c75614
* Move KeyboardSwitcher.getKeyboard to KeyboardSetTadashi G. Takaoka2011-12-161-2/+2
| | | | | | | | This change also gets rid of XML id from KeyboardId. Bug: 5002108 Bug: 5679585 Change-Id: I7086c7da3c01ba4ade7f77ee5cc731310da46404