aboutsummaryrefslogtreecommitdiffstats
path: root/java (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-02-25[QRP6] Fix: recorrection top candidate is displayed in boldJean Chalard1-2/+4
Bug: 10385162 Change-Id: Icf9471d474a3a8ed8f38c46c7948c66f9131691e
2014-02-25[QRP5] Fix boldness for predictions, and small refactoringJean Chalard3-5/+6
This is more correct. When predictions, the typed word should always be null unless explicitly passed. The text color should be that of a valid typed word only if it's actually the typed word. Bug: 13170509 Change-Id: I769ae100e112c37c6f02064fe9ef2f81372ca9e5
2014-02-25[QRP4] Simplification & small correctness fix.Jean Chalard1-6/+6
This fixes the color of the predictions when running on a theme that has different colors for typed and suggested words (GB theme). Also, this is easier to understand and to modify from now on. Change-Id: Ifdc6d86a1695e83e16103041b06a2451f8d52cc4
2014-02-25[QRP3] RefactoringJean Chalard5-17/+19
Rename some variables for clarity and use constants instead of immediates. Change-Id: Ie07fbfcc3738ac4e67aefddc339fc54259172c39
2014-02-25[QRP2] Small refactorJean Chalard1-3/+4
Bug: 13170509 Change-Id: Ib9f10b8a137fc773ab0e5dc903e577038e29a9e2
2014-02-25[QRP1] Fix a bug where the wrong value would get passedJean Chalard1-3/+3
In the practice it works because this never tries to access inside the suggestion strip, and the worst that can happen is a wrong text color for a suggestion. But since the two colors that would be swapped are the same, nobody ever notices -- unless they are using the GingerBread theme. Change-Id: Ic8c70d8b3cdddf92946dfefbbc6d061572626c7a
2014-02-25Add Key.getIconId for testabilityTadashi G. Takaoka2-3/+7
Bug: 13017434 Change-Id: I94ff45da3f58b74cc9dd4d38179670fbcf619d92
2014-02-24Correctly read the header of APK-embedded dictsJean Chalard11-26/+43
Bug: 13164518 Change-Id: I8768ad887af8b89ad9f29637f606c3c68629c7ca
2014-02-24Show emoji key both main and shift PC Qwerty keyboardTadashi G. Takaoka1-13/+3
Bug: 13164305 Change-Id: I8efaa2690f5f5441f003fb0104705f0032fa49c7
2014-02-24Update all dicts to version 44.Jean Chalard34-0/+0
Bug: 13164302 Change-Id: I8dc1a839c7dcfaa08a53e26cb6600e9f871447ce
2014-02-24Use an executor to serialize opening dictionaries.Jean Chalard1-3/+3
Bug: 13082957 Change-Id: I25570ab4da94337ed60330c0869fe47657096626
2014-02-24Create a utils class for executors.Jean Chalard2-49/+75
Preliminary refactoring to fix Bug: 13082957 Change-Id: I9f1283c37089bc96140b774b1c559d58031de004
2014-02-24Fix: -1 can be used as a code point of most probable string.Keisuke Kuroyanagi1-1/+10
Bug: 11797518 Change-Id: Id2e8bce92d000f39d506af7cb844447696bcc019
2014-02-24Remove hack from EmojiPalettesView.startEmojiPalettesTadashi G. Takaoka5-21/+33
Bug: 12115967 Change-Id: I91c567a9577012ec28c08430c55e56e9c2e25b5f
2014-02-24Revert "Prepare for changing text color for functional keys"Tadashi G. Takaoka5-77/+8
This reverts commit 194e004e81f74c4124184ad8597d68e3837ea560. Bug: 10786040 Change-Id: I4c5287d46cabe287abce5cba77635cf26d2cd192
2014-02-24Never pass negative values to setSelection.Jean Chalard1-2/+6
Bug: 13136079 Change-Id: Ieae6bafbd5339a033f0f342ba9af7dcc4ce209fa
2014-02-24Update dictionariesJean Chalard6-0/+0
en* : add common app and Google product names en_GB : also add "filters" ru : add some missing words Bug: 11043181 Bug: 12276653 Bug: 12953122 Change-Id: I6b62e681a07b7f0149a10ba4e05954e60d6212d4
2014-02-24Disconnect app data search client after fetching all data.Keisuke Kuroyanagi2-0/+11
Bug: 13138201 Change-Id: Ibaa3c2c22a4fe44ea23e92ce8576141bbad09b12
2014-02-21Change make-keyboard-text -java option to point LatinIME/java directoryTadashi G. Takaoka3-5/+6
Change-Id: I812713da5918049c0e504e48bd0693df2f7bf46d
2014-02-21Import translations. DO NOT MERGEBaligh Uddin57-141/+84
Change-Id: If26d287c68a6fed1d5a8ecf6566ccd5cdfb99104 Auto-generated-cl: translation import
2014-02-21Import translations. DO NOT MERGEBaligh Uddin6-9/+493
Change-Id: I2e9650644e214864cf8b6126d635fbf6790a7652 Auto-generated-cl: translation import
2014-02-21Import translations. DO NOT MERGEBaligh Uddin2-0/+54
Change-Id: I70333e4c46801d5ff8fdbeaabb5b09642146b60e Auto-generated-cl: translation import
2014-02-21Import translations. DO NOT MERGEBaligh Uddin2-0/+60
Change-Id: I36ae3ddd02a99ec044e1fd0fdf88d8e7726bdd17 Auto-generated-cl: translation import
2014-02-21Import translations. DO NOT MERGEBaligh Uddin57-114/+57
Change-Id: Id288919148957318b18962b09e61ebe76a10c2b7 Auto-generated-cl: translation import
2014-02-21Fix punctuation test for tabletTadashi G. Takaoka1-13/+65
It seems that some test devices are tablet and some are phone. The unit test should aware of which device the test is running. Change-Id: I8651a540993de29aa1cd9f40919dffe7a8df9512
2014-02-21Fix: file descriptor leaking.Keisuke Kuroyanagi2-22/+32
File descriptors will be closed in BinaryDictionary.finalize(); but, this leads to unit test fails. Bug: 13066902 Change-Id: I2b0d3e54ee91fa844530df54596f86bbbbac81a5
2014-02-21Don't trim newer inputpointers with old dataJean Chalard1-0/+2
We already have a mechanism to avoid this crash, but it wasn't used every time it needed to. It's possible that ending a batch input and starting a batch input happen while suggestions are being pulled out, which would result in pointers that have been reset being passed for trimming. Just increasing the sequence number should get rid of the problem. Bug: 12178124 Change-Id: I36ef3bc8a78679bc09daa39e665f5ce1bab50c2a
2014-02-21Add ImportantNoticeDialogTadashi G. Takaoka2-45/+93
Change-Id: Icaeb7dddd16362cd4a6384d295f89c7fbabc8b35
2014-02-21Remove corrupted ver4 dictionaries.Keisuke Kuroyanagi3-10/+51
Bug: 12916055 Change-Id: I2c390ab1dc483915691b47a605772cbc2dfeaf09
2014-02-21Add boundary check for ver2 dict reading.Keisuke Kuroyanagi1-0/+15
Bug: 12916055 Change-Id: I78ad1f98a5401f920dcfc3379aa431eb2311ae02
2014-02-21Add an auto-correction by user history test.Keisuke Kuroyanagi1-0/+32
Bug: 11122480 Change-Id: I830bb3399f9839a80c6d86fbf582299bce424871
2014-02-21Support versioned important noticeTadashi G. Takaoka3-22/+38
This change must be checked in together with If38a754d00. Bug: 10587358 Change-Id: I91580f9468bc5ee7ed1694d7852a60dc6793dac0
2014-02-20Change a heuristic and add a log.Jean Chalard2-3/+5
The heuristic in RichInputConnection makes little sense when textLength > mExpectedSelStart but we have more than 1024 characters of text. If there are that many, it's about 100% sure that 1024 is not the correct cursor position. With no good guess, we'll just continue trusting the app, even though we know it's lying : at least it will make the problem visible to the app author. Also, there have been a lot of confusion about initialSelStart and initialSelEnd. The keyboard should log them so that it helps us and editor authors debug more easily these common problems. Issue #65170 in AOSP and Bug: 12772035 Change-Id: I6665a16c9f2832d33ee323f033bb38bcc092a3b4
2014-02-20Fix a bug where suggestions would not be updated.Jean Chalard1-14/+33
Also fix a small cosmetic bug where the suggestion strip would flash. Bug: 12951777 Change-Id: I68b7bb9175571de9c718f737eebd9f67ea04a931
2014-02-20Don't distrust the cursor pos so much as to bug on IPC delayJean Chalard2-17/+6
When the cursor is moved by the user, the RichInputConnection is told about it. However, to work around a framework bug, it also looks at how many characters are in the buffer before the cursor, and if that's more than the value it's been passed, it deduces that's a framework bug and there are at least as many characters as seen before the cursor, so it puts the expected cursor position there. When you move the cursor, TextView calls onUpdateSelection, and when you move it fast, you'll get rapid-fire calls to onUpdateSelection. This is fine, the RIC is equipped to deal with that. However, these calls take some time to make it to the IME. In this instance, when the first call gets through and the IME calls TextView (synchronously) for text before the cursor, the cursor has already moved in the app, and TextView returns more characters than the cursor position was declared to be in this instance, so the RIC sets that as the expected cursor position. Sure enough, a split second later, the second call to onUpdateSelection arrives, with the new cursor position set where the RIC had found it too early. The RIC takes that as an "expected" cursor move, and the input does not get reset. Luckily, we have a way out. As far as we know, the framework bug only manifests itself upon rotation, which means we should only have to adjust for it in onStartInputView. Doing it in onUpdateSelection is too zealous (and probably too distrustful of the app to send the correct cursor positions). So we should just take care of the rotation case (by calling tryFixLyingCursorPosition in onStartInputView) and remove the compensating code in resetCachesUponCursorMoves. Bug: 12982502 Change-Id: Ic3c1408a1ec45deaea63b01d98376a79ae567d77
2014-02-20Add test only methods to test personalized dicts.Keisuke Kuroyanagi3-6/+33
Bug: 11122480 Change-Id: I79a4a73ff09a2d34d4ca094d705e901fb4bc855c
2014-02-20Fix: UserHistoryDictionaryTests.testDecaying().Keisuke Kuroyanagi1-4/+14
Bug: 13106697 Change-Id: If81f77c3cefdefae94cb9145aa9f700494f8237a
2014-02-20Record reading error during traversing dictionaries.Keisuke Kuroyanagi7-16/+59
Bug: 12916055 Change-Id: I439f21aa87cfa1f71e0354370a1514af03d68f6c
2014-02-20Add final and volatile for members of InputLogic.Keisuke Kuroyanagi1-2/+3
Bug: 13107471 Change-Id: I47df79bc6f015c212d1b6d2f63b2efc5da24294e
2014-02-20Add user history dictionary decaying test.Keisuke Kuroyanagi2-2/+64
Bug: 10667710 Change-Id: Ib2be57d8c4cbbb34f64555d84ea6fd571cfdd247
2014-02-20Throw IOException when dict header cannot be read.Keisuke Kuroyanagi1-0/+4
Bug: 13106638 Change-Id: Ib48ef0a191a436552c49b6e817dfa13fe1567ae8
2014-02-20Change important notice version preference fileTadashi G. Takaoka5-47/+38
This CL also reset the notice version to 1. This CL must be checked in together with Iea8d9ff038. Change-Id: I838f7b5b295388d64d6aba90f50b06654eba16e5
2014-02-20Fix build due to Ib4c472756fTadashi G. Takaoka1-1/+1
Change-Id: I27aad91d3f821b5c0d6a3c6405b4a9d03c5bd814
2014-02-20Revert "Turn off personalization default settings"Tadashi G. Takaoka3-4/+4
This reverts commit 0a4ac795d6fdd117b590902d7f5901f0db12d25c. Bug: 10587358 Change-Id: Ib4c472756fb9a6ebba4a66d34a9652f1b5afc714
2014-02-20Check all enabled IME's subtypes to enable personalization.Keisuke Kuroyanagi2-6/+22
Bug: 13067743 Change-Id: I6fc68b5151430a5ab51777f4c381e20f5a657924
2014-02-20Remove a call to a deprecated methodJean Chalard4-7/+5
...that would cause a crash Bug: 13082186 Change-Id: Ie12575c27dfdd2029bc9d5f0647e444f69770afc
2014-02-20Tweak key popup animation parametersTadashi G. Takaoka1-4/+4
Key popup show up start scale 98% Key popup dismiss end scale 94% Key popup show up duration 17ms Key popup dismiss duration 53ms Bug: 11518021 Change-Id: Icfde99969163f05cfaed1050ea074545d44db13b
2014-02-20Comments improvementsJean Chalard1-2/+2
Typo fixes and clarifications Change-Id: I0f7e0b6e665232bb995172fff10521c7f17599eb
2014-02-19Call PersonalizationDictionarySessionRegistrar.init().Keisuke Kuroyanagi1-0/+4
Wrongly removed in I1f50cb137b6054dc9. Bug: 13067743 Change-Id: I27cd221cb7f6e403c3fc128d65d14dbf628b6f55
2014-02-19Fix: crash when opening a broken dictionary.Keisuke Kuroyanagi3-7/+13
Bug: 13085169 Change-Id: Icfb6184dfefc6a336432203c071d9e30ae8bf990