Commit Graph

31099 Commits (4f879a85ce5b6a664a8ba310e9a3ebd31d3eb77b)

Author SHA1 Message Date
Baligh Uddin 841daeb16e Merge "Import translations. DO NOT MERGE" into jb-ub-latinimegoogle 2014-02-21 16:41:57 +00:00
Baligh Uddin a761bb3208 Merge "Import translations. DO NOT MERGE" 2014-02-21 16:41:50 +00:00
Jean Chalard 8f7aca42ac am 296adf57: Merge "Change a heuristic and add a log."
* commit '296adf5710fed09eb0b5e038ef2ce6f55914c8f6':
  Change a heuristic and add a log.
2014-02-21 04:00:15 -08:00
Jean Chalard 296adf5710 Merge "Change a heuristic and add a log." 2014-02-21 11:58:16 +00:00
Tadashi G. Takaoka 3792a64e48 am 1269ae31: Merge "Change make-keyboard-text -java option to point LatinIME/java directory"
* commit '1269ae31445ce46986638af8e5bb8ecab3db0915':
  Change make-keyboard-text -java option to point LatinIME/java directory
2014-02-21 03:57:00 -08:00
Tadashi G. Takaoka 3a7356c402 am 8e2951f2: Merge "Fix punctuation test for tablet"
* commit '8e2951f29984eb163b6107ebd9ab54504c54f4ae':
  Fix punctuation test for tablet
2014-02-21 03:56:57 -08:00
Tadashi G. Takaoka 1269ae3144 Merge "Change make-keyboard-text -java option to point LatinIME/java directory" 2014-02-21 11:54:39 +00:00
Tadashi G. Takaoka 8e2951f299 Merge "Fix punctuation test for tablet" 2014-02-21 11:54:28 +00:00
Keisuke Kuroyanagi 24065c60e0 am bb6b978a: Merge "Fix: file descriptor leaking."
* commit 'bb6b978a190e552eefa31426595db93705d50c1f':
  Fix: file descriptor leaking.
2014-02-21 03:39:46 -08:00
Keisuke Kuroyanagi bb6b978a19 Merge "Fix: file descriptor leaking." 2014-02-21 11:37:09 +00:00
Jean Chalard e48e95566d am bf075b21: Merge "Don\'t trim newer inputpointers with old data"
* commit 'bf075b21a1b85c9aa382276e95d3986d3d6d5b1d':
  Don't trim newer inputpointers with old data
2014-02-21 03:21:29 -08:00
Jean Chalard bf075b21a1 Merge "Don't trim newer inputpointers with old data" 2014-02-21 11:19:04 +00:00
Tadashi G. Takaoka 5eb6ea9f27 Change make-keyboard-text -java option to point LatinIME/java directory
Change-Id: I812713da5918049c0e504e48bd0693df2f7bf46d
2014-02-21 19:24:24 +09:00
Baligh Uddin 522d1575da Import translations. DO NOT MERGE
Change-Id: If26d287c68a6fed1d5a8ecf6566ccd5cdfb99104
Auto-generated-cl: translation import
2014-02-21 02:20:21 -08:00
Baligh Uddin 80dc424854 Import translations. DO NOT MERGE
Change-Id: I2e9650644e214864cf8b6126d635fbf6790a7652
Auto-generated-cl: translation import
2014-02-21 02:19:13 -08:00
Baligh Uddin c1a803dad8 Import translations. DO NOT MERGE
Change-Id: I6a4d31a53e63b85598e77d662fccbea9cbab877e
Auto-generated-cl: translation import
2014-02-21 02:17:21 -08:00
Baligh Uddin 6b76a61223 Import translations. DO NOT MERGE
Change-Id: I70333e4c46801d5ff8fdbeaabb5b09642146b60e
Auto-generated-cl: translation import
2014-02-21 02:16:01 -08:00
Baligh Uddin cfc684c8e2 Import translations. DO NOT MERGE
Change-Id: I3f7e04ccd7954e9842f8dc7ff34acd591dd3dbbd
Auto-generated-cl: translation import
2014-02-21 02:15:13 -08:00
Baligh Uddin 89a82404da Import translations. DO NOT MERGE
Change-Id: I36ae3ddd02a99ec044e1fd0fdf88d8e7726bdd17
Auto-generated-cl: translation import
2014-02-21 02:14:33 -08:00
Baligh Uddin 3e3a8823db Import translations. DO NOT MERGE
Change-Id: I94281a7f09ed6b718915c942d20936967b805f53
Auto-generated-cl: translation import
2014-02-21 02:13:54 -08:00
Baligh Uddin 6ddefc567e Import translations. DO NOT MERGE
Change-Id: Id288919148957318b18962b09e61ebe76a10c2b7
Auto-generated-cl: translation import
2014-02-21 02:13:34 -08:00
Baligh Uddin 2d00fc9e08 Import translations. DO NOT MERGE
Change-Id: I4462c7843b545f0fe89048795a82b523431b4498
Auto-generated-cl: translation import
2014-02-21 02:13:12 -08:00
Keisuke Kuroyanagi 62f192f60f am ad508d02: Merge "Remove corrupted ver4 dictionaries."
* commit 'ad508d029f7fbd225f41f3b2a0b7134bd90c37ba':
  Remove corrupted ver4 dictionaries.
2014-02-21 01:38:38 -08:00
Keisuke Kuroyanagi acf61fbdf5 am 9cfa8417: Merge "Add boundary check for ver2 dict reading."
* commit '9cfa8417dacb1d3efc687c8b9c5a7f141f5f7746':
  Add boundary check for ver2 dict reading.
