aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src/dictionary.h (follow)
Commit message (Expand)AuthorAgeFilesLines
* 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