aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/ExpandableDictionary.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup old methods (A90)Jean Chalard2012-07-101-24/+1
| | | | Change-Id: I5435cef8ac6be523934ffa394952cb120c8e89d6
* Implement the common Dictionary interface (A89)Jean Chalard2012-07-101-0/+22
| | | | | | This will de-duplicate a lot of existing code. Change-Id: Idaffb2fde23b9741f057bcb2ecb3dde9d12ea5c5
* Reduce method visibility (A88)Jean Chalard2012-07-101-2/+2
| | | | Change-Id: I29d6afbcba0998558c9b19287a460d9f0e410994
* Factorize code (A87)Jean Chalard2012-07-101-13/+7
| | | | | | Why was this copy-pasted :( Change-Id: I6a537c56425ad039d7301a5fe1e0485784f07914
* Move stuff around for readability (A86)Jean Chalard2012-07-101-21/+21
| | | | Change-Id: I5f4a18e43f3012acf96978d625325bf7c69c9c80
* Add input pointersSatoshi Kataoka2012-06-291-2/+3
| | | | Change-Id: I95300bf0a847fb86d026e846ff4ad723bb45284f
* Remember the source dictionary for each suggestion.Jean Chalard2012-06-271-3/+3
| | | | Change-Id: I3c63372bd5572a479a67eaecfe8c8ea1cabc70d9
* Cleanup the dictionary type.Jean Chalard2012-06-271-3/+2
| | | | | | | Stop storing an int in each of the different class types, and just store a string in the top class. Change-Id: I2af1832743e6fe78e5c1364f6d9cc21252bf5831
* Remove the callback argument to getBigrams() (A16)Jean Chalard2012-06-261-1/+1
| | | | | | | | Bug: 6252660 Bug: 6166228 Bug: 2704000 Bug: 6225530 Change-Id: I7457ac04f8cd4019fb86c986725aae3de1b1a65e
* Remove the callback argument to getWords() (A15)Jean Chalard2012-06-261-2/+1
| | | | | | | | Bug: 6252660 Bug: 6166228 Bug: 2704000 Bug: 6225530 Change-Id: I919bf70a1213ab5d7c7a9e5715bd72a6e257148b
* Do away with Utils#addAllSuggestions (A14)Jean Chalard2012-06-261-2/+0
| | | | | | It's not used any more. Change-Id: Id9da40fdbf7078f3ac647d1368237d6601f5a2ba
* Change the return type of getWords and getBigrams (A8)Jean Chalard2012-06-261-6/+10
| | | | | | | | This only returns stuff, but it doesn't change yet how the data is really passed. It merely adds a way of getting the same data. Later, the old way will be removed. Change-Id: If3a064de362175fc5a6781b7a97b65d8730aaf3c
* Remove another dependency to WordCallback (A4)Jean Chalard2012-06-261-8/+11
| | | | | | | | Bug: 6252660 Bug: 6166228 Bug: 2704000 Bug: 6225530 Change-Id: I5b277124dc9244e78c4a1f4d542a55071eb479bd
* Change JNI for GestureSatoshi Kataoka2012-06-251-2/+3
| | | | Change-Id: I774a0052038d16677f60f7efa11fd266cb5f3088
* Tentatively remove a dependency on WordCallback (A3)Jean Chalard2012-06-211-23/+30
| | | | | | | | Bug: 6252660 Bug: 6166228 Bug: 2704000 Bug: 6225530 Change-Id: Id5a59eaec2aeefa0ba4524420a8e035d383f6545
* Remove a slew of Eclipse warnings.Jean Chalard2012-06-081-1/+3
| | | | Change-Id: I03236386aea13fbd4fb8eaeee18e0008aa136502
* Set level 1 as the initial value of the valid wordsSatoshi Kataoka2012-05-291-6/+5
| | | | | Bug: 4192129 Change-Id: I867e78ce79c78977d08e8b66881a25b6fe5bf41f
* Forget user historysatok2012-05-281-36/+100
| | | | | | Bug: 4192129 Change-Id: Ic98398e5383093a1c24373849eadc48fc4d3626f
* Clean up some compiler warningsTadashi G. Takaoka2012-05-251-1/+2
| | | | Change-Id: I604da15e65fc3cf807ec4033df4e4cd5ef0196fc
* Cancel adding user history bigram when autocorrection is cancelledsatok2012-05-241-158/+180
| | | | | Bug: 6465474 Change-Id: Ifbfe0ddc2ce5fab070939ede3db7bf03a8535a45
* Read and use user dictionary shortcuts.Jean Chalard2012-05-151-20/+68
| | | | | | Bug: 4646172 Change-Id: I51002c73d5bad1a698110c5cda02253348be8eed
* Pass the previous word to getSuggestionsJean Chalard2012-04-171-4/+5
| | | | | | This is a preparative change to bug#6313806 Change-Id: I1be9ec49b21005c1f45ce459fa93712bc74ef3f0
* Come back the proximity correction to ExpandableDictionarysatok2012-04-021-3/+10
| | | | | Bug: 6242539 Change-Id: Ic0467d54c9d85d0653812d4e127328878ef15b94
* Fix AIOOBEsatok2012-03-281-12/+13
| | | | | Bug: 6236912 Change-Id: Ie09e5ef1c23eb48621ac3f2f2dc28dc2e46ca288
* ongoing cleanup 2satok2012-03-271-2/+6
| | | | Change-Id: I66b61cbe491cf8375144e834390beae3209a777d
* Convert an internal enum into an int of same underlying value.Jean Chalard2012-01-261-3/+3
| | | | | | | Goes together with Id4f4e066 Bug: 5922118 Change-Id: I1e39dd01c67e9284d9d7fe008d868847e69986d7
* Change visibility to avoid synthetic accessor methodTadashi G. Takaoka2011-12-151-0/+2
| | | | Change-Id: Ie93c7437fb9a3fe63adaa48c2d4a723f96c0a0e1
* Cleanup unused importTadashi G. Takaoka2011-10-041-17/+14
| | | | | | This change also gets rid of several compiler warnings. Change-Id: I23962edaadad18a6e0395d528af17b909dcf5dad
* Fix a bug with synchronicity of spell checking/user dictJean Chalard2011-08-291-3/+11
| | | | | | | | | This fixes a race condition that would end up with the spell checker not finding some words in the user dictionary when it just booted. Bug: 5194627 Change-Id: I1ba911cc53e6ae3b111d54a6f91d1d5feef3f5de
* Have the spell checker use the User dictionary.Jean Chalard2011-08-191-4/+3
| | | | | Bug: 5175868 Change-Id: I165eee4c865caa5ee1daf3e0b1acde8788b996ef
* Create a way to pass the proximity info to the dictionaryJean Chalard2011-08-041-1/+3
| | | | | | This is a preparative change for inserting the spell checker. Change-Id: Ie441879cac4f67078ec27a95f1fcbbf3ef373df7
* Squash case for bigram insertion/lookup.Jean Chalard2011-05-231-9/+24
| | | | | Bug: 4464446 Change-Id: If7b6d73fb408d53f941c82ed4f47221e85c845d8
* Straighten out magic space vs real spaces behavior.Jean Chalard2011-05-021-3/+4
| | | | | | | | | | | | | Picking a suggestion inserts a space after the word. This change makes this space a magic space. Incidentally, do some minor cleanup: add CODE_DASH, CODE_SINGLE_QUOTE and CODE_DOUBLE_QUOTE to Keyboard and use them throughout the code, and remove a useless import directive in some unrelated file. Bug: 4319740 Change-Id: I245f396c34dd0af820bca91edc4ec363238a4ae4
* Reinforce user-history based bigram use.Jean Chalard2011-04-061-13/+16
| | | | | | | | | | | | - 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
* Add Utils.equalsIgnoreCase methodsTadashi G. Takaoka2011-03-161-1/+1
| | | | | | | | | This change also corrects usage of "frequency", "priority" and "score" * Frequency is the relative probability in dictionary. * Score is the relative probability in suggestions. * Priority is kind a sorted score. Change-Id: Iafb135a4ecdb401cc505014a07c74dfcac44d699
* Merge "Demote skipped characters matched words with respect to length." into ↵Jean Chalard2011-03-041-9/+32
|\ | | | | | | honeycomb-mr1
| * Demote skipped characters matched words with respect to length.Jean Chalard2011-03-051-9/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | Words that matched user input with skipped characters used to be demoted in BinaryDictionary by a constant factor and not at all in those dictionaries implemented in java code. To represent the fact that the impact of a skipped character gets larger as the word is shorter, this change will implement a demotion that gets larger as the typed word is shorter. The demotion rate is (n - 2) / (n - 1) where n is the length of the typed word for n >= 2. It implements it for both BinaryDictionary and java dictionaries. Bug: 3340731 Change-Id: I3a18be80a9708981d56a950dc25fe08f018b5b89
* | Fix a NPE caused by a null typedWordKen Wakasa2011-03-051-1/+1
|/ | | | | bug: 3514797 Change-Id: Ie1056745ded1f848d1e4f70c5344d6969de509b0
* Remove next letters frequency handlingTadashi G. Takaoka2011-02-171-12/+4
| | | | | Bug: 3428942 Change-Id: Id62f467ce4e50c60a56d59bf96770e799a4659e2
* Fix StringIndexOutOfBoundsExceptionKen Wakasa2011-01-091-1/+2
| | | | | bug: 3325065 Change-Id: Ic3d2dca5b2aa1681d472c7f96b31737e15f4952d
* Remove Tutorial class and unused debug featureTadashi G. Takaoka2010-12-101-82/+95
| | | | | | | This change also cleanups compiler warnings. Bug: 2897373 Change-Id: If972cf45c1eb40436adbddbf71969e5409f4c9c5
* Cleanup unused Java importTadashi G. Takaoka2010-11-291-2/+2
| | | | | | This change also fixes wrong file mode. Change-Id: Ifcf4c9444ddcdc62d2e4b394891d6eee135c1e8f
* -UserBigramJae Yong Sung2010-08-101-28/+57
| | | | | | | -UnitTest for UserBigram -Changes for number of bigrams to load Change-Id: I2c6fbe6194d34112ccc52c7e199461d2350e8516
* - separate dict (uses xml)Jae Yong Sung2010-07-281-33/+160
| | | | | | | | | | - retrieve bigrams that only starts with character typed and neighbor keys - contacts bigram - performance measure bug: 2873133 Change-Id: If97c005b18c82f3fafef50009dd2dfd972b0ab8f
* Merge remote branch 'goog/master'satok2010-07-161-2/+4
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: java/res/xml/prefs.xml java/src/com/android/inputmethod/latin/BinaryDictionary.java java/src/com/android/inputmethod/latin/Dictionary.java java/src/com/android/inputmethod/latin/ExpandableDictionary.java java/src/com/android/inputmethod/latin/LatinIME.java java/src/com/android/inputmethod/latin/Suggest.java tests/src/com/android/inputmethod/latin/tests/SuggestTests.java
| * added bigram predictionJae Yong Sung2010-07-131-2/+3
| | | | | | | | | | | | | | | | | | - after first character, only suggests bigram data (but doesn't autocomplete) - after second character, words from dictionary gets rearranged by using bigram - compatible with old dictionary - added preference option to disable bigram Change-Id: Ia8f4e8fa55e797e86d858fd499887cd396388411
* | Check suggested words whether they are from mainDic or notsatok2010-06-021-6/+5
|/ | | | | | | - Added counters for suggestions by dictionarys - Added a counter for cancelled suggestions Change-Id: Ia7d3a73855b1e82b60a010f18dba4e1c0fe1c2bb
* Load UserDictionary and AutoDictionary in a background thread.Amith Yamasani2010-03-101-0/+69
| | | | | | | | | | | This is to avoid ANRs during bootup, as some of the providers may not have been initialized yet. Refactored the ContactsDictionary and moved the async loading code to ExpandableDictionary to share with the other dicts. Bug: 2501133 Change-Id: I20393edb6fdf5df2f54ebac8dd04419a592177a2
* Don't let the native code target be included twice when unbundling.Amith Yamasani2010-03-091-0/+465
Move java code to a different directory so that the unbundled version doesn't try to compile the native code again. Change-Id: I05cf9e643824ddc448821f69805ccb0240c5b986