aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/utils (follow)
Commit message (Expand)AuthorAgeFilesLines
* Remove distracter filter from client.•••Bug 19296201. Change-Id: Ic834e5956347cd86a96bd14024c42ad8ee258659 Dan Zivkovic2015-02-091-225/+0
* Revert "Fix unit test failure due to translation glitch"•••This reverts commit f8705dd2bdb9aeb61860e6a0125102afc63a351d. Change-Id: I7ddc1eced8109ff0bb50eb8a217db0d276848a1e Tadashi G. Takaoka2014-12-171-10/+2
* Make LanguageOnSpacebarHelper as utility class•••Change-Id: I546f3b1943999a41803222bd14f9ddd23aa87a51 Tadashi G. Takaoka2014-12-111-0/+215
* Remove unneeded Context argument•••Change-Id: Ib34931836a617d0dc049fb3c9ae6686374ec8c12 Tadashi G. Takaoka2014-11-211-1/+1
* Fix unit test failure due to translation glitch•••Once the translation strings are updated, the uni test starts failing. Then this CL should be reverted. Change-Id: I884663feaa53998a98dd0e488ae8e3e6d0ad4ffd Tadashi G. Takaoka2014-11-201-2/+10
* Cleanup StringAndJsonUtilsTests•••Change-Id: I7d35492c439c9419915251387b0c12e205740586 Tadashi G. Takaoka2014-11-193-501/+205
* Update SubtypeLocaleUtilsTests to test Serbian Latin in Seribian•••Change-Id: I80399b311ff5ed35f246e7e3d06d7386f03a0684 Tadashi G. Takaoka2014-11-121-8/+6
* Rename unit test•••Change-Id: I0d18562a0b036a3e76a6df989a143bb05f0ed833 Tadashi G. Takaoka2014-11-081-318/+0
* Move util classes under common•••Also why did we have two copies of LocaleUtils >.> Bug: 18108776 Change-Id: I03b4403dfd51934e66b567f2f8b87da419cfb3ab Jean Chalard2014-11-073-1/+5
* 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/+32
* Move InputPointers and ResizableIntArray to common•••Bug: 18108776 Change-Id: Ie5c0430aa41a8d6c58bf510a10173223d7dfe9fe Jean Chalard2014-10-291-377/+0
* Fix tests build•••Change-Id: I873ab97e2c4b30caa9227d26d7880d5ed6d134b0 Jean Chalard2014-10-281-18/+20
* 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-282-75/+277
* Add null analysis annotation to CollectionUtils•••Change-Id: I3a610b037d6d1431cced3ea193171108bd5a040d Tadashi G. Takaoka2014-10-271-1/+0
* 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-233-10/+9
* 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-231-2/+2
* 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-215-16/+11
* 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-141-99/+0
* Remove preliminary subtypes from E-MR1 release•••Note that unit test for Sinhala (Sri Lanka) and Tamil (Sri Lanka) have been unexpectedly @suppressed. Bug: 17743363 Change-Id: I4076a61adbf2d4aee58417d0c354b8ef4a938668 Tadashi G. Takaoka2014-10-062-13/+36
* [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-062-16/+31
* 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-032-31/+16
* [ML14] Forward the locale list to relevant places•••Bug: 11230254 Change-Id: Idf3ed27b396d63ade9800c72c5ce0ed613f5f669 Jean Chalard2014-10-032-16/+31
* Add calls to stub for API to consume gesture data.•••Bug: 17400259 Change-Id: Ib3511afffe1d14662e7dd14611f384689516e664 David Faden2014-10-031-0/+55
* Rename PrevWordsInfo to NgramContext.•••Bug: 14425059 Change-Id: Id06a71681fa8b5e589e29fba10fe5c1cfed66984 Keisuke Kuroyanagi2014-09-291-3/+3
* 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-7/+29
* 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-0/+222
|\
| * 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-0/+222
* | Making spelling of the word "distracters" consistent•••Bug: 17537869 Change-Id: Ibfc1c84aff72aeb76c9b127503369d00f3dfaceb Adrian Velicu2014-09-171-1/+1
* | Move case and OOV detection logic into distracter filter.•••Bug: 16547557 Change-Id: I8502585976deb5e93fff3b1e0266654b8a927bda Keisuke Kuroyanagi2014-09-101-0/+225
* | Fix a bug with the Greek question mark.•••Bug: 17398284 Change-Id: If49593e2c959935a183a4cd9d988407cc1160599 Jean Chalard2014-09-081-0/+12
* | Fix a bug where CAPS_WORDS would not be returned.•••Also introduce some unit tests that would have caught the bug. Bug: 17398284 Change-Id: Idb715b7bd2f70992d6cdf4e25ef368809382caefJean Chalard2014-09-051-0/+12
* | Fix Hinglish subtype locale test•••Change-Id: I6fc2fd4f04069485acc432ff957421b85083a344 Tadashi G. Takaoka2014-08-281-1/+1
* | Fix unit tests•••Change-Id: I48bfa4e4dd80f36d2fe0a1e9d2a2706533cc722e Jean Chalard2014-08-252-7/+9
* | Revert "Revert "[ML1] Introduce RichInputMethodSubtype""•••This reverts commit a63d0a8ee6cb05bcddb69bf9a6018853d89d886a. This patch seems to be fine after all, but was submitted without its companion [ML1.1] patch causing a build breakage. Reverting the revert and submitting both at the same time seems like the right thing to do. Change-Id: Ib8fefa40b74dcee0edb025a52dac9b35c82d49df Jean Chalard2014-08-252-141/+116
* | Revert "[ML1] Introduce RichInputMethodSubtype"•••This reverts commit 8ffe4bc9321e582a4d882f21e465d5886616f489. Change-Id: I9d4c98b0adfdb78b0f4d376f7691e50d1bd2228f Jean Chalard2014-08-222-116/+141
* | [ML1] Introduce RichInputMethodSubtype•••Bug: 11230254 Change-Id: Ic7a1bf938a5a186dcff527b556295aba2406e8b9 Jean Chalard2014-08-222-141/+116
* | Add Hinglish (hi_ZZ) subtype•••Bug: 17169632 Change-Id: Ibee088d76c2b19f1d62a3c9c119452726e856ec8 Tadashi G. Takaoka2014-08-212-0/+24
* | Fix the name of a class•••Change-Id: I6a6360c3e606ae331b95df17ecf35942be2b89a9 Jean Chalard2014-08-191-1/+1
|/
* Enable StringUtils to split CharSequence like String#split•••This is a groundwork for enabling LocaleSpan. To enable LocaleSpan everywhere, we need to switch to CharSequence from String so that Span infromation can be preserved end-to-end. To achieve this, we need to have CharSequence version of String#split. BUG: 16029304 Change-Id: I0dd103185dcf62fb1e25054a374340790e6a4678 Yohei Yukawa2014-07-191-0/+170
* Clean up under the util package.•••- Move util classes that are unused in AOSP - Remove unused methods Change-Id: Ic97fd313f1e2bafd50609d42aa3a2d090b63eafc Ken Wakasa2014-07-182-649/+0
* Remove dead code to fix test failure due to NoSuchMethodError•••This CL removes following methods from StringUtils, which are no longer used since Id3c262386a7bc7ed75966b1395a50171abe550d3. - #joinCommaSplittableText - #appendToCommaSplittableTextIfNotExists BUG: 16000850 Change-Id: Ibdc9b7e463a19cdfac788b24c0a6322d0c5850c5 Yohei Yukawa2014-07-041-42/+0
* Additional subtype ID should be independent of OS-version•••This CL consolidates the initialization logic for additional subtypes so that each additional subtypes can have predictable subtype ID regardless of OS version. Previously subtype IDs for additional subtypes are calculated differently depending on the running OS version with hoping it minimizes the risk of compatibility issues. However, it is getting harder and harder to maintain slightly different logic between OSes. Thus we decided to unify the logic into that in KitKat even though it may causes some breaking changes. Note that the actual extra values that are used to instantiate InputMethodSubtype object are still determined on the fly depending on the running OS version. However these actual extra values are no longer used for the subtype ID calculation. BUG: 16000850 Change-Id: Id3c262386a7bc7ed75966b1395a50171abe550d3 Yohei Yukawa2014-07-043-28/+203
* Add a test for Armenian periods.•••Bug: 11463389 Change-Id: Ic1a612bd6b2693369a1688e6a2273cff26fbe6d1 Jean Chalard2014-06-181-0/+15
* Remove a useless method•••Change-Id: I21a4219f682f43f4a84b1ab12d00dd930b35caa1 Jean Chalard2014-06-101-14/+0
* Refactoring•••Rename `initialize' to `start' and `deactivate' to `stop' for ease of understanding. It's completely bizarre that you can "deactivate" a recapitalization and that will just restart a new one the next time you press shift. Start and stop are easier to understand. Change-Id: I455175aebfcfe11198c6c61bf2c6b19efc3f82df Jean Chalard2014-06-041-13/+13
* Remove PrioritizedSerialExecutor.•••Bug: 15320560 Change-Id: Icb88a96ebd685da1d2cba7b07889a2751c603a2e Keisuke Kuroyanagi2014-05-292-106/+57
* Fix unit test build.•••Change-Id: Id2c92c5035d7b357fa66c7ca671b72a1a33ebf3b Keisuke Kuroyanagi2014-05-271-3/+4
* Use Java 7 diamond operator•••Change-Id: If16ef50ae73147594615d0f49d6a22621eaf1aef Tadashi G. Takaoka2014-05-245-12/+12
* Fix: StringIndexOutOfBoundsException.•••Bug: 14985751 Change-Id: I9df2f737555ab02e24e0fbd231a97c1eec26bc57 Keisuke Kuroyanagi2014-05-161-0/+10
* [CB25] Refactor some array copying•••Bug: 13406701 Change-Id: I09edd822f5cc2446b324d41c76d835bcff1191e6 Jean Chalard2014-04-091-0/+64