aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Make the typed word a SuggestedWordInfoJean Chalard2014-11-201-2/+3
| | | | | | | | That allows to carry the language information in an accurate manner. Bug: 18063142 Change-Id: I0bca8981372ae10648274095b18b26a3686b762b
* Cleanup StringAndJsonUtilsTestsTadashi G. Takaoka2014-11-194-503/+495
| | | | Change-Id: I7d35492c439c9419915251387b0c12e205740586
* Rename StringUtils methods that handle title case manipulationTadashi G. Takaoka2014-11-191-28/+26
| | | | Change-Id: Iee0dd077a0423f110f4f8dad0f04933045baef2a
* Merge "Fix Greek accented upper case letters"Tadashi G. Takaoka2014-11-191-0/+191
|\
| * Fix Greek accented upper case lettersTadashi G. Takaoka2014-11-191-0/+191
| | | | | | | | | | Bug: 18418991 Change-Id: I7b34b126bec70300c83e17bea39e1036de4bf7c2
* | Remove the other deprecated constructor to SuggestedWordsJean Chalard2014-11-171-3/+9
|/ | | | Change-Id: Ied821df01e032ebc913d2f15dffdf41a51372ea4
* Merge "Implement UserHistoryDictionary for each user account."Jatin Matani2014-11-141-16/+48
|\
| * Implement UserHistoryDictionary for each user account.Jatin Matani2014-11-131-16/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | UserHistoryDictionary currently uses locale to determine the UserHistoryDictionary on the filesystem. With this change we use the account name as well. Thus each UserHistoryDictionary would following the following spec: UserHistoryDictionary.<locale>.<account>.dict. In case no account is selected, we default to the existing spec: UserHistoryDictionary.<locale>.dict Example UserHistoryDictionary.en_US.testaccount@example.com.dict Bug: 18104749 Change-Id: Iab031e166b55cf2ded68275a7e9be22475737b37
* | Remove unused importTadashi G. Takaoka2014-11-121-1/+0
| | | | | | | | Change-Id: I9e2a79534673b2c6587f57fad663b85d971658b9
* | Update SubtypeLocaleUtilsTests to test Serbian Latin in SeribianTadashi G. Takaoka2014-11-121-8/+6
| | | | | | | | Change-Id: I80399b311ff5ed35f246e7e3d06d7386f03a0684
* | Rename unit testTadashi G. Takaoka2014-11-081-3/+6
|/ | | | Change-Id: I0d18562a0b036a3e76a6df989a143bb05f0ed833
* Merge "Move current subtype management code to RichInputMethodManager"Tadashi G. Takaoka2014-11-071-1/+1
|\
| * Move current subtype management code to RichInputMethodManagerTadashi G. Takaoka2014-11-061-1/+1
| | | | | | | | Change-Id: I82d5a17a5ec96f26047d29e79f3f28850fc5b3bb
* | Move util classes under commonJean Chalard2014-11-0710-9/+13
|/ | | | | | | Also why did we have two copies of LocaleUtils >.> Bug: 18108776 Change-Id: I03b4403dfd51934e66b567f2f8b87da419cfb3ab
* Fix the build : move offdevice tests in an off device fileJean Chalard2014-11-061-61/+0
| | | | | | Also fix a failing test Change-Id: I280aa6b5836c7332da08a88f1258546edeb25a37
* Add a header command to dicttool.Jean Chalard2014-11-061-7/+70
| | | | | | | | | | | | This will allow to greatly improve the performance of the metadata-generating files, as they won't have to wait for the info command to read the entire dictionary when the header is all we need. Also add tests, and while we're at it, use the seed as intended to enable reproducible tests. Change-Id: I0ba79ef62f0292b23e63aed57ff565bb102281a2
* Add a *FAST* dictionary header reader.Jean Chalard2014-11-061-0/+42
| | | | | | | | | | | It's still unused as of this change but the next change will use it As a reference point, generating the metadata for Bayo takes 3'02" on my machine with the info command; it's down to 16" if made to use this instead. The gains increases with the number of dictionaries obviously. Change-Id: I0eeea2d8f81bb74b0d1570af658e91b56f7c2b79
* Update v4 format version from 402 to 403.Keisuke Kuroyanagi2014-10-312-83/+42
| | | | | | | | | | | | | | | | | | | | | | Without personalization: Total words: 1134774, Success Num: 899230, Success Percentage: 79.243% Bad Failures, with auto-correction (typed word == expected word, output word != expected word): 1871, Bad Failure Percentage: 0.165% Failures, with auto-correction (F-C): 29084, F-C Percentage: 2.563% Max Keystrokes: 6072959, Min Keystrokes: 4436090, Keystroke Saving Percentage:26.953% Before: Total words: 1134646, Success Num: 925194, Success Percentage: 81.540% Bad Failures, with auto-correction (typed word == expected word, output word != expected word): 1316, Bad Failure Percentage: 0.116% Failures, with auto-correction (F-C): 28288, F-C Percentage: 2.493% Max Keystrokes: 6072831, Min Keystrokes: 3946188, Keystroke Saving Percentage:35.019% After Total words: 1134659, Success Num: 944746, Success Percentage: 83.263% Bad Failures, with auto-correction (typed word == expected word, output word != expected word): 1258, Bad Failure Percentage: 0.111% Failures, with auto-correction (F-C): 28016, F-C Percentage: 2.469% Max Keystrokes: 6072844, Min Keystrokes: 3387333, Keystroke Saving Percentage:44.222% Change-Id: I3af42ec37a11847c0429c28616e726f6a339247f
* Merge "Add documentation for CollectionUtils#arrayAsList"Ken Wakasa2014-10-311-1/+32
|\
| * 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
* | Update unit tests for new static dict version.Adrian Velicu2014-10-313-27/+32
| | | | | | | | | | Bug: 11031090 Change-Id: Ifd7b241f1a0a30678ca7de97cc6e96927a9b5c8f
* | Using "blacklist" flag as "possibly offensive"Adrian Velicu2014-10-312-2/+4
|/ | | | | Bug: 11031090 Change-Id: I5cc0d006ab003656498eb82b0875eb9c051d331e
* Enable count based dynamic ngram language model for v403.Keisuke Kuroyanagi2014-10-301-39/+40
| | | | | | Bug: 14425059 Change-Id: Icc15e14cfd77d37cd75f75318fd0fa36f9ca7a5b
* Move InputPointers and ResizableIntArray to commonJean Chalard2014-10-293-4/+3
| | | | | Bug: 18108776 Change-Id: Ie5c0430aa41a8d6c58bf510a10173223d7dfe9fe
* Move StringUtils under common.Jean Chalard2014-10-283-3/+3
| | | | | Bug: 18108776 Change-Id: Ia46a4102a0e86e71118ca5e641f9f531998e166b
* Fix tests buildJean Chalard2014-10-281-18/+20
| | | | Change-Id: I873ab97e2c4b30caa9227d26d7880d5ed6d134b0
* Merge "Fix Serbian Latin subtype handling"Tadashi G. Takaoka2014-10-282-75/+277
|\
| * 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
* | Merge "Add some gesture-move tests"Jean Chalard2014-10-281-2/+32
|\ \ | |/ |/|
| * Add some gesture-move testsJean Chalard2014-10-281-2/+32
| | | | | | | | Change-Id: I5ec9a9169b0d27da93194e1bd3fa90da8174ee8f
* | Fix NPE in AppearanceSettingsFragmentTadashi G. Takaoka2014-10-281-6/+3
|/ | | | | Bug: 18147440 Change-Id: I7a7a47b3484e54146d34d11b5bd9c1305421d829
* Add null analysis annotation to CollectionUtilsTadashi G. Takaoka2014-10-271-1/+0
| | | | Change-Id: I3a610b037d6d1431cced3ea193171108bd5a040d
* Fix: deleted PtNode handling in v403.Keisuke Kuroyanagi2014-10-271-1/+6
| | | | | | | If a word is once deleted, the word never gets into the personalized dictionaries due to this bug. Change-Id: Ife4e3fe1ba0615b4135e6291d2151b0db7d3f940
* Merge "Add tests for type through recorrection"Jean Chalard2014-10-242-31/+95
|\
| * Add tests for type through recorrectionJean Chalard2014-10-222-31/+95
| | | | | | | | | | | | Also introduce some helper methods Change-Id: I0f99733a4b7f0318b2b07217b614c19ea98859fc
* | Move Constants.java to the latin.common packageKen Wakasa2014-10-2316-13/+25
| | | | | | | | | | | | | | Our intention is to have classes of latinime-common under the common package as much as we can. Change-Id: I76efbbbe7bebf1a4aa943715cdff64f91675e20d
* | Remove unused import and methodTadashi G. Takaoka2014-10-232-2/+0
| | | | | | | | | | Bug: 18003991 Change-Id: Id6b67bf66b397301e5186826dba2b60df9cb4c65
* | Use trigrams for personalization dict.Keisuke Kuroyanagi2014-10-233-61/+67
| | | | | | | | | | 5Bug: 14425059 Change-Id: I73cf6904e569d60996a3b079f16ea6df0cb90f02
* | Fix Javadoc and null analysis related warningsTadashi G. Takaoka2014-10-235-12/+7
| | | | | | | | | | | | | | This CL also adds @SuppressWarning("unused" to java-overridable package. Bug: 18003991 Change-Id: If70527e30654384705d7a814f5efd181d9f539e1
* | Add latinime-common local libKen Wakasa2014-10-226-105/+5
|/ | | | | | | This is just a placeholder in this CL. It will be shared by LatinIME, dicttool, and tests. Change-Id: I6fb3516a5061555f6f24b29141c2871d2319b023
* Merge "Support ngram entry migration."Keisuke Kuroyanagi2014-10-221-0/+15
|\
| * Support ngram entry migration.Keisuke Kuroyanagi2014-10-221-0/+15
| | | | | | | | | | Bug: 14425059 Change-Id: I98cb9fa303af2d93a0a3512e8732231c564e3c5d
* | Fix some compiler warningsTadashi G. Takaoka2014-10-2127-144/+134
|/ | | | | | | | | | | | | | | | | | | | | 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
* Renaming "blacklist" flag to "possibly offensive"Adrian Velicu2014-10-2110-78/+74
| | | | | | | | | No behaviour changes. Unified the overloaded FusionDictionary::add method to always take an isPossiblyOffensive argument. Bug: 11031090 Change-Id: I5741a023ca1ce842d2cf10d4f6c926b0efabaa78
* Change entry count limit.Keisuke Kuroyanagi2014-10-202-15/+55
| | | | | | Unigram 10K, Bigram 30K, Trigram 30K. Change-Id: Ibd19c6a2b618499df1c70000bad7b47498187f0a
* Merge "Update useless n-gram entry detection logic during GC."Keisuke Kuroyanagi2014-10-151-1/+60
|\
| * Update useless n-gram entry detection logic during GC.Keisuke Kuroyanagi2014-10-151-1/+60
| | | | | | | | | | Bug: 14425059 Change-Id: Ib939deae5b60167751dee07965bb1ef1a43c4625
* | Add the first gesture unit tests.Jean Chalard2014-10-157-32/+98
| | | | | | | | | | | | | | At last I found a simple way to do it ! Bug: 8845843 Change-Id: I4dd3bf987b58e29a44cf0d7389d294657a33abe1
* | Move sync policy related code out of account settingsSandeep Siddhartha2014-10-141-70/+0
| | | | | | | | | | | | Bug: 17981687 Bug: 17464069 Change-Id: I0ae3400564fd346cc84af74dfef65f01cc1ce6a8
* | Merge "Remove shouldBlockAutoCorrectionBySafetyNet"Keisuke Kuroyanagi2014-10-141-99/+0
|\ \ | |/ |/|