aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src/dictionary.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move some dictionary related implementations to the dictionary directoryKen Wakasa2013-05-311-114/+0
| | | | Change-Id: I6fe71a540ad91ca46755be234abc8894242e2413
* Make DicTraverseSession having suggest options.Keisuke Kuroyanagi2013-05-291-8/+9
| | | | Change-Id: I2b802c06634e5226c763fd838f3fc0918fc4a161
* Be careful about the dictionary size in detection methodsJean Chalard2013-05-081-2/+4
| | | | | Bug: 8857618 Change-Id: I29345ec96d53da601571ba73197a6485643a10a7
* Add method to get dictionary flags from DicTraverseSessionTom Ouyang2013-04-081-0/+5
| | | | | | | | | This is needed for the traversal algorithm to know which digraphs (if any) are associated with the current dictionary. Bug: 8493920 Change-Id: I6ae088b55e50c0c2c7066d045b304c5068e23390
* Cleanup the include pathsKen Wakasa2013-04-081-4/+5
| | | | Change-Id: Ic93d39e230170cfc9f5be6d81d42006e1a61e347
* Cleanup suggest interfaceSatoshi Kataoka2013-04-081-4/+5
| | | | Change-Id: Ibe334a1d3ab3af69acfa64412c80f0ea24cd2c46
* Add flag to turn on new suggest implementation for typingTom Ouyang2013-04-041-9/+25
| | | | | | Bug: 8277656 Change-Id: I974f560050cc5339d110b97620df1c5b496977fe
* Refactor parameters by naming conventionSatoshi Kataoka2013-03-181-3/+3
| | | | Change-Id: I8bda8075b33f656ecbec08320afcd864b620fe77
* Remove MAX_WORD_LENGTH_INTERNALKen Wakasa2013-01-151-26/+18
| | | | Change-Id: Ie11ff000675601acff5fbb00e9e9f48eb32c5071
* Remove BinaryDictionary.MAX_PREDICTION and MAX_SPACES, and rename MAX_WORDS ↵Ken Wakasa2013-01-111-5/+4
| | | | | | to MAX_RESULTS Change-Id: Iab2a422b367e7521f346481c7fe5e2575f2e9de3
* Reorganize file and class names for typing and gestureKen Wakasa2012-12-201-4/+4
| | | | | | multi-project commit with Iecacb05c Change-Id: I0d21063335fb8c11184ad4eea00b123362de6853
* Clean up int types in the Dictionary classKen Wakasa2012-12-031-5/+3
| | | | Change-Id: I49821c00186ce2a282bb23f369eb140b47d6c455
* Remove unused variablesKen Wakasa2012-11-161-4/+4
| | | | Change-Id: Ia5079368a1bc86ccdf0052445dc6945041c0abca
* Use 32-bit code points for suggestions outputKen Wakasa2012-11-011-6/+5
| | | | | | | This is a multi-project commit with Ic43dd666 bug: 6526418 Change-Id: I39c1acb4e91d04cd8a4ec5a943c8cf575da75ebc
* Make use of the NELEMS and KEYCODE_SPACE macro. Also, remove an unused ↵Ken Wakasa2012-10-091-4/+3
| | | | | | parameter. Change-Id: I3c7e6c59990c92b0d5e2fb80493e8673cdd37b09
* Address warnings by -Weffc++Ken Wakasa2012-08-241-10/+9
| | | | Change-Id: Icd60f1ed2ace0b975d8785bc8a386c7944846075
* Step 30-A Constize gestureSatoshi Kataoka2012-08-151-1/+1
| | | | Change-Id: I6c0b89d96532dc1c8ca71bb730ba22de5592ec67
* Cleanup casts.Ken Wakasa2012-08-141-2/+2
| | | | Change-Id: I3bf33ca407cc3bee9f5c4c6f929cdb1421b92c50
* Step 24-A remove setdictSatoshi Kataoka2012-08-131-2/+0
| | | | Change-Id: Iab28bf0fd785b9e81fc86837e64a1ef2e315a229
* Clean up constructorsKen Wakasa2012-08-131-2/+2
| | | | | | | | | | | 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
* Add arguments for dic traverse sessionSatoshi Kataoka2012-08-101-7/+9
| | | | Change-Id: I8776ad528eeea9a5fc4dcf394ca13bb80c04fb6d
* Pass traverse sessionSatoshi Kataoka2012-08-081-4/+5
| | | | Change-Id: I84bfaaa406e3f51421c08a7ee8f9576ebdba54d4
* Show results in the native code.Satoshi Kataoka2012-08-061-0/+3
| | | | Change-Id: I712ba49cf4a89a36836fbf49cd72e7eef218e61f
* Header cleanup. Moved a couple of functions from .h to .cpp.Ken Wakasa2012-08-021-0/+35
| | | | Change-Id: Ifd12a7632f75395bd0ef5e394d5c2abd6cbe28c6
* Cleanup headersKen Wakasa2012-07-311-2/+0
| | | | Change-Id: I9124366b2000cad54966fb6936bb4691bbf115a3
* Misc cleanupsKen Wakasa2012-07-301-1/+0
| | | | Change-Id: I28308f12c3064299acefc346b72279036c3726a7
* Cosmetic fixes and style fixesKen Wakasa2012-07-251-16/+15
| | | | Change-Id: I69c42ff945cdf0d5205c6ca61d6861a0479492dc
* Make a constant really constant (A104)Jean Chalard2012-07-121-2/+2
| | | | Change-Id: Ied1f9f96a574b1e6a8ee0a71bfb1604d9c962e1c
* Cleanup gesture code overlaySatoshi Kataoka2012-07-041-3/+2
| | | | Change-Id: I6ab1462f62b2d53a157494d27342a832ec1f15f7
* Makefile and source code structure update for LatinIME AOSP buildKen Wakasa2012-07-021-1/+4
| | | | Change-Id: Ia2ab54651ef96521fce01fe4755147909b818803
* Change native functions' interface for gestureSatoshi Kataoka2012-06-271-1/+2
| | | | Change-Id: I106a858f0be7452dd89f425805a6f72aa88c3f65
* Add skeleton classes for gestureSatoshi Kataoka2012-06-261-0/+2
| | | | Change-Id: I6ada110a934b0dafc57d0dcd87723275fa733548
* Make native bigram dictionary constsatok2012-06-141-6/+3
| | | | Change-Id: Id883f2d69483c9234877ad42446a582258e1cf91
* Move correction state to stack memorysatok2012-06-141-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | *Before (0) 13.18 (0.01%) (1) 93025.41 (62.06%) (2) 10.75 (0.01%) (3) 10.50 (0.01%) (4) 117.50 (0.08%) (5) 55678.98 (37.14%) (6) 9.09 (0.01%) (20) 883.84 (0.59%) Total 149898.24 (sum of others 149749.25) *After (0) 17.41 (0.01%) (1) 92673.41 (61.95%) (2) 10.62 (0.01%) (3) 10.37 (0.01%) (4) 120.96 (0.08%) (5) 55741.18 (37.26%) (6) 11.01 (0.01%) (20) 862.72 (0.58%) Total 149595.52 (sum of others 149447.68) Change-Id: Ia5a25a544fc388e4dab1e08d8f78d5117b249cf3
* Add a JNI to get the frequencySatoshi Kataoka2012-05-291-2/+2
| | | | | Bug: 4192129 Change-Id: I3f220f5a10114d4eb23956148076cf76220bda0f
* Add missing includes.Ken Wakasa2012-05-161-0/+1
| | | | Change-Id: Ic7199045d0cffb208871f52cc167194013351d32
* Contacts dictionary rebuilds only when contact names have changed.Tom Ouyang2012-05-111-0/+5
| | | | | Bug: 6396600 Change-Id: Iad693ec4bab6351793d624e5c5b0a9f5c12a60e3
* Pass words as int[] to the native code.Jean Chalard2012-04-231-1/+1
| | | | | | | | | | 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
* Save the flags in a member in the unigram dictionary.Jean Chalard2012-04-061-1/+2
| | | | Change-Id: Ic8fad9110db6b97f98ace27af0f347b4e69de8c8
* Remove write-only stuffJean Chalard2012-04-061-6/+3
| | | | Change-Id: I5ac8ab64c77a298502b3d063ea70db9b4da41716
* Move the "src" directory as a preparation for Ib4a47342 and I66f6c5b9Ken Wakasa2012-03-301-0/+63
Change-Id: I3ab65059f6e356530484bfd0bba26a634a4cba65