aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/BinaryDictionaryTests.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rename to Kelar Keyboard (org.kelar.inputmethod.latin)Amin Bandali2025-01-111-913/+0
|
* Migrate packages/inputmethods/LatinIME to androidx.testBrett Chabot2018-12-131-8/+9
| | | | | | | See go/jetpack-test-android-migration Test: make checkbuild Change-Id: I63edeced1465725cd8d6467cd75ea1acc2608932
* Migrate to Android Testing Support Lib (part 5/N)Yohei Yukawa2018-07-061-10/+38
| | | | | | | | | | | | | This CL converts 19 test classes under com.android.inputmethod.latin 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 Change-Id: I878fcae0126f57c43a644af341e5a0a8ac8f5cc9
* Minor unit test fixes.Dan Zivkovic2015-03-231-4/+0
| | | | Change-Id: I800bb33a10f31d5b934b00768bc8fe4776e36f90
* Retire Delight2 migration code to speed up tests.Dan Zivkovic2015-03-201-237/+21
| | | | | | | | | We're waiting 10 minutes for tests to run, and half of that time is spent in depreacted code related to migration of Delight2 dictionary files. LatinIME will never migrate another Delight2 dictionary file again, so we can delete this code. Change-Id: I05c7d8429e8d9a26139456763c77997340fea8c2
* Don't test format version 403 twice.Dan Zivkovic2015-03-161-2/+1
| | | | | | | BinaryDictionaryTests runs all tests 3 times for 3 format verisons. Cut that number down by 33% to speed things up. Change-Id: I8a2f78017fa30f46b5873dcf6a5f478f57af2ebd
* Fix the BinaryDictionaryTestsMohammadinamul Sheik2015-03-131-1/+1
| | | | Change-Id: I09378d74705e6943946ea4f76b15664086a387ed
* Remove ALS from LatinIME.Dan Zivkovic2015-03-111-21/+0
| | | | | | This fixes unit tests and brings us closer to a green build. Change-Id: Iffcc392eda4a7671a238b79cc7367320ca648725
* Remove dead code, including tests.Dan Zivkovic2015-03-101-79/+6
| | | | Change-Id: Id88b02b74bdfe4ca05b08181ceb6b34d5652fc0c
* Remove shortcut support from LatinIME.Dan Zivkovic2015-02-111-140/+6
| | | | | | Note this change does not affect the native decoder interface. Change-Id: I73b7dc008a5acaf75a31a36a2d332b5afabd82d0
* Move decoder specific constants to DecoderSpecificConstants.javaMohammadinamul Sheik2015-02-051-2/+2
| | | | Change-Id: Ie4d325b3152e1e7e424b8b436e222e194e4d9da0
* Move util classes under commonJean Chalard2014-11-071-1/+1
| | | | | | | Also why did we have two copies of LocaleUtils >.> Bug: 18108776 Change-Id: I03b4403dfd51934e66b567f2f8b87da419cfb3ab
* Update v4 format version from 402 to 403.Keisuke Kuroyanagi2014-10-311-80/+39
| | | | | | | | | | | | | | | | | | | | | | 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
* Move Constants.java to the latin.common packageKen Wakasa2014-10-231-0/+1
| | | | | | | 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-231-1/+0
| | | | | Bug: 18003991 Change-Id: Id6b67bf66b397301e5186826dba2b60df9cb4c65
* Use trigrams for personalization dict.Keisuke Kuroyanagi2014-10-231-58/+0
| | | | | 5Bug: 14425059 Change-Id: I73cf6904e569d60996a3b079f16ea6df0cb90f02
* Add latinime-common local libKen Wakasa2014-10-221-1/+1
| | | | | | | This is just a placeholder in this CL. It will be shared by LatinIME, dicttool, and tests. Change-Id: I6fb3516a5061555f6f24b29141c2871d2319b023
* Fix some compiler warningsTadashi G. Takaoka2014-10-211-9/+7
| | | | | | | | | | | | | | | | | | | | | 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-211-12/+22
| | | | | | | | | 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-201-5/+27
| | | | | | Unigram 10K, Bigram 30K, Trigram 30K. Change-Id: Ibd19c6a2b618499df1c70000bad7b47498187f0a
* Merge "Simplify dictionary creation in unit tests."Keisuke Kuroyanagi2014-10-031-281/+83
|\
| * Simplify dictionary creation in unit tests.Keisuke Kuroyanagi2014-10-031-281/+83
| | | | | | | | Change-Id: Id1b41494701f54651d7f79aba426e15cca8d898d
* | Fix: NPE in unit test.Keisuke Kuroyanagi2014-10-031-8/+10
|/ | | | Change-Id: I769b43f2afa1151d5c0d9c408018c3932be377dc
* Introduce NgramProperty in Java side.Keisuke Kuroyanagi2014-10-011-8/+10
| | | | | Bug: 14425059 Change-Id: I8b3458ad22730b3dccbe0caea2c5930f5276dc82
* Rename PrevWordsInfo to NgramContext.Keisuke Kuroyanagi2014-09-291-23/+23
| | | | | Bug: 14425059 Change-Id: Id06a71681fa8b5e589e29fba10fe5c1cfed66984
* Merge "Get stats from dictionary."Keisuke Kuroyanagi2014-09-251-6/+10
|\
| * Get stats from dictionary.Keisuke Kuroyanagi2014-09-221-6/+10
| | | | | | | | | | Bug: 16553957 Change-Id: I70c7a7be3c902dc8a0dfe8f946f9ef75ba6c9655
* | Add small unit test for adding/removing trigrams.Keisuke Kuroyanagi2014-09-191-0/+76
|/ | | | | Bug:17097992 Change-Id: I0ed0b4a172130726d822dadb6d7a806b94130104
* Merge "Make PrevWordsInfo have multiple words' information."Keisuke Kuroyanagi2014-06-241-4/+5
|\
| * Make PrevWordsInfo have multiple words' information.Keisuke Kuroyanagi2014-06-251-4/+5
| | | | | | | | | | Bug: 14425059 Change-Id: I2bd6a872904a44b80f638a13d91a97559217cc1a
* | Support migration/dump of Beginning-of-Sentence entries.Keisuke Kuroyanagi2014-06-241-11/+26
|/ | | | | Bug: 14119293 Change-Id: Ie975138f819794d5c34a7a547be5a6117050e084
* Update unit test for beginning-of-sentence.Keisuke Kuroyanagi2014-06-121-11/+7
| | | | | Bug: 14119293 Change-Id: I594a1ca1096f0c12c678dd30eb75de905e55c5bb
* Implement getMaxProbabilityOfExactMatches().Keisuke Kuroyanagi2014-06-061-0/+29
| | | | | | Bug: 13142176 Bug: 15428247 Change-Id: I5be6d683be95505412615ca7c88260de1ea05f54
* Use Java 7 diamond operatorTadashi G. Takaoka2014-05-241-66/+55
| | | | Change-Id: If16ef50ae73147594615d0f49d6a22621eaf1aef
* Version up dynamic dict format from 401 to 402.Keisuke Kuroyanagi2014-05-231-2/+2
| | | | Change-Id: Ibea36af905ade773ae3db3a5456f7b5a0ad7d220
* Extend jni methods and enable Beginning-of-Sentence.Keisuke Kuroyanagi2014-05-231-15/+64
| | | | | Bug: 14119293 Change-Id: I78fc877367dd0d6240eeacb750b6d2d0b93cba83
* Use PrevWordsInfo for get/add/remove n-gram(bigram) entry.Keisuke Kuroyanagi2014-05-211-74/+86
| | | | | | | Bug: 14119293 Bug: 14425059 Bug: 15102610 Change-Id: Ib482390f8d15b37d44a1a54e8c243a9eaec3f815
* Revert "Use PrevWordsInfo for get/add/remove n-gram(bigram) entry."Ken Wakasa2014-05-201-86/+74
| | | | | | | | | | This reverts commit ff50b39176370ab80a33bfdcf9979603c08a88b3. Bug: 14119293 Bug: 14425059 Bug: 15102610 Change-Id: If278b4ab236e38d20d8cdc0761b0438911bd4ff9
* Use PrevWordsInfo for get/add/remove n-gram(bigram) entry.Keisuke Kuroyanagi2014-05-201-74/+86
| | | | | | | Bug: 14119293 Bug: 14425059 Change-Id: I12e9ba977c153b514c6591ab52940712fd0874e3
* Quit use bigram probability diff for ver4 dict.Keisuke Kuroyanagi2014-05-151-80/+115
| | | | Change-Id: I2cfcfbcf351877d1dff466a24974dbb05908f14e
* Add VERSION4_DEV(402) in Java side and use it for tests.Keisuke Kuroyanagi2014-05-141-23/+68
| | | | | Bug: 13406708 Change-Id: I7c9c53bf34d12dced7331a359a83f6444490783a
* Add large unit test for dictionary migration.Keisuke Kuroyanagi2014-05-131-0/+85
| | | | | Bug: 13406708 Change-Id: Ic1eb627139a1ff57c0000d95d9bd57aa3609f753
* Add VERSION4_TEST for testing.Keisuke Kuroyanagi2014-05-091-4/+38
| | | | | Bug: 13406708 Change-Id: I0b434717ea3edbb131650af634c53cfbfe113c3e
* Support creating BinaryDictionary without creating dict file.Keisuke Kuroyanagi2014-04-221-0/+31
| | | | | Bug: 14166482 Change-Id: Ic8c78ec2c8f39358a1f085a041b608972a380eef
* Revert "Support creating BinaryDictionary without creating dict file."Keisuke Kuroyanagi2014-04-221-31/+0
| | | | | | This reverts commit 89939b870876b36791a47470ce852e4fcdfe86f2. Change-Id: I8ca1b55609ad305a93178063bd88bd1cede872af
* Support creating BinaryDictionary without creating dict file.Keisuke Kuroyanagi2014-04-221-0/+31
| | | | | Bug: 14166482 Change-Id: Ib065279f96e227ab0fee7c8141560c4ada744d3b
* Fix unit tests.Keisuke Kuroyanagi2014-03-141-12/+11
| | | | Change-Id: I2a85763358e1eef0f76ef827413afffeb4cb8058
* Unit test update for I7ed95a54344d8b.Keisuke Kuroyanagi2014-03-121-2/+8
| | | | Change-Id: Ic8af56b8741ee7c231d73ce6a660fd32c9f5a3b3
* Separate WeightedString from FusionDictionary.Keisuke Kuroyanagi2014-03-061-1/+1
| | | | | | Bug: 8187060 Change-Id: I40c1dafca3eb52244c64fdb4c1db30a56385d678
* Separate utility methods from BinaryDictionary.Keisuke Kuroyanagi2014-03-051-1/+2
| | | | | Bug: 8187060 Change-Id: Ice2984e332b7bd3bb17174aefc80b5635b72fc50