aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/Suggest.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* CleanupJean Chalard2012-06-271-17/+8
| | | | Change-Id: I575f22330bf6881af1d9a35f22b51b7bf2198113
* Remove unused stuff.Jean Chalard2012-06-271-24/+0
| | | | Change-Id: Ifd0d5b6978f76b841574a6e10157c32d0cd656b6
* Update the prototype of onAddSuggestedWord - calling side.Jean Chalard2012-06-271-10/+6
| | | | | | We want to get rid of all those IDs in Latin IME. Change-Id: Ibe08100a5e2976c80abb049889233b4047a686f3
* Use binarySearch instead of a hand-written linear searchJean Chalard2012-06-271-9/+5
| | | | | | Yay. Change-Id: Icf686eb2d675da959f19edc856b521e6288dcea3
* Implement a comparator for SuggestedWordInfos.Jean Chalard2012-06-271-4/+18
| | | | Change-Id: Ic4b0ae05cd98a1aec5806c5e4b744158e73aea7a
* Merge "Remove some special casing"Jean Chalard2012-06-261-27/+10
|\
| * Remove some special casingJean Chalard2012-06-261-27/+10
| | | | | | | | | | | | | | | | | | | | | | This special casing is useless. If the word is the same as what user typed, the scoring algorithm already ensures that it comes out at the top. Actually, as is written in a comment here, code executed later is actively relying on this suggestion having the top score ! There is no need to test it for equalness and inserting it at the top then. Change-Id: I263a6de59b77ec72a2dcbb933361b8e16fca0681
* | Fix a bug where a log would mysteriously not workJean Chalard2012-06-261-3/+2
|/ | | | Change-Id: I5ca77ed65e95a6d357215c0e730238fb463986bb
* Optimization.Jean Chalard2012-06-261-2/+2
| | | | | | We already had that computed Change-Id: I2a9742eaee2e9db1f73aeddda7bae7e237b4d15c
* Cut out a method for clarityJean Chalard2012-06-261-13/+25
| | | | Change-Id: I1dc668698a5cd840297e713a26a525f5e32d35d6
* Avoid string conversions when possible.Jean Chalard2012-06-261-4/+4
| | | | Change-Id: Ibf5f3e40da55998364d0d835ecf283f32c80fcf5
* Simplify a method call.Jean Chalard2012-06-261-24/+21
| | | | Change-Id: Ieede787a13cef79353f13af52488ef3732ac9850
* Refactor and squash long-standing bugs (A2)Jean Chalard2012-06-261-13/+9
| | | | | | | | | | | This is awesome. - Improve performance by stopping useless string/array conversions. - Simplify method interface. - Fix localization bugs - we now know our locale - Fix bugs with surrogate code points Bug: 4769095 Change-Id: I8a8ee224b713429ee0a4ce5bd52f1b63378cf56f
* Remember the locale in the Suggest object (A1)Jean Chalard2012-06-261-0/+5
| | | | | | | This will be necessary for uppercasing and titlecasing words correctly. Change-Id: I0f446a4c82bc482240ff730a2ad6586a61571d6b
* Remove a useless member (A2)Jean Chalard2012-06-261-7/+6
| | | | Change-Id: Ia727ffc2946352bbf79e0c97684f8fa98f428cef
* Convert a member to a local variable (A1)Jean Chalard2012-06-261-17/+17
| | | | Change-Id: I9eab910989443704f83711cf4fb0070c5987a13a
* Remove an unused method (A22)Jean Chalard2012-06-261-8/+0
| | | | Change-Id: I2195f365df1799c8b3b2a53670d1df535ab1a742
* Simplification and optimization (A20)Jean Chalard2012-06-261-25/+14
| | | | Change-Id: Ia837e553ccfe67cd4303096290194a5186df059b
* Preparation for a simplification (A19)Jean Chalard2012-06-261-0/+4
| | | | Change-Id: I4605a571faf5fbc68b18ce525d6019600bfa8cf7
* Remove a meaningless separation (A18)Jean Chalard2012-06-261-21/+14
| | | | Change-Id: I267177044c7d7b0d9119839a11057b2bbf41f75f
* Remove the Callback interface for simpler code. (A17)Jean Chalard2012-06-261-8/+1
| | | | | | | | | Bug: 6252660 Bug: 6166228 Bug: 2704000 Bug: 6225530 Change-Id: I009b54fc2e73cadca6734bdca074d033e81f6a2b
* Remove the callback argument to getBigrams() (A16)Jean Chalard2012-06-261-3/+2
| | | | | | | | Bug: 6252660 Bug: 6166228 Bug: 2704000 Bug: 6225530 Change-Id: I7457ac04f8cd4019fb86c986725aae3de1b1a65e
* Remove the callback argument to getWords() (A15)Jean Chalard2012-06-261-3/+2
| | | | | | | | Bug: 6252660 Bug: 6166228 Bug: 2704000 Bug: 6225530 Change-Id: I919bf70a1213ab5d7c7a9e5715bd72a6e257148b
* Neutralize Suggest#addWords (A12)Jean Chalard2012-06-261-4/+39
| | | | | | | | Bug: 6252660 Bug: 6166228 Bug: 2704000 Bug: 6225530 Change-Id: Id923367342a62a650a5f1d38e2fa0e913030dca8
* Refactoring (A11)Jean Chalard2012-06-261-5/+9
| | | | Change-Id: I86bd7587dd80773a51ba6db312ba55dc41e7c8c7
* Remove an unused method and inline another (A10)Jean Chalard2012-06-261-43/+10
| | | | Change-Id: Ifd71ce79711b0c15c7764e97351dbb1b8e4c0c2d
* Merge the interface of two methods that do the same thing (A9)Jean Chalard2012-06-261-10/+21
| | | | Change-Id: Ia5701d713d0fd5bb646b54a03a1a5602dad0a9e6
* Remove useless code and storage (A6)Jean Chalard2012-06-261-29/+2
| | | | | | | | | This is only used as temporary storage to be then added to the other variable, relying on the fact that it is hopefully sorted. It's better to just add it right away to the final storage. Change-Id: I5da702ac9dc579593ab21feb2021a01e5dfdf4dc
* Remove a duplicate processing (A5)Jean Chalard2012-06-261-25/+4
| | | | | | | This filtering is already done in native code. It's useless (and costly) to do it again here. Change-Id: Ide6794d7a8682a881f097f33e222f10d30f297bd
* Change JNI for GestureSatoshi Kataoka2012-06-251-2/+2
| | | | Change-Id: I774a0052038d16677f60f7efa11fd266cb5f3088
* Merge "Cleanup, part 6 (C6)"Jean Chalard2012-06-191-8/+0
|\
| * Cleanup, part 6 (C6)Jean Chalard2012-06-161-8/+0
| | | | | | | | Change-Id: I184f3a336278559df255c5d600a98fbba468a243
* | Merge "Cleanup, part 4 (C4)"Jean Chalard2012-06-191-4/+12
|\|
| * Cleanup, part 4 (C4)Jean Chalard2012-06-161-4/+12
| | | | | | | | Change-Id: I2821ae71ec49e4b6b512157d17b80198f74321e4
* | Merge "Cleanup, part 3 (C3)"Jean Chalard2012-06-191-4/+5
|\|
| * Cleanup, part 3 (C3)Jean Chalard2012-06-161-4/+5
| | | | | | | | Change-Id: Ib0be8dc26b6fa366a3dabeea940d466602073244
* | Merge "Make a variable final (A2)"Jean Chalard2012-06-181-7/+7
|\ \
| * | Make a variable final (A2)Jean Chalard2012-06-161-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | This is never changed, and probably doesn't need to be. It's public because it's going to be used elsewhere in a future change Change-Id: Iec8d65859c470de5e1fb0b05533356fbc3b8e91b
* | | Merge "Add a kind to the suggestion for bookkeeping (A1)"Jean Chalard2012-06-181-6/+8
|\| |
| * | Add a kind to the suggestion for bookkeeping (A1)Jean Chalard2012-06-161-6/+8
| |/ | | | | | | | | | | | | | | | | | | This will help for debug as well as serve as groundwork for Bug: 6252660 Bug: 6166228 Bug: 2704000 Bug: 6225530 Change-Id: I74d0a7b943fb22c514ad79dc064d69ddf336d3ef
* / Remove non-dictionary words and digit touch data.Kurt Partridge2012-06-171-7/+11
|/ | | | | | | | | | Output to the ResearchLogger is now queued and only flushed if the word the user was working on is a dictionary word. multi-project commit with Ic713ec00777fbdcf4a937b3c77b995257e100fc7 Bug: 6188932 Change-Id: I9de15227ff51be23083d9096f1c1b3d83802fff7
* Remove deprecated classes.Jean Chalard2012-06-081-5/+5
| | | | | | | Should we maybe rename back *BinaryDict* to *Dict* in another change for simplicity? Change-Id: I8f7dcb78b9bdf1a13ce403a997fbb8619f2b453b
* Fix a bug with a concurrent modification of a map.Jean Chalard2012-05-241-8/+9
| | | | | Bug: 6538848 Change-Id: I1a8422356d9909213e53cfdc8c5bcc12eb48f19d
* 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