Commit graph

34803 commits

Author SHA1 Message Date
Keisuke Kuroyanagi
1910392eed Add Dictionary.isInDictionary().
Bug: 13142176
Bug: 15428247
Change-Id: If2d1c1fea7a69e41809a828da8dd032211ad144e
2014-06-09 11:04:28 +09:00
Tadashi G. Takaoka
ce2a7378e1 am dec599d1: Fix overwriting accessibility delegate in setKeyboard
* commit 'dec599d1723f4ff52f066bd2dd1a4457d30cd33c':
  Fix overwriting accessibility delegate in setKeyboard
2014-06-09 01:31:45 +00:00
Tadashi G. Takaoka
dec599d172 Fix overwriting accessibility delegate in setKeyboard
A keyboard accessibility delegate object should be a singleton for
each keyboard view.

Bug: 15437933
Bug: 15419386
Change-Id: Ia70853c644d950ea6130c1f209b89929b1cb1ee5
2014-06-08 22:12:52 +09:00
Baligh Uddin
0f537fd310 am 86a28db7: (-s ours) Merge "Import translations. DO NOT MERGE"
* commit '86a28db7f954dd7a1b158c7f1d7e9ae88258155a':
  Import translations. DO NOT MERGE
2014-06-07 04:25:14 +00:00
Baligh Uddin
898c10c2e4 am 42e34138: (-s ours) Merge "Import translations. DO NOT MERGE"
* commit '42e341386df9a6d1af8203f9424dd945538eda5d':
  Import translations. DO NOT MERGE
2014-06-07 04:25:13 +00:00
Baligh Uddin
055ecd0f84 Merge "Import translations. DO NOT MERGE" into jb-ub-latinimegoogle 2014-06-07 04:21:27 +00:00
Baligh Uddin
86a28db7f9 Merge "Import translations. DO NOT MERGE" 2014-06-07 04:21:24 +00:00
Baligh Uddin
69252b3b32 Merge "Import translations. DO NOT MERGE" into jb-ub-latinimegoogle 2014-06-07 04:21:22 +00:00
Baligh Uddin
42e341386d Merge "Import translations. DO NOT MERGE" 2014-06-07 04:21:20 +00:00
Tadashi G. Takaoka
bc4fe8d836 Fix build due to auto merged I1b6ed80d85
This CL must be reverted once prebuilts/sdk of jb-ub-latinimegoogle has
Theme.Material.

Bug: 15472289
Change-Id: Ibf85899bad83d03dc5cab6bbd1defa92f536088f
2014-06-07 11:56:05 +09:00
Alan Viverette
c5bb86a0c2 am 7869b651: Merge "Material theme"
* commit '7869b6515ebe0566cff8d1b2073febbeb7ffca41':
  Material theme
2014-06-06 22:53:09 +00:00
Alan Viverette
7869b6515e Merge "Material theme" 2014-06-06 22:49:31 +00:00
Alan Viverette
3f736107e2 Material theme
BUG: 15467097
Change-Id: I1b6ed80d85e4c3c8913d4a9e08c519379cb3c6e0
2014-06-06 15:22:57 -07:00
Alan Viverette
1d66382d9d am 600b7508: (-s ours) am ceb6e38c: (-s ours) DO NOT MERGE Material theme
* commit '600b750891955a78ca0f371c9912e59c5f87f19d':
  DO NOT MERGE Material theme
2014-06-06 22:07:09 +00:00
Alan Viverette
600b750891 am ceb6e38c: (-s ours) DO NOT MERGE Material theme
* commit 'ceb6e38c15756d35138dc4005b20dbeabdc7b50e':
  DO NOT MERGE Material theme
2014-06-06 22:04:17 +00:00
Alan Viverette
ceb6e38c15 DO NOT MERGE Material theme
BUG: 15467097
Change-Id: I1b6ed80d85e4c3c8913d4a9e08c519379cb3c6e0
2014-06-06 14:15:07 -07:00
Tadashi G. Takaoka
98e3826b5c am c20f4f29: am 0621dd1d: Update shift key backgrounds for LXX_Dark
* commit 'c20f4f296bcc09c7f6546e8cec293ef40ea5506a':
  Update shift key backgrounds for LXX_Dark
2014-06-06 16:30:43 +00:00
Tadashi G. Takaoka
c20f4f296b am 0621dd1d: Update shift key backgrounds for LXX_Dark
* commit '0621dd1d3c09b63e5cc47dd98718bd13566ba971':
  Update shift key backgrounds for LXX_Dark
2014-06-06 16:27:54 +00:00
Tadashi G. Takaoka
5482c061be am 2385314b: Merge "Refactor logic to determine showing suggestions strip or not"
* commit '2385314be081d4955e892b9c37e5aa7c0ed6e660':
  Refactor logic to determine showing suggestions strip or not
2014-06-06 10:50:28 +00:00
Tadashi G. Takaoka
2385314be0 Merge "Refactor logic to determine showing suggestions strip or not" 2014-06-06 10:48:00 +00:00
Keisuke Kuroyanagi
ab74fd6db7 am 7640bb15: Merge "Make Distracter filter use getMaxFrequencyOfExactMatches()."
* commit '7640bb15054a84e9c2f044bd90e1a6ee429b3325':
  Make Distracter filter use getMaxFrequencyOfExactMatches().
