aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/dictionarypack/AssetFileAddress.java (unfollow)
Commit message (Expand)AuthorFilesLines
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-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-29Import translations. DO NOT MERGE•••Change-Id: I7754ea73920159f7e5b57886eb5064eaec3ad004 Auto-generated-cl: translation import Geoff Mendal57-2/+97
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
2014-10-24Remove an unused import•••Follow up to I2b81450f99d7b4493ba0fc5e502f4333b8db48cd Change-Id: I3d106db076e8181b65ce6843b801d12c6ca0adb1 Ken Wakasa1-1/+0
2014-10-24Small cleanup•••Change-Id: I2b81450f99d7b4493ba0fc5e502f4333b8db48cd Ken Wakasa2-3/+1
2014-10-24Fix unit test breakage•••Change-Id: I538288054a58eb2c81ce3cbe5c9bef900fb653a5 Tadashi G. Takaoka4-9/+14
2014-10-24Fix unit test failure due to IllegalAccessError•••java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation because of latinime-common reference added two times. Change-Id: I4ce1185c10b9a217022e830b02aec4f1ea50f2eb Ken Wakasa1-1/+1
2014-10-24Height of the keyboard for spellchecker is too large.•••Bug: 18109041 Change-Id: I0eb98a66290058c28e20c86f36395af4f763952e Keisuke Kuroyanagi1-1/+1
2014-10-24Add missing header•••Change-Id: I1befc2f1288674b4d871b27bdc5251b2b95e8bb7 Ken Wakasa1-0/+16
2014-10-23Fix unit tests (InputLogicTestsDeadKeys).•••Change-Id: I9a3191548aa0a4e674d736bc10845b952fc9a1e8 Keisuke Kuroyanagi1-1/+4
2014-10-23Move Constants.java to the latin.common package•••Our intention is to have classes of latinime-common under the common package as much as we can. Change-Id: I76efbbbe7bebf1a4aa943715cdff64f91675e20d Ken Wakasa112-125/+149
2014-10-23Fix: Personalized dicts suggest invalid words with v403.•••Bug: 14425059 Change-Id: I45ae00069dd3b7c461dd9a1f3558b96af0a1c975 Keisuke Kuroyanagi1-2/+3
2014-10-23Enable Address Sanitizer for native host test 2nd try•••This CL enables Address Sanitizer for native host test. Note that production build is not affected with this change. ASan is enabled only in static lib for test executables. Change-Id: I2c8e99b8c55e611e86f74579f24a63ac949bb02d Yohei Yukawa1-0/+4
2014-10-23Fix dicttool build.•••Change-Id: Idc4533e57b7f4ddccd66b1f1a4730153064b1e27 Keisuke Kuroyanagi1-1/+1
2014-10-23Stop building host native test in unbundled build•••It turned out that building native code for host environment is not supported in NDK build. Hence this CL makes the host native test available only as a part of platform build to avoid accidental build breakage in unbundled build. BUG: 18095678 Change-Id: If608da166d5a478358e6890b8db526b4c2c0ab41 Yohei Yukawa2-1/+14
2014-10-23Some more simplification of DecoderSpec works•••Change-Id: I23fa4e4ed96228406e70aa94d84fd7b8d3f69347 Jean Chalard2-7/+14