aboutsummaryrefslogtreecommitdiffstats
path: root/java/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-08-20Revert "ResearchLogging capture full n-gram data"Kurt Partridge9-617/+481
This reverts commit 221e756fd7d585f0eb75377b851f23cad24ccd7f Change-Id: Iefc4e4e27ddc925d4a4634627b0467bd4ee2a66e
2012-08-20Revert "ResearchLogging log when preferences change"Kurt Partridge1-13/+0
This reverts commit c58f5d904bceab9b33840a7de4e3de4323b2126b Change-Id: Ifab54ecc8b7898fe0af6446d397efd6cdb28f670
2012-08-20Revert "ResearchLogging upload via service"Kurt Partridge5-268/+246
This reverts commit baf1f0bd616ca1fc3b53ad832012f498b3601afb Change-Id: I7d959b9b626c8fb69a57788e243752952258fa80
2012-08-20Cleaup gesture preview drawing code a bitTadashi G. Takaoka1-19/+22
Change-Id: Ie75d497ba88805d945d6039ecad09ed0e8e5e4d3
2012-08-20Make some usages of SparseArray thread-safeTadashi G. Takaoka1-11/+16
This is a follow up of I39d9bf1a7c272eb16d6ed4698f52457579b40f10. Change-Id: Ic3288e491175f9a85679a21064093f9db5a65466
2012-08-20Remove the whitelist resourcesJean Chalard2-440/+0
Bug: 6906525 Change-Id: I1524b9e4c56d28a701d444aa2afbfdcecf0da571
2012-08-20Hack to skip reading an outdated binary file.Jean Chalard2-9/+63
Bug: 7005813 Change-Id: Ie0d8d4b2d5eb147838ca23bdd5ec1cecd4f01151
2012-08-20Fix capitalization, part 1Jean Chalard1-0/+1
The case this fixes is typing "Ah.\n" in gmail for example Bug: 6950087 Change-Id: Ia4bf3a57dde49b9c9d47d315e9f85b7ffc7ee6e3
2012-08-20Add standard view constructors of PrevewPlacerViewTadashi G. Takaoka2-11/+21
Change-Id: I00d7ae4d2330804c342a5e51cf8c0df6ed8a85d6
2012-08-19Cosmetic fixesKen Wakasa1-17/+28
Change-Id: I5460252af534d4455ba22273a06ac956bc904831
2012-08-17ResearchLogging log when preferences changeKurt Partridge1-0/+13
DO NOT MERGE Bug: 6188932 Change-Id: Ia7ee65e7f3be10d031a065aaa6c3d18610c7dff0
2012-08-17ResearchLogging upload via serviceKurt Partridge5-246/+268
DO NOT MERGE Upload using an intent service rather than just a thread. More robust in case the keyboard is closed and the upload hasn't finished yet. multi-project commit with I40db74fb780e01364609339764e150f0291d3f9b Bug: 6188932 Change-Id: Ie980d38a713d15c01083d41bd73f0602ec75dd16
2012-08-17ResearchLogging capture full n-gram dataKurt Partridge10-482/+619
DO NOT MERGE - Captures complete motion data for all words in an n-gram. - Also filters n-grams properly; if any word in the n-gram is not in the dictionary, it is not included. - Simplify ResearchLog to not require explicit state - Added LogBuffer class MainLogBuffer class to allow n-gram-level decisions about privacy. - Moved LogUnit out from ResearchLogger multi-project change with Ie2bc79fd7fe6b951b24771e94b8d4ca21989af65 Bug: 6188932 Change-Id: I568c90d4af07e7c759c1e7fc64b716bd8c7b4ae5
2012-08-17ResearchLogger to track simple statisticsKurt Partridge2-1/+202
DO NOT MERGE Bug: 6188932 Change-Id: I4667f8f60aa356c73f925c298318520f71e144c5
2012-08-17ResearchLogger log RichInputConnectionKurt Partridge3-184/+189
Move many ResearchLogger data collection points to RichInputConnection. By collecting data here, developers do not have to remember to keep the ResearchLog consistent with calls to the RichInputConnection. In addition, some unnecessary log points were removed, and the ResearchLogger is now independent of LatinImeLogger. multi-project change with Ib71f841044ec1072610ab5638a5edfce29b7c05b DO NOT MERGE Bug: 6188932 Change-Id: I9ec7500a5b18bfe1a5a5bb1e5bf21c43351fc59e
2012-08-18Fix NPE in LatinIME.addToUserHistoryDictionary()Ken Wakasa1-0/+1
bug: 7007063 Change-Id: Ie3e2f77dcbc597dda0c0df9a970336e5aac0edba
2012-08-17(DO NOT MERGE) Remove useless module tags from makefilesKen Wakasa2-2/+0
Change-Id: If77482da66e80b762cf205369f7d53d069cd8072
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-17Remove the whitelist dictionary.Jean Chalard5-155/+4
The functionality now lives in the binary dictionary. This finalizes work on Bug: 6906525 Change-Id: Id106d871e8afdf9afa886d2a30bea87ff89f2d24
2012-08-17Small cleanupsKen Wakasa4-16/+17
Change-Id: Ib66507b8934bc8019a762d24d5311411e044ec84
2012-08-17Remove access to the whitelist class.Jean Chalard1-9/+0
...which becomes useless. It will be entirely removed in an upcoming change. Change-Id: I2f1d27f1eceda79454b01f21e057b98f2953131a
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