aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/com_android_inputmethod_latin_BinaryDictionary.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Cosmetic fixes and a bug fix in ↵Ken Wakasa2012-09-041-5/+5
| | | | | | | | UnigramDictionary::testCharGroupForContinuedLikeness(). This change has actually been extracted from a change work in progress I4fe423834b8131fb122251892c98228a6e08ba25 Change-Id: I52568fa09da2ea22be7f8bfe9676b7cd73c31fa4
* Address warnings by -Weffc++Ken Wakasa2012-08-241-4/+4
| | | | Change-Id: Icd60f1ed2ace0b975d8785bc8a386c7944846075
* Allow one-character suggestions.Jean Chalard2012-08-171-1/+1
| | | | | Bug: 6906525 Change-Id: I62117653ac1281f825afc4ebb30f7e786902b750
* Cleanup casts.Ken Wakasa2012-08-141-4/+4
| | | | Change-Id: I3bf33ca407cc3bee9f5c4c6f929cdb1421b92c50
* A couple of cleanups. Remove unnecessary casts.Ken Wakasa2012-08-141-17/+16
| | | | Change-Id: Ice530aa83a9a688da35aec408be2a60242699157
* Clean up constructorsKen Wakasa2012-08-131-15/+24
| | | | | | | | | | | 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
* Fix memset() bugsKen Wakasa2012-08-101-4/+4
| | | | Change-Id: Icf4341c0a62e782cf8c2a863408591df4e6f07cb
* Use JNI Region calls also in getSuggestions()Ken Wakasa2012-08-101-40/+65
| | | | Change-Id: I9cc0208397c202aeb6f7b5bb5ad59e00c5afbd80
* Use more JNI Region callsKen Wakasa2012-08-101-35/+36
| | | | Change-Id: I371db517ff4749c0b7e5bdb4362e6310c91a24dc
* Use GetStringUTFRegion for filenameKen Wakasa2012-08-091-6/+7
| | | | Change-Id: I2e9ad092ccf4c23c1c6b71916c962994314d37b6
* Pass traverse sessionSatoshi Kataoka2012-08-081-10/+11
| | | | Change-Id: I84bfaaa406e3f51421c08a7ee8f9576ebdba54d4
* Header cleanupKen Wakasa2012-08-031-1/+2
| | | | Change-Id: I1aa91708d0de01ca3e84e69ec8d3a3832c386ca8
* Header cleanupKen Wakasa2012-08-011-9/+3
| | | | Change-Id: Idaf19de3dc75367d49bc01e84e5a9f057c1f8dba
* Cleanup headersKen Wakasa2012-07-311-4/+4
| | | | Change-Id: I9124366b2000cad54966fb6936bb4691bbf115a3
* Misc cleanupsKen Wakasa2012-07-301-2/+1
| | | | Change-Id: I28308f12c3064299acefc346b72279036c3726a7
* Cosmetic fixes and style fixesKen Wakasa2012-07-251-19/+18
| | | | Change-Id: I69c42ff945cdf0d5205c6ca61d6861a0479492dc
* Pass an array to output suggestion types (A119a)Jean Chalard2012-07-121-4/+7
| | | | | | | | This needs the matching A119b change to not break the build. The array is passed, but not used yet. Bug: 6166228 Change-Id: Ia91d658461d989ee8c94e9b31bb06f4a36f4c5b6
* Remove an unused method (A109)Jean Chalard2012-07-121-19/+0
| | | | Change-Id: Ib785b7e8c554d030395e2c0ca92edb44eb2b245f
* Move an implementation detail to native code (A107)Jean Chalard2012-07-121-4/+11
| | | | | | | | 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
* Remove a useless parameter (A106)Jean Chalard2012-07-121-3/+3
| | | | Change-Id: Ic0ecea22212fd1a098a3a168da460374e446f4a3
* Make a constant really constant (A104)Jean Chalard2012-07-121-3/+4
| | | | Change-Id: Ied1f9f96a574b1e6a8ee0a71bfb1604d9c962e1c
* Cleanup the dictionary type.Jean Chalard2012-06-271-3/+3
| | | | | | | Stop storing an int in each of the different class types, and just store a string in the top class. Change-Id: I2af1832743e6fe78e5c1364f6d9cc21252bf5831
* Change JNI for GestureSatoshi Kataoka2012-06-251-8/+17
| | | | Change-Id: I774a0052038d16677f60f7efa11fd266cb5f3088
* 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