aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/BinaryDictionary.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Pull up some identical code (A98)Jean Chalard2012-07-111-39/+23
| | | | Change-Id: I6c265956394cf49e74b0256dfa5af06fe6b30467
* Inline a method to avoid confusion (A97)Jean Chalard2012-07-111-25/+18
| | | | Change-Id: I3c3ffcd3d40493f4bfa0f6596f923b3430e605aa
* Remove parameters for easier inlining (A96)Jean Chalard2012-07-111-5/+3
| | | | Change-Id: Ied2e291393609300173681e26e82b7dd36b41bd0
* Pull up some more common code (A95)Jean Chalard2012-07-111-15/+13
| | | | Change-Id: I3ac7ee823471a6d1da8031e064bce38b0e5a8f5c
* Pull up common code in the caller (A94)Jean Chalard2012-07-111-14/+8
| | | | Change-Id: I84b97886280eca75d5f2b7546f20f8b1bced55bc
* Remove useless member variables (A93)Jean Chalard2012-07-101-14/+13
| | | | Change-Id: Iff0a0e8835f4d630b51a15c0d91881437094e785
* Start converging two identical methods (A92)Jean Chalard2012-07-101-4/+4
| | | | Change-Id: I3c85a80610fde664a328f5606d0724f00d445ebe
* Add batch input dictionary lookupTadashi G. Takaoka2012-07-101-16/+15
| | | | Change-Id: I4da3c976838e8eb56c9ec80aafaaf54d759b7981
* Cleanup old methods (A90)Jean Chalard2012-07-101-8/+6
| | | | Change-Id: I5435cef8ac6be523934ffa394952cb120c8e89d6
* Implement the common Dictionary interface (A89)Jean Chalard2012-07-101-0/+12
| | | | | | 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
* Add input pointersSatoshi Kataoka2012-06-291-3/+5
| | | | Change-Id: I95300bf0a847fb86d026e846ff4ad723bb45284f
* Remember the source dictionary for each suggestion.Jean Chalard2012-06-271-2/+2
| | | | Change-Id: I3c63372bd5572a479a67eaecfe8c8ea1cabc70d9
* Cleanup the dictionary type.Jean Chalard2012-06-271-7/+5
| | | | | | | 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-5/+8
| | | | | | | | 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 dependency on WordCallback from BinaryDictionary (A7)Jean Chalard2012-06-261-5/+14
| | | | | | | | Bug: 6252660 Bug: 6166228 Bug: 2704000 Bug: 6225530 Change-Id: I8245698fbd170e0f5cbad3c0109774bcaddc0614
* Change JNI for GestureSatoshi Kataoka2012-06-251-18/+27
| | | | Change-Id: I774a0052038d16677f60f7efa11fd266cb5f3088
* Set level 1 as the initial value of the valid wordsSatoshi Kataoka2012-05-291-3/+7
| | | | | Bug: 4192129 Change-Id: I867e78ce79c78977d08e8b66881a25b6fe5bf41f
* Add a JNI to get the frequencySatoshi Kataoka2012-05-291-2/+3
| | | | | Bug: 4192129 Change-Id: I3f220f5a10114d4eb23956148076cf76220bda0f
* Use "float" instead of "double"satok2012-05-161-2/+2
| | | | Change-Id: I93ed4d88ede4058f081dd8d634b00dfff4e96d07
* Contacts dictionary rebuilds only when contact names have changed.Tom Ouyang2012-05-111-0/+11
| | | | | Bug: 6396600 Change-Id: Iad693ec4bab6351793d624e5c5b0a9f5c12a60e3
* Pass words as int[] to the native code.Jean Chalard2012-04-231-6/+6
| | | | | | | | | | We need to get the bigrams during the call to getSuggestions for bug#6313806. We already give an int[] to getSuggestions and we wanted to get rid of char[]'s anyway because it doesn't work with surrogate pairs, so here we go. Bug: 6313806 Change-Id: I56ce99f1db6b3302cdf42f0527343bded837091e
* Pass the previous word down to native code in getSuggestionsJean Chalard2012-04-171-3/+6
| | | | Change-Id: I477b631d81ef58461e44954f3ae5fd895928bb97
* Pass the previous word to getSuggestionsJean Chalard2012-04-171-5/+8
| | | | | | This is a preparative change to bug#6313806 Change-Id: I1be9ec49b21005c1f45ce459fa93712bc74ef3f0
* Add language suffix to main dictionaryTadashi G. Takaoka2012-04-111-3/+0
| | | | | Bug: 6319377 Change-Id: Ie6a887fefa12e33c17bfeb5d22984e7c1a7bdb46
* Remove the now useless Flag class.Jean Chalard2012-04-061-24/+0
| | | | Change-Id: Ibe45189b73e2606cf77e30da166dd0d45ae47c5c
* Replace the flags in getSuggestions with a boolean.Jean Chalard2012-04-061-14/+5
| | | | | | | | Change-Id: I0ec44df1979cb1dc21017ea290d2151a2af0e7cd Conflicts: java/src/com/android/inputmethod/latin/Suggest.java
* Change the flags to a boolean in constructors.Jean Chalard2012-04-061-16/+10
| | | | Change-Id: I9939204f3b16346aaebd4d726315ba9c4faf910a
* Fix the locale of flags in BinaryDictionarysatok2012-04-041-3/+16
| | | | | Bug: 6129372 Change-Id: I4958c2aabf651d7e26648a29b75fcc6c77813451
* Good bye the proximity logic in Java codesatok2012-03-281-9/+5
| | | | | Bug: 4343280 Change-Id: I82f7d08703647a3492ce6e2d3b741146df58927e
* ongoing cleanup 2satok2012-03-271-8/+2
| | | | Change-Id: I66b61cbe491cf8375144e834390beae3209a777d
* Merge "Cleanup jni 1"satok2012-03-231-3/+5
|\
| * Cleanup jni 1satok2012-03-231-3/+5
| | | | | | | | Change-Id: Ieb6af8385356e259720b50f1fe46a694a098b30f
* | Add processing for French ligatures.Jean Chalard2012-03-231-0/+3
|/ | | | | Bug: 5140033 Change-Id: I1c2751fc617e662aad9f67506e28a622f81d0bc9
* Strengthen java code against bad returns from nativeJean Chalard2012-03-211-0/+3
| | | | | | | | This doesn't really fix the following bug but it may alleviate the symptoms Bug: 6191885 Change-Id: I0de3f550cc7c6cdf79b291399785ad31b205d2ac
* Split Utils class to StringUtils, SubtypeUtils, and JniUtilsTadashi G. Takaoka2012-03-081-1/+1
| | | | Change-Id: I09e91675fe7d573dad8c933ad513b21d7e409144
* Activate bigram predictions from the binary dictionaryJean Chalard2012-02-151-9/+6
| | | | Change-Id: If1cc50539d7677b854b1cd3bea3423c8c0865de5
* Convert an internal enum into an int of same underlying value.Jean Chalard2012-01-261-2/+2
| | | | | | | Goes together with Id4f4e066 Bug: 5922118 Change-Id: I1e39dd01c67e9284d9d7fe008d868847e69986d7
* Move auto correction thresthold to the native codesatok2012-01-121-0/+14
| | | | | | bug: 5858137 Change-Id: Ic4b6270c6e51ef4ed25a6a1d8ddd7fdfa70fd78d
* Fix JNI as 64bit readyTadashi G. Takaoka2011-10-311-6/+6
| | | | Change-Id: I7a3ed2cee3b20744869aa5cf89ff9fd95f5ab8fe
* Cleanup unused importTadashi G. Takaoka2011-10-041-7/+2
| | | | | | This change also gets rid of several compiler warnings. Change-Id: I23962edaadad18a6e0395d528af17b909dcf5dad
* Make use of the FULL_EDIT_DISTANCE flag.Jean Chalard2011-09-301-2/+12
| | | | | | | | | | | | In effect, this stops the spell checker from suggesting overly long words. More precisely, it takes advantage of the new facility that takes into account the whole length of the dictionary word when computing scores, so words much longer than the input word will see their score demoted accordingly. Bug: 5384578 Change-Id: I326cd7c87c3080e7fa8729f78517f8ba13672a9b
* Add a flag to demote completed suggestionssatok2011-09-291-0/+2
| | | | | Bug: 5390063 Change-Id: I0ef4fbcc705539624269fd2f8c4e782679fc44b3
* Create a way to pass the proximity info to the dictionaryJean Chalard2011-08-041-7/+8
| | | | | | This is a preparative change for inserting the spell checker. Change-Id: Ie441879cac4f67078ec27a95f1fcbbf3ef373df7
* Allow reading a binary dictionary even without proximity info.Jean Chalard2011-06-021-1/+2
| | | | | | | | This prepares the way for spell checking, which is to be done without context so without proximity info. Bug: 4176026 Change-Id: I1b4bfaefe2611e1b484acdf3c33598cb80f81ff4
* Create a dictionary collection and a dictionary factory.Jean Chalard2011-04-271-93/+19
| | | | | | | | | | | | | | | The dictionary collection is a class complying to the Dictionary interface that acts as a front end to a collection of arbitrarily many dictionaries of any type. The dictionary factory is a helper class for creating various dictionaries and get some meta information about them. At the same time, this change makes the BinaryDictionary class not a singleton any more. This also needs I9afe61a9 to not break the build. Change-Id: I61fdcc4867fcda18342807bf1865e6e46979e5d5
* Fix Eclipse warnings.Jean Chalard2011-04-261-1/+1
| | | | | | | This change is only there to fix warning issued by Eclipse. It should have absolutely no impact on the program logic. Change-Id: Ie0e242ac6c167297d33de19902340b0f6ecae9e1