aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/Suggest.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused private method Suggest.searchBigramSuggestionTadashi G. Takaoka2012-05-231-21/+0
| | | | Change-Id: I077c4c019676fefb8eac6042bd7db1b7ab33ca03
* Use "float" instead of "double"satok2012-05-161-3/+3
| | | | Change-Id: I93ed4d88ede4058f081dd8d634b00dfff4e96d07
* Merge "Reorder suggestions result according to auto correction threshold" ↵satok2012-05-161-3/+2
|\ | | | | | | into jb-dev
| * Reorder suggestions result according to auto correction thresholdsatok2012-05-161-3/+2
| | | | | | | | | | Bug: 5413904 Change-Id: I3aa3a8109ba45d2129b58d8242866fd3dd3473cb
* | Merge "Stop meaningless bigram computations" into jb-devJean Chalard2012-05-161-33/+0
|\ \
| * | Stop meaningless bigram computationsJean Chalard2012-05-151-33/+0
| |/ | | | | | | | | Bug: 6313806 Change-Id: Idf765b40812a43de13aa166ed0b44c7b5f7cc218
* / Don't auto-correct when there is no main dictionary.Jean Chalard2012-05-161-18/+20
|/ | | | | Bug: 6502485 Change-Id: I5803b0db8552867110587a1140fc03fc2e0eccef
* Do not set "SuggestionSpan"s for suggestions from the next word predicitionsatok2012-05-151-5/+5
| | | | | Bug: 6294817 Change-Id: I5010eafa5ba7e947743706adf7e722f4f0cfb415
* Don't autocorrect after suggestion resumingJean Chalard2012-05-011-0/+1
| | | | | Bug: 6105732 Change-Id: I92e7a9c6d6eb648f747c3b396d7993479fd8478a
* Binary bigram lookup checks both uppercase and lowercase when previous word ↵Tom Ouyang2012-04-221-14/+20
| | | | | | | is uppercase. Bug: 6363029 Change-Id: I71a1ed5b88f54fcc15bfaf89d3645b8f17ebb821
* Pass the previous word to getSuggestionsJean Chalard2012-04-171-1/+1
| | | | | | This is a preparative change to bug#6313806 Change-Id: I1be9ec49b21005c1f45ce459fa93712bc74ef3f0
* Add a new binary contacts dictionary based on ExpandableBinaryDictionary and ↵Tom Ouyang2012-04-131-3/+3
| | | | | | | use locale for bigrams. Bug: 6188977 Change-Id: I753422eed1effaeb5fd01124cf1ddd1e31ee9d60
* Read the dictionary resource in a more sensical place.Jean Chalard2012-04-111-8/+6
| | | | | | | We don't need to pass this down all the way from LatinIME any more. It fetched be done exactly where it needs to be. Change-Id: I9f277f9c4f9de70ae755a1334d86c67bbb24c988
* Replace the flags in getSuggestions with a boolean.Jean Chalard2012-04-061-8/+0
| | | | | | | | Change-Id: I0ec44df1979cb1dc21017ea290d2151a2af0e7cd Conflicts: java/src/com/android/inputmethod/latin/Suggest.java
* Change the flags to a boolean in constructors.Jean Chalard2012-04-061-1/+8
| | | | Change-Id: I9939204f3b16346aaebd4d726315ba9c4faf910a
* Merge "Fix the locale of the flags in BinaryDicitonary for tests"satok2012-04-051-1/+1
|\
| * Fix the locale of the flags in BinaryDicitonary for testssatok2012-04-051-1/+1
| | | | | | | | | | Bug: 6129372 Change-Id: I5611f88b10c44261b6145c9dc8615b80e4341e77
* | Don't draw red underline for manually picked words that came from bigram ↵Ken Wakasa2012-04-051-1/+3
|/ | | | | | prediction Change-Id: I544680c8b4b1baff71bd08168630a34e803c40b9
* Combine candidate words and scoressatok2012-04-021-59/+50
| | | | | Bug: 5240798 Change-Id: Ie56c1c2cfd7f365e771fee88c1ed15012448feed
* Rename the user history dictionary.Jean Chalard2012-03-191-13/+11
| | | | | | | | | | UserBigramDictionary -> UserHistoryDictionary. Also update all methods, strings and comments, except those needed for backward compatibility (which only include the name of the database file). Change-Id: I0bccea29880dc566b90100575b83baaa947b03ae
* Small performance improvement by removing interface accesses.Ken Wakasa2012-03-171-8/+7
| | | | Change-Id: I6d91f3b086470b79306dbe2874db9748b9e0eb5f
* Remove a now-useless flag.Jean Chalard2012-03-151-4/+3
| | | | | | | This has been moved to the SuggestedWords object and is now represented by a single flag instead of a flag in each suggestion. Change-Id: I6e9a7cff5a7701de7e61b4de13baac25c9a87b1b
* Add info for obsolete suggestions in SuggestedWordsJean Chalard2012-03-151-2/+4
| | | | Change-Id: I9684c7b08244b34853ce8a99b6e9d885389f6687
* Move a computation closer to where it's used.Jean Chalard2012-03-151-8/+8
| | | | Change-Id: I5aee4c36ceaacbb1dbfc47c011f1e4aec4b9dca6
* Some readability improvementJean Chalard2012-03-141-14/+7
| | | | | | In-place replacements of visibly identical things. Change-Id: I02b51bd7f63597e3428f0650b239e9a39ef5a7c7
* Cut out a private method to make things more readableJean Chalard2012-03-141-24/+32
| | | | Change-Id: I791700890338e023bd86b8794dbc90379b91dc7d
* Minor optimizationJean Chalard2012-03-141-3/+2
| | | | | | We know the size in advance, this may save a few allocations Change-Id: I2fb9a725f34ba2da4f34ed335652f10447d5d166
* Some code simplificationJean Chalard2012-03-141-6/+6
| | | | | | Just write the same thing in a more succint manner Change-Id: I08a2c5edd52a3502914541061fd5b6ee7a92ebc4
* Cleanup & optimizationJean Chalard2012-03-141-28/+24
| | | | | | Renaming some variables, and obvious optimizations. Change-Id: Ib716748e9f3d602cf276dcd4e73f3bcfb819585e
* Remove a useless parameterJean Chalard2012-03-141-5/+4
| | | | Change-Id: I03005240238fb004c20b2df0d836796e2e8b307f
* Remove a useless methodJean Chalard2012-03-141-5/+4
| | | | Change-Id: I208dd2e725e37c2fb3cd51fe48194679e5912f6b
* Make the Builder privateJean Chalard2012-03-141-4/+4
| | | | Change-Id: I2184084f4b7729c4324f8291d548bd4c4c2872a1
* Re-sequence the last calls to build()Jean Chalard2012-03-141-7/+5
| | | | Change-Id: If77ee5aa9483d3ca03c52812f31665dee6468e99
* Move up the static methods of the BuilderJean Chalard2012-03-141-2/+2
| | | | Change-Id: Ic3e07b745b7b24cae0f772ea49e0de615b44caf9
* Make the Builder fully immutable at lastJean Chalard2012-03-131-5/+4
| | | | Change-Id: Ie399ca7a9e76ccab44a92bc378d11f92392fed2c
* Straighten out the last bastion of the BuilderJean Chalard2012-03-131-2/+9
| | | | | | ...and go for the kill Change-Id: I5ad57211b250d2578ca22a5dae93344d52f9da80
* Make still more members of the Builder final.Jean Chalard2012-03-131-3/+6
| | | | Change-Id: Ic455f97247da5e40d4939555ab639ecffef36e2d
* Some code reorganization.Jean Chalard2012-03-131-8/+5
| | | | | | Use the same local variable inside both branches of an if. Change-Id: I61f7d506d984f3723ec90604416d1875dd97cd8c
* Make some more Builder attributes final.Jean Chalard2012-03-131-6/+8
| | | | Change-Id: I3132b7fe4ee97c566736bfc21c3783cfc79fc7ff
* Make the suggested word list final in Builder.Jean Chalard2012-03-131-5/+5
| | | | Change-Id: I2ddfab00dc8c141fc989a051f16eb2b3571b7e86
* Remove unused stuff.Jean Chalard2012-03-131-6/+3
| | | | | | | | | Remove 2 methods that were left only for tests to compile in another project, but are not used any more now that the tests have been updated. Also remove an attribute that is never read. Change-Id: Ic9ba1f52a465199c82c923d77ed7450460e8a4b9
* Make an add into a set.Jean Chalard2012-03-131-3/+3
| | | | | | | | | This method now only sets words, so it should be named set. The functionality is identical since there are no more places where the list is reused. This will also allow to make the list final in an upcoming change. Change-Id: I25b0c7d7f13c3fa5d89806f01f48f1026769603f
* CleanupJean Chalard2012-03-131-23/+8
| | | | | | | Remove an unused method, make others static, fix a formatting issue Change-Id: I40cb0b5e01a6f8e2f7b953bd9aad3168dfee71d1
* Kill the StringBuilderPool.Jean Chalard2012-03-131-38/+10
| | | | | | | | | The intention may have been nice originally but these end up being copied anyway :/ Let's remove them now, and in a later change, just keep references to the created objects. Change-Id: Ifba8357c20384f9eb40cd916665ed1fc6dc8cab1
* Remove a useless parameter.Jean Chalard2012-03-131-3/+5
| | | | Change-Id: I7625bf17158c207ad7e8cd496bef825704173c4c
* Consolidate words into SuggestedWordInfoJean Chalard2012-03-121-6/+15
| | | | | | | | | | We can't get rid of SuggestedWordInfo because it conveys the information about whether a suggestion is outdated or not. It is always created anyway. So it makes sense not to have separate lists and to just keep everything in the SuggestedWordInfo object. Change-Id: Idd79dc267d97633901d3d2869da457736963e178
* Make access to the safety net calculation easierJean Chalard2012-03-091-10/+7
| | | | Change-Id: If33897b38af94ae81b05e5ef140a542724b9f34a
* Extract a condition from a methodJean Chalard2012-03-091-11/+4
| | | | Change-Id: I6b0262fe7cb3f7a31cc19d724c301467be932640
* Remove a useless argumentJean Chalard2012-03-091-2/+2
| | | | Change-Id: I713433a3225193489fad5bdafcf302b529903116
* Remove a useless escapeJean Chalard2012-03-091-3/+4
| | | | Change-Id: I1ef0685cc9888c9cef9f60015d32b66dde75ef9b