aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/SuggestedWordsTests.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rename to Kelar Keyboard (org.kelar.inputmethod.latin)Amin Bandali2025-01-111-186/+0
|
* Update language to comply with Android's inclusive language guidanceJeff Sharkey2020-07-311-2/+2
| | | | | | | See https://source.android.com/setup/contribute/respectful-code for reference Bug: 161896447 Change-Id: I171bc299e660f96f20041a67a3052bd8a2ed781c
* Migrate packages/inputmethods/LatinIME to androidx.testBrett Chabot2018-12-131-2/+2
| | | | | | | 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-3/+17
| | | | | | | | | | | | | 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
* Add prev words context to the SuggestedWordInfo.Mohammadinamul Sheik2015-03-191-2/+2
| | | | | | Bug: 19712589 Bug: 19715579 Change-Id: Ie06665cab8405455c1b0a2ff034e0bb0731c9156
* Don't assume that correctable words are invalidDan Zivkovic2015-02-251-0/+32
| | | | | | | | | | | | Currently, the Delight3DictionaryFacilitator sets a boolean flag when the top suggestion score exceeds the auto-correction threshold. This flag is used to trigger auto-correction of the typed word. Also, the existing logic assumes that if allowsToBeAutoCorrected then the word is invalid, which is no longer true after we stopped using whitelists. Bug 19518376. Change-Id: Ifa7f6a09c07d25ac68c6cf3aec91f358bd88689f
* 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
* Remove the other deprecated constructor to SuggestedWordsJean Chalard2014-11-171-3/+9
| | | | Change-Id: Ied821df01e032ebc913d2f15dffdf41a51372ea4
* Fix some compiler warningsTadashi G. Takaoka2014-10-211-1/+1
| | | | | | | | | | | | | | | | | | | | | 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
* Always show the typed word in recorrections.Jean Chalard2014-10-091-37/+8
| | | | | | | Bug: 11330140 Bug: 17875601 Bug: 17623275 Change-Id: Ie4620f36f312c54c7b01b5f6cbdb0bc9171b6179
* Hiding SuggestedWords.EMPTY and refactoring code that compares ↵Adrian Velicu2014-09-221-2/+2
| | | | | | | SuggestedWords instances directly to it to use isEmpty instead Bug: 17560717 Change-Id: I7032bf0ab46f9cf5e3b3312a14e689b5496764c1
* 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-261-9/+10
| | | | | | | | | | 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
* Add the input style to SuggestedWords.Jean Chalard2014-08-141-2/+4
| | | | Change-Id: I81f37d08659d449822b027d3d5912e11eec8b8ff
* Stop directly checking SuggestedWordInfo.mKindKeisuke Kuroyanagi2014-05-281-4/+4
| | | | | | Bug: 15298959 Change-Id: Iba6eeb7981634e7ddb896404978b30f6efd6e72f
* Use Java 7 diamond operatorTadashi G. Takaoka2014-05-241-4/+2
| | | | Change-Id: If16ef50ae73147594615d0f49d6a22621eaf1aef
* Add PunctuationSuggestions classTadashi G. Takaoka2014-02-141-1/+0
| | | | | | | This change must be checked in together with I366c477516. Bug: 12640318 Change-Id: I8d3864b9d9649c9e3306e82b01a6327b11281b1f
* Conditionally store the raw suggestions.Jean Chalard2014-02-061-1/+1
| | | | | Bug: 12913520 Change-Id: Ie15f97d90c142c51089280252b35b5ad1d226e19
* Fix a bug where autocaps would jam auto-commitJean Chalard2013-10-221-2/+8
| | | | | Bug: 11311002 Change-Id: I62955e364c9ffc75322cf05fa3ad7985f1d09259
* Improve trailing quotes processingJean Chalard2013-09-171-0/+33
| | | | | Bug: 10445496 Change-Id: Ib7bd05aea59ae6c9b8ce31299ef2235521b0e350
* [AC4] Add native methods necessary for auto-commitJean Chalard2013-09-131-2/+4
| | | | | Bug: 9059617 Change-Id: I7a47b0675446fc4f39628c60d16de9aea90d1b4d
* [AC2] Reference a dict rather than a string in suggestion infosJean Chalard2013-08-201-2/+3
| | | | | Bug: 9059617 Change-Id: Ic17bc0fd5d812268fd37d7fd35b4e9ebfb95fa5e
* [AC1] Add a memory of where to cut the first word.Jean Chalard2013-08-201-2/+4
| | | | | Bug: 9059617 Change-Id: I931b6d1eb49f9f7dd7d5b18956e35751d1b2b631
* Move util classes to the latin/utils directoryKen Wakasa2013-06-241-0/+2
| | | | Change-Id: I1c5b27c8edf231680edb8d96f63b9d04cfc6a6fa
* If there are no suggestion span, recompute suggestions.Jean Chalard2013-04-151-0/+60
Bug: 8084810 Change-Id: I1743c09c43ca6835bb2f607684b037bf17d36335