aboutsummaryrefslogtreecommitdiffstats
path: root/java/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-11-04Fix MainKeyboardView visibility must be aligned with main keyboard frameTadashi G. Takaoka2-4/+12
Bug: 18105755 Change-Id: Ifdcaded538d0eac3b100486ddf27ae4314293792
2014-11-04Fix a wrong indentKen Wakasa1-1/+1
Change-Id: Iaee83be85bb52c350dd08e4497732927b92eabcd
2014-11-03Import translations. DO NOT MERGEGeoff Mendal51-102/+51
Change-Id: I3e67ed5ff3bbdbc372dfd1b3b408ac2c095fe6d6 Auto-generated-cl: translation import
2014-11-03Import translations. DO NOT MERGEGeoff Mendal15-15/+15
Change-Id: I4a4f46a2e3aa848ba9ac47300815f6ccf8af808b Auto-generated-cl: translation import
2014-11-02Small comment fixesKen Wakasa1-3/+3
Change-Id: Iecb432c414eadf13ee6a57fb21fc02d1c27e777f
2014-11-02Add debug loggingTadashi G. Takaoka2-76/+121
Change-Id: I38bf53a0b5ea5064462b8eb5d99b7247ff8bddc4
2014-11-02Add null analysis annotations to latinime-commonTadashi G. Takaoka5-19/+50
Change-Id: I06eedd9ab85e5a8890e6809bbf9e88e5b8c14e38
2014-11-01Fix: BoS prediction after inputting just once.Keisuke Kuroyanagi1-2/+10
Change-Id: Ib69569ab6b6edfcc8c1d2c621b95de4127789ab6
2014-10-31Initial commit for native dicttoolkit.Keisuke Kuroyanagi9-0/+285
Bug: 10059681 Change-Id: Ib730af8ebc944e08aaada869c0626724a499747c
2014-10-31Remove some dicttool dependenciesJean Chalard2-56/+0
Bug: 18108776 Change-Id: Ic81c5df2a685160c249021ff4cfe41553dbdeebe
2014-10-31Update v4 format version from 402 to 403.Keisuke Kuroyanagi11-112/+73
Without personalization: Total words: 1134774, Success Num: 899230, Success Percentage: 79.243% Bad Failures, with auto-correction (typed word == expected word, output word != expected word): 1871, Bad Failure Percentage: 0.165% Failures, with auto-correction (F-C): 29084, F-C Percentage: 2.563% Max Keystrokes: 6072959, Min Keystrokes: 4436090, Keystroke Saving Percentage:26.953% Before: Total words: 1134646, Success Num: 925194, Success Percentage: 81.540% Bad Failures, with auto-correction (typed word == expected word, output word != expected word): 1316, Bad Failure Percentage: 0.116% Failures, with auto-correction (F-C): 28288, F-C Percentage: 2.493% Max Keystrokes: 6072831, Min Keystrokes: 3946188, Keystroke Saving Percentage:35.019% After Total words: 1134659, Success Num: 944746, Success Percentage: 83.263% Bad Failures, with auto-correction (typed word == expected word, output word != expected word): 1258, Bad Failure Percentage: 0.111% Failures, with auto-correction (F-C): 28016, F-C Percentage: 2.469% Max Keystrokes: 6072844, Min Keystrokes: 3387333, Keystroke Saving Percentage:44.222% Change-Id: I3af42ec37a11847c0429c28616e726f6a339247f
2014-10-31Add hacks for better handling count value during migration.Keisuke Kuroyanagi2-1/+4
Bug: 14425059 Change-Id: Ib050574aa7c4babd4285322a11c3af9be9fbab1e
2014-10-31Change v403 historical info format.Keisuke Kuroyanagi6-11/+9
count -> 2B, level -> 0B. Change-Id: I3b241126f56eb33cdf09cb1ebfed04f534e4ec48
2014-10-31Add helper methods to convert flags to readable textTadashi G. Takaoka2-0/+39
Change-Id: I23608927cef8a897ff4ad8c938560cc78093ddac
2014-10-31Further fixes to treat 0-frequency wordsAdrian Velicu7-12/+47
Previously, when both legitimate 0-frequency words (such as distracters) and offensive words were encoded in the same way, distracters would never show up when the user blocked offensive words (the default setting, as well as the setting for regression tests). When b/11031090 was fixed and a separate encoding was used for offensive words, 0-frequency words would no longer be blocked when they were an "exact match" (where case mismatches and accent mismatches would be considered an "exact match"). The exact match boosting functionality meant that, for example, when the user typed "mt" they would be suggested the word "Mt", although they most probably meant to type "my". For this reason, we introduced this change, which does the following: * Defines the "perfect match" as a really exact match, with no room for case or accent mismatches * When the target word has probability zero (as "Mt" does, because it is a distracter), ONLY boost its score if it is a perfect match. By doing this, when the user types "mt", the word "Mt" will NOT be boosted, and they will get "my". However, if the user makes an explicit effort to type "Mt", we do boost the word "Mt" so that the user's input is not autocorrected to "My". Bug: 11031090 Change-Id: I92ee1b4e742645d52e2f7f8c4390920481e8fff0
2014-10-31Block offensive words in multi-word suggestionsAdrian Velicu3-13/+65
If the user has chosen to block offensive words and types "aaaxbb", where "aaa" is an offensive word and "bb" is not, we should not suggest "aaa bb". Bug: 11031090 Change-Id: Ie23b8dd5d347bc26b1c046c3f5e8dfbc259bf528
2014-10-31Add documentation for CollectionUtils#arrayAsListDavid Faden2-2/+44
(This is a cherrypick of http://ag/576739) Also, modify the IllegalArgumentException to capture the values passed for start, end, and array.length to make debugging easier in the unlikely event that it is thrown. Add corresponding tests for the exceptions. Tested: tapas LatinImeGoogle LatinImeGoogleTests userdebug make -j30 && \ adb install -r \ out/target/product/generic/data/app/LatinImeGoogleTests/LatinImeGoogleTests.apk && \ adb install -r \ out/target/product/generic/system/app/LatinImeGoogle/LatinImeGoogle.apk && \ adb shell am instrument -w -e class \ com.android.inputmethod.latin.utils.CollectionUtilsTests \ com.google.android.inputmethod.latin.tests/android.support.test.runner.AndroidJUnitRunner Change-Id: I0c579ca4f4f2a9b2575aa6f8fa75e3ee4a21cf8a
2014-10-31Update unit tests for new static dict version.Adrian Velicu4-29/+36
Bug: 11031090 Change-Id: Ifd7b241f1a0a30678ca7de97cc6e96927a9b5c8f
2014-10-31Update dictionaries (possibly_offensive flag)Adrian Velicu21-0/+0
Correctly encoding possibly offensive words with their correct frequency and the possibly_offensive flag set. Continuing to encode with zero frequency only distracters or words that should never come up. https://paste.googleplex.com/5167060875214848 Bug: 11031090 Change-Id: Ia394b1827f292ff8d4791cc2f3e6e50b5aff4cbe
2014-10-31Using "blacklist" flag as "possibly offensive"Adrian Velicu14-53/+72
Bug: 11031090 Change-Id: I5cc0d006ab003656498eb82b0875eb9c051d331e
2014-10-31Fix: native unit test build.Keisuke Kuroyanagi1-2/+2
Change-Id: Id2bd4b60d6a4023815a630ebb3059a435b72c193
2014-10-30Import translations. DO NOT MERGEBaligh Uddin14-612/+312
Change-Id: I7e725d123380b47feb9f3442cf5ac4299997d1a9 Auto-generated-cl: translation import
2014-10-30Import translations. DO NOT MERGEBaligh Uddin73-3760/+1519
Change-Id: I7db7b88569ffbe44449f97950cb337ea2f3b1761 Auto-generated-cl: translation import
2014-10-30Import translations. DO NOT MERGEBaligh Uddin4-0/+108
Change-Id: I58e9e2b6fbeea9369903208642f548dcd60db631 Auto-generated-cl: translation import
2014-10-30Import translations. DO NOT MERGEBaligh Uddin10-76/+41
Change-Id: I2c081d71d715a47d2baabd8069d6cdf28ca03cdc Auto-generated-cl: translation import
2014-10-30Import translations. DO NOT MERGEBaligh Uddin6-1/+121
Change-Id: I6427702f2022b2423ef102b00edff0a7ffe5122a Auto-generated-cl: translation import
2014-10-30Import translations. DO NOT MERGEBaligh Uddin58-8/+47666
Change-Id: I5a18946cc2b568f649028a1bc50a4f78e6aad0af Auto-generated-cl: translation import
2014-10-30Import translations. DO NOT MERGEBaligh Uddin2-2/+2
Change-Id: I19b5c3a4956bbf3e22566cce7f74791a98869727 Auto-generated-cl: translation import
2014-10-30Enable count based dynamic ngram language model for v403.Keisuke Kuroyanagi7-128/+168
Bug: 14425059 Change-Id: Icc15e14cfd77d37cd75f75318fd0fa36f9ca7a5b
2014-10-30Add DynamicLanguageModelProbabilityUtils.Keisuke Kuroyanagi3-0/+152
Bug: 14425059 Change-Id: Ia58ab3f0ead02798046d182a9464dcbd95f086bc
2014-10-30Make DrawingProxy and TimerProxy as a top-level interfaceTadashi G. Takaoka5-76/+221
Change-Id: Ia425f341255595f8f80c13b2aa409249f9ce4202
2014-10-30Consolidate TimerHandler.Callbacks with PointerTracker.DrawingProxyTadashi G. Takaoka4-52/+57
Change-Id: I654f7483d1c013ac2685a45af4eb2af15fa219ad
2014-10-30Add method to encode probability.Keisuke Kuroyanagi4-0/+73
Bug: 14425059 Change-Id: I3e5d359ba5fa38f1669f0e98dfae792ff53efbf8
2014-10-30Add a preference to resize the keyboard height.Andy Wang9-1/+91
The keyboard height is controlled by a slider in the debug preferences. Without access to debug preferences, this change is a no-op. Bug: 6867494 Change-Id: I984064ed1cab752876615f5ed582818474d6041b
2014-10-30Fix dismiss key preview bug introduced by I658a5b16ccTadashi G. Takaoka1-2/+2
Change-Id: I5248374dfe0504f6e64cc5d994e275d80364ec9d
2014-10-30Consolidate similar methodsTadashi G. Takaoka5-37/+50
This CL consolidates similar methods in MainKeyboardView. - startWhileTypingFadeinAnimation and startWhileTypingFadeoutAnimation - showSlidingKeyInputPreview and dismissSlidingKeyInputPreview Change-Id: I607ab74683820de2456af3e75663cf8cf358ab38
2014-10-29Import translations. DO NOT MERGEGeoff Mendal73-2/+127
Change-Id: I3643a631ae94f295bdcd4cf4427fd4bcfef00a17 Auto-generated-cl: translation import
2014-10-30Fix: TRT and ime-simulator bulid.Keisuke Kuroyanagi1-0/+2
Change-Id: I1697a907562d1ed6aff2b001763d1594263ba0d3
2014-10-29Add a class to have global counters for LanguageModelDictContent.Keisuke Kuroyanagi8-7/+209
Bug: 14425059 Change-Id: I08ec19903432356b6028853fd73b4eefce20218e
2014-10-29Remove DrawingHandlerTadashi G. Takaoka6-111/+76
Change-Id: I658a5b16cca1e56f0b944009b8aef09e0a97a0db
2014-10-29Remove DrawingHandler.Callbacks.dismissAllKeyPreviews()Tadashi G. Takaoka4-32/+8
Change-Id: I2b11ca0dec0f3522648557a9a909f305cc4170fb
2014-10-29Remove Dict dependency on WordComposer and ProximityInfoJean Chalard12-80/+114
Bug: 18108776 Change-Id: I9b399a44241e05a7add9bb8094263aa76de37880
2014-10-29Move InputPointers and ResizableIntArray to commonJean Chalard19-53/+22
Bug: 18108776 Change-Id: Ie5c0430aa41a8d6c58bf510a10173223d7dfe9fe
2014-10-29Fix test breakageTadashi G. Takaoka3-78/+154
This CL also adds null analysis annotations to StringUtils. Change-Id: I751932c1ed2579bc10f4584651b997356f180899
2014-10-28Move StringUtils under common.Jean Chalard37-32/+38
Bug: 18108776 Change-Id: Ia46a4102a0e86e71118ca5e641f9f531998e166b
2014-10-28Fix tests buildJean Chalard1-18/+20
Change-Id: I873ab97e2c4b30caa9227d26d7880d5ed6d134b0
2014-10-28Reduce StringUtils dependency on the Android libsJean Chalard3-68/+125
Bug: 18108776 Change-Id: I43feb25d79f89276d44462ba71788a14c4583277
2014-10-28Fix unit test failuresKen Wakasa1-0/+4
Change-Id: I1d66a0124961d524f83f7895a2c09e0ee2c1aab4
2014-10-28Fix Serbian Latin subtype handlingTadashi G. Takaoka6-103/+316
This CL also adds unit tests for Hinglish and Serbian Latin. Bug: 9687668 Bug: 17169632 Change-Id: Ib9aa1bcdf5b390a9d8c61f07165beacf850e2692
2014-10-28Clean up UserDictionaryCompatUtilsTadashi G. Takaoka1-26/+17
Change-Id: I1b22c82930af4f30db4237335850fb34b66f9299