Commit Graph

10781 Commits (22931cd94155b5623b9fa52c0596a44aa89bf606)

Author SHA1 Message Date
Jean Chalard 6464d73ad9 Merge "When starting input, include the literal word in suggestions" 2014-06-06 07:27:40 +00:00
Tadashi G. Takaoka bd3b20ce73 Merge "Always update voice key visibility" 2014-06-06 07:14:28 +00:00
Jean Chalard fca2c4b439 When starting input, include the literal word in suggestions
This change also includes a fix that has suggestions re-computed
when the typed word is included but no prior suggestions were
found in spans.

Bug: 2349475
Change-Id: Ic06e6ac492507126ffc1e96a5f396c971b567272
2014-06-06 16:00:18 +09:00
Jean Chalard eb771b9dc4 Merge "Fix a small bug with rotation." 2014-06-06 06:34:00 +00:00
Jean Chalard c69ba5630d Fix a small bug with rotation.
Bug: 2349475
Change-Id: Id4aa5ce56b1a545e4cb88ca1b01cf24642deade2
2014-06-06 14:06:29 +09:00
Tadashi G. Takaoka aa4b2c7127 Always update voice key visibility
Bug: 15128166
Change-Id: Ie15724c323efa3b102f6aebddc3bda210aad1727
2014-06-06 13:18:41 +09:00
Tadashi G. Takaoka 3ca65c8fd5 Remove unused supportsSwitchingToShortcutIme attribute
Change-Id: I51c5247ac925a158facb79057f704b763b903552
2014-06-06 13:11:57 +09:00
Tadashi G. Takaoka b7206b6bca Merge "Add action key test for Lxx theme" 2014-06-06 04:08:40 +00:00
Tadashi G. Takaoka c5dc740673 Add action key test for Lxx theme
Change-Id: I849cec7deb5607e8ce8fb25c1f903f15328fb611
2014-06-06 12:56:57 +09:00
Jean Chalard 70ff0c2122 Merge "Fix a bug on rotation with selection." 2014-06-06 03:12:12 +00:00
Jean Chalard 9fd9a68d87 Fix a bug on rotation with selection.
The symptom : when text is selected and the device is rotated,
sometimes the keyboard sets the word as being composed around
the start of the selection. Upon the next rotation this ends up
with the keyboard committing some text in place of the selection.

The cause : another bug in the framework with rotation >.>
The keyboard receives a call to startInput with a wrong cursor
position, namely one that does not represent a selection. The
keyboard sets a composition according to this wrong data. When
the keyboard is rotated again, it commits the text, which takes
the place of the selection.

The solution : actually when restarting input the keyboard
realizes that the cursor position is wrong. We cancel composition
at that time.
For robustness, this change also implements two other defensive
changes : upon call to onUpdateSelection, we actually realize
that the previous values were wrong, so we also fix it at that
time, and in addition, when rotating, we finishComposingText()
instead of commitText() which is less dangerous. Implementing
this later change also allows us to let less internal variables
from InputLogic escape to LatinIME, so it's also a good change
for design.

Bug: 14140799

