aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/com_android_inputmethod_latin_BinaryDictionary.cpp (follow)
Commit message (Expand)AuthorAgeFilesLines
* Cosmetic fixes and a bug fix in UnigramDictionary::testCharGroupForContinuedL...•••This change has actually been extracted from a change work in progress I4fe423834b8131fb122251892c98228a6e08ba25 Change-Id: I52568fa09da2ea22be7f8bfe9676b7cd73c31fa4 Ken Wakasa2012-09-041-5/+5
* Address warnings by -Weffc++•••Change-Id: Icd60f1ed2ace0b975d8785bc8a386c7944846075 Ken Wakasa2012-08-241-4/+4
* Allow one-character suggestions.•••Bug: 6906525 Change-Id: I62117653ac1281f825afc4ebb30f7e786902b750 Jean Chalard2012-08-171-1/+1
* Cleanup casts.•••Change-Id: I3bf33ca407cc3bee9f5c4c6f929cdb1421b92c50 Ken Wakasa2012-08-141-4/+4
* A couple of cleanups. Remove unnecessary casts.•••Change-Id: Ice530aa83a9a688da35aec408be2a60242699157 Ken Wakasa2012-08-141-17/+16
* Clean up constructors•••And, use C++ style casts and use float math functions rather than double ones to save memory space. Also, stop using FloatMath and NativeUtils as standard Math methods are faster now. See http://code.google.com/p/android/issues/detail?id=36199 and https://android-review.googlesource.com/40700 multi-project commit with I4259fb5ab8a15ac5760a7f04fc8f4c860529f04a Change-Id: I0b81cff8c91769f7559a59b9528c75a5aabb4211 Ken Wakasa2012-08-131-15/+24
* Fix memset() bugs•••Change-Id: Icf4341c0a62e782cf8c2a863408591df4e6f07cb Ken Wakasa2012-08-101-4/+4
* Use JNI Region calls also in getSuggestions()•••Change-Id: I9cc0208397c202aeb6f7b5bb5ad59e00c5afbd80 Ken Wakasa2012-08-101-40/+65
* Use more JNI Region calls•••Change-Id: I371db517ff4749c0b7e5bdb4362e6310c91a24dc Ken Wakasa2012-08-101-35/+36
* Use GetStringUTFRegion for filename•••Change-Id: I2e9ad092ccf4c23c1c6b71916c962994314d37b6 Ken Wakasa2012-08-091-6/+7
* Pass traverse session•••Change-Id: I84bfaaa406e3f51421c08a7ee8f9576ebdba54d4 Satoshi Kataoka2012-08-081-10/+11
* Header cleanup•••Change-Id: I1aa91708d0de01ca3e84e69ec8d3a3832c386ca8 Ken Wakasa2012-08-031-1/+2
* Header cleanup•••Change-Id: Idaf19de3dc75367d49bc01e84e5a9f057c1f8dba Ken Wakasa2012-08-011-9/+3
* Cleanup headers•••Change-Id: I9124366b2000cad54966fb6936bb4691bbf115a3 Ken Wakasa2012-07-311-4/+4
* Misc cleanups•••Change-Id: I28308f12c3064299acefc346b72279036c3726a7 Ken Wakasa2012-07-301-2/+1
* Cosmetic fixes and style fixes•••Change-Id: I69c42ff945cdf0d5205c6ca61d6861a0479492dc Ken Wakasa2012-07-251-19/+18
* Pass an array to output suggestion types (A119a)•••This needs the matching A119b change to not break the build. The array is passed, but not used yet. Bug: 6166228 Change-Id: Ia91d658461d989ee8c94e9b31bb06f4a36f4c5b6 Jean Chalard2012-07-121-4/+7
* Remove an unused method (A109)•••Change-Id: Ib785b7e8c554d030395e2c0ca92edb44eb2b245f Jean Chalard2012-07-121-19/+0
* Move an implementation detail to native code (A107)•••Java code does not have to know about this implementation detail: the generic method should do the dispatching, instead of having the caller call either method. Change-Id: Ic13727f0cb18f4ced2c356cce2f8d710588c0421 Jean Chalard2012-07-121-4/+11
* Remove a useless parameter (A106)•••Change-Id: Ic0ecea22212fd1a098a3a168da460374e446f4a3 Jean Chalard2012-07-121-3/+3
* Make a constant really constant (A104)•••Change-Id: Ied1f9f96a574b1e6a8ee0a71bfb1604d9c962e1c Jean Chalard2012-07-121-3/+4
* Cleanup the dictionary type.•••Stop storing an int in each of the different class types, and just store a string in the top class. Change-Id: I2af1832743e6fe78e5c1364f6d9cc21252bf5831 Jean Chalard2012-06-271-3/+3
* Change JNI for Gesture•••Change-Id: I774a0052038d16677f60f7efa11fd266cb5f3088 Satoshi Kataoka2012-06-251-8/+17
* Add a JNI to get the frequency•••Bug: 4192129 Change-Id: I3f220f5a10114d4eb23956148076cf76220bda0f Satoshi Kataoka2012-05-291-3/+3
* Add missing includes.•••Change-Id: Ic7199045d0cffb208871f52cc167194013351d32 Ken Wakasa2012-05-161-0/+1
* Use "float" instead of "double"•••Change-Id: I93ed4d88ede4058f081dd8d634b00dfff4e96d07 satok2012-05-161-3/+3
* Contacts dictionary rebuilds only when contact names have changed.•••Bug: 6396600 Change-Id: Iad693ec4bab6351793d624e5c5b0a9f5c12a60e3 Tom Ouyang2012-05-111-0/+15
* Fetch and pass the bigram position on suggestions.•••This is a cherry-pick of change I2d81742f Bug: 6313806 Change-Id: Ic1190b7980d032bc11b57841bca040d980889b6b Jean Chalard2012-04-261-6/+8
* Pass words as int[] to the native code.•••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 Jean Chalard2012-04-231-10/+10
* Pass the previous word down to native code in getSuggestions•••Change-Id: I477b631d81ef58461e44954f3ae5fd895928bb97 Jean Chalard2012-04-171-3/+9
* Just cosmetic changes in jni code•••Change-Id: I8628131b5a7ccdee4c158e891002c8b86623b0cd Ken Wakasa2012-04-161-22/+10
* Replace the flags in getSuggestions with a boolean.•••Change-Id: I0ec44df1979cb1dc21017ea290d2151a2af0e7cd Conflicts: java/src/com/android/inputmethod/latin/Suggest.java Jean Chalard2012-04-061-3/+3
* Good bye the proximity logic in Java code•••Bug: 4343280 Change-Id: I82f7d08703647a3492ce6e2d3b741146df58927e satok2012-03-281-9/+6
* New LOG lib•••Change-Id: I977e7e10fa58c0a64ca0c3c7b5cb2272446e3efe satok2012-01-131-12/+12
* Move auto correction thresthold to the native code•••bug: 5858137 Change-Id: Ic4b6270c6e51ef4ed25a6a1d8ddd7fdfa70fd78d satok2012-01-121-1/+28
* Fix JNI as 64bit ready•••Change-Id: I7a3ed2cee3b20744869aa5cf89ff9fd95f5ab8fe Tadashi G. Takaoka2011-10-311-12/+12
* Remove NULL from native/jni•••Change-Id: I7c4e32d0d69876c7ea85d6997c9a40fa362152eb Tadashi G. Takaoka2011-10-281-17/+17
* Fix trivial compile issue•••Change-Id: I9dbc51496dbdb2195bbe589b0c3b2cd7e3d2f1fc Tadashi G. Takaoka2011-10-281-0/+1
* Check the binary dictionary magic number•••...and return NULL if it does not matched an expected value. Bug: 5052486 Change-Id: I1dc7955d2785ee080bc5c22398be9befe332f096 Jean Chalard2011-07-201-6/+27
* Clean up in LatinIME native code•••Change-Id: I0062200a0181a491690115ac0fab8d11358e2f14 Ken Wakasa2011-06-181-34/+2
* Allow reading a binary dictionary even without proximity info.•••This prepares the way for spell checking, which is to be done without context so without proximity info. Bug: 4176026 Change-Id: I1b4bfaefe2611e1b484acdf3c33598cb80f81ff4 Jean Chalard2011-06-021-1/+0
* Use translation of fallback umlauts digraphs for German.•••For German : handle "ae", "oe" and "ue" to be alternate forms for umlaut-bearing versions of "a", "o" and "u". Issue: 3275926 Change-Id: I056c707cdacc464ceab63be56c016c7f8439196c Jean Chalard2011-03-031-3/+4
* Add proximity info to native•••Bug: 3311719 Change-Id: Ie596304070e321ad23fb67a13bf05e2b6af1b54b satok2011-02-231-34/+21
* Remove next letters frequency handling•••Bug: 3428942 Change-Id: Id62f467ce4e50c60a56d59bf96770e799a4659e2 Tadashi G. Takaoka2011-02-171-9/+3
* Fixes in close() in BinaryDictionary.•••Avoid using 'synchronized' in finalizer as well. bug: 3340837 Change-Id: I9b28f54e4490ecb844ba33a379f71b625e4246a2 Ken Wakasa2011-01-171-1/+1
* Clean up: Update variable names to comply with spec of ApplicationInfo.•••ApplicationInfo.sourceDir may or may not be apk file name. It can be a directory as well. The spec just says it's "Full path to the location of this package". Also, added error handling in loadDictionary(). Change-Id: I5e64d0aba4b1ec7634f4b3ac5537e7a774433ece Ken Wakasa2011-01-091-10/+10
* Load main dic in native•••Follow up to Id57dce51 bug: 3219819 Change-Id: I00e11ef21d0252ffa88c12dffb9c55b0f2e19a66 Ken Wakasa2011-01-071-20/+108
* Just code cleanup.•••Change-Id: I796b47aa168b3b2cc29de65fc7dc5dab5a7f4b17 Ken Wakasa2010-12-031-46/+30
* Fix parameters of native functions and refactor Dictionary•••- created bigram/unigram dictionary classes Change-Id: I233a28ed8d611870db3f4cf8f25fc45b5d41529b satok2010-12-021-9/+9
* - separate dict (uses xml)•••- retrieve bigrams that only starts with character typed and neighbor keys - contacts bigram - performance measure bug: 2873133 Change-Id: If97c005b18c82f3fafef50009dd2dfd972b0ab8f Jae Yong Sung2010-07-281-9/+14