aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src/correction.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Checking key edit distance of candidate words for gesture scoring.Keisuke Kuroynagi2013-05-071-42/+5
| | | | | bug: 8616704 Change-Id: I98c3248877b1e3e722a6c00a2851e543e5fcbe11
* Enable touch coordinate correction for new algorithmSatoshi Kataoka2013-04-151-1/+1
| | | | | | Bug: 8505668 Change-Id: I07eb785c74c446777524104a3d2b61f0f591a498
* Add flag to turn on new suggest implementation for typingTom Ouyang2013-04-041-5/+15
| | | | | | Bug: 8277656 Change-Id: I974f560050cc5339d110b97620df1c5b496977fe
* Refactor parameters by naming conventionSatoshi Kataoka2013-03-181-1/+1
| | | | Change-Id: I8bda8075b33f656ecbec08320afcd864b620fe77
* Refactor ProximityType and CorrectionTypeSatoshi Kataoka2013-03-071-8/+8
| | | | | Bug: 8277656 Change-Id: Ia7940bbf81fcf4ff5eb7869b105d98aa34155d33
* Cleanup getProximityTypeSatoshi Kataoka2013-03-011-12/+12
| | | | Change-Id: I89c5871bbcf0fe3d5f50052e8f64932d8efbce94
* Small cleanupsKen Wakasa2013-01-301-1/+1
| | | | Change-Id: I3e5862a405b4c63616c7ea947cd53c52b5035862
* Some more misc cleanupsKen Wakasa2013-01-291-3/+3
| | | | Change-Id: I88cb6d38d73a2a68ade2f2190910f4733cd7b668
* refactor distance cacheSatoshi Kataoka2013-01-151-21/+4
| | | | Change-Id: I21b54b356641a63d7be17fd34b9ede7a63ec738a
* Use -fno-inline for debug builds & small cleanupsKen Wakasa2013-01-151-0/+2
| | | | Change-Id: I24f91d7130f2203715b868d4a82510660939886f
* Remove MAX_WORD_LENGTH_INTERNALKen Wakasa2013-01-151-2/+2
| | | | Change-Id: Ie11ff000675601acff5fbb00e9e9f48eb32c5071
* Replace assert() with ASSERT() & use -funwind-tables for debug buildsKen Wakasa2013-01-091-1/+1
| | | | Change-Id: I9ec14eb24ebc45657119a45aba09517e71a22974
* Misc small cleanupsKen Wakasa2013-01-081-15/+10
| | | | Change-Id: Iea61e6c76a9a0437a1b2e8143f6ab5b09a8e211e
* Small cleanupsKen Wakasa2012-12-111-7/+2
| | | | Change-Id: I29b4dee15d66f8f1372035738658234395001d41
* Follow up to Ic6af0c596374d936d2b9b31e626fb62bd265ce64Ken Wakasa2012-11-031-131/+2
| | | | | | Tidy up inline functions with AK_FORCE_INLINE. Moved back some inline methods to header files. Change-Id: Ibd37b595666ebddda198d9237f19f6712653a8e8
* Add more compiler warning flagsKen Wakasa2012-11-021-0/+23
| | | | Change-Id: Ic6af0c596374d936d2b9b31e626fb62bd265ce64
* Use 32-bit code points for suggestions outputKen Wakasa2012-11-011-40/+35
| | | | | | | 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-1/+1
| | | | | | parameter. Change-Id: I3c7e6c59990c92b0d5e2fb80493e8673cdd37b09
* Follow up change for I5f166a738f6e84a1b807beSatoshi Kataoka2012-10-051-4/+4
| | | | | Bug: 7283955 Change-Id: Iec716d75e7c8a727b198688f44ef4a8cd1255ec1
* Fix addtional proximity correctionSatoshi Kataoka2012-10-051-12/+12
| | | | Change-Id: I3125764b98af28ce423dc12cbf0dac321ef22386
* Using isSkippableChar instead of '\'' and '-'.Keisuke Kuroyanagi2012-09-141-1/+1
| | | | Change-Id: I295a72b683b2ebc28a006baa66baf7e1b97100eb
* Add comments for meaningless linesKen Wakasa2012-09-071-1/+1
| | | | Change-Id: I20ebe246f6980fd3054c2c7e98b5150eaabbcc77
* Cosmetic fixes and a bug fix in ↵Ken Wakasa2012-09-041-8/+10
| | | | | | | | 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-3/+0
| | | | Change-Id: Icd60f1ed2ace0b975d8785bc8a386c7944846075
* Step 38-A Cleanup touch pathSatoshi Kataoka2012-08-231-61/+61
| | | | Change-Id: I9bfac98b9ac10f3812290f21673c4002241eae01
* Allow one-character suggestions.Jean Chalard2012-08-171-4/+0
| | | | | Bug: 6906525 Change-Id: I62117653ac1281f825afc4ebb30f7e786902b750
* Cleanup and fix method visibility.Ken Wakasa2012-08-161-1/+1
| | | | Change-Id: Ia9e8c69da21ce22bf674ec6c7b2536008a360ea3
* Merge "Tag the whitelisted entries in native code." into jb-mr1-devJean Chalard2012-08-131-0/+4
|\
| * Tag the whitelisted entries in native code.Jean Chalard2012-08-131-0/+4
| | | | | | | | | | | | | | | | | | | | Since this is already used in Java land, this actually does activate the whitelist path, and the code is now fully functional. We still have to remove the old whitelist resource and to compile the dictionary that includes the whitelist. Bug: 6906525 Change-Id: Iacde5313e303b9ed792940efaf6bcfa4ee1317bd
* | Clean up constructorsKen Wakasa2012-08-131-4/+4
|/ | | | | | | | | | | 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
* Use JNI Region calls also in getSuggestions()Ken Wakasa2012-08-101-2/+0
| | | | Change-Id: I9cc0208397c202aeb6f7b5bb5ad59e00c5afbd80
* Header cleanup. Moved a couple of functions from .h to .cpp.Ken Wakasa2012-08-021-10/+10
| | | | Change-Id: Ifd12a7632f75395bd0ef5e394d5c2abd6cbe28c6
* Header cleanupKen Wakasa2012-08-011-1/+2
| | | | Change-Id: Idaf19de3dc75367d49bc01e84e5a9f057c1f8dba
* Cleanup headersKen Wakasa2012-07-311-5/+4
| | | | Change-Id: I9124366b2000cad54966fb6936bb4691bbf115a3
* Cosmetic fixes and style fixesKen Wakasa2012-07-251-11/+11
| | | | Change-Id: I69c42ff945cdf0d5205c6ca61d6861a0479492dc
* Move correction state to stack memorysatok2012-06-141-5/+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
* Fix debug buildsatok2012-06-131-1/+1
| | | | Change-Id: I48a87967ac741455502ac1a18465ae6ed7ef0d12
* refactor native step 2Satoshi Kataoka2012-06-081-26/+27
| | | | | | - proximity_info is now stateless Change-Id: I62725bfe05b161fa8fc050ea6b50867e10a354e2
* Separate state from proximity_info step1Satoshi Kataoka2012-06-071-19/+18
| | | | | | Bug: 6548943 Change-Id: I7b4fbe20615a28151a74875be43b9f4a20e0dce9
* am 6cbe204f: Fix the performance issue on suggesting ↵Satoshi Kataoka2012-05-301-0/+4
|\ | | | | | | | | | | | | aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa * commit '6cbe204fce109fab652da15f4c8ea1ae35fca3e7': Fix the performance issue on suggesting aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
| * Fix the performance issue on suggesting aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaSatoshi Kataoka2012-05-301-0/+4
| | | | | | | | | | | | Bug: 6576793 Change-Id: I46f56654cd25dc28668ad75ac71e0e3beb8cdcf3
* | am a0ac31fc: Fix the issue on multiple words suggestionsatok2012-05-231-1/+1
|\| | | | | | | | | * commit 'a0ac31fcaa01c21592a6e7af243c14dada65cf3e': Fix the issue on multiple words suggestion
| * Fix the issue on multiple words suggestionsatok2012-05-231-1/+1
| | | | | | | | | | Bug: 6509844 Change-Id: I823074a2b29befc3e60c63699ab4dc7719105c63
* | Fix buildJean-Baptiste Queru2012-05-161-0/+1
|/ | | | Change-Id: I799811aa3afb59bba2e4086a063f5da03669bba3
* Use "float" instead of "double"satok2012-05-161-5/+5
| | | | Change-Id: I93ed4d88ede4058f081dd8d634b00dfff4e96d07
* Fix a bug of handling single quote in the correction algorithmsatok2012-05-151-3/+5
| | | | | Bug: 6096247 Change-Id: I5490bbdee4ce1e3e0729ec1510a2baab85eeaf05
* Add methods to inverse compute the probability.Jean Chalard2012-04-241-13/+13
| | | | | | | | | 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
* Move the "src" directory as a preparation for Ib4a47342 and I66f6c5b9Ken Wakasa2012-03-301-0/+1143
Change-Id: I3ab65059f6e356530484bfd0bba26a634a4cba65