aboutsummaryrefslogtreecommitdiffstats
path: root/common/src/com/android/inputmethod/annotations (unfollow)
Commit message (Expand)AuthorFilesLines
2014-11-01Fix: BoS prediction after inputting just once.•••Change-Id: Ib69569ab6b6edfcc8c1d2c621b95de4127789ab6 Keisuke Kuroyanagi1-2/+10
2014-10-31Initial commit for native dicttoolkit.•••Bug: 10059681 Change-Id: Ib730af8ebc944e08aaada869c0626724a499747c Keisuke Kuroyanagi9-0/+285
2014-10-31Remove some dicttool dependencies•••Bug: 18108776 Change-Id: Ic81c5df2a685160c249021ff4cfe41553dbdeebe Jean Chalard2-56/+0
2014-10-31Update v4 format version from 402 to 403.•••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 Keisuke Kuroyanagi11-112/+73
2014-10-31Add hacks for better handling count value during migration.•••Bug: 14425059 Change-Id: Ib050574aa7c4babd4285322a11c3af9be9fbab1e Keisuke Kuroyanagi2-1/+4
2014-10-31Change v403 historical info format.•••count -> 2B, level -> 0B. Change-Id: I3b241126f56eb33cdf09cb1ebfed04f534e4ec48 Keisuke Kuroyanagi6-11/+9
2014-10-31Add helper methods to convert flags to readable text•••Change-Id: I23608927cef8a897ff4ad8c938560cc78093ddac Tadashi G. Takaoka2-0/+39
2014-10-31Further fixes to treat 0-frequency words•••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 Adrian Velicu7-12/+47
2014-10-31Block offensive words in multi-word suggestions•••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 Adrian Velicu3-13/+65
2014-10-31Add documentation for CollectionUtils#arrayAsList•••(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: I0c579ca4f4f2a9b2575aa6f8fa75e3ee4a21cf8aDavid Faden2-2/+44
2014-10-31Update unit tests for new static dict version.•••Bug: 11031090 Change-Id: Ifd7b241f1a0a30678ca7de97cc6e96927a9b5c8f Adrian Velicu4-29/+36
2014-10-31Update dictionaries (possibly_offensive flag)•••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 Adrian Velicu21-0/+0
2014-10-31Using "blacklist" flag as "possibly offensive"•••Bug: 11031090 Change-Id: I5cc0d006ab003656498eb82b0875eb9c051d331e Adrian Velicu14-53/+72
2014-10-31Fix: native unit test build.•••Change-Id: Id2bd4b60d6a4023815a630ebb3059a435b72c193 Keisuke Kuroyanagi1-2/+2
2014-10-30Import translations. DO NOT MERGE•••Change-Id: I7e725d123380b47feb9f3442cf5ac4299997d1a9 Auto-generated-cl: translation import Baligh Uddin14-612/+312
2014-10-30Import translations. DO NOT MERGE•••Change-Id: I7db7b88569ffbe44449f97950cb337ea2f3b1761 Auto-generated-cl: translation import Baligh Uddin73-3760/+1519
2014-10-30Import translations. DO NOT MERGE•••Change-Id: I58e9e2b6fbeea9369903208642f548dcd60db631 Auto-generated-cl: translation import Baligh Uddin4-0/+108
2014-10-30Import translations. DO NOT MERGE•••Change-Id: I2c081d71d715a47d2baabd8069d6cdf28ca03cdc Auto-generated-cl: translation import Baligh Uddin10-76/+41
2014-10-30Import translations. DO NOT MERGE•••Change-Id: I6427702f2022b2423ef102b00edff0a7ffe5122a Auto-generated-cl: translation import Baligh Uddin6-1/+121
2014-10-30Import translations. DO NOT MERGE•••Change-Id: I5a18946cc2b568f649028a1bc50a4f78e6aad0af Auto-generated-cl: translation import Baligh Uddin58-8/+47666
2014-10-30Import translations. DO NOT MERGE•••Change-Id: I19b5c3a4956bbf3e22566cce7f74791a98869727 Auto-generated-cl: translation import Baligh Uddin2-2/+2
2014-10-30Enable count based dynamic ngram language model for v403.•••Bug: 14425059 Change-Id: Icc15e14cfd77d37cd75f75318fd0fa36f9ca7a5b Keisuke Kuroyanagi7-128/+168
2014-10-30Add DynamicLanguageModelProbabilityUtils.•••Bug: 14425059 Change-Id: Ia58ab3f0ead02798046d182a9464dcbd95f086bc Keisuke Kuroyanagi3-0/+152
2014-10-30Consolidate TimerHandler.Callbacks with PointerTracker.DrawingProxy•••Change-Id: I654f7483d1c013ac2685a45af4eb2af15fa219ad Tadashi G. Takaoka4-52/+57
2014-10-30Add method to encode probability.•••Bug: 14425059 Change-Id: I3e5d359ba5fa38f1669f0e98dfae792ff53efbf8 Keisuke Kuroyanagi4-0/+73
2014-10-30Add a preference to resize the keyboard height.•••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 Andy Wang9-1/+91
2014-10-30Fix dismiss key preview bug introduced by I658a5b16cc•••Change-Id: I5248374dfe0504f6e64cc5d994e275d80364ec9d Tadashi G. Takaoka1-2/+2
2014-10-30Consolidate similar methods•••This CL consolidates similar methods in MainKeyboardView. - startWhileTypingFadeinAnimation and startWhileTypingFadeoutAnimation - showSlidingKeyInputPreview and dismissSlidingKeyInputPreview Change-Id: I607ab74683820de2456af3e75663cf8cf358ab38 Tadashi G. Takaoka5-37/+50
2014-10-29Import translations. DO NOT MERGE•••Change-Id: I3643a631ae94f295bdcd4cf4427fd4bcfef00a17 Auto-generated-cl: translation import Geoff Mendal73-2/+127
2014-10-30Fix: TRT and ime-simulator bulid.•••Change-Id: I1697a907562d1ed6aff2b001763d1594263ba0d3 Keisuke Kuroyanagi1-0/+2
2014-10-29Add a class to have global counters for LanguageModelDictContent.•••Bug: 14425059 Change-Id: I08ec19903432356b6028853fd73b4eefce20218e Keisuke Kuroyanagi8-7/+209
2014-10-29Remove DrawingHandler•••Change-Id: I658a5b16cca1e56f0b944009b8aef09e0a97a0db Tadashi G. Takaoka6-111/+76
2014-10-29Remove DrawingHandler.Callbacks.dismissAllKeyPreviews()•••Change-Id: I2b11ca0dec0f3522648557a9a909f305cc4170fb Tadashi G. Takaoka4-32/+8
2014-10-29Remove Dict dependency on WordComposer and ProximityInfo•••Bug: 18108776 Change-Id: I9b399a44241e05a7add9bb8094263aa76de37880 Jean Chalard12-80/+114
2014-10-29Move InputPointers and ResizableIntArray to common•••Bug: 18108776 Change-Id: Ie5c0430aa41a8d6c58bf510a10173223d7dfe9fe Jean Chalard19-53/+22
2014-10-29Fix test breakage•••This CL also adds null analysis annotations to StringUtils. Change-Id: I751932c1ed2579bc10f4584651b997356f180899 Tadashi G. Takaoka3-78/+154
2014-10-28Move StringUtils under common.•••Bug: 18108776 Change-Id: Ia46a4102a0e86e71118ca5e641f9f531998e166b Jean Chalard37-32/+38
2014-10-28Fix tests build•••Change-Id: I873ab97e2c4b30caa9227d26d7880d5ed6d134b0 Jean Chalard1-18/+20
2014-10-28Reduce StringUtils dependency on the Android libs•••Bug: 18108776 Change-Id: I43feb25d79f89276d44462ba71788a14c4583277 Jean Chalard3-68/+125
2014-10-28Fix unit test failures•••Change-Id: I1d66a0124961d524f83f7895a2c09e0ee2c1aab4 Ken Wakasa1-0/+4
2014-10-28Fix Serbian Latin subtype handling•••This CL also adds unit tests for Hinglish and Serbian Latin. Bug: 9687668 Bug: 17169632 Change-Id: Ib9aa1bcdf5b390a9d8c61f07165beacf850e2692 Tadashi G. Takaoka6-103/+316
2014-10-28Clean up UserDictionaryCompatUtils•••Change-Id: I1b22c82930af4f30db4237335850fb34b66f9299 Tadashi G. Takaoka1-26/+17
2014-10-28Improve space substitution error correction.•••Bug: 17432052 [Category diff] +1 262 -1 93 +2 2 -2 18 +3 18 -3 2 +4 111 -4 148 +5 295 -5 217 +6 51 -6 276 +7 139 -7 124 [Weighted category diff] +1 276 -1 100 +2 4 -2 20 +3 20 -3 4 +4 118 -4 160 +5 309 -5 225 +6 52 -6 298 +7 163 -7 135 show diff for ./en_user_log_phones_2011_08.csv +1 173 -1 28 +2 2 -2 17 +3 17 -3 2 +4 63 -4 82 +5 120 -5 51 +6 24 -6 220 +7 88 -7 87 Change-Id: I9d673acb0ff632828ae2e0ead56e76e3a20411c6 Keisuke Kuroyanagi6-11/+14
2014-10-28Fix NPE in AppearanceSettingsFragment•••Bug: 18147440 Change-Id: I7a7a47b3484e54146d34d11b5bd9c1305421d829 Tadashi G. Takaoka6-20/+24
2014-10-28[CS8] Add explanations•••Bug: 13238601 Change-Id: I72a78be5848485f7fd77f5586573692529c7547b Jean Chalard1-16/+28
2014-10-28Add some gesture-move tests•••Change-Id: I5ec9a9169b0d27da93194e1bd3fa90da8174ee8f Jean Chalard1-2/+32
2014-10-27Add null analysis annotation to CollectionUtils•••Change-Id: I3a610b037d6d1431cced3ea193171108bd5a040d Tadashi G. Takaoka2-6/+7
2014-10-27Refactor CoordinateUtils•••Change-Id: I607b803273a4d7983e9e25a81b6941a3b59194c6 Tadashi G. Takaoka1-16/+19
2014-10-27Remove device checking of Emoji physical key•••This CL also adds a settings option to enable/disable an Emoji-ALT physical key. Bug: 18122464 Change-Id: Iee1d97efec979a902b0492071d5e511ca1792ff0 Tadashi G. Takaoka12-58/+117
2014-10-27Fix: deleted PtNode handling in v403.•••If a word is once deleted, the word never gets into the personalized dictionaries due to this bug. Change-Id: Ife4e3fe1ba0615b4135e6291d2151b0db7d3f940 Keisuke Kuroyanagi2-1/+9