2014-06-06 10:47:10 +00:00
Keisuke Kuroyanagi
7640bb1505 Merge "Make Distracter filter use getMaxFrequencyOfExactMatches()." 2014-06-06 10:44:04 +00:00
Tadashi G. Takaoka
987bff9136 Refactor logic to determine showing suggestions strip or not
The logic to determine when the suggestions strip (a.k.a. the
contextual strip) should be shown is already complex. In addition to
that the voice input key get shown on the strip as well. There are a
several factors to be considered and a few things to control.

- The password input field shouldn't have the strip.
- Show voice input key on the strip or not.
  - User preference settings "Show Voice Input Key".
  - A voice IME exists and is enabled.
  - The input field may have a private IME option to prevent the voice
    input key from being displayed.
- Application can specify auto completions.
  - Full screen mode or not.
- User preference settings "Show correction suggestions".
  - Always show, Show in portrait mode, Always hide.
- The input field may have flags to prevent showing suggestions or
  auto corrections.
- Suggestions is empty or not.
- An important notice may be shown.

Bug: 14981852
Bug: 15436479
Change-Id: I3050fd53ee6271fc64a8f17b6b12d9581d37b750
2014-06-06 19:41:21 +09:00
Keisuke Kuroyanagi
166d8c2293 Make Distracter filter use getMaxFrequencyOfExactMatches().
Bug: 13142176
Bug: 15428247

Change-Id: I5c23fbea2851f891f76f19d9da2cb70ae964569b
2014-06-06 19:38:44 +09:00
Keisuke Kuroyanagi
7950d2358e am 8cae9f50: Merge "Implement getMaxProbabilityOfExactMatches()."
* commit '8cae9f50b4081564f98abd75d45d19f8091348f2':
  Implement getMaxProbabilityOfExactMatches().
2014-06-06 09:05:43 +00:00
Tadashi G. Takaoka
54fbc0a74c am d66d16f6: Update shift key backgrounds for LXX_Dark
* commit 'd66d16f650f275a0d66cb992a7b0fb5cb30f62b4':
  Update shift key backgrounds for LXX_Dark
2014-06-06 09:05:41 +00:00
Jean Chalard
a0ca665ca0 am 6464d73a: Merge "When starting input, include the literal word in suggestions"
* commit '6464d73ad99ab2f2617510af792a446c1ee5ab09':
  When starting input, include the literal word in suggestions
2014-06-06 09:05:40 +00:00
Tadashi G. Takaoka
b54c9deb4e am bd3b20ce: Merge "Always update voice key visibility"
* commit 'bd3b20ce733e19ac6a97a7f6934fc2ba0d183890':
  Always update voice key visibility
2014-06-06 09:05:38 +00:00
Keisuke Kuroyanagi
8cae9f50b4 Merge "Implement getMaxProbabilityOfExactMatches()." 2014-06-06 08:39:40 +00:00
Keisuke Kuroyanagi
d9b8602f48 Implement getMaxProbabilityOfExactMatches().
Bug: 13142176
Bug: 15428247
Change-Id: I5be6d683be95505412615ca7c88260de1ea05f54
2014-06-06 17:37:46 +09:00
Tadashi G. Takaoka
d66d16f650 Update shift key backgrounds for LXX_Dark
Bug: 15310025
Change-Id: I2fa267e5c448e28435f4737666a03b40f1f4a4d5
(cherry picked from commit 0621dd1d3c)
2014-06-06 07:48:43 +00:00
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
46a705f250 am eb771b9d: Merge "Fix a small bug with rotation."
* commit 'eb771b9dc4300e907fb5cdb256aedd3f174f0de2':
  Fix a small bug with rotation.
2014-06-06 06:36:12 +00:00
Jean Chalard
eb771b9dc4 Merge "Fix a small bug with rotation." 2014-06-06 06:34:00 +00:00
Tadashi G. Takaoka
2164a4126b am 3ca65c8f: Remove unused supportsSwitchingToShortcutIme attribute
* commit '3ca65c8fd56724a7b4b3440bccf613e5a1a17513':
  Remove unused supportsSwitchingToShortcutIme attribute
2014-06-06 05:46:06 +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
83531df584 am b7206b6b: Merge "Add action key test for Lxx theme"
* commit 'b7206b6bcaf73640dd25b00898f5edd1b3edb762':
  Add action key test for Lxx theme
2014-06-06 04:11:26 +00: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
04ef4ce21c am 70ff0c21: Merge "Fix a bug on rotation with selection."
* commit '70ff0c212262309e381d00636bf66d231a2a9dfb':
  Fix a bug on rotation with selection.
2014-06-06 03:14:27 +00: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
f91a47a2da am 0ee86446: Merge "Add getMaxFrequencyOfExactMatches() to Dictionary."
* commit '0ee8644666c01431adcc7d651ab1841c61f0bb43':
  Add getMaxFrequencyOfExactMatches() to Dictionary.
2014-06-05 10:10:12 +00: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
6357f63298 am 0dbf15f1: Merge "Rename some boolean variables for readability"
* commit '0dbf15f1528276105b434e50217dc5964f6bb63e':
  Rename some boolean variables for readability
2014-06-05 09:35:39 +00:00