Change-Id: Ib10de18e53e376ac1bbc8487e13d969828483346
2014-06-06 11:18:23 +09:00
Keisuke Kuroyanagi 0ee8644666 Merge "Add getMaxFrequencyOfExactMatches() to Dictionary." 2014-06-05 10:07:59 +00:00
Keisuke Kuroyanagi d988fcc93d Add getMaxFrequencyOfExactMatches() to Dictionary.
Bug: 13142176
Bug: 15428247
Change-Id: I93b44ef40cafb6b811c68fa79f3a4971fc3916a5
2014-06-05 19:05:58 +09:00
Tadashi G. Takaoka 0dbf15f152 Merge "Rename some boolean variables for readability" 2014-06-05 09:33:05 +00:00
Tadashi G. Takaoka a12d431c86 Merge "Refactor show voice key preferece migration code" 2014-06-05 09:33:03 +00:00
Tadashi G. Takaoka 2e32e37d5b Rename some boolean variables for readability
Change-Id: I434cf507e68349b9893ac084645986d6b3d7da91
2014-06-05 18:18:46 +09:00
Keisuke Kuroyanagi d6b89e17a6 Add jni method for getMaxFrequencyOfExactMatches().
Bug: 13142176
Bug: 15428247
Change-Id: I2ae25090b67ad0c6df97dec7712e2f7e0bb08c40
2014-06-05 18:16:11 +09:00
Tadashi G. Takaoka fcaf47f007 Refactor show voice key preferece migration code
Change-Id: I4f13e85a3db1ba4adf36c596cb23827bdcf93ae7
2014-06-05 15:23:58 +09:00
Baligh Uddin 5703eef9ca Import translations. DO NOT MERGE
Change-Id: Ia9a21cce0283a85dda9cd2fc82e694bf5aa44d00
Auto-generated-cl: translation import
2014-06-04 16:34:29 -07:00
Baligh Uddin 3e7e294fe3 Import translations. DO NOT MERGE
Change-Id: Ice980abcc56dc1f432b574ef19e6e082a2cef239
Auto-generated-cl: translation import
2014-06-04 16:32:28 -07:00
Jean Chalard 9d4d61f9c1 Merge "Allow multiple shortcuts for a personal dictionary word" 2014-06-04 13:32:45 +00:00
Tadashi G. Takaoka aea429200e Support more suggestions accessibility mode
Bug: 12491371
Change-Id: Ib01452b6a2a53faa591b05e62014f356e0511308
2014-06-04 19:45:38 +09:00
Tadashi G. Takaoka 86e1e1f97c Merge "Support more keys accessibility mode" 2014-06-04 10:23:16 +00:00
Tadashi G. Takaoka 62316d7e82 Support more keys accessibility mode
Bug: 12491371
Change-Id: Ib1fc8affbccfbaca3424ecdc2812f47047106aa2
2014-06-04 19:13:41 +09:00
Jean Chalard f8b4524c0e Allow multiple shortcuts for a personal dictionary word
Bug: 13869301
Change-Id: Icd77a308f85cc16dccffe65a532471c738d6fbc5
2014-06-04 18:01:50 +09:00
Tadashi G. Takaoka 70a1352cb9 Merge "Add onRegisterHoverKey to accessibility delegate" 2014-06-04 08:56:48 +00:00
Tadashi G. Takaoka 1a0cd0869d Add onRegisterHoverKey to accessibility delegate
Bug: 12491371
Change-Id: I8c5b1e91f41146a023edcc405e6120c0bf33f49b
2014-06-04 17:49:48 +09:00
Jean Chalard 4c91142771 Merge "Don't recapitalize just at the start of input" 2014-06-04 08:29:20 +00:00
Jean Chalard 07706dc347 Merge "Refactoring" 2014-06-04 07:43:31 +00:00
Jean Chalard c84b10840e Don't recapitalize just at the start of input
Bug: 13283555
Change-Id: Iab0466425dc44779d110f2cd29d725d22eb04827
2014-06-04 16:29:31 +09:00
Jean Chalard 4a1113b6b0 Refactoring
Rename `initialize' to `start' and `deactivate' to `stop' for ease
of understanding. It's completely bizarre that you can "deactivate"
a recapitalization and that will just restart a new one the next time
you press shift. Start and stop are easier to understand.

Change-Id: I455175aebfcfe11198c6c61bf2c6b19efc3f82df
2014-06-04 16:29:29 +09:00
Tadashi G. Takaoka a2b7c07e68 Merge "Revert "Pass hover event to accessibility key handling methods"" 2014-06-04 07:20:21 +00:00
Tadashi G. Takaoka 2c35f3bdd5 Revert "Pass hover event to accessibility key handling methods"
It turns out passing hover event to accessibility key handling methods
isn't necessary. This parically reverts I1f7feef707.

Bug: 12491371
Change-Id: I9d71cd29723344433427795e44cb22ac41faace6
2014-06-04 16:04:36 +09:00
Yohei Yukawa 5a3a7e3d8a Merge "Add a preference item for metrics logging" 2014-06-04 05:07:03 +00:00
Baligh Uddin f72ef2e5cf Merge "Import translations. DO NOT MERGE" 2014-06-04 05:00:15 +00:00
Baligh Uddin 755442bf52 Merge "Import translations. DO NOT MERGE" 2014-06-04 05:00:09 +00:00
Tadashi G. Takaoka 6e00de046a Merge "Reorder keys around the spacebar" 2014-06-04 04:04:28 +00:00
Yohei Yukawa 28c7b262aa Add a preference item for metrics logging
BUG: 14324207
Change-Id: Idc8582655bc73cb24e416e8ba78470209b2ff702
2014-06-04 13:02:42 +09:00
Tadashi G. Takaoka dc62c711aa Reorder keys around the spacebar
This CL reorders keys around the spacebar.
- On phone's symbols and symbols shift layout, the comma key is moved
  to the left of the spacebar to aligned with main layout.
- On tablet's layout, the comma key is moved to the left of the
  spacebar on all layout to aligned with the same layout of
  phone's. Also the comma key has "settings" as more keys.
- In Arabic and Perisan, the comma key of tablet already has some more keys
  This CL remove "/" and add "settings" instead.

Bug: 15281451
Change-Id: I6e0e75e4d4abfb1f356e7499be91424c7c57c58b
2014-06-04 00:45:25 +09:00
Jean Chalard 2660b70f80 Merge "Enrich the Spanish dictionary." 2014-06-03 14:24:39 +00:00
Jean Chalard ff3e488e1e Enrich the Spanish dictionary.
Enrich the dictionary with many words generated from stems
extracted from the dictionary and rules written by hand.
This adds 45,619 words to the dictionary. Hopefully, almost none
of them is incorrect, though a lot are not very common.

Bug: 8010862
Change-Id: I51c7ebd16ff859ec1e765b0604dd1cfca159ab08
2014-06-03 22:48:19 +09:00
Tadashi G. Takaoka ae0fab9550 Load KeyCodeDescriptionMapper class lazily
Change-Id: I2cba2bb5b2f449ed29895365b9c6ca285a7640fe
2014-06-03 18:15:59 +09:00
Tadashi G. Takaoka 0621dd1d3c Update shift key backgrounds for LXX_Dark
Bug: 15310025
Change-Id: I2fa267e5c448e28435f4737666a03b40f1f4a4d5
2014-06-03 16:34:35 +09:00
Tadashi G. Takaoka 9a2162e6f2 Merge "Fix synthesizing MotionEvent" 2014-06-03 07:32:52 +00:00
Tadashi G. Takaoka 2351b4f74f Fix synthesizing MotionEvent
KeyboardAccessibilityDelegate.synthesizeTouchEvent() wrongly passed
pointer's id as a 6th argument of MotionEvent.obtain method that
should be metaState.

Change-Id: I822f9647a1ba27ee8cee39f373f6a1c003ebf665
2014-06-03 14:46:36 +09:00
Tadashi G. Takaoka 7a750ca50d Fix PointerTracker debug output to reflect new KeyDetector
Change-Id: I913ec290ddfd0ae4cc6e600ba95b7442167f0989
2014-06-03 14:32:40 +09:00
Tadashi G. Takaoka a32803cefe More concise Key.toString()
Change-Id: I0ef983f54e828193e9c7e4a10c888f72702d499c
2014-06-03 13:32:42 +09:00
Baligh Uddin 9b3b126352 Import translations. DO NOT MERGE
Change-Id: Iffe895ca4827bb7e1addf1087c74c9023d2f130f
Auto-generated-cl: translation import
2014-06-02 17:47:25 -07:00
Baligh Uddin 4e42d5690f Import translations. DO NOT MERGE
Change-Id: I5af9740ea071063bb48738abe258a61d7e06ddae
Auto-generated-cl: translation import
2014-06-02 17:42:13 -07:00
Tadashi G. Takaoka d427d3b0fa Merge "Create AccessibilityDelegate only when accessibility mode is on" 2014-06-02 10:12:52 +00:00
Jean Chalard 28538d916c Merge "Fix an IOOB exception" 2014-06-02 10:07:12 +00:00
Tadashi G. Takaoka d78b586976 Create AccessibilityDelegate only when accessibility mode is on
Change-Id: I4cbae476d16723778b46ff765dd97832f279785f
2014-06-02 18:53:58 +09:00
Jean Chalard d660f3bec9 Fix an IOOB exception
Bug: 14602663
Change-Id: Ie2060931df911b44230d5a5ba268f687cbdd0dc8
2014-06-02 18:21:50 +09:00
Tadashi G. Takaoka a021395e84 Pass hover event to accessibility key handling methods
Bug: 12491371
Change-Id: I1f7feef707b95e8862db71cbc4f6f5585a2441dd
2014-06-02 17:13:47 +09:00
Tadashi G. Takaoka d0b79cc12a Add verbalization of symbols that are unsupported by TTS/TalkBack
Bug: 13336905
Change-Id: Iefd117fa7b30b8ba240590b13b03d7044fd37ede
2014-06-02 17:02:38 +09:00
Tadashi G. Takaoka 82674ca81c Fix to clear on hover visual cue
Bug: 12491371
Change-Id: Ib7ca91ae73aa40e45ea5f6d4e53348a261a4b823
2014-06-02 14:57:52 +09:00
Tadashi G. Takaoka fa9b9578d4 Refactor MoreKeysKeyboardView a bit
Bug: 12491371
Change-Id: I3ce1e6557e41a94146b882751f75ae4b5f6bc73d
2014-06-02 12:41:50 +09:00
Tadashi G. Takaoka 509d07c764 am 61a8a66c: Merge "Workaround to draw spacebar icon of emoji palettes" into lmp-preview-dev
* commit '61a8a66ccac1de7e146344dd77c8be84aa8daf33':
  Workaround to draw spacebar icon of emoji palettes
2014-05-30 15:03:10 +00:00
Tadashi G. Takaoka dc1d4455fe am ee4cc67e: Update shift key icon for LXX_Dark
* commit 'ee4cc67e260a1d2397abd83820f72906c1871751':
  Update shift key icon for LXX_Dark
2014-05-30 15:03:09 +00:00
Tadashi G. Takaoka 61a8a66cca Merge "Workaround to draw spacebar icon of emoji palettes" into lmp-preview-dev 2014-05-30 14:59:22 +00:00
Tadashi G. Takaoka 3558505bee Workaround to draw spacebar icon of emoji palettes
Bug: 15321822
Change-Id: Iab7cef83ffdf91c877c3ed2e59d412496b516e1c
2014-05-30 22:53:24 +09:00
Tadashi G. Takaoka ee4cc67e26 Update shift key icon for LXX_Dark
Bug: 15310025
Change-Id: I20bde50a2e751a5cd9871debd5ed1df0334c78e2
2014-05-30 22:03:08 +09:00
Keisuke Kuroyanagi 83d2bc656f Merge "Make prevWord = null if the next word starts from a connector." 2014-05-30 11:40:56 +00:00
Keisuke Kuroyanagi 8f71fab2ed Make prevWord = null if the next word starts from a connector.
This fixes PunctuationTests#
testAutoCorrectionWithSingleQuotesAround.

Bug: 14119293
Bug: 15334309

Change-Id: I604c21a21e89a5fc431fd56ab7b6ad03f4736b01
2014-05-30 20:30:17 +09:00
Tadashi G. Takaoka 9c45e178c7 am ba8836a9: Merge "Update action key backgrounds for LXX_Dark" into lmp-preview-dev
* commit 'ba8836a926a566a1c9f8a11c79dd0e06d0fb0485':
  Update action key backgrounds for LXX_Dark
2014-05-30 11:24:10 +00:00
Tadashi G. Takaoka ce8da614a6 am db2d6a20: Merge "Update enter and send icons for LXX_Dark" into lmp-preview-dev
* commit 'db2d6a202125bff92be495408babbb0c86bfb398':
  Update enter and send icons for LXX_Dark
2014-05-30 11:24:09 +00:00
Tadashi G. Takaoka c96eddaa6e am 3d5a72eb: Update spacebar icon of LXX_Dark
* commit '3d5a72ebe20b4cab415c43c8022427b7618d8519':
  Update spacebar icon of LXX_Dark
2014-05-30 11:24:08 +00:00
Tadashi G. Takaoka ba8836a926 Merge "Update action key backgrounds for LXX_Dark" into lmp-preview-dev 2014-05-30 11:01:25 +00:00
Tadashi G. Takaoka 523b55ac52 Update action key backgrounds for LXX_Dark
Bug: 15295839
Change-Id: I77206c88c38a31193db97ce42c9d00fc25c7ff58
2014-05-30 19:57:30 +09:00
Tadashi G. Takaoka db2d6a2021 Merge "Update enter and send icons for LXX_Dark" into lmp-preview-dev 2014-05-30 10:56:10 +00:00
Tadashi G. Takaoka 0b0fbe752a Update enter and send icons for LXX_Dark
Bug: 15298065
Bug: 15327280
Change-Id: I4dfade1afe3578e29daba777567f81d4ec782956
2014-05-30 19:28:46 +09:00
Tadashi G. Takaoka 3d5a72ebe2 Update spacebar icon of LXX_Dark
This CL does't fix Bug: 15321822 though.

Bug: 15298065
Bug: 15321822
Change-Id: Ie6ab1e230c1657317dc06193da598f04f682f521
2014-05-30 19:03:57 +09:00
Jean Chalard fa0e76dde6 Limit recapitalization for reasonable performance.
At 100k text, it's reasonably fast (less than 1s on latest hardware).

Bug: 12913404
Change-Id: I426b918b2610af24364934a1c37a7314f1142ad0
2014-05-30 18:04:39 +09:00
Tadashi G. Takaoka 6fe326ae42 am 761a6812: Don\'t reuse main keyboard\'s spacebar icon for Emoji palette
* commit '761a6812312c48d04bcb91e5c4448364c4925731':
  Don't reuse main keyboard's spacebar icon for Emoji palette
2014-05-29 15:06:36 +00:00
Tadashi G. Takaoka 761a681231 Don't reuse main keyboard's spacebar icon for Emoji palette
Bug: 15321822
Change-Id: I6a5a865364fb98e0ebb6206d80d5629bbcb817b8
2014-05-29 23:32:03 +09:00
Tadashi G. Takaoka d9190f8e8f am cdc7273b: Update action key background
* commit 'cdc7273b44b7d5fc5a1c848fb68960cee02c4f99':
  Update action key background
2014-05-29 13:09:29 +00:00
Tadashi G. Takaoka cdc7273b44 Update action key background
Bug: 15295839
Change-Id: Ia4af33b00bf361d088981df907468b4a61c1a076
2014-05-29 21:38:59 +09:00
Tadashi G. Takaoka aaf2bbf9c3 Merge "Remove LatinImeLogger and UsabilityStudyLogUtils" 2014-05-29 09:33:25 +00:00
Tadashi G. Takaoka 51ee5a47b8 Remove LatinImeLogger and UsabilityStudyLogUtils
This CL must be checked in together with Ie52007dc5c.

Bug: 15318007
Change-Id: Ie665f296e43b5485ae8ba7e949aa262794ee0dcc
2014-05-29 18:03:03 +09:00
Keisuke Kuroyanagi c4a3b9f0d6 Merge "Remove PrioritizedSerialExecutor." 2014-05-29 08:52:23 +00:00
Jean Chalard 944923f266 Fix: too many calls to getSuggestedWordsForTypingInput
This reverts commit d941ea18 and builds on it to fix the behavior
of the broken cases.
It also fixes a small, related bug that probably has existed for
a very long time: predictions not displayed when cancelling
double-space-to-period.

Bug: 15148015
Change-Id: I1f9358f8b6f5804f831643611576be347e83999d
2014-05-29 17:36:46 +09:00
Keisuke Kuroyanagi 94f88b4881 Remove PrioritizedSerialExecutor.
Bug: 15320560
Change-Id: Icb88a96ebd685da1d2cba7b07889a2751c603a2e
2014-05-29 17:36:32 +09:00
Tadashi G. Takaoka 262b1e7518 Merge "Remove researcher logger" 2014-05-29 07:30:16 +00:00
Tadashi G. Takaoka bbf556e8e1 Remove researcher logger
This CL must be checked in together with I5cc76807e3.

Bug: 15318007
Change-Id: I61423c3377ddc299fb332e742d6626c2e47145bb
2014-05-29 15:10:28 +09:00
Keisuke Kuroyanagi 7d57fc248b Clean up for Iba6eeb7981634e7ddb.
Bug: 15298959
Change-Id: I6921db77b7d231ad3aad99d4c380ae2ed6bbf540
2014-05-29 13:16:24 +09:00
Geoff Mendal 7a4f9b67c0 Merge "Import translations. DO NOT MERGE" 2014-05-29 00:04:20 +00:00
Geoff Mendal 6784e3946e Merge "Import translations. DO NOT MERGE" 2014-05-29 00:03:44 +00:00
Geoff Mendal 4cbde10ef4 Import translations. DO NOT MERGE
Change-Id: Ifd7419b2fda706b5035060348ed63d894f843a2e
Auto-generated-cl: translation import
2014-05-28 17:03:38 -07:00
Geoff Mendal 2ab1d14a30 Import translations. DO NOT MERGE
Change-Id: Ib6d03976824f13a9932473c440b476f950f92ef7
Auto-generated-cl: translation import
2014-05-28 17:02:16 -07:00
Geoff Mendal bba73206e1 Import translations. DO NOT MERGE
Change-Id: If37d804345c2a1611af5019c36b0cf6c21e04c0e
Auto-generated-cl: translation import
2014-05-28 16:58:49 -07:00
Keisuke Kuroyanagi b1e43d58a6 Merge "Stop directly checking SuggestedWordInfo.mKind" 2014-05-28 11:52:00 +00:00
Keisuke Kuroyanagi 4bffac6db9 Stop directly checking SuggestedWordInfo.mKind
Bug: 15298959

Change-Id: Iba6eeb7981634e7ddb896404978b30f6efd6e72f
2014-05-28 20:35:45 +09:00
Tadashi G. Takaoka 388dcd76b6 am 342eca74: Merge "Update shift, next, and previous icon of LXX_Dark" into lmp-preview-dev
* commit '342eca7444e40d98310b61cc52b648cc7a3a98a9':
  Update shift, next, and previous icon of LXX_Dark
2014-05-28 10:09:45 +00:00
Tadashi G. Takaoka 661b5d0e02 am 4f28e16c: Update enter icon of LXX_Dark
* commit '4f28e16ce52080c3411a4ab10fa6628260fd5740':
  Update enter icon of LXX_Dark
2014-05-28 10:09:44 +00:00
Tadashi G. Takaoka 918fe83693 am 91e69980: Use action key background for enter key
* commit '91e69980bebc37a37f5d176450d952ba394cb303':
  Use action key background for enter key
2014-05-28 10:09:28 +00:00
Tadashi G. Takaoka 342eca7444 Merge "Update shift, next, and previous icon of LXX_Dark" into lmp-preview-dev 2014-05-28 10:04:45 +00:00
Tadashi G. Takaoka ad8486c97f Update shift, next, and previous icon of LXX_Dark
Bug: 15298065
Change-Id: Id5cd6c989ac1e64389f060f692b578a2ceec0db8
2014-05-28 18:50:40 +09:00
Tadashi G. Takaoka 4f28e16ce5 Update enter icon of LXX_Dark
Bug: 15295910
Change-Id: I37d8c184ab500f4b4ffa57a6abe5516cb671ce29
2014-05-28 18:42:10 +09:00
Tadashi G. Takaoka 91e69980be Use action key background for enter key
This CL also use an action key background for the emoji key only on
phone becase the emoji key share the same position with other action
keys. The emoji key on tablet keeps using the functional key
background.

Bug: 15296851
Change-Id: I7b8550c61f19548f463a782342bdc0f496433a2a
2014-05-28 14:59:26 +09:00
Tadashi G. Takaoka f2b995769b Merge "Support fine grained hover event handling" 2014-05-28 05:53:53 +00:00