aboutsummaryrefslogtreecommitdiffstats
path: root/native (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge "Tag the whitelisted entries in native code." into jb-mr1-devJean Chalard2012-08-136-21/+49
|\
| * Tag the whitelisted entries in native code.Jean Chalard2012-08-136-21/+49
| | | | | | | | | | | | | | | | | | | | 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
* | Cleanups in geometry_utils.hKen Wakasa2012-08-131-21/+19
| | | | | | | | Change-Id: Ic051703e5b67adfc62753ebd9ab254296719c6e9
* | Merge "Step 24-A remove setdict" into jb-mr1-devSatoshi Kataoka2012-08-134-20/+0
|\ \
| * | Step 24-A remove setdictSatoshi Kataoka2012-08-134-20/+0
| | | | | | | | | | | | Change-Id: Iab28bf0fd785b9e81fc86837e64a1ef2e315a229
* | | Fix typo in include guard macro, and some cleanups.Ken Wakasa2012-08-131-26/+24
|/ / | | | | | | Change-Id: I455f6a52667b1c6ae5eb9f58b3494dd87eb2c3f5
* / Clean up constructorsKen Wakasa2012-08-1319-151/+106
|/ | | | | | | | | | | 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
* Fix JNIsatok2012-08-111-5/+7
| | | | Change-Id: If134baf52e78fbe18b78611a23870f5d10c80955
* Fix memset() bugsKen Wakasa2012-08-102-6/+6
| | | | Change-Id: Icf4341c0a62e782cf8c2a863408591df4e6f07cb
* Use JNI Region calls also in getSuggestions()Ken Wakasa2012-08-102-42/+65
| | | | Change-Id: I9cc0208397c202aeb6f7b5bb5ad59e00c5afbd80
* Workaround to stop init dict traverse sessionSatoshi Kataoka2012-08-101-1/+4
| | | | Change-Id: I3d46c54a96a9fc0359ef75b9d2f8590b44164a8b
* Fix a bug on jni of DicTraverseSessionSatoshi Kataoka2012-08-101-1/+1
| | | | Change-Id: Ieeac36cbad9a99d15911f2e6e2e841cae38ecb9b
* step 23-A remove unused methodSatoshi Kataoka2012-08-103-15/+0
| | | | Change-Id: I382c654fd30aca1a3277a186ee25fc946449c639
* Merge "Step 22-A implement session" into jb-mr1-devSatoshi Kataoka2012-08-103-0/+183
|\
| * Step 22-A implement sessionSatoshi Kataoka2012-08-103-0/+183
| | | | | | | | Change-Id: Ida63382ffb756e20cc5b17c2702d2895e7e6e889
* | Merge "Pass the type from native code all the way to Java." into jb-mr1-devJean Chalard2012-08-102-15/+20
|\ \ | |/ |/|
| * Pass the type from native code all the way to Java.Jean Chalard2012-08-102-15/+20
| | | | | | | | | | Bug: 6906525 Change-Id: I057390d47a223450e22d8338509e22c28fc0d5f6
* | Add arguments for dic traverse sessionSatoshi Kataoka2012-08-1010-61/+116
|/ | | | Change-Id: I8776ad528eeea9a5fc4dcf394ca13bb80c04fb6d
* Use more JNI Region callsKen Wakasa2012-08-101-35/+36
| | | | Change-Id: I371db517ff4749c0b7e5bdb4362e6310c91a24dc
* Use GetStringUTFRegion for filenameKen Wakasa2012-08-091-6/+7
| | | | Change-Id: I2e9ad092ccf4c23c1c6b71916c962994314d37b6
* Stop using STL string in additional_proximity_charsKen Wakasa2012-08-095-21/+25
| | | | Change-Id: Ic016fd5983b8855b0fd9506a17b205db86af3a2f
* Fix string.compare() logic. It happens to be working luckily.Ken Wakasa2012-08-091-6/+3
| | | | Change-Id: I262c6d5779124e5b09ad1a66ca3c9ddb2fc6d7d5
* Merge "Use GetStringUTFRegion" into jb-mr1-devKen Wakasa2012-08-093-12/+14
|\
| * Use GetStringUTFRegionKen Wakasa2012-08-093-12/+14
| | | | | | | | Change-Id: I56ad66af4ee42ed32a6fd909a9a34d601874783a
* | Add reset method for dic travserse sessionSatoshi Kataoka2012-08-092-3/+18
|/ | | | Change-Id: Ia3dd924f92549da2cf8302ef77c629902d4f275b
* Merge "Pass traverse session" into jb-mr1-devSatoshi Kataoka2012-08-088-34/+38
|\
| * Pass traverse sessionSatoshi Kataoka2012-08-088-34/+38
| | | | | | | | Change-Id: I84bfaaa406e3f51421c08a7ee8f9576ebdba54d4
* | Start using JNI's Get<Type>ArrayRegion()Ken Wakasa2012-08-084-90/+48
| | | | | | | | Change-Id: Iaa1014efe639dd79540835b0d5201093dbd8dab8
* | Merge "Add traverse session" into jb-mr1-devSatoshi Kataoka2012-08-084-0/+102
|\|
| * Add traverse sessionSatoshi Kataoka2012-08-084-0/+102
| | | | | | | | | | | | Bug: 6942265 Change-Id: I384cf701f5ee44c4b1037e5b8ddfa3d570286f55
* | Cleanup headers.Ken Wakasa2012-08-084-12/+9
|/ | | | Change-Id: Ied1bedb8ba5fae590987ea23bed32f4db1a60d77
* Merge "Show results in the native code." into jb-mr1-devKen Wakasa2012-08-052-5/+44
|\
| * Show results in the native code.Satoshi Kataoka2012-08-062-5/+44
| | | | | | | | Change-Id: I712ba49cf4a89a36836fbf49cd72e7eef218e61f
* | Header cleanupKen Wakasa2012-08-033-8/+7
|/ | | | Change-Id: I1aa91708d0de01ca3e84e69ec8d3a3832c386ca8
* Header cleanup. Moved a couple of functions from .h to .cpp.Ken Wakasa2012-08-0212-61/+72
| | | | Change-Id: Ifd12a7632f75395bd0ef5e394d5c2abd6cbe28c6
* Header cleanupKen Wakasa2012-08-014-15/+6
| | | | Change-Id: Idaf19de3dc75367d49bc01e84e5a9f057c1f8dba
* Move flags belonging to BinaryFormat to the right place.Jean Chalard2012-08-015-81/+80
| | | | | | | | | | These masks and flags are constants that are an integral part of the format. They belong in BinaryFormat and have nothing to do in UnigramDictionary. This needs I6751dda4 to not break the build Bug: 6429243 Change-Id: Ic1c842b3245f7fdc25aa8d1459c5bb07b262e265
* Cleanup headersKen Wakasa2012-07-3118-40/+33
| | | | Change-Id: I9124366b2000cad54966fb6936bb4691bbf115a3
* Misc cleanupsKen Wakasa2012-07-3013-30/+17
| | | | Change-Id: I28308f12c3064299acefc346b72279036c3726a7
* Fix native debug logKen Wakasa2012-07-272-12/+10
| | | | Change-Id: If19f808522a5a35fa06c2825fcd0d92e6e4a0631
* Build LatinIME with NDK r8Ken Wakasa2012-07-271-12/+2
| | | | Change-Id: I0e233f9561f4bb4dee2311b98e7b0a1cd9cd5061
* Cosmetic fixes and style fixesKen Wakasa2012-07-2533-401/+365
| | | | Change-Id: I69c42ff945cdf0d5205c6ca61d6861a0479492dc
* Add wrapper for incremental decoder.Tom Ouyang2012-07-193-1/+116
| | | | Change-Id: Ie11e2b83c2602c0d5a2739a7d4f4994f80d7e298
* Add values for suggestion types (A120)Jean Chalard2012-07-123-4/+16
| | | | | | Also, use it in getBigrams. Change-Id: Ia0be9b57d1b7effcd8a936e01e957d1195b39c68
* Pass an array to output suggestion types (A119a)Jean Chalard2012-07-128-18/+22
| | | | | | | | This needs the matching A119b change to not break the build. The array is passed, but not used yet. Bug: 6166228 Change-Id: Ia91d658461d989ee8c94e9b31bb06f4a36f4c5b6
* Resolve a TODO: bury some implementation detail in native (A110)Jean Chalard2012-07-121-0/+1
| | | | | | | 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
* Remove an unused method (A109)Jean Chalard2012-07-121-19/+0
| | | | Change-Id: Ib785b7e8c554d030395e2c0ca92edb44eb2b245f
* Move an implementation detail to native code (A107)Jean Chalard2012-07-121-4/+11
| | | | | | | | Java code does not have to know about this implementation detail: the generic method should do the dispatching, instead of having the caller call either method. Change-Id: Ic13727f0cb18f4ced2c356cce2f8d710588c0421
* Remove a useless parameter (A106)Jean Chalard2012-07-124-9/+7
| | | | Change-Id: Ic0ecea22212fd1a098a3a168da460374e446f4a3
* Remove a constant parameter (A105)Jean Chalard2012-07-122-8/+8
| | | | Change-Id: I8a09fa2f0649880c943364699a07652e47dede22