aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/com_android_inputmethod_keyboard_ProximityInfo.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* [ML13] Fix the locale passing in ProximityInfoJean Chalard2014-10-031-3/+3
| | | | | | | | | | | | | | | | | | | The locale is used to determine additional proximity characters. This is dependent on the dictionary language, but was passed as a function of the layout, which is wrong and would have given bad suggestions in multi-lingual mode. Ideally, additional proximity characters should be inserted in the dictionary header, but for now it's a rather simple change to get it from the dictionary's locale instead of the proximity info locale. Also, that allows us to remove completely the locale parameter from proximity info, which is a much needed change. This change has zero effect on unit tests and on regression tests. Bug: 11230254 Change-Id: If95157155db7dccd1f00b8ba55ccb3600283f9e4
* Cleanups in JNI related codeKen Wakasa2013-06-041-7/+11
| | | | | | | | | | Removed the malloc version in binary dictionary support -- this has not really been tested well so far, and the mmap version has been working pretty well after all. Several cosmetic fixes etc. Change-Id: Iad0da58b300b769fb5946a3e73fc96f56215980e
* Create a new directory for layout-related implementationsKen Wakasa2013-05-301-1/+2
| | | | Change-Id: Ia227bb296f20dab0dfc03dfcde3a06c624eca76c
* Typing double letters via a 'circle' on the key.Keisuke Kuroynagi2013-04-101-4/+4
| | | | | Bug: 8550980 Change-Id: I5e432dea0e025ccea196f80e90a6bf945488e130
* Add const_cast to live with host's jni.hTadashi G. Takaoka2013-03-261-3/+6
| | | | | Bug: 7970626 Change-Id: I2fd09e16dd9df36eebca2d737a0b7cc3ddd1c862
* Remove MAX_PROXIMITY_CHARS_SIZE_INTERNALKen Wakasa2013-01-221-6/+6
| | | | Change-Id: I18a997503de4033b5341b564145bca862a872098
* Remove MAX_WORD_LENGTH_INTERNALKen Wakasa2013-01-151-7/+7
| | | | Change-Id: Ie11ff000675601acff5fbb00e9e9f48eb32c5071
* Yet another small cleanupsKen Wakasa2013-01-081-2/+2
| | | | Change-Id: Ie940c4d4d9d85c95e2f04ba23f00a54ba3dc53bf
* Make use of the NELEMS and KEYCODE_SPACE macro. Also, remove an unused ↵Ken Wakasa2012-10-091-3/+3
| | | | | | parameter. Change-Id: I3c7e6c59990c92b0d5e2fb80493e8673cdd37b09
* A couple of cleanups. Remove unnecessary casts.Ken Wakasa2012-08-141-1/+1
| | | | Change-Id: Ice530aa83a9a688da35aec408be2a60242699157
* 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
* Use GetStringUTFRegionKen Wakasa2012-08-091-4/+1
| | | | Change-Id: I56ad66af4ee42ed32a6fd909a9a34d601874783a
* Start using JNI's Get<Type>ArrayRegion()Ken Wakasa2012-08-081-32/+10
| | | | Change-Id: Iaa1014efe639dd79540835b0d5201093dbd8dab8
* Cleanup headers.Ken Wakasa2012-08-081-7/+4
| | | | Change-Id: Ied1bedb8ba5fae590987ea23bed32f4db1a60d77
* Header cleanupKen Wakasa2012-08-031-4/+5
| | | | Change-Id: I1aa91708d0de01ca3e84e69ec8d3a3832c386ca8
* Header cleanupKen Wakasa2012-08-011-5/+0
| | | | Change-Id: Idaf19de3dc75367d49bc01e84e5a9f057c1f8dba
* Cleanup headersKen Wakasa2012-07-311-4/+4
| | | | Change-Id: I9124366b2000cad54966fb6936bb4691bbf115a3
* Misc cleanupsKen Wakasa2012-07-301-2/+1
| | | | Change-Id: I28308f12c3064299acefc346b72279036c3726a7
* Cosmetic fixes and style fixesKen Wakasa2012-07-251-16/+15
| | | | Change-Id: I69c42ff945cdf0d5205c6ca61d6861a0479492dc
* Fix additional proximity in the native codesatok2012-03-141-1/+1
| | | | | Bug: 4343280 Change-Id: I4164bb916b2dbdfb6bdc151b99d46a6171d9c355
* Use additional proximity chars in the native codesatok2012-03-131-1/+2
| | | | | | Bug: 4343280 Change-Id: Ida690fe246cea80a82fcdb3ad0c28e2907b882ac
* Implement additional proximity characters in the native codesatok2012-03-131-6/+10
| | | | | | Bug: 4343280 Change-Id: I9bbc5cab2fef1ee80c1fe32017df811ef8af10bc
* Add functions to calculate proximity characters in the native codesatok2012-03-081-3/+4
| | | | | | Bug: 4343280 Change-Id: I17f8f6295b01900948b98680d0267753f33a46cf
* Fix JNI as 64bit readyTadashi G. Takaoka2011-10-311-5/+5
| | | | Change-Id: I7a3ed2cee3b20744869aa5cf89ff9fd95f5ab8fe
* Remove NULL from native/jniTadashi G. Takaoka2011-10-281-1/+1
| | | | Change-Id: I7c4e32d0d69876c7ea85d6997c9a40fa362152eb
* Pass the touch position correction data to native.Yusuke Nojima2011-09-291-3/+13
| | | | Change-Id: I92958779377a530410d1682100f9d0a2ba267dea
* Extend JNI interface to pass the theme id of the keybaord to the native.Yusuke Nojima2011-09-281-3/+4
| | | | Change-Id: I705ec2fa1d32a673a8d84bc9afc2a46208a414a1
* Add explicit NULL check to latinime_Keyboard_setProximityInfo() and ↵Yusuke Nojima2011-09-271-15/+15
| | | | | | | ProximityInfo::ProximityInfo(). Bug: 5375319 Change-Id: If3016ab56b6c62c8855b394f23e09e127a279be7
* Extend JNI interface to pass the key coordinate informationYusuke Nojima2011-09-221-3/+17
| | | | Change-Id: Iec0d1415d6abba43b775a014516b961b167597b7
* Clean up in LatinIME native codeKen Wakasa2011-06-181-34/+2
| | | | Change-Id: I0062200a0181a491690115ac0fab8d11358e2f14
* Add proximity info to nativesatok2011-02-231-0/+90
Bug: 3311719 Change-Id: Ie596304070e321ad23fb67a13bf05e2b6af1b54b