aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/UserBigramDictionary.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rename the user history dictionary.Jean Chalard2012-03-191-469/+0
| | | | | | | | | | 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
* Fix NPEsatok2012-03-171-2/+10
| | | | | | bug: 6181736 Change-Id: I6522f19555c27f33c9ff4eaa8b2559a51a38f015
* Move the UserUnigramDictionary functionality overJean Chalard2012-03-161-9/+53
| | | | | | | | | | | | | | | | | | | | UserBigramDictionary now assumes both functionalities. It will be renamed to UserHistoryDictionary in a future change. There are several reasons to do this. First, there is a lot of duplicate code in User{Unigram,Bigram}Dictionaries that are factored by the few lines of code in this change. Also, other dictionaries like BinaryDictionary or ContactsDictionary all assume both responsibilities, as should be the case theoretically. It is also possible to do this because previous versions don't write any unigram data that we'd want to reuse. For even older versions that do write data, we can't really make any sense out of it. Bigram data however can be useful, and this allows us to reuse it easily. Change-Id: I755525f92744e1536eaef097527e8151b7859a30
* Streamline some user history dictionary codeJean Chalard2012-03-161-1/+1
| | | | | | | | A lot of things don't really make sense in the old code. Let's streamline it for now so that we have a cleaner interface to work with. This is preliminary work for bug 4192129. Change-Id: If01a5974cfadc43afced610c57fcf7fde67c1346
* Try to survive unavailability of local storageJean Chalard2012-03-011-7/+25
| | | | | Bug: 6035465 Change-Id: Ibe2d542349ec598824f78b91d374a977082fc2d1
* Various mini-cleanupsJean Chalard2011-12-131-1/+1
| | | | | | | | | | - Stop the word composer from escaping - take a page from the law of Demeter and only report what is actually needed. - Fix typos in comments. - Add a comment for a fishy processing. - Remove a useless local variable. Change-Id: I5fa78901cbb5483fc9683bfb7094f47244b85df6
* Make some private method staticTadashi G. Takaoka2011-10-281-4/+4
| | | | Change-Id: Ia23765268be0ef89d7fe7c3f5372ed32d6615765
* Cleanup unused importTadashi G. Takaoka2011-10-041-6/+6
| | | | | | This change also gets rid of several compiler warnings. Change-Id: I23962edaadad18a6e0395d528af17b909dcf5dad
* Squash case for bigram insertion/lookup.Jean Chalard2011-05-231-1/+1
| | | | | Bug: 4464446 Change-Id: If7b6d73fb408d53f941c82ed4f47221e85c845d8
* Fix copyright author from Google to AOSPTadashi G. Takaoka2011-05-201-1/+1
| | | | Change-Id: Iaceedc783181e43af6dd48ece218a42eace66532
* Use user-history bigrams when no input if available.Jean Chalard2011-04-221-0/+4
| | | | | | | | This also fixes a small inconsistency upon clicking on whitespace twice in a row. Also add some unit tests for an introduced and an existing method. Change-Id: I1be2fb53c9624f4d0f5299009632cb4384fdfc15
* Reinforce user-history based bigram use.Jean Chalard2011-04-061-6/+0
| | | | | | | | | | | | - Have user-history based bigrams used as soon as they are entered, not after 6 times. - Limit bigram frequency to 255 (this limits the multiplier to 1.8, and has no effect on main dict bigrams which already have this limit) - Some TODO resolving bug: 4192129 Change-Id: I4777f1a58c43dd55381c4b01252d722ab3a70547
* Remove Tutorial class and unused debug featureTadashi G. Takaoka2010-12-101-9/+9
| | | | | | | This change also cleanups compiler warnings. Bug: 2897373 Change-Id: If972cf45c1eb40436adbddbf71969e5409f4c9c5
* Cleanup unused Java importTadashi G. Takaoka2010-11-291-4/+4
| | | | | | This change also fixes wrong file mode. Change-Id: Ifcf4c9444ddcdc62d2e4b394891d6eee135c1e8f
* Clean up LatinIME javasatok2010-08-241-2/+1
| | | | | | | | - remove unused code - add @Override - change the inappropriate cast Change-Id: Ib25b4939e5b4273794ab0f6349776b5b62d89894
* DO NOT MERGE. Backport LatinIME from master to Gingerbreadsatok2010-08-201-0/+402
TODO: Cleanup will follow. Change-Id: I4a68ba9f2f55760aa24187f1f13fdfa8a0b70963