aboutsummaryrefslogtreecommitdiffstats
path: root/native (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix the issue on multiple words suggestionsatok2012-05-233-3/+9
| | | | | Bug: 6509844 Change-Id: I823074a2b29befc3e60c63699ab4dc7719105c63
* Merge "Return the bigram frequency if available." into jb-devJean Chalard2012-05-172-11/+26
|\
| * Return the bigram frequency if available.Jean Chalard2012-05-162-11/+26
| | | | | | | | | | | | | | | | This concludes the work on bug#6313806. Don't submit it before the dictionaries are suitably amended. Bug: 6313806 Change-Id: Icfea45bd52bb9d8cc68ba2266f80640e3942bb7f
* | Add missing includes.Ken Wakasa2012-05-166-0/+6
| | | | | | | | Change-Id: Ic7199045d0cffb208871f52cc167194013351d32
* | Use "float" instead of "double"satok2012-05-166-23/+23
| | | | | | | | Change-Id: I93ed4d88ede4058f081dd8d634b00dfff4e96d07
* | Merge "Reorder suggestions result according to auto correction threshold" ↵satok2012-05-162-22/+58
|\ \ | |/ |/| | | into jb-dev
| * Reorder suggestions result according to auto correction thresholdsatok2012-05-162-22/+58
| | | | | | | | | | Bug: 5413904 Change-Id: I3aa3a8109ba45d2129b58d8242866fd3dd3473cb
* | Fix a bug of handling single quote in the correction algorithmsatok2012-05-151-3/+5
|/ | | | | Bug: 6096247 Change-Id: I5490bbdee4ce1e3e0729ec1510a2baab85eeaf05
* Contacts dictionary rebuilds only when contact names have changed.Tom Ouyang2012-05-115-1/+43
| | | | | Bug: 6396600 Change-Id: Iad693ec4bab6351793d624e5c5b0a9f5c12a60e3
* Perform the actual bigram frequency lookup.Jean Chalard2012-05-104-19/+55
| | | | | | | | | This still returns the unigram frequency, because the values stored for bigrams in the dictionary are not ready to be returned in-place instead of unigram values. Aside from this, the code is complete. Bug: 6313806 Change-Id: If7bb7b644730782277f0f6663334c170b7fe13fb
* Replace the bigram list position with the map and filterJean Chalard2012-05-075-47/+60
| | | | | | | | | 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
* Fill in the bloom filter for bigram lookup.Jean Chalard2012-05-074-6/+34
| | | | | Bug: 6313806 Change-Id: Ib79e14f6f8b241f053da6069c15f19c71084317e
* Fill up a map of bigram addresses for lookup.Jean Chalard2012-05-024-3/+28
| | | | | | | | | | | | 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
* Fetch and pass the bigram position on suggestions.Jean Chalard2012-04-264-16/+18
| | | | | | | This is a cherry-pick of change I2d81742f Bug: 6313806 Change-Id: Ic1190b7980d032bc11b57841bca040d980889b6b
* Pass the bigram list position from the top levelJean Chalard2012-04-243-44/+55
| | | | | | | | 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
* Add methods to inverse compute the probability.Jean Chalard2012-04-245-34/+48
| | | | | | | | | For now the probability is just returned with the same value it had, but this is some ground work that needs to be done anyway. Bug: 6313806 Change-Id: I9bb8b96b294109771208ade558c9ad56932d2f8e
* Pass words as int[] to the native code.Jean Chalard2012-04-238-22/+22
| | | | | | | | | | 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
* Fix typo of some methods' nameTadashi G. Takaoka2012-04-181-1/+1
| | | | | | Also changes some methods' argument type from Locale to String. Change-Id: Ib68b528a450dc68a01546483403230f76500bee4
* Merge "Pass the previous word down to native code in getSuggestions"Jean Chalard2012-04-171-3/+9
|\
| * Pass the previous word down to native code in getSuggestionsJean Chalard2012-04-172-4/+9
| | | | | | | | Change-Id: I477b631d81ef58461e44954f3ae5fd895928bb97
* | Fix debug compilation + small cleanupJean Chalard2012-04-172-3/+0
| | | | | | | | Change-Id: Ia89d84f62ba38dee05d25fbc94698e889cf27d2c
* | Fix a native crashJean Chalard2012-04-171-0/+4
|/ | | | | | | This was introduced by Ieb2e306a which failed to keep the return behavior in case the word doesn't have a bigram. Change-Id: I6d2f0b79d41c4335e94696690c8331e314961133
* Preparatory refactoringJean Chalard2012-04-172-13/+23
| | | | | | | Split out getting the pointer to the bigrams to a separate function. This is a preparative change to bug#6313806 Change-Id: Ieb2e306a1151cd95dc1a16793c8dc2f7fed8b654
* Just cosmetic changes in jni codeKen Wakasa2012-04-161-22/+10
| | | | Change-Id: I8628131b5a7ccdee4c158e891002c8b86623b0cd
* Fix a large native memory leak.Jean Chalard2012-04-161-0/+6
| | | | | | | | This leak was about 500k and would happen whenever a new binary dictionary was opened/closed. Bug: 6299535 Change-Id: I4fad5b4d9c556ca889f5ef62d9d083a2eff6346a
* Replace the flags in getSuggestions with a boolean.Jean Chalard2012-04-064-32/+26
| | | | | | | | Change-Id: I0ec44df1979cb1dc21017ea290d2151a2af0e7cd Conflicts: java/src/com/android/inputmethod/latin/Suggest.java
* Enable using the flags read from the binary file.Jean Chalard2012-04-061-2/+2
| | | | Change-Id: Ib420c3e174ccc1a80c4b6fd066de3b7a2b6fb290
* Save the flags in a member in the unigram dictionary.Jean Chalard2012-04-063-4/+6
| | | | Change-Id: Ic8fad9110db6b97f98ace27af0f347b4e69de8c8
* Add a method to get the flags from a binary dictionary.Jean Chalard2012-04-063-4/+21
| | | | | | This method is not used yet Change-Id: Ic15d3d423aff2c83c712bc0aa56571d30755e663
* Remove write-only stuffJean Chalard2012-04-067-23/+8
| | | | Change-Id: I5ac8ab64c77a298502b3d063ea70db9b4da41716
* Read shortcuts as strings in the dictionary.Jean Chalard2012-04-065-26/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This has no impact on performance. Before: (0) 9.61 (0.01%) (1) 57514.58 (56.70%) (2) 10.55 (0.01%) (3) 10.79 (0.01%) (4) 133.20 (0.13%) (5) 43553.87 (42.94%) (6) 10.03 (0.01%) (20) 47.20 (0.05%) Total 101431.47 (sum of others 101289.84) After: (0) 10.52 (0.01%) (1) 56311.16 (56.66%) (2) 13.40 (0.01%) (3) 10.98 (0.01%) (4) 136.72 (0.14%) (5) 42707.92 (42.97%) (6) 9.79 (0.01%) (20) 51.35 (0.05%) Total 99390.76 (sum of others 99251.84) The difference is not significant with regard to measure imprecision Change-Id: I2e4f1ef7a5e99082e67dd27f56cf4fc432bb48fa
* Make LatinIME's native Makefile NDK-friendlyKen Wakasa2012-03-311-0/+13
| | | | Change-Id: I55d430756b3a8251c9ff49dfabfcecb047d979a4
* Remove ".." in the native LOCAL_SRC_FILES.Ying Wang2012-03-301-27/+60
| | | | | | | | | The build system does not work well with ".." in the path of native source code. ".." causes the object files to spill out of the module's intermediate directory. Change-Id: Ib4a473426be296a738e7facbaa091e56f0b7c5b8
* Move the "src" directory as a preparation for Ib4a47342 and I66f6c5b9Ken Wakasa2012-03-3023-1/+1
| | | | Change-Id: I3ab65059f6e356530484bfd0bba26a634a4cba65
* Good bye the proximity logic in Java codesatok2012-03-287-26/+21
| | | | | Bug: 4343280 Change-Id: I82f7d08703647a3492ce6e2d3b741146df58927e
* Change the first character check in bigram dictionary to be case insensitive.Tom Ouyang2012-03-241-1/+2
| | | | | Bug: 6188977 Change-Id: I121c1abf245c7f8734730810c07d3351b1ec581a
* Fix build breakagesatok2012-03-231-1/+1
| | | | Change-Id: Ic4d3cf6932dcd57c1040c7877ab7c7f48cd6c408
* Merge "Fix a bug with negative coordinates, step 3"Jean Chalard2012-03-231-2/+2
|\
| * Fix a bug with negative coordinates, step 3Jean Chalard2012-03-231-2/+2
| | | | | | | | | | | | This implements the actual change, now that indentation is okay Change-Id: Idd897f988394125611516431711c1e575df871df
* | Merge "Fix a bug with negative coordinates, step 2"Jean Chalard2012-03-231-5/+5
|\|
| * Fix a bug with negative coordinates, step 2Jean Chalard2012-03-231-5/+5
| | | | | | | | | | | | Indentation changes only Change-Id: I95011e7d3f787ae6749b826af627f9acaed34e97
* | Merge "Fix a bug with negative coordinates, step 1"Jean Chalard2012-03-231-37/+39
|\|
| * Fix a bug with negative coordinates, step 1Jean Chalard2012-03-231-37/+39
| | | | | | | | | | | | | | This breaks style guidelines but for some reason git diff gets so lost on this re-indent that it's better to do it like this Change-Id: Ie0a603eb0739704894a5adc25f9d527b37bdf151
* | Merge "Cleanup jni 1"satok2012-03-234-28/+21
|\ \ | |/ |/|
| * Cleanup jni 1satok2012-03-234-28/+21
| | | | | | | | Change-Id: Ieb6af8385356e259720b50f1fe46a694a098b30f
* | Merge "Fix a typo"Jean Chalard2012-03-232-4/+4
|\ \
| * | Fix a typoJean Chalard2012-03-232-4/+4
| |/ | | | | | | Change-Id: If794344629e93b558d60b023ae70b703f9c039ab
* / Add processing for French ligatures.Jean Chalard2012-03-232-1/+16
|/ | | | | Bug: 5140033 Change-Id: I1c2751fc617e662aad9f67506e28a622f81d0bc9
* Send correct coordinates for the spell checkerJean Chalard2012-03-231-2/+3
| | | | | | | | This results in the computation being done in native code and the correct proximity being used. Bug: 6181080 Change-Id: I08fa05c781d607e4feca2caeda353ec19c133a3d
* Add a replacement character to digraphs systemJean Chalard2012-03-222-12/+24
| | | | | | | | | The digraphs system used to allow only the replacement of a pair (A, B) by (A). This change allows the replacement to be any character. Bug: 5140033 Change-Id: Icf5995f0ec553f7b7989af9902cbb2c4c6b51009