aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/utils (follow)
Commit message (Expand)AuthorAgeFilesLines
* Fix SubtypeLocaleUtils.getSubtypeNameForLogging accepting null•••Change-Id: Ic5cb55e24a2d843027ccc4e8e5d6954f9391c125 Tadashi G. Takaoka2014-11-191-1/+2
* Move isRtlLanguage method to LocaleUtils•••Change-Id: I485a076b81927fed0da593216fea2c740449ef4c Tadashi G. Takaoka2014-11-121-18/+0
* Merge "Add RichInputMethodSubtype.getKeyboardLayoutSetName"Tadashi G. Takaoka2014-11-131-4/+0
|\
| * Add RichInputMethodSubtype.getKeyboardLayoutSetName•••Change-Id: I90cc74ee882e8aa2b243885d3b994223ca3b6f44 Tadashi G. Takaoka2014-11-121-4/+0
* | Clean SubtypeLocaleUtils a bit•••Change-Id: If8b981715983e3a12867c9b7c53bfa5effaddd39 Tadashi G. Takaoka2014-11-121-6/+0
|/
* Move util classes under common•••Also why did we have two copies of LocaleUtils >.> Bug: 18108776 Change-Id: I03b4403dfd51934e66b567f2f8b87da419cfb3ab Jean Chalard2014-11-076-406/+2
* Move some methods out from SubtypeSwitcher•••Change-Id: I89aaf87d7d0cc204b0ca0f61c2f64d15e2df848e Tadashi G. Takaoka2014-11-062-18/+40
* 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 text•••Change-Id: I23608927cef8a897ff4ad8c938560cc78093ddac Tadashi G. Takaoka2014-10-312-0/+39
* | Merge "Remove Dict dependency on WordComposer and ProximityInfo"Jean Chalard2014-10-311-2/+3
|\ \
| * | Remove Dict dependency on WordComposer and ProximityInfo•••Bug: 18108776 Change-Id: I9b399a44241e05a7add9bb8094263aa76de37880 Jean Chalard2014-10-291-2/+3
* | | Merge "Add documentation for CollectionUtils#arrayAsList"Ken Wakasa2014-10-311-1/+12
|\ \ \
| * | | Add documentation for CollectionUtils#arrayAsList•••(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: I0c579ca4f4f2a9b2575aa6f8fa75e3ee4a21cf8aDavid Faden2014-10-311-1/+12
| | |/ | |/|
* / | Using "blacklist" flag as "possibly offensive"•••Bug: 11031090 Change-Id: I5cc0d006ab003656498eb82b0875eb9c051d331e Adrian Velicu2014-10-311-4/+9
|/ /
* | Merge "Add a preference to resize the keyboard height."Andy Wang2014-10-301-0/+10
|\ \ | |/ |/|
| * Add a preference to resize the keyboard height.•••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 Andy Wang2014-10-301-0/+10
* | Move InputPointers and ResizableIntArray to common•••Bug: 18108776 Change-Id: Ie5c0430aa41a8d6c58bf510a10173223d7dfe9fe Jean Chalard2014-10-291-155/+0
|/
* Move StringUtils under common.•••Bug: 18108776 Change-Id: Ia46a4102a0e86e71118ca5e641f9f531998e166b Jean Chalard2014-10-288-630/+8
* Reduce StringUtils dependency on the Android libs•••Bug: 18108776 Change-Id: I43feb25d79f89276d44462ba71788a14c4583277 Jean Chalard2014-10-282-65/+121
* Fix Serbian Latin subtype handling•••This CL also adds unit tests for Hinglish and Serbian Latin. Bug: 9687668 Bug: 17169632 Change-Id: Ib9aa1bcdf5b390a9d8c61f07165beacf850e2692 Tadashi G. Takaoka2014-10-281-6/+20
* Merge "Add null analysis annotation to CollectionUtils"Tadashi G. Takaoka2014-10-271-5/+7
|\
| * Add null analysis annotation to CollectionUtils•••Change-Id: I3a610b037d6d1431cced3ea193171108bd5a040d Tadashi G. Takaoka2014-10-271-5/+7
* | Refactor CoordinateUtils•••Change-Id: I607b803273a4d7983e9e25a81b6941a3b59194c6 Tadashi G. Takaoka2014-10-271-16/+19
|/
* Move Constants.java to the latin.common package•••Our intention is to have classes of latinime-common under the common package as much as we can. Change-Id: I76efbbbe7bebf1a4aa943715cdff64f91675e20d Ken Wakasa2014-10-237-20/+18
* Use trigrams for personalization dict.•••5Bug: 14425059 Change-Id: I73cf6904e569d60996a3b079f16ea6df0cb90f02 Keisuke Kuroyanagi2014-10-232-166/+117
* Fix Javadoc and null analysis related warnings•••This CL also adds @SuppressWarning("unused" to java-overridable package. Bug: 18003991 Change-Id: If70527e30654384705d7a814f5efd181d9f539e1 Tadashi G. Takaoka2014-10-234-11/+17
* Support dumping ngram entries.•••Bug: 14425059 Change-Id: Ib03a0c3d166ed6f1e60c67127b28006d55143b6b Keisuke Kuroyanagi2014-10-221-4/+14
* Remove BuildCompatUtils.VERSION_CODES_LXX•••Finally it is turned out to be a XXL-size Lollipop. Change-Id: Icbd22506be9de514eba287cdd8d97fbfd070ac09 Yohei Yukawa2014-10-221-2/+2
* Merge "Fix some compiler warnings"Tadashi G. Takaoka2014-10-2111-27/+16
|\
| * Fix some compiler warnings•••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 Tadashi G. Takaoka2014-10-2111-27/+16
* | Merge "FIx potential NPE"Tadashi G. Takaoka2014-10-211-2/+2
|\ \ | |/ |/|
| * FIx potential NPE•••Bug: 18052047 Change-Id: I9097d0a504b8a1d875cf66e44bb65eb6ecc8908e Tadashi G. Takaoka2014-10-211-2/+2
* | Renaming "blacklist" flag to "possibly offensive"•••No behaviour changes. Unified the overloaded FusionDictionary::add method to always take an isPossiblyOffensive argument. Bug: 11031090 Change-Id: I5741a023ca1ce842d2cf10d4f6c926b0efabaa78 Adrian Velicu2014-10-212-3/+3
|/
* [ML25] Add an hasDict method.•••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 Jean Chalard2014-10-161-0/+21
* Merge "Add JSR305 annotation to LeakGuardHandlerWrapper"Tadashi G. Takaoka2014-10-141-5/+6
|\
| * Add JSR305 annotation to LeakGuardHandlerWrapper•••Change-Id: I7456200af739db4510c5549b7bc894fb48749455 Tadashi G. Takaoka2014-10-141-5/+6
* | Merge "Remove shouldBlockAutoCorrectionBySafetyNet"Keisuke Kuroyanagi2014-10-142-42/+1
|\ \ | |/ |/|
| * Remove shouldBlockAutoCorrectionBySafetyNet•••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 Keisuke Kuroyanagi2014-10-142-42/+1
* | Simplify CursorAnchorInfoCompatWrapper•••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 Yohei Yukawa2014-10-091-2/+29
|/
* [ML14] Forward the locale list to relevant places, again•••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 Jean Chalard2014-10-061-11/+0
* Revert "[ML14] Forward the locale list to relevant places"•••This reverts commit 15dbd38283fc9c8fdfd2540f1d94d4dbf2eabcb5. Bug: 11230254 Reverting due to unit test breakage. Change-Id: Icf29ba5c808c754515aef2d1b4162d72f606acfe Ken Wakasa2014-10-031-0/+11
* [ML14] Forward the locale list to relevant places•••Bug: 11230254 Change-Id: Idf3ed27b396d63ade9800c72c5ce0ed613f5f669 Jean Chalard2014-10-031-11/+0
* Add calls to stub for API to consume gesture data.•••Bug: 17400259 Change-Id: Ib3511afffe1d14662e7dd14611f384689516e664 David Faden2014-10-031-0/+10
* Introduce NgramProperty in Java side.•••Bug: 14425059 Change-Id: I8b3458ad22730b3dccbe0caea2c5930f5276dc82 Keisuke Kuroyanagi2014-10-011-3/+4
* Rename PrevWordsInfo to NgramContext.•••Bug: 14425059 Change-Id: Id06a71681fa8b5e589e29fba10fe5c1cfed66984 Keisuke Kuroyanagi2014-09-296-42/+42
* Refactoring PrevWordsInfo.•••Bug: 14425059 Change-Id: I48a193b965e3055bd10a00046322c2b7b19a6232 Keisuke Kuroyanagi2014-09-261-1/+1
* Add an internal state test to ImportantNoticeUtilsTests•••On some 32bit-x86 testing emulators, it seems the internal state after clear the related settings seems like a contradiction state. This CL adds an test to check such internal state in order to investigate what is happening on these emulators. Bug: 17635340 Change-Id: Iba85f06c46959b1dc22e2a9213c50c9e7e30949b Tadashi G. Takaoka2014-09-261-2/+4
* Add !string/<resource_name> reference•••This CL introduces new text reference notation !string/<resource_name> to refer a string resource on the fly. This notation is mainly used to represent action key labels may refer a string in a system locale in run-time. This notation is needed to implement Hinglish and Serbian-Latin keyboards that need to refer its own action key labels. Bug: 17169632 Bug: 9687668 Change-Id: I042f6bd04714e0e448cd92031730eb9fb422e6d3 Tadashi G. Takaoka2014-09-251-1/+1
* am 4c4ba10b: am 71b51590: am a76e11a2: am 1f490d6c: am be4e0d0e: Fix when to ...•••* commit '4c4ba10bbb257036d7cb6ae8a128263285b7384f': Fix when to show important notice Tadashi G. Takaoka2014-09-231-5/+36
|\
| * Fix when to show important notice•••This CL introduces a timeout duration to show an important notice message. When the timeout has passed, the important notice message will be suppressed without user intervention. This CL also adds unit tests and fixes a bug in getNextImportantNoticeTitle(). Bug: 17181982 Change-Id: If321c0060cc2f7ca14ad0631b84f4990f88bd659 Tadashi G. Takaoka2014-09-221-5/+36