aboutsummaryrefslogtreecommitdiffstats
path: root/java/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-08-17add reconstructBigramFrequencyYuichiro Hanada2-8/+25
Change-Id: Iff20dcb9ca0d6064bb118247887fe24b812c0c61
2012-08-17Reword a confusing commentJean Chalard1-4/+4
Bug: 7005645 Change-Id: Ifd942b3ce242aeeec512e132e1cee31329e994b1
2012-08-17Small cleanupsKen Wakasa4-16/+17
Change-Id: Ib66507b8934bc8019a762d24d5311411e044ec84
2012-08-17Allow one-character suggestions.Jean Chalard4-42/+35
Bug: 6906525 Change-Id: I62117653ac1281f825afc4ebb30f7e786902b750
2012-08-17fix findWordInTree.Yuichiro Hanada2-0/+7
Change-Id: I8f42df28f76188677db9d4e55885e1fc6a40b53f
2012-08-17Fix a debug methodJean Chalard2-3/+3
Change-Id: Icf78fb0d5f7caea78f053fffd1ecd4289629964a
2012-08-16Import translations. DO NOT MERGEBaligh Uddin3-0/+789
Change-Id: I5d02e55780596d25356a602027f3c41913057810 Auto-generated-cl: translation import
2012-08-16fix findWordInTree.Yuichiro Hanada2-1/+52
Change-Id: I9d81c815494a0670afa81219ad7bad82274d997e
2012-08-16Cleanup and fix method visibility.Ken Wakasa4-95/+92
Change-Id: Ia9e8c69da21ce22bf674ec6c7b2536008a360ea3
2012-08-15Refresh editor info when the text field attributes changes.Jean Chalard3-5/+17
For some reason we get a "restarting" flag from the browser some times when the input field is different. The attributes however are not the same, so we can detect that and reload appropriately. Bug: 6946793 Change-Id: I6762dae6f41db690497b026a707d9cc89c840b34
2012-08-15Ensure #offer always actually offers something.Jean Chalard2-3/+29
This will allow remaining requests after a call to terminate correctly. Bug: 6963142 Change-Id: Iff67058bb8a39f2f1b468d3894861e8125de6659
2012-08-15Step 30-A Constize gestureSatoshi Kataoka7-11/+14
Change-Id: I6c0b89d96532dc1c8ca71bb730ba22de5592ec67
2012-08-15Step 28-A Introduce the session Id to getSuggestionSatoshi Kataoka4-10/+56
Change-Id: I39d9bf1a7c272eb16d6ed4698f52457579b40f10
2012-08-14Fix the build.alanv1-1/+1
Change-Id: I744f6232e81981ab694d3d1e92bab5fd6efa46c0
2012-08-14Retire LOCAL_NDK_VERSION.Ying Wang1-2/+0
Bug: 6932421 Change-Id: I6cb8cdb3869c9c1c3d908f9c182e6f634ae76322
2012-08-14Cleanup casts.Ken Wakasa6-22/+19
Change-Id: I3bf33ca407cc3bee9f5c4c6f929cdb1421b92c50
2012-08-14A couple of cleanups. Remove unnecessary casts.Ken Wakasa6-29/+28
Change-Id: Ice530aa83a9a688da35aec408be2a60242699157
2012-08-14Preemptive anti-deadlock deviceJean Chalard2-7/+27
We don't know of any actual bug in the implementation of the pool that may result in a deadlock, but this still implements a means out of a deadlock if one ever arises anyway. It's meant to improve the resilience of the spell checker. Bug: 5441027 Change-Id: I689491090792dbb89110ee56631965c5bb2dc712
2012-08-14Fix a bug that would prevent spell checkingJean Chalard1-0/+1
java.lang.ArrayIndexOutOfBoundsException: [I offset=0 length=528 src.length=512 com.android.inputmethod.keyboard.ProximityInfo .setProximityInfoNative(Native Method) com.android.inputmethod.keyboard.ProximityInfo .createSpellCheckerProximityInfo(ProximityInfo.java:85) com.android.inputmethod.latin.spellcheck.AndroidSpellCheckerService .createDictAndProximity(AndroidSpellCheckerService.java:411) The array was too small with respect with the passed size. Change-Id: I7777d7aecd17375d3fbf82854a66eb7a5a289ce6
2012-08-13Import translations. DO NOT MERGEBaligh Uddin1-1/+1
Change-Id: I36bb28cfdf548a38bfdd3127ddafa6c7d938376e Auto-generated-cl: translation import
2012-08-14Step 26-A Cleanup geometory_utilsSatoshi Kataoka3-26/+18
Change-Id: I839c498c85009a5d6428a71f121a2906fd667db8
2012-08-13Eliminate redundant time parameter from gesture detection codeTadashi G. Takaoka2-7/+8
This change also uses the key width to determine the sampling rate of the gesture points (instead of the key height). Change-Id: I987487825693b4883d8359eb5b31f1d668cd5ef4
2012-08-13Cleanups in geometry_utils.hKen Wakasa2-29/+28
Change-Id: Ic051703e5b67adfc62753ebd9ab254296719c6e9
2012-08-13Tag the whitelisted entries in native code.Jean Chalard6-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
2012-08-13Remove useless backslashes from the whitelist dictionaryJean Chalard1-41/+41
For some reason, these are necessary for resources, but XML standard does not require them. Change-Id: I7cdaecb6815aa4020e0d453e33be38ff2968df50
2012-08-13Step 24-A remove setdictSatoshi Kataoka4-20/+0
Change-Id: Iab28bf0fd785b9e81fc86837e64a1ef2e315a229
2012-08-13Remove unnecessary drawing pointTadashi G. Takaoka2-7/+4
Change-Id: Ib9cba3484a72306320eb9c1744d940da1a0998c7
2012-08-13Remove gesture detection hacking codeTadashi G. Takaoka2-22/+4
Change-Id: Idaec3753592ca0a5c5545eb5ab65254a3e32e662
2012-08-13Fix typo in include guard macro, and some cleanups.Ken Wakasa1-26/+24
Change-Id: I455f6a52667b1c6ae5eb9f58b3494dd87eb2c3f5
2012-08-13Clean up constructorsKen Wakasa23-190/+114
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
2012-08-11Fix JNIsatok4-9/+16
Change-Id: If134baf52e78fbe18b78611a23870f5d10c80955
2012-08-10Change accessibility event type for app-driven speech.alanv3-10/+29
Bug: 6614400 Change-Id: I0ef309b7f3f35bf37b4664ea599c9e6ffb1a4ab8
2012-08-10Import translations. DO NOT MERGEBaligh Uddin1-2/+2
Change-Id: I22eacc83a5aaa0f4e50e02e84ebf2b176dd08fe6 Auto-generated-cl: translation import
2012-08-10Fix memset() bugsKen Wakasa2-6/+6
Change-Id: Icf4341c0a62e782cf8c2a863408591df4e6f07cb
2012-08-10Use JNI Region calls also in getSuggestions()Ken Wakasa3-52/+73
Change-Id: I9cc0208397c202aeb6f7b5bb5ad59e00c5afbd80
2012-08-10Workaround to stop init dict traverse sessionSatoshi Kataoka2-5/+8
Change-Id: I3d46c54a96a9fc0359ef75b9d2f8590b44164a8b
2012-08-10Fix a bug on jni of DicTraverseSessionSatoshi Kataoka1-1/+1
Change-Id: Ieeac36cbad9a99d15911f2e6e2e841cae38ecb9b
2012-08-10step 23-A remove unused methodSatoshi Kataoka3-15/+0
Change-Id: I382c654fd30aca1a3277a186ee25fc946449c639
2012-08-10Accept whitelisted entries from any source.Jean Chalard1-3/+12
...not only the WhitelistDictionary. Bug: 6906525 Change-Id: I7f181eb6936ec17bbccdc4e736fd09292af24e9c
2012-08-10Optimization & SimplificationJean Chalard2-17/+12
It's useless to do the whitelist lookup twice. Also, putting this test out of this method will allow whitelist entries to come from other sources. Bug: 6906525 Change-Id: I4afe678cae6556d16642d155ce770fbf4e61ad49
2012-08-10Step 22-A implement sessionSatoshi Kataoka3-0/+183
Change-Id: Ida63382ffb756e20cc5b17c2702d2895e7e6e889
2012-08-10Pass the type from native code all the way to Java.Jean Chalard3-17/+23
Bug: 6906525 Change-Id: I057390d47a223450e22d8338509e22c28fc0d5f6
2012-08-10Reinstate putting shortcut-only entries in the dictionaryJean Chalard1-0/+4
Not sure at which point this functionality got lost, but anyway, it's back Bug: 6906525 Change-Id: Ie87baa0dacdcee90e029917ca866099593d5d048