aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/utils (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rename to Kelar Keyboard (org.kelar.inputmethod.latin)Amin Bandali2025-01-1114-2278/+0
|
* Migrate packages/inputmethods/LatinIME to androidx.testBrett Chabot2018-12-1313-61/+72
| | | | | | | See go/jetpack-test-android-migration Test: make checkbuild Change-Id: I63edeced1465725cd8d6467cd75ea1acc2608932
* Migrate to Android Testing Support Lib (part 6/N)Yohei Yukawa2018-07-231-2/+0
| | | | | | | | | | | | | | This is a follow up CL to previous CLs that converted unit tests to use Android Testing Support Library but forgot to remove unused import lines. Bug: 110805255 Test: verified as follows. No new test failures. tapas adb LatinIME LatinIMETests arm64 userdebug && \ DISABLE_PROGUARD=true make -j LatinIME && \ adb install -r $OUT/system/app/LatinIME/LatinIME.apk && \ atest LatinIMETests:com.android.inputmethod.latin Change-Id: I8762b0dfc209bdf68867f725b03a22286026faae
* Migrate to Android Testing Support Lib (part 1/N)Yohei Yukawa2018-07-0513-65/+206
| | | | | | | | | | | | | This CL converts tests under com.android.inputmethod.latin.utils to Android Testing Support Library. Bug: 110805255 Test: verified as follows. No new test failures. tapas adb LatinIME LatinIMETests arm64 userdebug && \ DISABLE_PROGUARD=true make -j LatinIME && \ adb install -r $OUT/system/app/LatinIME/LatinIME.apk && \ atest LatinIMETests:com.android.inputmethod.latin.utils Change-Id: I5cc2ddbc4116003ab6407432ab521b6b560052ae
* [LatinIME] Support MNC permissions.Mohammadinamul Sheik2015-07-151-145/+4
| | | | | | | | | | | | | | | | | | | This build has been compiled against API 23 This build is approved to go out with the M OTA, but may NOT be released to the public until the Play Store has enabled API level 23 apps Version: 4.1.2300x.build_id 1. Replaces the personalization is on information with the suggest contacts. 2. Enables "Use Contacts" only if the app has permission to read contacts. 3. Disables the contacts dictionary in the Facilitator. 4. Do not register/read the contacts in the contact observer. Bug: 22236416 Change-Id: I9674e13d0d0f4a2014c5024fde0178de684c07e7
* Personal dictionary feeds a personal LM.Dan Zivkovic2015-04-091-7/+5
| | | | | | Bug 20043003. Change-Id: I5ccac344c089855474263d1cdc547da1e6779301
* Log interrupted tasks in AOSP.Dan Zivkovic2015-04-021-4/+4
| | | | | | Bug 19987461. Change-Id: Ia2714f555146f8f31a6d8c61f555d2b6fecdab7d
* Add shortcut support to UserDictionaryLookup.Dan Zivkovic2015-04-021-4/+11
| | | | | | | | | | Also move the class to the parent package, since it's no longer tied to the spell checking service. Bug 19966848. Bug 20036810. Change-Id: I35014d212fd87281eb90def03ee92e6872dcd63e
* Use the complete Locale in generating the dictionary id.Mohammadinamul Sheik2015-03-251-0/+18
| | | | | | | - Also deleted a couple of dead methods. Bug:19929051 Change-Id: I4f88dbc2a8204d5e2a20d1ad8c205a23c6319f8d
* Disable message if personalization is disabled.Chieu Nguyen2015-03-181-9/+33
| | | | | Bug: 19087415. Change-Id: I3974f1b676aa4a9bb04ab7f609b6daf1860c64f1
* Separate executor for the Spelling decoder.Dan Zivkovic2015-03-121-1/+2
| | | | | | Bug 19710676. Change-Id: I6e66eddd507c11e424105869833fe6841b90275d
* Remove ALS from LatinIME.Dan Zivkovic2015-03-112-13/+8
| | | | | | This fixes unit tests and brings us closer to a green build. Change-Id: Iffcc392eda4a7671a238b79cc7367320ca648725
* Remove dead code, including tests.Dan Zivkovic2015-03-101-90/+0
| | | | Change-Id: Id88b02b74bdfe4ca05b08181ceb6b34d5652fc0c
* Use a single background executor.Dan Zivkovic2015-03-091-1/+1
| | | | | | Bug 19625976. Change-Id: Ia03f440a31b059b5af42d162e1145330bf7b5ddf
* Sanitize the usage of executors.Dan Zivkovic2015-02-191-3/+2
| | | | | | | | There should be 1 executor each for static and dynamic language models. This prevents too many dynamic LM updates from running in parallel, competing for resources. Change-Id: I8ec439e0ea2d92fba275bc20a0b8c9193346a0c1
* Remove distracter filter from client.Dan Zivkovic2015-02-091-225/+0
| | | | | | Bug 19296201. Change-Id: Ic834e5956347cd86a96bd14024c42ad8ee258659
* Revert "Fix unit test failure due to translation glitch"Tadashi G. Takaoka2014-12-171-10/+2
| | | | | | This reverts commit f8705dd2bdb9aeb61860e6a0125102afc63a351d. Change-Id: I7ddc1eced8109ff0bb50eb8a217db0d276848a1e
* Make LanguageOnSpacebarHelper as utility classTadashi G. Takaoka2014-12-111-0/+215
| | | | Change-Id: I546f3b1943999a41803222bd14f9ddd23aa87a51
* Remove unneeded Context argumentTadashi G. Takaoka2014-11-211-1/+1
| | | | Change-Id: Ib34931836a617d0dc049fb3c9ae6686374ec8c12
* Fix unit test failure due to translation glitchTadashi G. Takaoka2014-11-201-2/+10
| | | | | | | Once the translation strings are updated, the uni test starts failing. Then this CL should be reverted. Change-Id: I884663feaa53998a98dd0e488ae8e3e6d0ad4ffd
* Cleanup StringAndJsonUtilsTestsTadashi G. Takaoka2014-11-193-501/+205
| | | | Change-Id: I7d35492c439c9419915251387b0c12e205740586
* Update SubtypeLocaleUtilsTests to test Serbian Latin in SeribianTadashi G. Takaoka2014-11-121-8/+6
| | | | Change-Id: I80399b311ff5ed35f246e7e3d06d7386f03a0684
* Rename unit testTadashi G. Takaoka2014-11-081-318/+0
| | | | Change-Id: I0d18562a0b036a3e76a6df989a143bb05f0ed833
* Move util classes under commonJean Chalard2014-11-073-1/+5
| | | | | | | Also why did we have two copies of LocaleUtils >.> Bug: 18108776 Change-Id: I03b4403dfd51934e66b567f2f8b87da419cfb3ab
* Add documentation for CollectionUtils#arrayAsListDavid Faden2014-10-311-1/+32
| | | | | | | | | | | | | | | | | | | | | (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
* Move InputPointers and ResizableIntArray to commonJean Chalard2014-10-291-377/+0
| | | | | Bug: 18108776 Change-Id: Ie5c0430aa41a8d6c58bf510a10173223d7dfe9fe
* Fix tests buildJean Chalard2014-10-281-18/+20
| | | | Change-Id: I873ab97e2c4b30caa9227d26d7880d5ed6d134b0
* Fix Serbian Latin subtype handlingTadashi G. Takaoka2014-10-282-75/+277
| | | | | | | | This CL also adds unit tests for Hinglish and Serbian Latin. Bug: 9687668 Bug: 17169632 Change-Id: Ib9aa1bcdf5b390a9d8c61f07165beacf850e2692
* Add null analysis annotation to CollectionUtilsTadashi G. Takaoka2014-10-271-1/+0
| | | | Change-Id: I3a610b037d6d1431cced3ea193171108bd5a040d
* Move Constants.java to the latin.common packageKen Wakasa2014-10-233-10/+9
| | | | | | | 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-2/+2
| | | | | | | This CL also adds @SuppressWarning("unused" to java-overridable package. Bug: 18003991 Change-Id: If70527e30654384705d7a814f5efd181d9f539e1
* Fix some compiler warningsTadashi G. Takaoka2014-10-215-16/+11
| | | | | | | | | | | | | | | | | | | | | 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
* Remove shouldBlockAutoCorrectionBySafetyNetKeisuke Kuroyanagi2014-10-141-99/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Remove preliminary subtypes from E-MR1 releaseTadashi G. Takaoka2014-10-062-13/+36
| | | | | | | | Note that unit test for Sinhala (Sri Lanka) and Tamil (Sri Lanka) have been unexpectedly @suppressed. Bug: 17743363 Change-Id: I4076a61adbf2d4aee58417d0c354b8ef4a938668
* [ML14] Forward the locale list to relevant places, againJean Chalard2014-10-062-16/+31
| | | | | | | | | | | | | | | | 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-032-31/+16
| | | | | | | | | | 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-032-16/+31
| | | | | Bug: 11230254 Change-Id: Idf3ed27b396d63ade9800c72c5ce0ed613f5f669
* Add calls to stub for API to consume gesture data.David Faden2014-10-031-0/+55
| | | | | Bug: 17400259 Change-Id: Ib3511afffe1d14662e7dd14611f384689516e664
* Rename PrevWordsInfo to NgramContext.Keisuke Kuroyanagi2014-09-291-3/+3
| | | | | Bug: 14425059 Change-Id: Id06a71681fa8b5e589e29fba10fe5c1cfed66984
* Add an internal state test to ImportantNoticeUtilsTestsTadashi G. Takaoka2014-09-261-7/+29
| | | | | | | | | | 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
* am 4c4ba10b: am 71b51590: am a76e11a2: am 1f490d6c: am be4e0d0e: Fix when to ↵Tadashi G. Takaoka2014-09-231-0/+222
|\ | | | | | | | | | | | | show important notice * commit '4c4ba10bbb257036d7cb6ae8a128263285b7384f': Fix when to show important notice
| * Fix when to show important noticeTadashi G. Takaoka2014-09-221-0/+222
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | Making spelling of the word "distracters" consistentAdrian Velicu2014-09-171-1/+1
| | | | | | | | | | Bug: 17537869 Change-Id: Ibfc1c84aff72aeb76c9b127503369d00f3dfaceb
* | Move case and OOV detection logic into distracter filter.Keisuke Kuroyanagi2014-09-101-0/+225
| | | | | | | | | | | | Bug: 16547557 Change-Id: I8502585976deb5e93fff3b1e0266654b8a927bda
* | Fix a bug with the Greek question mark.Jean Chalard2014-09-081-0/+12
| | | | | | | | | | Bug: 17398284 Change-Id: If49593e2c959935a183a4cd9d988407cc1160599
* | Fix a bug where CAPS_WORDS would not be returned.Jean Chalard2014-09-051-0/+12
| | | | | | | | | | | | Also introduce some unit tests that would have caught the bug. Bug: 17398284 Change-Id: Idb715b7bd2f70992d6cdf4e25ef368809382caef
* | Fix Hinglish subtype locale testTadashi G. Takaoka2014-08-281-1/+1
| | | | | | | | Change-Id: I6fc2fd4f04069485acc432ff957421b85083a344
* | Fix unit testsJean Chalard2014-08-252-7/+9
| | | | | | | | Change-Id: I48bfa4e4dd80f36d2fe0a1e9d2a2706533cc722e
* | Revert "Revert "[ML1] Introduce RichInputMethodSubtype""Jean Chalard2014-08-252-141/+116
| | | | | | | | | | | | | | | | 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
* | Revert "[ML1] Introduce RichInputMethodSubtype"Jean Chalard2014-08-222-116/+141
| | | | | | | | | | | | This reverts commit 8ffe4bc9321e582a4d882f21e465d5886616f489. Change-Id: I9d4c98b0adfdb78b0f4d376f7691e50d1bd2228f