aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (DO NOT MERGE) Fix Greek accented upper case lettersTadashi G. Takaoka2014-11-211-0/+192
| | | | | | | | Cherry-picked 6fc92899d82f4d3cb30f7bb2c57133154f0babd2 from ub-latinimegoogle-edamame-mr1-release. Bug: 18418991 Change-Id: Id4dff41ba488635ff9af899be6d4f84ab00a96c8
* 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
* Fix a bug where recorrection would stop on connectorsJean Chalard2014-09-081-18/+22
| | | | | Bug: 16733686 Change-Id: I7a9f79a81e33a1f5bf5f3daf0b78d0f1e4447e7a
* Fix an IOOB exceptionJean Chalard2014-08-291-0/+10
| | | | | Bug: 17316001 Change-Id: Iaa2cfd30ebbe0d49e10a5c3a30336e06817d0a8b
* Fix a bug where the top prediction would disappear.Jean Chalard2014-08-262-10/+11
| | | | | | | | | | This is because prediction can't be easily distinguished in style. This fixes the bug by simulating the right members, but some refactoring should be done to remove useless booleans. Bug: 17271923 Change-Id: Ib88f3fb95678021624e59535492926dd315d26fb
* Indroduce SuggestedWords#getTypedWordInfoOrNullYohei Yukawa2014-08-241-21/+67
| | | | | | | This is a groundwork for subsequent CLs whith need to do certain things for and only for the typed word. Change-Id: I374b79cbc79470f57f523c996010301ea5701a61
* Support Accept typed word UITadashi G. Takaoka2014-08-221-0/+221
| | | | Change-Id: I58e95b2791a45afdc7dae8e26dcfc200b3b4b854
* Add the input style to SuggestedWords.Jean Chalard2014-08-141-2/+4
| | | | Change-Id: I81f37d08659d449822b027d3d5912e11eec8b8ff
* Rename distracter filter class.Keisuke Kuroyanagi2014-08-081-3/+3
| | | | | | Bug: 13142176 Bug: 15531638 Change-Id: I89cef5264073eed25ffb5be10fdff731df0a3138
* Use suggestions in the distracter filter.Keisuke Kuroyanagi2014-08-081-8/+54
| | | | | | | Bug: 13142176 Bug: 15531638 Change-Id: I609fa61fccf2a0c738726985806b7d9248eadf49
* Merge "Revert "Introduce onEvent() to improve testability"" into lmp-devKen Wakasa2014-08-051-7/+3
|\
| * Revert "Introduce onEvent() to improve testability"Ken Wakasa2014-08-061-7/+3
| | | | | | | | | | | | | | | | This reverts commit ef74e737f580f7ac0b3bd70d6255dde3c87d9078. Apparently, this CL broke several unit tests. Change-Id: I86cf5f1ffb0214707afe99ee97f92ba8c5157f3f
* | Deactivate tests for MyanmarJean Chalard2014-08-061-0/+3
|/ | | | | | | | | They are pretty extensive already and require an implementation that works pretty well. However ours is based on an old architecture and updating them will take time, so for the time being it's best to just deactivate the tests. Change-Id: I649a220d13fc455b4306706bb964602c27a5a28c
* Introduce onEvent() to improve testabilityJean Chalard2014-08-061-3/+7
| | | | | | ...and prepare for the future Change-Id: Ieed96ab552993fd148e80b9c3355f1b569bd716f
* Make dict log cleanup.Akifumi Yoshimoto2014-08-061-10/+3
| | | | | | Delete unneeded output when creating a dictionary Change-Id: If7dc5dc74a53d0054967cb801e5ccfdd53ebe179
* Make "Show correction suggestions" as a binary optionTadashi G. Takaoka2014-07-271-11/+9
| | | | | | | | | | | | Formerly "Show correction suggestions" had three options, "always show", "show in portrait mode", and "always hide". The reason behind "show in portrait mode" was that there may not be enough screen estate in landscape mode to show suggestions. Because recent phone devices have relatively large screen, we decide to remove "show in portrait mode" option. Bug: 15780939 Change-Id: I896d737452c3893d43ce20bd88127f10c1eb3d83
* Enable StringUtils to split CharSequence like String#splitYohei Yukawa2014-07-191-0/+170
| | | | | | | | | | | | 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
* Clean up under the util package.Ken Wakasa2014-07-182-649/+0
| | | | | | | - Move util classes that are unused in AOSP - Remove unused methods Change-Id: Ic97fd313f1e2bafd50609d42aa3a2d090b63eafc
* Move getPrevWordsInfoFromNthPreviousWord to PrevWordsInfoUtils.Keisuke Kuroyanagi2014-07-071-21/+22
| | | | | Bug: 14425059 Change-Id: Id37022ac6c1545d6845abfbcdb7ed47f0e250eec
* Remove dead code to fix test failure due to NoSuchMethodErrorYohei Yukawa2014-07-041-42/+0
| | | | | | | | | | This CL removes following methods from StringUtils, which are no longer used since Id3c262386a7bc7ed75966b1395a50171abe550d3. - #joinCommaSplittableText - #appendToCommaSplittableTextIfNotExists BUG: 16000850 Change-Id: Ibdc9b7e463a19cdfac788b24c0a6322d0c5850c5
* Additional subtype ID should be independent of OS-versionYohei Yukawa2014-07-043-28/+203
| | | | | | | | | | | | | | | | | | | | | 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
* Merge "Fix a unit test"Jean Chalard2014-06-261-4/+8
|\
| * Fix a unit testJean Chalard2014-07-011-4/+8
| | | | | | | | | | | | | | When switching languages, we need to wait until the dictionary is loaded to compute suggestions. Change-Id: I7c32a900b297cd6302bfdc020842581315f3007f
* | [SD7] Actually check for script.Jean Chalard2014-07-011-9/+31
|/ | | | | | | ...also implement the check for Hebrew and Arabic. Bug: 15840116 Change-Id: Ia6433d7d98038ade64c171be4fe4b3f094111fac
* [SD5(2)] Remove useless argsJean Chalard2014-07-011-36/+10
| | | | | Bug: 15840116 Change-Id: I1123426fbd9d420c1be64ccc917a5f870e70e6fa
* Fix testsJean Chalard2014-06-304-46/+40
| | | | Change-Id: I12ba56d021b50c03dc62e3f3c8db3ecada2f6a4b
* Revert "Move getPrevWordsInfoFromNthPreviousWord to StringUtlis."Ken Wakasa2014-06-271-21/+21
| | | | | | | This reverts commit ba463c9a66f75e8d00f4658e32b763eb54215231 that broke the dicttool build. Bug: 14425059 Change-Id: Ie1685587104d26e4416624747c97f6087c13388a
* Move getPrevWordsInfoFromNthPreviousWord to StringUtlis.Keisuke Kuroyanagi2014-06-271-21/+21
| | | | | Bug: 14425059 Change-Id: I3eb24e840c165e43f68c2a60fccf9974affb57a6
* Find multiple previous word information to support n-gram.Keisuke Kuroyanagi2014-06-271-0/+11
| | | | | | Bug: 14425059 Change-Id: Ieace636334a9b2a094527341d4fcfc05958296c5
* Merge "Make PrevWordsInfo have multiple words' information."Keisuke Kuroyanagi2014-06-245-19/+23
|\
| * Make PrevWordsInfo have multiple words' information.Keisuke Kuroyanagi2014-06-255-19/+23
| | | | | | | | | | Bug: 14425059 Change-Id: I2bd6a872904a44b80f638a13d91a97559217cc1a
* | Make Beginning-of-Sentence prediction require two exposures.Keisuke Kuroyanagi2014-06-251-4/+10
| | | | | | | | | | Bug: 15868192 Change-Id: I4b577ad11c992d872d6f902fd50527d9ca5cc1ba
* | Fix: unit tests by clearing personalized dictsKeisuke Kuroyanagi2014-06-251-0/+2
| | | | | | | | | | Bug: 14119293 Change-Id: I61cc05fb09342103f453ba83709c6be68d2f695e
* | Merge "Support migration/dump of Beginning-of-Sentence entries."Keisuke Kuroyanagi2014-06-242-12/+28
|\ \
| * | Support migration/dump of Beginning-of-Sentence entries.Keisuke Kuroyanagi2014-06-242-12/+28
| |/ | | | | | | | | Bug: 14119293 Change-Id: Ie975138f819794d5c34a7a547be5a6117050e084
* / Add a test for Armenian periods.Jean Chalard2014-06-182-19/+26
|/ | | | | Bug: 11463389 Change-Id: Ic1a612bd6b2693369a1688e6a2273cff26fbe6d1
* Merge "Add a method to update contextual dictionary."Keisuke Kuroyanagi2014-06-101-0/+75
|\
| * Add a method to update contextual dictionary.Keisuke Kuroyanagi2014-06-161-0/+75
| | | | | | | | | | Bug: 14161647 Change-Id: I2111f841c94e31d62b670da4236fc738df03a708
* | Update unit test for beginning-of-sentence.Keisuke Kuroyanagi2014-06-121-11/+7
|/ | | | | Bug: 14119293 Change-Id: I594a1ca1096f0c12c678dd30eb75de905e55c5bb
* Special case periods in the spell checkerJean Chalard2014-06-101-1/+18
| | | | | | | | Special case <valid word>.<valid word> to send as a suggestion the same string where the periods is replaced by a space. Bug: 10780091 Change-Id: I43c94675977f9ab5d7ee5671486cb742b39f3974
* Remove a useless methodJean Chalard2014-06-101-14/+0
| | | | Change-Id: I21a4219f682f43f4a84b1ab12d00dd930b35caa1
* Remove mPrevWordsInfoJean Chalard2014-06-101-35/+19
| | | | | | | | This member has outlived its usefulness. It's not clear now that it makes things really faster, but it does bring a lot of complexity that we can avoid by removing it. Change-Id: Ifbc8094a45b56b958fe165b1930f4cc358a97721
* Check isInDictionary() before the distracter test.Keisuke Kuroyanagi2014-06-091-3/+3
| | | | | | Bug: 13142176 Bug: 15428247 Change-Id: I7ce2c09ebbef6ca8c056807c2a35f2f987fd436e
* Add Dictionary.isInDictionary().Keisuke Kuroyanagi2014-06-091-4/+4
| | | | | | Bug: 13142176 Bug: 15428247 Change-Id: If2d1c1fea7a69e41809a828da8dd032211ad144e
* Make Distracter filter use getMaxFrequencyOfExactMatches().Keisuke Kuroyanagi2014-06-061-11/+54
| | | | | | | Bug: 13142176 Bug: 15428247 Change-Id: I5c23fbea2851f891f76f19d9da2cb70ae964569b
* Implement getMaxProbabilityOfExactMatches().Keisuke Kuroyanagi2014-06-061-0/+29
| | | | | | Bug: 13142176 Bug: 15428247 Change-Id: I5be6d683be95505412615ca7c88260de1ea05f54
* RefactoringJean Chalard2014-06-041-13/+13
| | | | | | | | | 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
* Make prevWord = null if the next word starts from a connector.Keisuke Kuroyanagi2014-05-301-0/+4
| | | | | | | | | | This fixes PunctuationTests# testAutoCorrectionWithSingleQuotesAround. Bug: 14119293 Bug: 15334309 Change-Id: I604c21a21e89a5fc431fd56ab7b6ad03f4736b01
* Fix testsJean Chalard2014-05-291-3/+3
| | | | | | | | | | | DEBUG in LatinIME has been changed by Ie52007dc to mean both DebugSettings.PREF_DEBUG_MODE and Settings.PREF_KEY_IS_INTERNAL instead of just DEBUG_MODE as used to be the case. Tests depend on the debug mode to test many things and they make sure they run in debug mode or they fail. This has tests understand the change in policy. Change-Id: Ie9f29e6a1d85e19704c8940d3fcf97c13c3dbaa6
* Merge "Remove PrioritizedSerialExecutor."Keisuke Kuroyanagi2014-05-292-106/+57
|\