aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/com_android_inputmethod_latin_BinaryDictionary.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add a JNI to get the frequencySatoshi Kataoka2012-05-291-3/+3
| | | | | Bug: 4192129 Change-Id: I3f220f5a10114d4eb23956148076cf76220bda0f
* Add missing includes.Ken Wakasa2012-05-161-0/+1
| | | | Change-Id: Ic7199045d0cffb208871f52cc167194013351d32
* Use "float" instead of "double"satok2012-05-161-3/+3
| | | | Change-Id: I93ed4d88ede4058f081dd8d634b00dfff4e96d07
* Contacts dictionary rebuilds only when contact names have changed.Tom Ouyang2012-05-111-0/+15
| | | | | Bug: 6396600 Change-Id: Iad693ec4bab6351793d624e5c5b0a9f5c12a60e3
* Fetch and pass the bigram position on suggestions.Jean Chalard2012-04-261-6/+8
| | | | | | | This is a cherry-pick of change I2d81742f Bug: 6313806 Change-Id: Ic1190b7980d032bc11b57841bca040d980889b6b
* Pass words as int[] to the native code.Jean Chalard2012-04-231-10/+10
| | | | | | | | | | 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/+9
| | | | Change-Id: I477b631d81ef58461e44954f3ae5fd895928bb97
* Just cosmetic changes in jni codeKen Wakasa2012-04-161-22/+10
| | | | Change-Id: I8628131b5a7ccdee4c158e891002c8b86623b0cd
* Replace the flags in getSuggestions with a boolean.Jean Chalard2012-04-061-3/+3
| | | | | | | | Change-Id: I0ec44df1979cb1dc21017ea290d2151a2af0e7cd Conflicts: java/src/com/android/inputmethod/latin/Suggest.java
* Good bye the proximity logic in Java codesatok2012-03-281-9/+6
| | | | | Bug: 4343280 Change-Id: I82f7d08703647a3492ce6e2d3b741146df58927e
* New LOG libsatok2012-01-131-12/+12
| | | | Change-Id: I977e7e10fa58c0a64ca0c3c7b5cb2272446e3efe
* Move auto correction thresthold to the native codesatok2012-01-121-1/+28
| | | | | | bug: 5858137 Change-Id: Ic4b6270c6e51ef4ed25a6a1d8ddd7fdfa70fd78d
* Fix JNI as 64bit readyTadashi G. Takaoka2011-10-311-12/+12
| | | | Change-Id: I7a3ed2cee3b20744869aa5cf89ff9fd95f5ab8fe
* Remove NULL from native/jniTadashi G. Takaoka2011-10-281-17/+17
| | | | Change-Id: I7c4e32d0d69876c7ea85d6997c9a40fa362152eb
* Fix trivial compile issueTadashi G. Takaoka2011-10-281-0/+1
| | | | Change-Id: I9dbc51496dbdb2195bbe589b0c3b2cd7e3d2f1fc
* Check the binary dictionary magic numberJean Chalard2011-07-201-6/+27
| | | | | | | ...and return NULL if it does not matched an expected value. Bug: 5052486 Change-Id: I1dc7955d2785ee080bc5c22398be9befe332f096
* Clean up in LatinIME native codeKen Wakasa2011-06-181-34/+2
| | | | Change-Id: I0062200a0181a491690115ac0fab8d11358e2f14
* Allow reading a binary dictionary even without proximity info.Jean Chalard2011-06-021-1/+0
| | | | | | | | This prepares the way for spell checking, which is to be done without context so without proximity info. Bug: 4176026 Change-Id: I1b4bfaefe2611e1b484acdf3c33598cb80f81ff4
* Use translation of fallback umlauts digraphs for German.Jean Chalard2011-03-031-3/+4
| | | | | | | | | 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
* Add proximity info to nativesatok2011-02-231-34/+21
| | | | | | Bug: 3311719 Change-Id: Ie596304070e321ad23fb67a13bf05e2b6af1b54b
* Remove next letters frequency handlingTadashi G. Takaoka2011-02-171-9/+3
| | | | | Bug: 3428942 Change-Id: Id62f467ce4e50c60a56d59bf96770e799a4659e2
* Fixes in close() in BinaryDictionary.Ken Wakasa2011-01-171-1/+1
| | | | | | | Avoid using 'synchronized' in finalizer as well. bug: 3340837 Change-Id: I9b28f54e4490ecb844ba33a379f71b625e4246a2
* Clean up: Update variable names to comply with spec of ApplicationInfo.Ken Wakasa2011-01-091-10/+10
| | | | | | | | | 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
* Load main dic in nativeKen Wakasa2011-01-071-20/+108
| | | | | | | Follow up to Id57dce51 bug: 3219819 Change-Id: I00e11ef21d0252ffa88c12dffb9c55b0f2e19a66
* Just code cleanup.Ken Wakasa2010-12-031-46/+30
| | | | Change-Id: I796b47aa168b3b2cc29de65fc7dc5dab5a7f4b17
* Fix parameters of native functions and refactor Dictionarysatok2010-12-021-9/+9
| | | | | | - created bigram/unigram dictionary classes Change-Id: I233a28ed8d611870db3f4cf8f25fc45b5d41529b
* - separate dict (uses xml)Jae Yong Sung2010-07-281-9/+14
| | | | | | | | | | - retrieve bigrams that only starts with character typed and neighbor keys - contacts bigram - performance measure bug: 2873133 Change-Id: If97c005b18c82f3fafef50009dd2dfd972b0ab8f
* added bigram predictionJae Yong Sung2010-07-131-3/+25
| | | | | | | | | - 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
* Get rid of dependency on native AssetManager API. Confirmed the native code ↵Ken Wakasa2010-04-271-63/+5
| | | | | | builds with the NDK r3. Change-Id: I0d2d3a0e262847d6948a0336a35440e21e312ad2
* Don't let the native code target be included twice when unbundling.Amith Yamasani2010-03-091-0/+222
Move java code to a different directory so that the unbundled version doesn't try to compile the native code again. Change-Id: I05cf9e643824ddc448821f69805ccb0240c5b986