aboutsummaryrefslogtreecommitdiffstats
path: root/java/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-11-07Move util classes under commonJean Chalard50-244/+56
Also why did we have two copies of LocaleUtils >.> Bug: 18108776 Change-Id: I03b4403dfd51934e66b567f2f8b87da419cfb3ab
2014-11-07Remove a deprecated constructor to SuggestedWordsJean Chalard2-13/+7
Change-Id: If4d358b3a11fb25fc214c728269519d8c25f9adc
2014-11-06Move shorcut IME related code from SubtypeSwitcher to RichInputMethodManagerTadashi G. Takaoka6-133/+121
Change-Id: I0f95f603d80570c937e8c38ded88df341c11795e
2014-11-06Move some methods out from SubtypeSwitcherTadashi G. Takaoka9-126/+174
Change-Id: I89aaf87d7d0cc204b0ca0f61c2f64d15e2df848e
2014-11-06Import translations. DO NOT MERGEBaligh Uddin1-1/+1
Change-Id: I8b8e17a01b4080e4d18f5961364ef7e4e7ed8649 Auto-generated-cl: translation import
2014-11-06Fix the build : move offdevice tests in an off device fileJean Chalard2-62/+92
Also fix a failing test Change-Id: I280aa6b5836c7332da08a88f1258546edeb25a37
2014-11-06Remove a useless method.Jean Chalard1-17/+0
Yay for cleanup Bug: 18108776 Change-Id: I13f4066cd54f294377fdcf375a69350c44d4a32a
2014-11-06Remove dicttool dependency to NativeSuggestOptionsJean Chalard3-6/+10
Bug: 18108776 Change-Id: I0f57594617f8d5080aea9002b2356d18bfe97043
2014-11-06Add a header command to dicttool.Jean Chalard4-17/+162
This will allow to greatly improve the performance of the metadata-generating files, as they won't have to wait for the info command to read the entire dictionary when the header is all we need. Also add tests, and while we're at it, use the seed as intended to enable reproducible tests. Change-Id: I0ba79ef62f0292b23e63aed57ff565bb102281a2
2014-11-06Add a *FAST* dictionary header reader.Jean Chalard2-0/+95
It's still unused as of this change but the next change will use it As a reference point, generating the metadata for Bayo takes 3'02" on my machine with the info command; it's down to 16" if made to use this instead. The gains increases with the number of dictionaries obviously. Change-Id: I0eeea2d8f81bb74b0d1570af658e91b56f7c2b79
2014-11-06Genericize getting a raw dictionaryJean Chalard3-48/+71
This will allow for not copying the whole dictionary when only the header is needed. Change-Id: Ie4a649b507ccd4a430201824ed87b8b8bbf55e9f
2014-11-05Fix restore from keyboardSandeep Siddhartha1-1/+0
The keyboard starts up before the restore process and the default shared preferences are cached and used even after the restore. Bug: 17837918 Change-Id: I2669e377b6e95813657fd6a80fbff4472330e3aa
2014-11-05Fix a bug where LatinIME would recorrect with no input viewJean Chalard1-4/+5
Bug: 18071127 Change-Id: I634d1f63f7d5c5b7453ed7559f9b65fa0433dcd8
2014-11-05Large simplification in obtaining a raw dictionaryJean Chalard2-89/+61
That is where the last refactorings were leading. This code is simpler, but it's far more flexible. Importantly, it only makes a single copy instead of making a full disk copy for every intermediate step. Next we're going to make the "copy" part modular for processes that don't need to copy the whole file. Change-Id: Ief32ac665d804b9b20c44f443a9c87452ceb367a
2014-11-04Fix EmojiPageKeyboardView onPress bugTadashi G. Takaoka1-1/+1
Change-Id: I110f36e0547be4957656217c42a8dafd9359b700
2014-11-04Fix Emoji key feedbackTadashi G. Takaoka7-7/+7
Bug: 18166905 Change-Id: I629eab41b78810325710ce024068b86a157186b4
2014-11-04Revert "Fix Emoji key feedback"Tadashi G. Takaoka8-8/+8
This reverts commit 953858d6153d844226e4b8352a63193c29606dd7. The original CL should be split into two. Change-Id: Ic1d032e2964a1b9bb44d98bdb8573c6cb47a865c
2014-11-04Fix missing ZWNJ key of BengaliAkhhor keyboardTadashi G. Takaoka5-19/+12
This CL also fixes the wrong script of Bengali Akkhor. Change-Id: Id4af2ea160b4ef3cfd40ffc5984354bc60f0b7b7
2014-11-04Fix Emoji key feedbackTadashi G. Takaoka8-8/+8
Bug: 18166905 Change-Id: I3c3296cabeed31e1250ff0753ea94576b494b96a
2014-11-04Fix symbol letter size of phone/number layoutTadashi G. Takaoka6-60/+67
This CL - decreases the size of symbols letter on number and phone layout. - increases the size of "Pause" and "Wait" label. - fixes "Pause" and "Wait" label for no language keyboard Bug: 18179572 Change-Id: I6e8b4a8e07d805c3da0558b4832291ce41ad3db0
2014-11-04Fix number and phone keyboard visual glitchesTadashi G. Takaoka4-6/+8
Bug: 18179572 Change-Id: I387b965ed4f7adc5a34b63e622520e3c88ffd5ca
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 Mendal37-74/+37
Change-Id: If4a3d6e46c8fcf8ddf8eb4689e19fed4906e1064 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