aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/ExpandableDictionary.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix possible SIOOBESatoshi Kataoka2013-03-271-2/+9
| | | | | | Bug: 8461021 Change-Id: I8b0385610b80b5a672ec380935c485a0e01ae984
* Privatize a few constants in BinaryDictionary.javaKen Wakasa2012-12-171-8/+8
| | | | Change-Id: I7defaf1f577fd67e678cac83ff935e8181dd0a48
* Remove unused variablesKen Wakasa2012-11-161-0/+4
| | | | Change-Id: Ia5079368a1bc86ccdf0052445dc6945041c0abca
* Move code point constants from Keyboard to Constants classTadashi G. Takaoka2012-10-291-3/+2
| | | | Change-Id: Iee01d4d2b916d0b584531104ac865ae6e6370a3d
* Merge "Replace useless CharSequence to String"Tadashi G. Takaoka2012-10-221-23/+27
|\
| * Replace useless CharSequence to StringTadashi G. Takaoka2012-10-221-23/+27
| | | | | | | | Change-Id: Idc478f901185ee1b4912acc82d0cbc54fee4e991
* | Add @UsedForTesting and @ExternallyReferenced annotationsTadashi G. Takaoka2012-10-221-21/+1
|/ | | | | Bug: 7268357 Change-Id: I0b7e0c19f04af9ae30874d0a4c26ad81bc80be8c
* Cleanup: Make some classes as finalTadashi G. Takaoka2012-09-271-5/+5
| | | | Change-Id: I6009b3c1950ba32b7f1e205a3db2307fe0cd688e
* Merge "Fix a silly bug." into jb-mr1-devJean Chalard2012-08-211-1/+1
|\
| * Fix a silly bug.Jean Chalard2012-08-221-1/+1
| | | | | | | | | | | | | | This would prevent user history to work at all. Bug: 7023638 Change-Id: I5d8867a07fb8859325d274e956ae667c094d0ac1
* | Add CollectionUtils class to create generic collection easilyTadashi G. Takaoka2012-08-221-4/+4
| | | | | | | | Change-Id: I6b4de9187e122298e5e9cd8ddc9070d062df6a89
* | Rename and consolidate some constantsTadashi G. Takaoka2012-08-211-4/+3
|/ | | | Change-Id: I7863936cca18b28bf0117afcbcf544a5fd7f185d
* Fix an OOB exceptionJean Chalard2012-08-031-2/+5
| | | | | | | | Not sure exactly how this can happen, but at least this should prevent us from crashing. Bug: 6920884 Change-Id: I451864756b48c5cb5e98b06edee917d88766d77f
* 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