aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/utils (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* LatinIME portion of multi-lang option removal.Dan Zivkovic2015-01-292-4/+1
| | | | | | Bug 19188067. Change-Id: Ic9a3637f59dda30c699141222b9dcac3cd624b99
* Make LanguageOnSpacebarHelper as utility classTadashi G. Takaoka2014-12-111-0/+100
| | | | Change-Id: I546f3b1943999a41803222bd14f9ddd23aa87a51
* Add NetworkConnectivityUtils classTadashi G. Takaoka2014-12-111-0/+101
| | | | Change-Id: I7bd71f1d4ef0fc0fe21ddfd9f3e11463f53ac4e7
* Quit auto-correct explicit accented letters to base letters.Keisuke Kuroyanagi2014-12-091-0/+4
| | | | | Bug: 7677193 Change-Id: I66eddbf27a9db8682c0347a1be19922792a3bea7
* Fix a misspelled method nameAdrian Velicu2014-12-021-1/+1
| | | | Change-Id: I1151dc1d5db3986a97daf68c1e387dbc2e4610dc
* Merge "Make LocaleUtils.constructLocaleFromString as @Nonnull"Tadashi G. Takaoka2014-11-282-21/+51
|\
| * Make LocaleUtils.constructLocaleFromString as @NonnullTadashi G. Takaoka2014-11-212-21/+51
| | | | | | | | Change-Id: I82d574c67b25239510f3ecc8882efe46e40677eb
* | Merge "Remove unused code from DictionaryFactory"Tadashi G. Takaoka2014-11-271-0/+11
|\ \
| * | Remove unused code from DictionaryFactoryTadashi G. Takaoka2014-11-211-0/+11
| |/ | | | | | | Change-Id: I666308ada968ee7993235ad98b92f2ad522af122
* / Allow whitelist changes when no close wordJean Chalard2014-11-261-6/+5
|/ | | | | | | | | | | | | | When there isn't a close word in another language of the current multi-language set, we allow whitelist entries to take force even if we are not confident in the current language. Bug: 18063142 Bug: 18130489 Bug: 18132240 Bug: 18136721 Bug: 18200415 Change-Id: I044674ba7b70aa86ab2a48d2e4d53a1c8007b62c
* Fix SubtypeLocaleUtils.getSubtypeNameForLogging accepting nullTadashi G. Takaoka2014-11-191-1/+2
| | | | Change-Id: Ic5cb55e24a2d843027ccc4e8e5d6954f9391c125
* Move isRtlLanguage method to LocaleUtilsTadashi G. Takaoka2014-11-121-18/+0
| | | | Change-Id: I485a076b81927fed0da593216fea2c740449ef4c
* Merge "Add RichInputMethodSubtype.getKeyboardLayoutSetName"Tadashi G. Takaoka2014-11-131-4/+0
|\
| * Add RichInputMethodSubtype.getKeyboardLayoutSetNameTadashi G. Takaoka2014-11-121-4/+0
| | | | | | | | Change-Id: I90cc74ee882e8aa2b243885d3b994223ca3b6f44
* | Clean SubtypeLocaleUtils a bitTadashi G. Takaoka2014-11-121-6/+0
|/ | | | Change-Id: If8b981715983e3a12867c9b7c53bfa5effaddd39
* Move util classes under commonJean Chalard2014-11-076-406/+2
| | | | | | | Also why did we have two copies of LocaleUtils >.> Bug: 18108776 Change-Id: I03b4403dfd51934e66b567f2f8b87da419cfb3ab
* Move some methods out from SubtypeSwitcherTadashi G. Takaoka2014-11-062-18/+40
| | | | Change-Id: I89aaf87d7d0cc204b0ca0f61c2f64d15e2df848e
* Merge "Add helper methods to convert flags to readable text"Tadashi G. Takaoka2014-10-312-0/+39
|\
| * Add helper methods to convert flags to readable textTadashi G. Takaoka2014-10-312-0/+39
| | | | | | | | Change-Id: I23608927cef8a897ff4ad8c938560cc78093ddac
* | Merge "Remove Dict dependency on WordComposer and ProximityInfo"Jean Chalard2014-10-311-2/+3
|\ \
| * | Remove Dict dependency on WordComposer and ProximityInfoJean Chalard2014-10-291-2/+3
| | | | | | | | | | | | | | | Bug: 18108776 Change-Id: I9b399a44241e05a7add9bb8094263aa76de37880
* | | Merge "Add documentation for CollectionUtils#arrayAsList"Ken Wakasa2014-10-311-1/+12
|\ \ \
| * | | Add documentation for CollectionUtils#arrayAsListDavid Faden2014-10-311-1/+12
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (This is a cherrypick of http://ag/576739) Also, modify the IllegalArgumentException to capture the values passed for start, end, and array.length to make debugging easier in the unlikely event that it is thrown. Add corresponding tests for the exceptions. Tested: tapas LatinImeGoogle LatinImeGoogleTests userdebug make -j30 && \ adb install -r \ out/target/product/generic/data/app/LatinImeGoogleTests/LatinImeGoogleTests.apk && \ adb install -r \ out/target/product/generic/system/app/LatinImeGoogle/LatinImeGoogle.apk && \ adb shell am instrument -w -e class \ com.android.inputmethod.latin.utils.CollectionUtilsTests \ com.google.android.inputmethod.latin.tests/android.support.test.runner.AndroidJUnitRunner Change-Id: I0c579ca4f4f2a9b2575aa6f8fa75e3ee4a21cf8a
* / | Using "blacklist" flag as "possibly offensive"Adrian Velicu2014-10-311-4/+9
|/ / | | | | | | | | Bug: 11031090 Change-Id: I5cc0d006ab003656498eb82b0875eb9c051d331e
* | Merge "Add a preference to resize the keyboard height."Andy Wang2014-10-301-0/+10
|\ \ | |/ |/|
| * Add a preference to resize the keyboard height.Andy Wang2014-10-301-0/+10
| | | | | | | | | | | | | | | | The keyboard height is controlled by a slider in the debug preferences. Without access to debug preferences, this change is a no-op. Bug: 6867494 Change-Id: I984064ed1cab752876615f5ed582818474d6041b
* | Move InputPointers and ResizableIntArray to commonJean Chalard2014-10-291-155/+0
|/ | | | | Bug: 18108776 Change-Id: Ie5c0430aa41a8d6c58bf510a10173223d7dfe9fe
* Move StringUtils under common.Jean Chalard2014-10-288-630/+8
| | | | | Bug: 18108776 Change-Id: Ia46a4102a0e86e71118ca5e641f9f531998e166b
* Reduce StringUtils dependency on the Android libsJean Chalard2014-10-282-65/+121
| | | | | Bug: 18108776 Change-Id: I43feb25d79f89276d44462ba71788a14c4583277
* Fix Serbian Latin subtype handlingTadashi G. Takaoka2014-10-281-6/+20
| | | | | | | | This CL also adds unit tests for Hinglish and Serbian Latin. Bug: 9687668 Bug: 17169632 Change-Id: Ib9aa1bcdf5b390a9d8c61f07165beacf850e2692
* Merge "Add null analysis annotation to CollectionUtils"Tadashi G. Takaoka2014-10-271-5/+7
|\
| * Add null analysis annotation to CollectionUtilsTadashi G. Takaoka2014-10-271-5/+7
| | | | | | | | Change-Id: I3a610b037d6d1431cced3ea193171108bd5a040d
* | Refactor CoordinateUtilsTadashi G. Takaoka2014-10-271-16/+19
|/ | | | Change-Id: I607b803273a4d7983e9e25a81b6941a3b59194c6
* Move Constants.java to the latin.common packageKen Wakasa2014-10-237-20/+18
| | | | | | | Our intention is to have classes of latinime-common under the common package as much as we can. Change-Id: I76efbbbe7bebf1a4aa943715cdff64f91675e20d
* Use trigrams for personalization dict.Keisuke Kuroyanagi2014-10-232-166/+117
| | | | | 5Bug: 14425059 Change-Id: I73cf6904e569d60996a3b079f16ea6df0cb90f02
* Fix Javadoc and null analysis related warningsTadashi G. Takaoka2014-10-234-11/+17
| | | | | | | This CL also adds @SuppressWarning("unused" to java-overridable package. Bug: 18003991 Change-Id: If70527e30654384705d7a814f5efd181d9f539e1
* Support dumping ngram entries.Keisuke Kuroyanagi2014-10-221-4/+14
| | | | | Bug: 14425059 Change-Id: Ib03a0c3d166ed6f1e60c67127b28006d55143b6b
* Remove BuildCompatUtils.VERSION_CODES_LXXYohei Yukawa2014-10-221-2/+2
| | | | | | Finally it is turned out to be a XXL-size Lollipop. Change-Id: Icbd22506be9de514eba287cdd8d97fbfd070ac09
* Merge "Fix some compiler warnings"Tadashi G. Takaoka2014-10-2111-27/+16
|\
| * Fix some compiler warningsTadashi G. Takaoka2014-10-2111-27/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "FIx potential NPE"Tadashi G. Takaoka2014-10-211-2/+2
|\ \ | |/ |/|
| * FIx potential NPETadashi G. Takaoka2014-10-211-2/+2
| | | | | | | | | | Bug: 18052047 Change-Id: I9097d0a504b8a1d875cf66e44bb65eb6ecc8908e
* | Renaming "blacklist" flag to "possibly offensive"Adrian Velicu2014-10-212-3/+3
|/ | | | | | | | | No behaviour changes. Unified the overloaded FusionDictionary::add method to always take an isPossiblyOffensive argument. Bug: 11031090 Change-Id: I5741a023ca1ce842d2cf10d4f6c926b0efabaa78
* [ML25] Add an hasDict method.Jean Chalard2014-10-161-0/+21
| | | | | | | | | We used to have separate methods for existence of dicts according to whether it's a file or a resource. This unifies both. Bug: 11230254 Bug: 17979623 Change-Id: I728773461f3465f756d06297c3f3bee34390c3e6
* Merge "Add JSR305 annotation to LeakGuardHandlerWrapper"Tadashi G. Takaoka2014-10-141-5/+6
|\
| * Add JSR305 annotation to LeakGuardHandlerWrapperTadashi G. Takaoka2014-10-141-5/+6
| | | | | | | | Change-Id: I7456200af739db4510c5549b7bc894fb48749455
* | Merge "Remove shouldBlockAutoCorrectionBySafetyNet"Keisuke Kuroyanagi2014-10-142-42/+1
|\ \ | |/ |/|
| * Remove shouldBlockAutoCorrectionBySafetyNetKeisuke Kuroyanagi2014-10-142-42/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 13756409 [Category diff] +1 27 -1 0 +2 0 -2 0 +3 0 -3 1 +4 11 -4 0 +5 51 -5 0 +6 0 -6 38 +7 0 -7 50 [Weighted category diff] +1 28 -1 0 +2 0 -2 0 +3 0 -3 1 +4 11 -4 0 +5 51 -5 0 +6 0 -6 39 +7 0 -7 50 show diff for ./en_user_log_phones_2011_08.csv +1 4 +4 5 +5 7 -6 9 -7 7 The increase of false positives comes from the spaceless typing test cases that are synthetic data. Change-Id: I4ea77aa56ebfaa5518c71107169e1d2332de6327
* | Simplify CursorAnchorInfoCompatWrapperYohei Yukawa2014-10-091-2/+29
|/ | | | | | | | | With this CL, we will use CursorAnchorInfoCompatWrapper just to avoid unexpected NoClassDefFoundError due to the direct dependency CursorAnchorInfo class, which is available only on API level 21 and later. Change-Id: I254ff83f1ca41daa21d0666b5824af22ba529022
* [ML14] Forward the locale list to relevant places, againJean Chalard2014-10-061-11/+0
| | | | | | | | | | | | | | | | 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