2014-02-21 01:38:36 -08:00
Keisuke Kuroyanagi ad508d029f Merge "Remove corrupted ver4 dictionaries." 2014-02-21 09:03:19 +00:00
Keisuke Kuroyanagi 9cfa8417da Merge "Add boundary check for ver2 dict reading." 2014-02-21 09:03:12 +00:00
Tadashi G. Takaoka d28a58c25d Fix punctuation test for tablet
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-21 17:50:07 +09:00
Keisuke Kuroyanagi d24a99cff6 Fix: file descriptor leaking.
File descriptors will be closed in
BinaryDictionary.finalize(); but, this leads to unit test fails.

Bug: 13066902
Change-Id: I2b0d3e54ee91fa844530df54596f86bbbbac81a5
2014-02-21 17:25:34 +09:00
Keisuke Kuroyanagi 5041d9267e am 239256b1: Merge "Add an auto-correction by user history test."
* commit '239256b1564cce1aba3d79d7bf931b290243432a':
  Add an auto-correction by user history test.
2014-02-21 00:01:07 -08:00
Keisuke Kuroyanagi 239256b156 Merge "Add an auto-correction by user history test." 2014-02-21 07:59:05 +00:00
Tadashi G. Takaoka 7a1c3b917f am d73044a2: Add ImportantNoticeDialog
* commit 'd73044a2494873a4abe0d4da208533164314d2f0':
  Add ImportantNoticeDialog
2014-02-20 23:46:13 -08:00
Jean Chalard 2a5ec00301 Don't trim newer inputpointers with old data
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-21 16:43:11 +09:00
Tadashi G. Takaoka d73044a249 Add ImportantNoticeDialog
Change-Id: Icaeb7dddd16362cd4a6384d295f89c7fbabc8b35
2014-02-21 16:36:15 +09:00
Tadashi G. Takaoka 6ec9019f87 am fe39d576: Support versioned important notice
* commit 'fe39d576dcd515d7fcd678a2ed6a621185cc69e3':
  Support versioned important notice
2014-02-20 23:02:17 -08:00
Keisuke Kuroyanagi d934fb43ad Remove corrupted ver4 dictionaries.
Bug: 12916055
Change-Id: I2c390ab1dc483915691b47a605772cbc2dfeaf09
2014-02-21 15:09:37 +09:00
Keisuke Kuroyanagi be81b75dec Add boundary check for ver2 dict reading.
Bug: 12916055
Change-Id: I78ad1f98a5401f920dcfc3379aa431eb2311ae02
2014-02-21 13:26:01 +09:00
Keisuke Kuroyanagi 4cc582f3ba Add an auto-correction by user history test.
Bug: 11122480
Change-Id: I830bb3399f9839a80c6d86fbf582299bce424871
2014-02-21 13:12:26 +09:00
Tadashi G. Takaoka fe39d576dc Support versioned important notice
This change must be checked in together with If38a754d00.

Bug: 10587358
Change-Id: I91580f9468bc5ee7ed1694d7852a60dc6793dac0
2014-02-21 09:54:08 +09:00
Jean Chalard 743da437fd am 1b3a142c: Merge "Fix a bug where suggestions would not be updated."
* commit '1b3a142cace93ab22064ae5cf5f2d2ff7635ae9e':
  Fix a bug where suggestions would not be updated.
2014-02-20 06:52:08 -08:00
Jean Chalard 3b4c1d3056 Change a heuristic and add a log.
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-20 23:49:20 +09:00
Jean Chalard 1b3a142cac Merge "Fix a bug where suggestions would not be updated." 2014-02-20 14:46:35 +00:00
Jean Chalard 6f50c95887 Fix a bug where suggestions would not be updated.
Also fix a small cosmetic bug where the suggestion strip
would flash.

Bug: 12951777
Change-Id: I68b7bb9175571de9c718f737eebd9f67ea04a931
2014-02-20 23:32:04 +09:00
Jean Chalard c2c8368c2e am a118d19f: Merge "Don\'t distrust the cursor pos so much as to bug on IPC delay"
* commit 'a118d19f6c2ad1e6f6bfe34b0ce022e961da4f02':
  Don't distrust the cursor pos so much as to bug on IPC delay
2014-02-20 06:27:56 -08:00
Jean Chalard a118d19f6c Merge "Don't distrust the cursor pos so much as to bug on IPC delay" 2014-02-20 14:22:48 +00:00
Jean Chalard 3c84eb8822 Don't distrust the cursor pos so much as to bug on IPC delay
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-20 23:13:14 +09:00
Keisuke Kuroyanagi 52b067e5d4 am e03e4257: Merge "Add test only methods to test personalized dicts."
* commit 'e03e4257f1dc727db383bd56097eb60eeae7ceb8':
  Add test only methods to test personalized dicts.
2014-02-20 05:29:26 -08:00
Keisuke Kuroyanagi e03e4257f1 Merge "Add test only methods to test personalized dicts." 2014-02-20 13:25:59 +00:00
Keisuke Kuroyanagi d36328cecf Add test only methods to test personalized dicts.
Bug: 11122480
Change-Id: I79a4a73ff09a2d34d4ca094d705e901fb4bc855c
2014-02-20 22:20:43 +09:00
Keisuke Kuroyanagi 4ebf561932 am 21f94829: Fix: UserHistoryDictionaryTests.testDecaying().
* commit '21f94829994d5a5c2773605fec6b7eeef920c646':
  Fix: UserHistoryDictionaryTests.testDecaying().
2014-02-20 04:36:23 -08:00
Keisuke Kuroyanagi 21f9482999 Fix: UserHistoryDictionaryTests.testDecaying().
Bug: 13106697
Change-Id: If81f77c3cefdefae94cb9145aa9f700494f8237a
2014-02-20 21:23:57 +09:00