aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src/dictionary.h (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-4/+5
* Step 30-A Constize gesture•••Change-Id: I6c0b89d96532dc1c8ca71bb730ba22de5592ec67 Satoshi Kataoka2012-08-151-1/+1
* A couple of cleanups. Remove unnecessary casts.•••Change-Id: Ice530aa83a9a688da35aec408be2a60242699157 Ken Wakasa2012-08-141-6/+6
* 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-3/+8
* Add arguments for dic traverse session•••Change-Id: I8776ad528eeea9a5fc4dcf394ca13bb80c04fb6d Satoshi Kataoka2012-08-101-1/+3
* Pass traverse session•••Change-Id: I84bfaaa406e3f51421c08a7ee8f9576ebdba54d4 Satoshi Kataoka2012-08-081-3/+3
* Header cleanup. Moved a couple of functions from .h to .cpp.•••Change-Id: Ifd12a7632f75395bd0ef5e394d5c2abd6cbe28c6 Ken Wakasa2012-08-021-32/+9
* Cosmetic fixes and style fixes•••Change-Id: I69c42ff945cdf0d5205c6ca61d6861a0479492dc Ken Wakasa2012-07-251-1/+0
* Add values for suggestion types (A120)•••Also, use it in getBigrams. Change-Id: Ia0be9b57d1b7effcd8a936e01e957d1195b39c68 Jean Chalard2012-07-121-0/+11
* 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-5/+6
* Resolve a TODO: bury some implementation detail in native (A110)•••The fact that prediction does not accept a null argument is an implementation detail, it should not be visible to Java code. Change-Id: I3a156b323b6db9353de898d33f3f7c81751cecb1 Jean Chalard2012-07-121-0/+1
* Remove a useless parameter (A106)•••Change-Id: Ic0ecea22212fd1a098a3a168da460374e446f4a3 Jean Chalard2012-07-121-3/+2
* Make a constant really constant (A104)•••Change-Id: Ied1f9f96a574b1e6a8ee0a71bfb1604d9c962e1c Jean Chalard2012-07-121-1/+1
* Cleanup gesture code overlay•••Change-Id: I6ab1462f62b2d53a157494d27342a832ec1f15f7 Satoshi Kataoka2012-07-041-1/+2
* Makefile and source code structure update for LatinIME AOSP build•••Change-Id: Ia2ab54651ef96521fce01fe4755147909b818803 Ken Wakasa2012-07-021-2/+2
* 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-2/+2
* Add skeleton classes for gesture•••Change-Id: I6ada110a934b0dafc57d0dcd87723275fa733548 Satoshi Kataoka2012-06-261-7/+16
* Change JNI for Gesture•••Change-Id: I774a0052038d16677f60f7efa11fd266cb5f3088 Satoshi Kataoka2012-06-251-5/+9
* Make native bigram dictionary const•••Change-Id: Id883f2d69483c9234877ad42446a582258e1cf91 satok2012-06-141-11/+10
* Move correction state to stack memory•••*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 satok2012-06-141-4/+3
* Add a JNI to get the frequency•••Bug: 4192129 Change-Id: I3f220f5a10114d4eb23956148076cf76220bda0f Satoshi Kataoka2012-05-291-1/+1
* Contacts dictionary rebuilds only when contact names have changed.•••Bug: 6396600 Change-Id: Iad693ec4bab6351793d624e5c5b0a9f5c12a60e3 Tom Ouyang2012-05-111-0/+1
* Replace the bigram list position with the map and filter•••Passing the position will not allow us a reasonable lookup time. Replace this with a map and bloom filter for very fast lookup. Bug: 6313806 Change-Id: I3a61c0001cbc987c1c3c7b8df635d4590a370144 Jean Chalard2012-05-071-6/+2
* Fill in the bloom filter for bigram lookup.•••Bug: 6313806 Change-Id: Ib79e14f6f8b241f053da6069c15f19c71084317e Jean Chalard2012-05-071-2/+3
* Fill up a map of bigram addresses for lookup.•••We don't want to do a linear search on each terminal when there may be 100+ bigrams for a given word because that would be disastrous for performance. Also, we need to resolve each bigram address anyway. This change resolves the addresses at first and puts them in a balanced tree so that lookup will be O(log(n)). Bug: 6313806 Change-Id: Ibf088035870b9acb41e948f0ab7af4726f2cee24 Jean Chalard2012-05-021-0/+5
* 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-4/+4
* Pass the bigram list position from the top level•••The position itself is still a const int = 0 until we have the previous word passed to the function. This basically does the plumbing. Bug: 6313806 Change-Id: Ib58995f334fe93e3ff5704d7c79f332017f101ac Jean Chalard2012-04-241-2/+6
* 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-2/+2
* Fix debug compilation + small cleanup•••Change-Id: Ia89d84f62ba38dee05d25fbc94698e889cf27d2c Jean Chalard2012-04-171-2/+0
* Replace the flags in getSuggestions with a boolean.•••Change-Id: I0ec44df1979cb1dc21017ea290d2151a2af0e7cd Conflicts: java/src/com/android/inputmethod/latin/Suggest.java Jean Chalard2012-04-061-2/+3
* Remove write-only stuff•••Change-Id: I5ac8ab64c77a298502b3d063ea70db9b4da41716 Jean Chalard2012-04-061-2/+0
* Move the "src" directory as a preparation for Ib4a47342 and I66f6c5b9•••Change-Id: I3ab65059f6e356530484bfd0bba26a634a4cba65 Ken Wakasa2012-03-301-0/+89