Tadashi G. Takaoka
015fcc2685
(DO NOT MERGE) Enable InScript keyboards for L
...
This CL enables the followin InScript keyboards for L-release.
- Sinhala
- Tamil
- Bengali
- Telugu
- Marathi
- Kannada
- Malayalam
Bug: 6911143
Bug: 9978106
Bug: 10028755
Bug: 10028759
Bug: 10028772
Bug: 10029252
Bug: 10417006
Change-Id: Id8962b429fbb58b5c2c90a65849af6a6fe84a8c9
2014-08-11 15:51:12 +09:00
Keisuke Kuroyanagi
0c60d7c16c
am 0e74d71f: am a848c094: Merge "Rename distracter filter class." into lmp-dev
...
* commit '0e74d71f254ad40d989e82d387fafe0fbc83969c':
Rename distracter filter class.
2014-08-08 09:01:08 +00:00
Keisuke Kuroyanagi
9306c027b1
am aaa2ce26: am 6fef4ff0: Merge "Use suggestions in the distracter filter." into lmp-dev
...
* commit 'aaa2ce26203f3e85e7783ccd21275702ebfbe366':
Use suggestions in the distracter filter.
2014-08-08 09:01:07 +00:00
Keisuke Kuroyanagi
33ca0c80c1
Use suggestions in the distracter filter.
...
Bug: 13142176
Bug: 15531638
Change-Id: I609fa61fccf2a0c738726985806b7d9248eadf49
2014-08-08 17:01:16 +09:00
Keisuke Kuroyanagi
e05eb21826
Rename distracter filter class.
...
Bug: 13142176
Bug: 15531638
Change-Id: I89cef5264073eed25ffb5be10fdff731df0a3138
2014-08-08 17:01:19 +09:00
Ken Wakasa
3316dcd453
Merge "Revert "Introduce onEvent() to improve testability"" into lmp-dev
2014-08-05 00:07:36 +00:00
Ken Wakasa
f5f5fb4b64
Revert "Introduce onEvent() to improve testability"
...
This reverts commit ef74e737f5
.
Apparently, this CL broke several unit tests.
Change-Id: I86cf5f1ffb0214707afe99ee97f92ba8c5157f3f
2014-08-06 23:57:03 +00:00
Jean Chalard
ef74e737f5
Introduce onEvent() to improve testability
...
...and prepare for the future
Change-Id: Ieed96ab552993fd148e80b9c3355f1b569bd716f
2014-08-06 07:29:35 +00:00
Jean Chalard
93daa04d60
Deactivate tests for Myanmar
...
They are pretty extensive already and require an implementation
that works pretty well. However ours is based on an old architecture
and updating them will take time, so for the time being it's best
to just deactivate the tests.
Change-Id: I649a220d13fc455b4306706bb964602c27a5a28c
2014-08-06 16:42:30 +09:00
Akifumi Yoshimoto
c21619fe73
Make dict log cleanup.
...
Delete unneeded output when creating a dictionary
Change-Id: If7dc5dc74a53d0054967cb801e5ccfdd53ebe179
2014-08-06 15:32:18 +09:00
Tadashi G. Takaoka
fd8b4522df
(DO NOT MERGE) Remove preliminary keyboards from L
...
Change-Id: I9e1209b80b8919669b4496102b967220ab16146b
2014-08-07 13:00:34 +09:00
Tadashi G. Takaoka
03a1c442ae
Clean up compatible utility classes
...
Change-Id: I95a682052037d292801477db0f05e04926b61412
2014-08-04 01:21:29 +00:00
Tadashi G. Takaoka
ab661e3ef8
Make "Show correction suggestions" as a binary option
...
Formerly "Show correction suggestions" had three options, "always
show", "show in portrait mode", and "always hide". The reason behind
"show in portrait mode" was that there may not be enough screen estate
in landscape mode to show suggestions. Because recent phone devices
have relatively large screen, we decide to remove "show in portrait
mode" option.
Bug: 15780939
Change-Id: I896d737452c3893d43ce20bd88127f10c1eb3d83
2014-07-27 14:47:07 +09:00
Tadashi G. Takaoka
254c5c1e4b
Update Hindi Compact keyboard layout
...
Bug: 13779052
Change-Id: I350e5521b41d2a0b1cc17b6d4a48e6a816db916c
2014-07-19 16:43:35 -07:00
Yohei Yukawa
eac8670830
Enable StringUtils to split CharSequence like String#split
...
This is a groundwork for enabling LocaleSpan.
To enable LocaleSpan everywhere, we need to switch to
CharSequence from String so that Span infromation can be
preserved end-to-end. To achieve this, we need to have
CharSequence version of String#split.
BUG: 16029304
Change-Id: I0dd103185dcf62fb1e25054a374340790e6a4678
2014-07-19 22:47:56 +09:00
Ken Wakasa
e645715b25
Clean up under the util package.
...
- Move util classes that are unused in AOSP
- Remove unused methods
Change-Id: Ic97fd313f1e2bafd50609d42aa3a2d090b63eafc
2014-07-18 17:47:14 +09:00
Tadashi G. Takaoka
facfd28a47
Merge "Add some virama combinations and tall-a for Myanmar"
2014-07-09 17:22:29 +00:00
Tadashi G. Takaoka
f9f409530c
Add Material Light theme
...
Bug: 15782668
Change-Id: Id2ae47cfb2065d73f13701b9c6a041129dfd08ae
2014-07-10 07:43:04 +09:00
Yohei Yukawa
fc137f35c8
Simplify the wrapper for TextInfo#getCharSequence
...
This CL simplifies the wrapper method for
TextInfo#getCharSequence() because in the almost all cases we want
to use the result of TextInfo#getText() as the default value.
BUG: 16029304
Change-Id: I62f987aed8ca42b093255e6c0703d6120fa01299
2014-07-09 23:52:44 +09:00
Tadashi G. Takaoka
b657c053c4
Add some virama combinations and tall-a for Myanmar
...
Bug: 7963632
Change-Id: I478ecdc3b7409ccd8dc729da28ad4816a2eda75e
2014-07-09 17:41:56 +09:00
Yohei Yukawa
ba1cd8a44a
Merge "Fix test failur on pre-L devices"
2014-07-02 21:09:42 +00:00
Yohei Yukawa
05c053992b
Fix test failur on pre-L devices
...
This is a follow up CL for Iafbf2877db393dbd040295c21d.
BUG: 16029304
Change-Id: I0bfdcf901adb3178e6b9201d598ce9f588dcd253
2014-07-09 16:49:33 +09:00
Tadashi G. Takaoka
36713e5782
Fix alphabet label of Kannada and Telugu
...
Bug: 10029252
Bug: 10028759
Change-Id: Iea9cc1b7cafa97280503b0236b005cea57ba2c3d
2014-07-09 15:52:03 +09:00
Tadashi G. Takaoka
d5f32b38f5
Add Telugu keyboard
...
Bug: 10028759
Change-Id: Id1bf030a9928124ead695aa7bf76db48ca58de4b
2014-07-09 02:36:15 +09:00
Tadashi G. Takaoka
03aa084ccd
Add Kannada keyboard
...
Bug: 10029252
Change-Id: Ia03ff886f9e62a2fe228fe59b504b033eead7631
2014-07-09 01:44:04 +09:00
Tadashi G. Takaoka
cc8f4491e3
Merge "Add Malayalam keyboard"
2014-07-02 20:35:42 +00:00
Tadashi G. Takaoka
59e795ca3f
Add Malayalam keyboard
...
Bug: 10417006
Change-Id: Ieb03fe1f08c85417b5d9ad4d62c8a5bc6d0632bc
2014-07-08 23:42:01 +09:00
Tadashi G. Takaoka
2d4559f6c2
Fix Tamil keyboard unit test for tablet device
...
This is a follow up change of I226e640fe4.
Bug: 9978106
Change-Id: I6b4657a57bc36e01b0b6f8c56c48d31320b90702
2014-07-08 23:38:27 +09:00
Yohei Yukawa
e81ef9d360
Merge "Add a compatibility utility class for TextInfo"
2014-07-02 19:52:36 +00:00
Yohei Yukawa
733ec699cd
Add a compatibility utility class for TextInfo
...
This is a groundwork for enabling LocaleSpan support in spell
checker service. TextInfo#getCharSequence is supposed to be
available in API Level 21 and later. We need some abstraction
layer as usual.
BUG: 16029304
Change-Id: Iafbf2877db393dbd040295c21d429334e3a13a5f
2014-07-08 14:10:12 +00:00
Tadashi G. Takaoka
074e9812ee
Merge "Add Tamil keyboard"
2014-07-02 19:52:36 +00:00
Tadashi G. Takaoka
b5696b4f67
Add Tamil keyboard
...
Bug: 9978106
Change-Id: I226e640fe453076063121176121ed5923d1ccfa1
2014-07-08 18:05:07 +09:00
Tadashi G. Takaoka
af2e0a5697
Update Bengali keyboard to add a few vowel signs
...
Bug: 10028755
Change-Id: Ia0b8624470c5b0667a3d7267d3cf8d4c937b0b0c
2014-07-08 18:29:56 +09:00
Tadashi G. Takaoka
1c9e9ecdfb
Fix Armenian comma on phone device
...
Bug: 7963631
Change-Id: Ia28b4020652174daa2731b3eed7636db9639c6b6
2014-07-08 15:40:06 +09:00
Yohei Yukawa
da19daf570
Merge "Ensure each character is coverted by at most one LocaleSpan"
2014-07-02 21:09:42 +00:00
Yohei Yukawa
ece4548eb5
Ensure each character is coverted by at most one LocaleSpan
...
This is a groundwork to attach LocaleSpan for committed text
in LatinIME.
This CL adds a utility method to ensure that a given range
of the text is coverted by at most one LocaleSpan. Of course
it could be possible to allow a substring to be coverted by
multiple LocaleSpans at the same time, but ensuring uniqueness
for LocaleSpan is supposed to be a good starting point.
BUG: 16029304
Change-Id: Ic33a7178d0df1f05d3626aeb5773ec902254703f
2014-07-07 20:13:55 +09:00
Tadashi G. Takaoka
b1807d0bc7
Fix keyboard layout unit test
...
This is a followup of I065824f3fa.
Bug: 6911143
Change-Id: I47de962f9fbcfd8bbcd3af2f8005538322ffb932
2014-07-07 18:35:28 +09:00
Tadashi G. Takaoka
013ea9d57a
Merge "Add Bengali keyboard layout"
2014-07-02 21:09:42 +00:00
Tadashi G. Takaoka
0205fb220d
Add Bengali keyboard layout
...
This is a preliminary keyboard layout.
Bug: 10028755
Change-Id: I365fb8e942a60d4b690a4af95fcd35bf73fffbe4
2014-07-04 20:59:37 +09:00
Keisuke Kuroyanagi
bb843eb223
Move getPrevWordsInfoFromNthPreviousWord to PrevWordsInfoUtils.
...
Bug: 14425059
Change-Id: Id37022ac6c1545d6845abfbcdb7ed47f0e250eec
2014-07-07 13:07:57 +09:00
Yohei Yukawa
c4571a2e29
Merge "Add compatibility utility class for LocaleSpan"
2014-07-02 19:52:36 +00:00
Yohei Yukawa
a92fead202
Add compatibility utility class for LocaleSpan
...
This is a groundwork for enabling LocaleSpan support.
LocaleSpan is available in API Level 17 and later. We need some
abstraction layer as usual.
BUG: 16029304
Change-Id: Iead1afdc540216edb1b17f91a40d9edb2e790168
2014-07-04 20:31:34 +09:00
Yohei Yukawa
73065b778c
Remove dead code to fix test failure due to NoSuchMethodError
...
This CL removes following methods from StringUtils, which are
no longer used since Id3c262386a7bc7ed75966b1395a50171abe550d3.
- #joinCommaSplittableText
- #appendToCommaSplittableTextIfNotExists
BUG: 16000850
Change-Id: Ibdc9b7e463a19cdfac788b24c0a6322d0c5850c5
2014-07-04 19:12:14 +09:00
Yohei Yukawa
3895d7f8dc
Additional subtype ID should be independent of OS-version
...
This CL consolidates the initialization logic for additional
subtypes so that each additional subtypes can have predictable
subtype ID regardless of OS version.
Previously subtype IDs for additional subtypes are calculated
differently depending on the running OS version with hoping it
minimizes the risk of compatibility issues. However, it is
getting harder and harder to maintain slightly different
logic between OSes. Thus we decided to unify the logic into
that in KitKat even though it may causes some breaking changes.
Note that the actual extra values that are used to instantiate
InputMethodSubtype object are still determined on the fly
depending on the running OS version. However these actual
extra values are no longer used for the subtype ID calculation.
BUG: 16000850
Change-Id: Id3c262386a7bc7ed75966b1395a50171abe550d3
2014-07-04 15:08:58 +09:00
Jean Chalard
e063e1b218
Merge "Fix a unit test"
2014-06-26 23:14:30 +00:00
Jean Chalard
fa4c59f9b6
Fix a unit test
...
When switching languages, we need to wait until the dictionary is
loaded to compute suggestions.
Change-Id: I7c32a900b297cd6302bfdc020842581315f3007f
2014-07-01 18:19:11 +09:00
Jean Chalard
292deb632c
[SD7] Actually check for script.
...
...also implement the check for Hebrew and Arabic.
Bug: 15840116
Change-Id: Ia6433d7d98038ade64c171be4fe4b3f094111fac
2014-07-01 15:01:22 +09:00
Jean Chalard
20c89b1cf5
[SD5(2)] Remove useless args
...
Bug: 15840116
Change-Id: I1123426fbd9d420c1be64ccc917a5f870e70e6fa
2014-07-01 13:34:25 +09:00
Jean Chalard
3fb5a541a4
Fix tests
...
Change-Id: I12ba56d021b50c03dc62e3f3c8db3ecada2f6a4b
2014-06-30 15:25:31 +09:00
Ken Wakasa
92223c04de
Merge "Revert "Move getPrevWordsInfoFromNthPreviousWord to StringUtlis.""
2014-06-26 23:14:58 +00:00
Ken Wakasa
4569a734ad
Revert "Move getPrevWordsInfoFromNthPreviousWord to StringUtlis."
...
This reverts commit ba463c9a66
that broke the dicttool build.
Bug: 14425059
Change-Id: Ie1685587104d26e4416624747c97f6087c13388a
2014-06-27 15:07:07 +00:00
Keisuke Kuroyanagi
ba463c9a66
Move getPrevWordsInfoFromNthPreviousWord to StringUtlis.
...
Bug: 14425059
Change-Id: I3eb24e840c165e43f68c2a60fccf9974affb57a6
2014-06-27 18:08:17 +09:00
Keisuke Kuroyanagi
1c2f1ada83
Find multiple previous word information to support n-gram.
...
Bug: 14425059
Change-Id: Ieace636334a9b2a094527341d4fcfc05958296c5
2014-06-27 17:59:21 +09:00
Keisuke Kuroyanagi
1a2f3c4433
Merge "Move getPrevWordsInfoFromNthPreviousWord to StringUtlis."
2014-06-26 23:14:30 +00:00
Keisuke Kuroyanagi
17c5a388d6
Merge "Find multiple previous word information to support n-gram."
2014-06-26 23:14:58 +00:00
Tadashi G. Takaoka
8f70552a21
Add preliminary subtypes disabled for L-preview
...
Bug: 13966540
Bug: 13779052
Bug: 10028772
Bug: 7963632
Change-Id: Ieec809f2d391e90b1ec547a3a89e929db47a5ed1
2014-06-27 16:26:23 +09:00
Tadashi G. Takaoka
00da6ee5e8
Add Sinhala keyboard layout
...
Bug: 6911143
Change-Id: I9ff87ece3e68381c0e9855106e7320c227f09965
2014-06-27 16:16:30 +09:00
Keisuke Kuroyanagi
92827b0712
Merge "Make PrevWordsInfo have multiple words' information."
2014-06-24 01:52:26 +00:00
Keisuke Kuroyanagi
e708b1bc2e
Make PrevWordsInfo have multiple words' information.
...
Bug: 14425059
Change-Id: I2bd6a872904a44b80f638a13d91a97559217cc1a
2014-06-25 14:14:37 +09:00
Keisuke Kuroyanagi
0aef59746c
Make Beginning-of-Sentence prediction require two exposures.
...
Bug: 15868192
Change-Id: I4b577ad11c992d872d6f902fd50527d9ca5cc1ba
2014-06-25 20:20:44 +09:00
Keisuke Kuroyanagi
52cef13211
Fix: unit tests by clearing personalized dicts
...
Bug: 14119293
Change-Id: I61cc05fb09342103f453ba83709c6be68d2f695e
2014-06-25 11:40:29 +09:00
Keisuke Kuroyanagi
702e153fbc
Merge "Support migration/dump of Beginning-of-Sentence entries."
2014-06-24 01:59:00 +00:00
Keisuke Kuroyanagi
88fa47a27d
Support migration/dump of Beginning-of-Sentence entries.
...
Bug: 14119293
Change-Id: Ie975138f819794d5c34a7a547be5a6117050e084
2014-06-24 12:37:07 +09:00
Jean Chalard
bfea7dec1a
Add a test for Armenian periods.
...
Bug: 11463389
Change-Id: Ic1a612bd6b2693369a1688e6a2273cff26fbe6d1
2014-06-18 17:45:53 +09:00
Keisuke Kuroyanagi
17f03583c8
Merge "Add a method to update contextual dictionary."
2014-06-10 22:31:57 +00:00
Keisuke Kuroyanagi
356539699a
Add a method to update contextual dictionary.
...
Bug: 14161647
Change-Id: I2111f841c94e31d62b670da4236fc738df03a708
2014-06-16 17:00:12 +09:00
Keisuke Kuroyanagi
e041bfab5c
Update unit test for beginning-of-sentence.
...
Bug: 14119293
Change-Id: I594a1ca1096f0c12c678dd30eb75de905e55c5bb
2014-06-12 16:07:39 +09:00
Jean Chalard
4863a06544
Special case periods in the spell checker
...
Special case <valid word>.<valid word> to send as a suggestion
the same string where the periods is replaced by a space.
Bug: 10780091
Change-Id: I43c94675977f9ab5d7ee5671486cb742b39f3974
2014-06-10 19:52:58 +09:00
Jean Chalard
e689d37f72
Remove a useless method
...
Change-Id: I21a4219f682f43f4a84b1ab12d00dd930b35caa1
2014-06-10 12:47:55 +09:00
Jean Chalard
367c199de1
Remove mPrevWordsInfo
...
This member has outlived its usefulness. It's not clear now that it
makes things really faster, but it does bring a lot of complexity
that we can avoid by removing it.
Change-Id: Ifbc8094a45b56b958fe165b1930f4cc358a97721
2014-06-10 12:07:51 +09:00
Tadashi G. Takaoka
f4d3a6a31a
Merge "Make keyboard theme test robust"
2014-06-09 03:12:40 +00:00
Keisuke Kuroyanagi
bdf745da32
Check isInDictionary() before the distracter test.
...
Bug: 13142176
Bug: 15428247
Change-Id: I7ce2c09ebbef6ca8c056807c2a35f2f987fd436e
2014-06-09 11:43:45 +09:00
Tadashi G. Takaoka
f671725520
Make keyboard theme test robust
...
Change-Id: I2547c8af6fa73e646f697cb4450140859d87625e
2014-06-09 11:14:40 +09:00
Keisuke Kuroyanagi
1910392eed
Add Dictionary.isInDictionary().
...
Bug: 13142176
Bug: 15428247
Change-Id: If2d1c1fea7a69e41809a828da8dd032211ad144e
2014-06-09 11:04:28 +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
d9b8602f48
Implement getMaxProbabilityOfExactMatches().
...
Bug: 13142176
Bug: 15428247
Change-Id: I5be6d683be95505412615ca7c88260de1ea05f54
2014-06-06 17:37:46 +09:00
Tadashi G. Takaoka
3ca65c8fd5
Remove unused supportsSwitchingToShortcutIme attribute
...
Change-Id: I51c5247ac925a158facb79057f704b763b903552
2014-06-06 13:11:57 +09: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
07706dc347
Merge "Refactoring"
2014-06-04 07:43:31 +00: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
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
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
Jean Chalard
d0d3d813d2
Fix tests
...
DEBUG in LatinIME has been changed by Ie52007dc to mean both
DebugSettings.PREF_DEBUG_MODE and Settings.PREF_KEY_IS_INTERNAL
instead of just DEBUG_MODE as used to be the case. Tests depend
on the debug mode to test many things and they make sure they run
in debug mode or they fail. This has tests understand the change in
policy.
Change-Id: Ie9f29e6a1d85e19704c8940d3fcf97c13c3dbaa6
2014-05-29 22:15:56 +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
Keisuke Kuroyanagi
b9a3775203
Merge "Add PersonalizationDictionaryTests."
2014-05-29 07:37:47 +00:00
Keisuke Kuroyanagi
8d0a0d1f3e
Add PersonalizationDictionaryTests.
...
Bug: 11778342
Change-Id: Ice88f439ae11714e5ec9dd3b7616d0c2d59ea812
2014-05-29 16:33:21 +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
Jean Chalard
2381b8cfdc
Disable a test that fails for an unknown reason
...
It works when tested on the actual device, and on some versions
of the platform. Until we know what's wrong with resource loading
when running under the test harness, we need to disable this test.
Change-Id: I2d7ed9db940b9b73739de8325665bdafb6af58cb
2014-05-29 14:02:44 +09: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
Jean Chalard
fa69784a96
Run test only on KitKat devices
...
This won't work on < KK because it needs the armenian locale
to be present on the device. I don't know why, but when under
test, apps don't seem to be able to resolve resources for locales
not supported by the system.
Change-Id: Ie0f4fc30954978061cae751024bab5569a2ab2eb
2014-05-28 17:45:28 +09:00
Keisuke Kuroyanagi
3faf4fc5e7
Merge "Return whether the dynamic dict operation was success."
2014-05-27 09:01:46 +00:00
Keisuke Kuroyanagi
dfca51726e
Return whether the dynamic dict operation was success.
...
Bug: 12184250
Change-Id: Iee7e00c1e84c95551a077f4dd023c0a9b9ac9466
2014-05-27 17:30:00 +09:00
Keisuke Kuroyanagi
301eeaa976
Fix unit test build.
...
Change-Id: Id2c92c5035d7b357fa66c7ca671b72a1a33ebf3b
2014-05-27 16:43:11 +09:00
Keisuke Kuroyanagi
00da83ed75
Stop filtering out when perfect freq > top non-perfect freq.
...
Bug: 13142176
Change-Id: I0290df918a5bd5018bf55231dc462d5e797155c6
2014-05-27 16:09:59 +09:00
Keisuke Kuroyanagi
17bd4eb0c9
Apply distracter filter for UserHistoryDictionary.
...
Bug: 13142176
Change-Id: I67d63a5c789d7c587bcd7abacd26b2e76da11978
2014-05-27 01:10:04 +09:00
Keisuke Kuroyanagi
a6278eb9c1
Use whether it's exact match to detect distracters.
...
Bug: 13142176
Change-Id: Id5b7286d28897931f7bfe571be45d46ffeef4adf
2014-05-26 21:56:20 +09:00
Tadashi G. Takaoka
a91561aa58
Use Java 7 diamond operator
...
Change-Id: If16ef50ae73147594615d0f49d6a22621eaf1aef
2014-05-24 01:05:42 +09:00
Keisuke Kuroyanagi
e782f1f415
Merge "Update RichInputConnectionAndTextRangeTests."
2014-05-23 14:53:29 +00:00
Keisuke Kuroyanagi
9f9988e996
Merge "Introduce EMPTY_PREV_WORDS_INFO and BEGINNING_OF_SENTENCE."
2014-05-23 14:53:13 +00:00
Keisuke Kuroyanagi
f2c2657566
Update RichInputConnectionAndTextRangeTests.
...
Bug: 14119293
Change-Id: I952daaa8e938c67bd9e0e699d71a77a3b0bf8b0d
2014-05-23 23:19:35 +09:00
Keisuke Kuroyanagi
a790c5b683
Introduce EMPTY_PREV_WORDS_INFO and BEGINNING_OF_SENTENCE.
...
Bug: 14119293
Change-Id: I5020e5f0aa64bc3e97b3a3c2c07a60c8b765ed64
2014-05-23 23:19:33 +09:00
Keisuke Kuroyanagi
a37f374ad1
Version up dynamic dict format from 401 to 402.
...
Change-Id: Ibea36af905ade773ae3db3a5456f7b5a0ad7d220
2014-05-23 20:20:56 +09:00
Keisuke Kuroyanagi
1adca93381
Extend jni methods and enable Beginning-of-Sentence.
...
Bug: 14119293
Change-Id: I78fc877367dd0d6240eeacb750b6d2d0b93cba83
2014-05-23 19:58:58 +09:00
Jean Chalard
47ea762fb2
Add a test for armenian period.
...
Bug: 11463389
Change-Id: Ib482290672947df61b86cdb4e78461e9ce843f94
2014-05-23 19:35:43 +09:00
Keisuke Kuroyanagi
85befc0873
Merge "Make DistracterFilter interface."
2014-05-23 10:11:57 +00:00
Jean Chalard
cfdb1b8d26
Fix some auto-caps problems:
...
- (mainly for Spanish) auto-caps after inverted bang and what
- (German only) don't auto-cap after digits-period-space
Bug: 15177663
Bug: 12206753
Change-Id: Ia214bc067319469d9debbbfbdcb1dcff980847f0
2014-05-23 18:17:09 +09:00
Keisuke Kuroyanagi
f498e53933
Make DistracterFilter interface.
...
Bug: 13142176
Bug: 15094186
Change-Id: If94b0a155b5ea2ff6b839e7da9d12a9cc6553931
2014-05-23 18:12:37 +09:00
Keisuke Kuroyanagi
1fa3e9044f
Move distracter filter to dictionary facilitator.
...
Bug: 13142176
Bug: 15094186
Change-Id: Ib9e42f8e25538009f3ba62cf1e034cae3f6823c7
2014-05-23 16:10:36 +09:00
Keisuke Kuroyanagi
17f326b745
Add beginning of sentence information in PrevWordsInfo.
...
Bug: 14119293
Bug: 14425059
Change-Id: I65320920e840082b0b697bb621676716d0933e0c
2014-05-21 15:40:08 +09:00
Ken Wakasa
c18b1c42f3
Merge "Fix subtype count in unit test"
2014-05-21 04:39:09 +00:00
Tadashi G. Takaoka
c3f92fdc5c
Fix subtype count in unit test
...
This is a follow up of I38552cdbdd
Change-Id: Ia1091518614e8e4fa79219f2cdd7b34f4562181c
2014-05-21 13:01:12 +09:00
Keisuke Kuroyanagi
e507d92aa3
Use PrevWordsInfo for get/add/remove n-gram(bigram) entry.
...
Bug: 14119293
Bug: 14425059
Bug: 15102610
Change-Id: Ib482390f8d15b37d44a1a54e8c243a9eaec3f815
2014-05-21 11:15:38 +09:00
Ken Wakasa
4e21d3711f
Revert "Use PrevWordsInfo for get/add/remove n-gram(bigram) entry."
...
This reverts commit ff50b39176
.
Bug: 14119293
Bug: 14425059
Bug: 15102610
Change-Id: If278b4ab236e38d20d8cdc0761b0438911bd4ff9
2014-05-20 14:01:06 +00:00
Keisuke Kuroyanagi
ff50b39176
Use PrevWordsInfo for get/add/remove n-gram(bigram) entry.
...
Bug: 14119293
Bug: 14425059
Change-Id: I12e9ba977c153b514c6591ab52940712fd0874e3
2014-05-20 13:37:04 +09:00
Keisuke Kuroyanagi
83c40a2301
Use PrevWordsInfo instead of String in Java side.
...
Bug: 14119293
Bug: 14425059
Change-Id: I3d5da84881a49a04550180dd9aac2c37da2ed762
2014-05-19 13:55:40 +09:00
Tadashi G. Takaoka
04e2a494e2
Rename LXX theme to LXX_Dark
...
Bug: 14419121
Change-Id: I3d73c51d339eafec26871a659575d8b7b8cc441c
2014-05-19 10:27:36 +09:00
Keisuke Kuroyanagi
23246ed18d
Use dedicated DictionaryFacilitator for DistracterFilter
...
Bug: 15002249
Change-Id: Ic77eaa7d627d406daad7dcd15cb4884d9f647312
2014-05-17 01:18:08 +09:00
Tadashi G. Takaoka
3b12718537
Fix keyboard theme selection logic
...
Bug: 15002666
Change-Id: I5cc52db71ee609edffdb2613e93245e92ac6fc6a
2014-05-16 18:45:09 +09:00
Keisuke Kuroyanagi
34873a66f0
Fix: StringIndexOutOfBoundsException.
...
Bug: 14985751
Change-Id: I9df2f737555ab02e24e0fbd231a97c1eec26bc57
2014-05-16 15:32:12 +09:00
Keisuke Kuroyanagi
e810a266fd
Merge "Quit use bigram probability diff for ver4 dict."
2014-05-15 07:07:25 +00:00
Keisuke Kuroyanagi
64341927d2
Quit use bigram probability diff for ver4 dict.
...
Change-Id: I2cfcfbcf351877d1dff466a24974dbb05908f14e
2014-05-15 16:02:58 +09:00
Keisuke Kuroyanagi
aa7329de15
Merge "Add VERSION4_DEV(402) in Java side and use it for tests."
2014-05-14 13:42:24 +00:00
Keisuke Kuroyanagi
04536f14b0
Add VERSION4_DEV(402) in Java side and use it for tests.
...
Bug: 13406708
Change-Id: I7c9c53bf34d12dced7331a359a83f6444490783a
2014-05-14 22:37:07 +09:00
Jean Chalard
5ce39dfa78
Fix a bug where changing languages kills the composition.
...
Bug: 14926896
Change-Id: Id2a06c68a51f833db4d8bbc858a232c2696afb6e
2014-05-14 20:34:32 +09:00
Tadashi G. Takaoka
3610039723
Rename LMP to LXX just in case
...
This CL must be checked in together with I7e2ba67f31.
Change-Id: I51cb982f9cf0ace173d535a60293bb4be83bbb75
2014-05-14 18:39:39 +09:00
Jean Chalard
4b6660f8f9
Merge "Fix unit tests."
2014-05-14 07:18:56 +00:00
Jean Chalard
68730d1c8e
Fix unit tests.
...
Language change has always been strange. That's because we
didn't call the right method >.>
Also, extra values were not passed in correctly.
Change-Id: Ifc345988df944ad691fe22cb71cb519e47a5a223
2014-05-14 16:09:40 +09:00
Xiaojun Bi
25ec32f635
Merge "Implement the distracter filter"
2014-05-13 23:08:40 +00:00
Xiaojun Bi
ac20253806
Implement the distracter filter
...
Bug: 13142176
Change-Id: I85a048cdcbbad3d6020a25f900250d8d7a0fe3da
2014-05-13 15:52:14 -07:00
Keisuke Kuroyanagi
5c154edb55
Merge "Add large unit test for dictionary migration."
2014-05-13 06:40:28 +00:00
Keisuke Kuroyanagi
3c7f140e8e
Add large unit test for dictionary migration.
...
Bug: 13406708
Change-Id: Ic1eb627139a1ff57c0000d95d9bd57aa3609f753
2014-05-13 15:16:30 +09:00
Keisuke Kuroyanagi
61fc329901
Merge "Support bigram historical information migration."
2014-05-13 02:56:36 +00:00
Keisuke Kuroyanagi
620a05ae59
Support bigram historical information migration.
...
Bug: 13406708
Change-Id: I4bae53e43cb7653eac3b5bd13da2d2bc8aaf88a9
2014-05-13 01:28:30 +09:00
Jean Chalard
61ddac28de
Merge "Add initial reordering rules for Myanmar"
2014-05-12 11:29:53 +00:00
Keisuke Kuroyanagi
6b1160f899
Merge "Support unigram historical information migration."
2014-05-12 10:27:41 +00:00
Keisuke Kuroyanagi
9d7e8c717f
Support unigram historical information migration.
...
Bug: 13406708
Change-Id: Ibed15b3bc5d5ae68faefa379028dbe10d32b0c0f
2014-05-12 19:21:06 +09:00
Jean Chalard
281dbc3973
Add initial reordering rules for Myanmar
...
Bug: 13945569
Change-Id: Ib546ba110e87bf72afa7f42c878cc5f638bff6c7
2014-05-12 19:17:47 +09:00
Tadashi G. Takaoka
4fb490ff90
Merge "Fix javadoc comment of keyboard layout tests"
2014-05-12 08:23:04 +00:00
Tadashi G. Takaoka
e6f467c0fe
Fix javadoc comment of keyboard layout tests
...
Change-Id: I22592486ab306a57c4f6ca5a94e0ff69b68a58d6
2014-05-12 17:09:33 +09:00
Tadashi G. Takaoka
722f5c7966
Remove voice key from keyboard layout
...
Bug: 14419121
Change-Id: I71031f1ed9735a5a05dc584299b56512fb0b6866
2014-05-12 17:07:01 +09:00
Tadashi G. Takaoka
de3afcfdcc
Fix import and javadoc comments of unit tests
...
Change-Id: Ic3f249bf9e3a5ec7ffd07abd4bc38d343bb14d39
2014-05-12 16:25:49 +09:00
Tadashi G. Takaoka
139773d016
Enable voice and language switch keys for keyboard layout tests
...
Change-Id: I19ee05e30d09eb13753b737961882e345591c1df
2014-05-12 16:09:53 +09:00
Tadashi G. Takaoka
d5e3f02586
Add pseudo LMP theme
...
This CL introduce pseudo LMP theme. This keyboard theme is a
placeholder and not final. The drawables and colors that this CL
introduces should be replaced with the final assets.
Bug: 14419121
Change-Id: I7a37c884e4ee0cac09ad21ff729996c2b9c1b4af
2014-05-12 11:52:41 +09:00
Tadashi G. Takaoka
59c3ef1ff8
Refactor KeyboardTheme
...
This CL introduces two preference keys in addition to the existing one.
- pref_keyboard_theme: The new preference key that is used only in the
preference settings.
- pref_keyboard_layout_20110916: The previous preference key that
holds keyboard color scheme settings. This is superseded by the next
key.
- pref_keyboard_theme_20140509: The new preference key that holds
keyboard theme settings. This value is forcibly reset to LMP theme
on a LMP device. On a KitKat and previous device, the settings of
the pref_keyboard_layout_20110916 is carried on into this
preference.
This CL must be checked in together with Id7b3ddd8aa.
Change-Id: I2d55602d026e30b38d8f822d2124f5c5e4a9a812
2014-05-12 10:59:10 +09:00
Ken Wakasa
4f5ea4dfc2
Merge "Revert "Refactor KeyboardTheme""
2014-05-09 11:28:51 +00:00
Ken Wakasa
d47dca429e
Revert "Refactor KeyboardTheme"
...
This reverts commit 19688b584b
.
Build breakage.
Change-Id: I95d4be1578824eaee5a2fb08ec277250727ac668
2014-05-09 11:28:19 +00:00
Tadashi G. Takaoka
c2a49f3006
Merge "Refactor KeyboardTheme"
2014-05-09 08:26:05 +00:00
Tadashi G. Takaoka
19688b584b
Refactor KeyboardTheme
...
This CL introduces two preference keys in addition to the existing one.
- pref_keyboard_theme: The new preference key that is used only in the
preference settings.
- pref_keyboard_layout_20110916: The previous preference key that
holds keyboard color scheme settings. This is superseded by the next
key.
- pref_keyboard_theme_20140509: The new preference key that holds
keyboard theme settings. This value is forcibly reset to LMP theme
on a LMP device. On a KitKat and previous device, the settings of
the pref_keyboard_layout_20110916 is carried on into this
preference.
This CL must be checked in together with Ifcedeabbec.
Change-Id: Ibe75146e2c1c7eebf964ca86550baf244fedb79a
2014-05-09 16:21:02 +09:00
Keisuke Kuroyanagi
eaa347bc1a
Merge "Add VERSION4_TEST for testing."
2014-05-09 07:06:06 +00:00
Keisuke Kuroyanagi
455dc84cf2
Add VERSION4_TEST for testing.
...
Bug: 13406708
Change-Id: I0b434717ea3edbb131650af634c53cfbfe113c3e
2014-05-09 15:17:01 +09:00
Tadashi G. Takaoka
ebac0aa28f
Reorder accented letters of English
...
This is a follow up change of Idff0b6d08e.
Bug: 13177865
Change-Id: I00ea7cda954efbd248d2abc2fa6d4995d6acbf19
2014-05-09 12:06:42 +09:00
Tadashi G. Takaoka
71c96c079f
Merge "Add Marathi keyboard layout"
2014-05-02 01:20:07 +00:00
Tadashi G. Takaoka
a5ab5d830c
Add Marathi keyboard layout
...
Bug: 10028772
Change-Id: I7bca05bbbfdb2e5f61d5db611dff62ace3b71e31
2014-05-01 18:25:56 +09:00
Jean Chalard
29c00ff538
Introduce clustering punctuation
...
Bug: 10081730
Change-Id: If198fa3df68ecb267da0a278da41fd509d6165f1
2014-05-01 15:45:24 +09:00
Keisuke Kuroyanagi
1737b7ff5c
Use ReentrantReadWriteLock in ExpandableBinaryDictionary.
...
Bug: 8187060
Change-Id: Ic665f0a5e940708aa9addedac068a64900b307e7
2014-04-28 20:56:01 +09:00
Keisuke Kuroyanagi
67c0ed8f8c
Handle user history dictionary as an ExpandableBinaryDictionary.
...
Bug: 13755213
Change-Id: I1ea8a6df007af7153852f2d32bf5e8ec669c432b
2014-04-24 14:48:01 -07:00
Keisuke Kuroyanagi
2dcb5c1b4d
Remove clearAndFlushDictionary() and use clear().
...
clearAndFlushDictionary() was needed when dictionaries are constructed
in java side. All expandable dictionaries now use native code; thus,
this method is same to clear() and no longer needed.
Bug: 13755213
Change-Id: Ifd836e64f8ff807930f7cd2319b103b65e8fce70
2014-04-24 11:25:47 -07:00
Keisuke Kuroyanagi
3b7984752c
Support creating BinaryDictionary without creating dict file.
...
Bug: 14166482
Change-Id: Ic8c78ec2c8f39358a1f085a041b608972a380eef
2014-04-22 13:18:34 -07:00
Keisuke Kuroyanagi
ce76821dce
Revert "Support creating BinaryDictionary without creating dict file."
...
This reverts commit 89939b8708
.
Change-Id: I8ca1b55609ad305a93178063bd88bd1cede872af
2014-04-22 19:34:44 +00:00
Keisuke Kuroyanagi
89939b8708
Support creating BinaryDictionary without creating dict file.
...
Bug: 14166482
Change-Id: Ib065279f96e227ab0fee7c8141560c4ada744d3b
2014-04-22 12:01:33 -07:00
Tadashi G. Takaoka
c13c1adfa7
Sort keys from top-left to bottom-right order
...
Change-Id: I228748824de62e9e46fa43db200d23f41eb6d2ce
2014-04-21 18:36:11 -07:00
Tadashi G. Takaoka
5326dcfb7d
Use unmodifiable list to return keys from Keyboard
...
Change-Id: I85a0b18d2d78632e9a9f074eda1de9225001f876
2014-04-21 14:31:27 -07:00
Jean Chalard
1ee443d848
Merge "[IL135] Make getCurrentAutoCapsState private"
2014-04-15 02:27:52 +00:00
Jean Chalard
82d3a56b09
Merge "[IL134] Add an alternative path to getCurrentAutoCapsState"
2014-04-15 02:24:41 +00:00
Jean Chalard
751dc070bf
Merge "Fix updating the shift state upon backspace"
2014-04-14 12:31:22 +00:00
Jean Chalard
2282e8520a
Fix updating the shift state upon backspace
...
Bug: 13514349
Change-Id: If4c9db12b0ab5be676f7a2f72715f469066ee537
2014-04-14 21:28:24 +09:00
Jean Chalard
f091c491ea
[IL135] Make getCurrentAutoCapsState private
...
Bug: 8636060
Change-Id: I800aefe6fee4c14df6fe5abe21b2387c69abb8f5
2014-04-14 21:09:32 +09:00
Jean Chalard
ddc163988a
[IL134] Add an alternative path to getCurrentAutoCapsState
...
Bug: 8636060
Change-Id: I959e13d34910adad028ed6174f92029ff690eeeb
2014-04-14 21:09:32 +09:00
Tadashi G. Takaoka
21eafd7910
Use KeyboardTheme id insteand of index
...
This CL must be checked in together with I771216f8bd.
Bug: 14042743
Change-Id: I45c3acf9242985fb03721a9a6d377fbccc8e2019
2014-04-14 18:59:54 +09:00
Tadashi G. Takaoka
d6aa94e6b5
Refactor KeyboardTheme as top-level class
...
This CL should be checked in together with I63e33388f9.
Bug: 14042743
Change-Id: I13f0a45bac6f19e006bf1280a36173e52d6d7160
2014-04-14 17:10:11 +09:00
Tadashi G. Takaoka
977d052f8c
Revise myanmar keyboard layout
...
Note that this keyboard layout is still a preliminary.
Bug: 7963632
Change-Id: I4c53b3359ea2c0dd8e2ce7db8ec916ab9340eec5
2014-04-11 15:29:30 +09:00
Jean Chalard
2e967f6607
Merge "Fix some flaky tests."
2014-04-10 08:47:20 +00:00
Jean Chalard
4370ff0998
Fix some flaky tests.
...
In tests, we create many instances of LatinIME, but we never
destroy them. That means we never close the dictionaries nor
the handlers.
This change calls onDestroy, which closes all dictionaries, and
adds some code to finish the handlers.
Change-Id: I942517a2a940c54256b08763f6b38f5b55809f55
2014-04-10 17:32:05 +09:00
Tadashi G. Takaoka
9eec53a2c2
Merge "Reorder German umlaut letters"
2014-04-10 06:26:21 +00:00
Tadashi G. Takaoka
0ce38865d7
Merge "Reorder Greek accented vowels"
2014-04-10 06:25:25 +00:00
Tadashi G. Takaoka
784a4429ea
Reorder German umlaut letters
...
Bug: 13940739
Change-Id: I2e377b56e4a74d36c7e0cea4ad4e8d9341eb7feb
2014-04-10 15:24:45 +09:00
Tadashi G. Takaoka
d1cc4e0beb
Reorder Greek accented vowels
...
Bug: 13941339
Change-Id: I501e69d8f28526e3791ee8a338345926ff1b9a4c
2014-04-10 15:20:17 +09:00
Tadashi G. Takaoka
043d9bc2c9
Separate ItalianCustomizer as a top level class
...
This is a follow up of I57df8ca12b
Change-Id: I6a73de1ddecaf39ba42e03956e022cf7a398c864
2014-04-10 15:06:23 +09:00
Tadashi G. Takaoka
ac5e6ddd97
Add Italian (Switzerland) it_CH layout
...
Bug: 13920900
Change-Id: I57df8ca12b0d8cc4bbca2372c0470dcae5b5cbfb
2014-04-10 11:56:44 +09:00
Tadashi G. Takaoka
fa1ac6a9db
Merge "Add Spanish (Latin America) subtype (es_419)"
2014-04-09 10:22:06 +00:00
Tadashi G. Takaoka
9a924d7b00
Add Spanish (Latin America) subtype (es_419)
...
Bug: 7531804
Change-Id: I183443779f8d9d472ac5e528e1d905366bd83c90
2014-04-09 19:09:17 +09:00
Jean Chalard
77dd17ad36
Merge "[CB25] Refactor some array copying"
2014-04-09 09:57:00 +00:00
Jean Chalard
5f430e0189
[CB25] Refactor some array copying
...
Bug: 13406701
Change-Id: I09edd822f5cc2446b324d41c76d835bcff1191e6
2014-04-09 18:38:29 +09:00
Tadashi G. Takaoka
daf75d275e
Add en_IN subtype
...
Bug: 13914988
Change-Id: Ifd497a6a1d2686490e388e10e391475e97e9c166
2014-04-09 12:48:43 +09:00
Jean Chalard
90608190ec
Add shift mode tests
...
Change-Id: I067e91a1f899c1f83fd60adeae66495606812a95
2014-04-08 22:24:25 +09:00
Tadashi G. Takaoka
eb88f03f97
Merge "Fix subtype count unit test due to Ic7c17d9656"
2014-04-03 15:44:14 +00:00
Tadashi G. Takaoka
cafc8de2b2
Fix subtype count unit test due to Ic7c17d9656
...
Change-Id: Id708752e0d97a78ce02623956e32b990bc2a1cfd
2014-04-04 00:09:08 +09:00
Jean Chalard
28a59dd049
Fix a bug with double-space-to-period
...
Bug: 13778001
Change-Id: I3ebd57950cdfacbbcdc64ed214c0590519a0665c
2014-04-03 22:07:57 +09:00
Tadashi G. Takaoka
a3804e5e10
Add hindi_compact keyboard
...
Bug: 13779052
Change-Id: Ic7c17d96560501422a63340d7ce6bd8720e6c3c9
2014-04-03 19:47:31 +09:00
Tadashi G. Takaoka
303f440311
Refactor Devanagari key-styles
...
Change-Id: I799b04317d5b7daff4bb230294b2de474e5585eb
2014-04-03 17:59:29 +09:00
Tadashi G. Takaoka
b6ca5763aa
Add keyboard layout test for API 14 and 15
...
Bug: 13017434
Change-Id: Iaa995ba0b6ba4caabc7c77f084f376bebc5b766e
2014-04-03 17:49:43 +09:00
Tadashi G. Takaoka
7dd32dfc06
Remove country name from space bar text when appropriate
...
Remove country name from space bar text when there no other subtype
that is a same language and a same keyboard layout.
Bug: 8084704
Change-Id: I7c785a925ff7a0a61e5d009f138e1df52b3aeb3a
2014-04-02 12:50:52 +09:00
Tadashi G. Takaoka
9364d46ac3
Add SpacebarLanguageUtils class
...
The SpacebarLanguageUtils class is separated from SubtypeLocaleUtils
and handles the language name on the spacebar.
Bug: 8084704
Change-Id: I82f79a061d4f0cc2895263298c3ebf8ee444c61d
2014-04-01 12:17:06 +09:00
Tadashi G. Takaoka
03f9c4820a
Merge "Make NeedsToDisplayLanguage as a top level class"
2014-03-28 09:15:25 +00:00
Tadashi G. Takaoka
8e3c585265
Make NeedsToDisplayLanguage as a top level class
...
Change-Id: Ia05e0494a9dccebfb5c1316479e52f04cf2ae444
2014-03-28 17:59:57 +09:00
Keisuke Kuroyanagi
781e3df73b
Merge "Dictionary migration in Java side."
2014-03-28 08:07:26 +00:00
Jean Chalard
35645ac39a
Merge "[CB14.5] Stop copying WordComposers."
2014-03-28 06:51:17 +00:00
Jean Chalard
8e829c37df
[CB14.5] Stop copying WordComposers.
...
This is an overdue refactoring that I have been wanted to
do forever, and that we can at last do now that suggestions
come only from instances of BinaryDictionary instances.
With this, all unit tests and regression tests are
passing again.
Bug: 13667648
Bug: 13665487
Bug: 8636060
Change-Id: Ie23a19f9b7e692edf2ee0b107ddaff2d7db564b6
2014-03-28 15:26:27 +09:00
Tadashi G. Takaoka
2202d47386
Stop displaying locale string on short space bar
...
Bug: 12070355
Change-Id: I2d6fa20431bc56d5139caeac33e396b73906d075
2014-03-28 13:05:13 +09:00
Keisuke Kuroyanagi
a785fa8edd
Dictionary migration in Java side.
...
Bug: 13406708
Change-Id: If83938e4b4810d2e8353c70cdd8ef3ea97a29571
2014-03-27 17:46:35 +09:00
Keisuke Kuroyanagi
6008898b99
Merge "Move code only used for dicttool and tests under tests."
2014-03-27 06:37:10 +00:00
Keisuke Kuroyanagi
93cda5bb39
Move code only used for dicttool and tests under tests.
...
Bug: 13035567
Change-Id: I13c6df013ef2b67c9bf67455d9c32d283bf9ea2e
2014-03-27 15:30:32 +09:00
Tadashi G. Takaoka
c4b558d375
Merge "Rename text resources consistently"
2014-03-26 10:06:34 +00:00
Jean Chalard
1079665c3c
[CB14] Implement backspace in the combiner chain
...
Bug: 13622107
Bug: 13406701
Change-Id: I0023b398c4451253f9f717e2bd990b8a054004bc
2014-03-25 17:57:03 +09:00
Tadashi G. Takaoka
393efd94e5
Rename text resources consistently
...
- keylabel_<key>, the key label text of the <key>
- keyspec_<key>, the key specification of the <key>
- keyhintlabel_<key>, the hint label text of the <key>
- morekeys_<key>, the more keys specifications of the <key>
- additional_morekeys_<key>, the additional more keys specification of
the <key>
Change-Id: Ib2127f21fa33a2568e8a6eba65cfdb2cf78b480e
2014-03-25 13:02:09 +09:00
Jean Chalard
1dda9107ca
Merge "Rework the logic that tells if the cursor touches words"
2014-03-20 14:35:19 +00:00
Jean Chalard
72b67f6541
Rework the logic that tells if the cursor touches words
...
Bug: 13312942
Change-Id: I6be6a558bbc6c88508150f9c25cadbd0240ff88e
2014-03-20 23:16:53 +09:00
Tadashi G. Takaoka
df39eb6961
Consolidate KeyboardTextsSet.setLocale and loadStringResoucres
...
Change-Id: Idaf8f0d80fdeef4f1430f11d4083366e8ab7f6e0
2014-03-20 18:55:03 +09:00
Tadashi G. Takaoka
0c268b08b6
Merge "Refactor KeyboardTextsSet class"
2014-03-20 09:52:02 +00:00
Tadashi G. Takaoka
58b19655d8
Merge "Add pcqwerty layout test"
2014-03-20 09:40:47 +00:00
Tadashi G. Takaoka
6007a1b7a9
Refactor KeyboardTextsSet class
...
Change-Id: Ibb59a9d4902db9ec0e00244304be9ab35b215a50
2014-03-20 18:38:59 +09:00
Tadashi G. Takaoka
f64a9d8fd6
Fix subtype count test
...
This is a follow up of I6cce26c4fc.
Because we implement Basque, Galician, and preliminary Myanmar
keyboard.
Change-Id: I055fe4f453cf454bbd65bc8542733411e9d3556c
2014-03-20 17:09:08 +09:00
Tadashi G. Takaoka
e7420f6bd1
Merge "Utilize autoColumnOrder for punctuation more keys"
2014-03-20 08:01:18 +00:00
Tadashi G. Takaoka
844205ca2e
Utilize autoColumnOrder for punctuation more keys
...
Change-Id: I1f8f5013f0bdf93cf590b8bd00d680b31e03d8b0
2014-03-20 16:38:38 +09:00
Tadashi G. Takaoka
7e9e20b7bc
Fix subtype count test
...
Because we implement Basque and Galician keyboard.
Change-Id: I6cce26c4fc17100b8f0511cb38243b1235a2375f
2014-03-20 16:36:21 +09:00
Tadashi G. Takaoka
e884fde8d2
Merge "Fix Armenian punctuation order"
2014-03-20 06:43:50 +00:00
Tadashi G. Takaoka
e4e6e739e8
Merge "Add armenian_phonetic layout tests"
2014-03-20 04:55:58 +00:00
Tadashi G. Takaoka
d51aebd328
Fix Armenian punctuation order
...
Bug: 12623502
Change-Id: I6cc026132922e103d212b663664e7e0aa2404b35
2014-03-20 13:17:38 +09:00
Tadashi G. Takaoka
36c89e7e00
Add armenian_phonetic layout tests
...
This CL adds Armenian (AM) Phonetic keyboard test.
Bug: 13017434
Change-Id: I3b93ef2094b8a9d82ca0e1b88f93136271166ddb
2014-03-20 13:01:17 +09:00
Tadashi G. Takaoka
270bd39af4
Remove Latin comma from Arabic/Persian keyboard
...
Bug: 12807701
Change-Id: Icca63586d561a57b2c15cbfbae0de98dfcc137a3
2014-03-20 11:45:53 +09:00
Tadashi G. Takaoka
b2b01f9125
Add pcqwerty layout test
...
This CL adds No language PC Qwerty keyboard test.
Bug: 13017434
Change-Id: I64df493b884ff0a5d30fe9e66a8c5efffacb71aa
2014-03-19 21:20:33 +09:00
Tadashi G. Takaoka
110e9f9e88
Add Galician keyboard
...
Bug: 13169021
Bug: 13017434
Change-Id: I5d44dc4c2387644028a5cf594954795e014f357a
2014-03-19 19:41:18 +09:00
Tadashi G. Takaoka
0c797e8867
Add Basque keyboard
...
Bug: 13169021
Bug: 13017434
Change-Id: I46c738e833a9f287586a03bda9ab0230f8b9eac1
2014-03-19 19:40:34 +09:00
Tadashi G. Takaoka
9ab9f281f9
Merge "Add cloemak keyboard test"
2014-03-19 10:38:42 +00:00
Tadashi G. Takaoka
4640e7c989
Fix French accented letters order
...
Bug: 13497958
Change-Id: I062a0e2e75b2f6c2606b1309808cbaa83cc91018
2014-03-19 17:43:53 +09:00
Tadashi G. Takaoka
5b2c686885
Add cloemak keyboard test
...
This CL adds No language Colemak keyboard test.
Bug: 13017434
Change-Id: Ifa3480ce874013e0ae6ed62dd842e37f00d7d882
2014-03-19 17:41:21 +09:00
Tadashi G. Takaoka
e40a52cc62
Add dvorak layout tests
...
This CL adds, English Dvorak, French Dvorak, German Dvorak, and No
language Dvorak keyboard tests.
Bug: 13017434
Change-Id: Ie87cee896c687eec279141389a1feda8951fddad
2014-03-19 17:40:18 +09:00
Tadashi G. Takaoka
0dabae720a
Support additional more keys for keyboard layout test
...
Bug: 13017434
Change-Id: I44c31dce3391d9638979539bb5e58c0525186fb4
2014-03-19 17:27:48 +09:00
Tadashi G. Takaoka
54d74ff74a
Fix unit test message
...
Change-Id: I7f98cb5784ebd7a04cd2951f0b62fa4afdcf085c
2014-03-19 15:25:27 +09:00
Tadashi G. Takaoka
b58b529c9a
Merge "Clean up keyboard layout test harness a bit"
2014-03-18 08:48:23 +00:00
Tadashi G. Takaoka
6d44cb5122
Clean up keyboard layout test harness a bit
...
Bug: 13017434
Change-Id: I66e5da53b9afbe44f43b8c398c2821e7a72ec4b4
2014-03-18 17:11:43 +09:00
Tadashi G. Takaoka
1325ddbae3
Merge "Guard possible NumberFormatException"
2014-03-18 07:26:18 +00:00
Tadashi G. Takaoka
d2c6151d4d
Guard possible NumberFormatException
...
Bug: 13472379
Change-Id: Ib7640b3d8816d8d7fb4747d2288eedd94bc49b06
2014-03-18 15:40:43 +09:00
Tadashi G. Takaoka
f4f4ae8fee
Merge "Add hebrew keyboard test"
2014-03-17 10:22:06 +00:00
Tadashi G. Takaoka
7961d3bb02
Add hebrew keyboard test
...
This CL adds Hebrew keyboard test.
Bug: 13017434
Change-Id: I4b200e9d1e70919d671281bf52f671240ddbe63a
2014-03-17 18:31:41 +09:00
Tadashi G. Takaoka
e8facf4559
Fix cosmetic comment typo
...
Change-Id: I9772daaa2f742556b4f63ed8c08693dbce5f7534
2014-03-17 18:05:28 +09:00
Tadashi G. Takaoka
b8f8d2ceb8
Add farsi keyboard test
...
This CL adds Persian keyboard test.
Bug: 13017434
Change-Id: I8c73b0940d78642fa17ac17c88ed5f5d7d7b0fa8
2014-03-17 12:42:46 +09:00
Tadashi G. Takaoka
d28ac52033
Merge "Add lao keyboard test"
2014-03-17 03:25:59 +00:00
Tadashi G. Takaoka
082e033ea2
Merge "Add mongolian keyboard test"
2014-03-17 03:25:51 +00:00
Tadashi G. Takaoka
a8b3748b9a
Merge "Add georgian keyboard test"
2014-03-17 03:25:42 +00:00
Tadashi G. Takaoka
4b94d09444
Merge "Fix Arabic keyboard text and test comments"
2014-03-17 03:25:34 +00:00
Tadashi G. Takaoka
538abc27dc
Fix Arabic keyboard text and test comments
...
Bug: 13017434
Change-Id: Iec2ddab719e0c68a70bcf56a90eb4522c5fd7978
2014-03-17 11:56:13 +09:00
Tadashi G. Takaoka
1234c7c4c6
Add georgian keyboard test
...
This CL adds Georgian (Georgia) keyboard test.
Bug: 13017434
Change-Id: I8499bda89365a15cfb417bdfc0bf07cf51ab232b
2014-03-17 11:37:18 +09:00
Tadashi G. Takaoka
a62906126a
Add mongolian keyboard test
...
This CL adds Mongolian (Mongolia) keyboard test.
Bug: 13017434
Change-Id: I9241ef442c97a6120e97af97bbd189442e5f35fe
2014-03-17 11:36:48 +09:00
Tadashi G. Takaoka
4a00627fcc
Add lao keyboard test
...
This CL adds Lao (Laos) keyboard test.
Bug: 13017434
Change-Id: I4ae63099d260b14df9663f1bc938cce7c384b9fd
2014-03-17 11:35:26 +09:00
Tadashi G. Takaoka
7db6162622
Add khmer keyboard test
...
This CL adds Khmer (Cambodia) keyboard test.
Bug: 13017434
Change-Id: I610da333950ccada2bf20ae5ea49073292141e86
2014-03-17 10:57:45 +09:00
Tadashi G. Takaoka
bef6a4e209
Cleanup key definitions a bit
...
Bug: 13017434
Change-Id: I0d0cfa2eb62b5030ff3c67fa40d203255e63258c
2014-03-17 10:37:58 +09:00
Tadashi G. Takaoka
e8dd8b99e6
Merge "Add nepali_(romanized|traditional) keyboard layout tests"
2014-03-14 11:05:33 +00:00
Tadashi G. Takaoka
b76cebee18
Merge "Add hindi keyboard test"
2014-03-14 11:04:13 +00:00
Tadashi G. Takaoka
1d6855eecc
Add nepali_(romanized|traditional) keyboard layout tests
...
This CL adds Nepali Romanized, Nepali Traditional keyboard tests.
Bug: Bug: 13017434
Change-Id: Icc00aa8c34e333331a459f8d488621308dfb572b
2014-03-14 20:03:25 +09:00
Tadashi G. Takaoka
e5c0e90221
Merge "Cleanup qwerty expected layout definition a bit"
2014-03-14 11:02:05 +00:00
Tadashi G. Takaoka
d6e561552c
Add hindi keyboard test
...
This CL adds Hindi keyboard test.
Bug: Bug: 13017434
Change-Id: Ie9a4af5b758923474840748e190b1450d958012a
2014-03-14 20:01:48 +09:00
Tadashi G. Takaoka
5c126f81ee
Merge "Add south_slavic keyboard layout tests"
2014-03-14 10:55:51 +00:00
Tadashi G. Takaoka
815690273f
Merge "Add swiss keyboard layout tests"
2014-03-14 10:55:36 +00:00
Tadashi G. Takaoka
a558cbaf69
Merge "Add spanish keyboard layout tests"
2014-03-14 10:55:25 +00:00
Tadashi G. Takaoka
832e075167
Merge "Add qwertz keyboard layout tests"
2014-03-14 10:55:12 +00:00
Tadashi G. Takaoka
e4b742cce8
Add spanish keyboard layout tests
...
This CL adds, Catalan, Esperanto, Spanish, Spanish (US), and Tagalog
keyboard tests.
Bug: 13017434
Change-Id: I0f33bfeb05300e9dd525faac982c5f08e12f1847
2014-03-14 19:48:44 +09:00
Tadashi G. Takaoka
cc7ce4ea9b
Cleanup qwerty expected layout definition a bit
...
Bug: 13017434
Change-Id: I21152679986924fa56966f5476c6e797d92da57c
2014-03-14 19:41:14 +09:00
Tadashi G. Takaoka
ffd7db77c3
Add swiss keyboard layout tests
...
This CL adds French (CH) and German (CH) keyboards tests.
Bug: 13017434
Change-Id: Ic8a1849cb49c4f72a9a7cd9b3f2ce3a848e0334a
2014-03-14 19:37:06 +09:00
Tadashi G. Takaoka
9cd2729c88
Merge "Add greek keyboard layout test"
2014-03-14 10:36:56 +00:00
Tadashi G. Takaoka
38df3a9072
Merge "Add nordic layout keyboard tests"
2014-03-14 10:36:45 +00:00
Tadashi G. Takaoka
3eb267cc46
Merge "Add bulgarian and bulgarian_bds keyboard layout tests"
2014-03-14 10:36:35 +00:00
Tadashi G. Takaoka
e6674070a5
Add bulgarian and bulgarian_bds keyboard layout tests
...
Bug: 13017434
Change-Id: I271476d06941864a44890321231b1f0ad570c05b
2014-03-14 19:31:06 +09:00
Tadashi G. Takaoka
4e3fa63891
Add south_slavic keyboard layout tests
...
This CL adds, Macedonian and Serbian keyboard tests.
Bug: 13017434
Change-Id: I6336a700b42dc886c7b1ccb32da83a5dbf9bd767
2014-03-14 19:30:02 +09:00
Tadashi G. Takaoka
2f23ad940a
Add qwertz keyboard layout tests
...
This CL adds Croatian, Czech, French (QWERTY), German, Hungarian
keyboard tests.
Bug: 13017434
Change-Id: If567f86335d9f4a2985cc73544fe85dee32c9844
2014-03-14 19:25:13 +09:00
Tadashi G. Takaoka
c132390b58
Add nordic layout keyboard tests
...
This CL adds Danish, Estonian, Finnish, Norwegian, and Swedish tests.
Bug: 13017434
Change-Id: I26fa2c42b78f708c0ffa2c3b4e7d340a4306f74b
2014-03-14 19:22:51 +09:00
Tadashi G. Takaoka
a394a62d0b
Add greek keyboard layout test
...
This CL adds Greek keyboard tests.
Bug: 13017434
Change-Id: Iab02d0582d71ebb37a3b96efc258781ed65db203
2014-03-14 19:18:33 +09:00
Tadashi G. Takaoka
be1c44c688
Merge "Add east_slavic keyboard layout tests"
2014-03-14 10:17:51 +00:00
Tadashi G. Takaoka
391eaaeed5
Merge "Add azerty layout keyboard tests"
2014-03-14 10:17:39 +00:00
Tadashi G. Takaoka
240fb4b3ff
Add east_slavic keyboard layout tests
...
This CL adds, Belarusian, Kazakh, Kyrgyz, Russian, and Ukrainian
keyboard tests.
Bug: 13017434
Change-Id: I0c53c66dd062e549485075398ed80e7836b50566
2014-03-14 19:10:52 +09:00
Tadashi G. Takaoka
a56681c9cd
Add azerty layout keyboard tests
...
This CL adds French and Dutch (Belgium) keyboard tests.
Bug: 13017434
Change-Id: I06dc20c86493ef67dda141b49523bb3ce7960d94
2014-03-14 19:04:36 +09:00
Tadashi G. Takaoka
8e63a8eaa0
Add arabic keyboard layout test
...
Bug: 13017434
Change-Id: If22733ceff08ac8568943ec461e018ea586afc23
2014-03-14 19:02:32 +09:00
Tadashi G. Takaoka
598c311ce0
Add thai layout test
...
This CL adds Thai keyboard test.
Bug: 13017434
Change-Id: Ic0d7a0807e03ac93509ef9f48b97eebe5456ea71
2014-03-14 18:43:37 +09:00
Tadashi G. Takaoka
cd15cfdaab
No need to specify dimensions for AbstractKeyboardBuilder
...
Bug: 13017434
Change-Id: I1cce6d9f072dff8ce2a53b8089f09105ba812a2b
2014-03-14 18:37:40 +09:00
Tadashi G. Takaoka
746f94c671
Add ZWNJ_ZWJ_KEY for keyboard layout test
...
This CL also refactors Symbols and SymbolsShifted class a bit.
Bug: 13017434
Change-Id: I42bfe96553ea8447fc834d29c09ce1ce7794650d
2014-03-14 16:32:09 +09:00
Tadashi G. Takaoka
74f259a74e
Add moreKeys helper method for unit test
...
Bug: 13017434
Change-Id: Icfaa4093686e2d8dec00d5acce894bfc6a2474b7
2014-03-14 15:54:25 +09:00
Keisuke Kuroyanagi
599e61d70c
Merge "Change default decaying parameters."
2014-03-14 06:16:02 +00:00
Keisuke Kuroyanagi
4ba6eec9fd
Merge "Fix unit tests."
2014-03-14 05:12:51 +00:00
Keisuke Kuroyanagi
98705b6bf5
Fix unit tests.
...
Change-Id: I2a85763358e1eef0f76ef827413afffeb4cb8058
2014-03-14 12:27:23 +09:00
Keisuke Kuroyanagi
73a2426d45
Change default decaying parameters.
...
Bug: 13458617
Change-Id: I4942af4a48881fb6ca866c74140b262e6d323f4a
2014-03-14 12:23:24 +09:00
Tadashi G. Takaoka
1912609a9e
Add qwerty keyboard layout tests
...
This CL adds Afrikaans, Azerbaijani (AZ), Dutch, English (UK), French
(CA), German (QWERTY), Icelandic, Indonesian, Italian, Latvian,
Lithuanian, Malay (NY), Polish, Portuguese (BR/PT), Romanian, Slovak,
Slovenian, Swahili, Turkish, Vietnamese, Zulu, and No Language
keyboards tests.
Bug: 13017434
Change-Id: I2343dc8e74172ac551ef86f82453ae796b6f19dc
2014-03-14 10:42:27 +09:00
Tadashi G. Takaoka
15a6b66dda
Refactor keyboard layout test more customizable
...
Bug: 13017434
Change-Id: I804b4cb9f56684d425e83a20cb3f71d947a87f98
2014-03-13 20:55:22 +09:00
Keisuke Kuroyanagi
61467744e7
Unit test update for I7ed95a54344d8b.
...
Change-Id: Ic8af56b8741ee7c231d73ce6a660fd32c9f5a3b3
2014-03-12 15:41:20 +09:00
Tadashi G. Takaoka
8542c48c30
Cleanup private method names
...
This is a follow up of Ib0ded6f98a.
Change-Id: I91ad3504d301113680194ad5b10913fc86006150
2014-03-11 19:04:57 +09:00
Tadashi G. Takaoka
8c1965ba04
Add keyboard layout name constant
...
Change-Id: I6cdc3efdb58e7a1efb3e352d80d0aa41e333a150
2014-03-11 18:41:55 +09:00
Tadashi G. Takaoka
bab437fb3b
Another small cleanup for test code
...
Change-Id: Ib0ded6f98a6ce9197c8af79778af59d894ee54a6
2014-03-11 17:55:11 +09:00
Tadashi G. Takaoka
0722e6b3df
Small cleanup for test code
...
Change-Id: I5106c8c52bdd11bfd23aa2e09f7ea53504083679
2014-03-11 17:28:19 +09:00
Tadashi G. Takaoka
f247b171ce
Refactor currency and quotes keys tests
...
Bug: 13017434
Change-Id: I38dff3c8b9b28eff4397c7cdbad623fb43cbc312
2014-03-11 16:11:31 +09:00
Keisuke Kuroyanagi
32326a9d7a
Merge "Move DictionaryOptions from FusionDictionary to FormatSpec."
2014-03-07 10:42:18 +00:00
Tadashi G. Takaoka
a0a8d96c49
Merge "Filter Spacer before keyboard layout test"
2014-03-07 10:33:37 +00:00
Tadashi G. Takaoka
8c6b34e51d
Filter Spacer before keyboard layout test
...
Bug: 13017434
Change-Id: I836d2f79a839ee77325535c08d7a59bb02b83c28
2014-03-07 19:18:51 +09:00
Keisuke Kuroyanagi
a103e29d00
Merge "Separate WeightedString from FusionDictionary."
2014-03-07 09:07:26 +00:00
Tadashi G. Takaoka
0dc53b0699
Add en_US keyboard layout test
...
Bug: 13017434
Change-Id: I3fb343721221ecae210bffcb3e83ce4f2df0d0ff
2014-03-07 17:44:36 +09:00
Tadashi G. Takaoka
238e9898cd
Add QWERTY expected keyboard layouts
...
Bug: 13017434
Change-Id: Ia8a65b692521f0050f003e20712a5873a0b236b4
2014-03-07 17:39:54 +09:00
Tadashi G. Takaoka
ff8405cdfb
Add ActualKeyboardBuilder for testing keyboard layouts
...
Bug: 13017434
Change-Id: I38b1f5c261ea1f3ff312c780d7d9b5fe3fba8aaf
2014-03-07 17:29:58 +09:00
Tadashi G. Takaoka
f7c84f35c7
Add ExpectedKeyboardBuilder for testing keyboard layouts
...
Bug: 13017434
Change-Id: I77ea2a60b1f3adf061689c68971d136ea5cf595e
2014-03-06 19:32:43 +09:00
Keisuke Kuroyanagi
3ad4af2354
Move DictionaryOptions from FusionDictionary to FormatSpec.
...
Bug: 8187060
Bug:13035567
Change-Id: Id4f45e589521ae98c926a4c0607be10ce1a983f2
2014-03-06 18:53:09 +09:00
Keisuke Kuroyanagi
516f86815d
Separate WeightedString from FusionDictionary.
...
Bug: 8187060
Change-Id: I40c1dafca3eb52244c64fdb4c1db30a56385d678
2014-03-06 18:53:06 +09:00
Tadashi G. Takaoka
c39c912a33
Add ExpectedKey for testing keyboard layouts
...
Bug: 13017434
Change-Id: I1c3b2c9cd1b86bdd782fc522b83380ec112f863b
2014-03-06 18:13:28 +09:00
Keisuke Kuroyanagi
274eae95ba
Merge "Separate utility methods from BinaryDictionary."
2014-03-05 10:07:33 +00:00
Keisuke Kuroyanagi
e784148ae6
Separate utility methods from BinaryDictionary.
...
Bug: 8187060
Change-Id: Ice2984e332b7bd3bb17174aefc80b5635b72fc50
2014-03-05 18:19:34 +09:00
Tadashi G. Takaoka
3da9e4ade0
Add action key label/icon tests
...
Bug: 13017434
Change-Id: Ib04b377f4f4f9081573ef341f15b4b444ce7260c
2014-03-04 15:42:59 +09:00
Tadashi G. Takaoka
73b3b81149
Separate flaky unit test from KeyboardLayoutSetTestsBase
...
Move the flaky unit test to KeyboardLayoutSetSubtypesCountTests.
Bug: 13291370
Bug: 13017434
Change-Id: I2144be4cc6b8215b895c45f47a5190fdeaa806f9
2014-03-04 15:40:40 +09:00
Tadashi G. Takaoka
3f91acdc96
Add additional subtypes test
...
Change-Id: I2994fd72bc284c84757f5a2bfa8045aa574a8fbc
2014-03-03 17:16:02 +09:00
Tadashi G. Takaoka
d648d066ea
Fix unit test message to use 0-based index
...
Change-Id: I2c91628d21dc96712f6cbea996f28f5d39fb402e
2014-03-03 12:39:53 +09:00
Keisuke Kuroyanagi
684f5f18b1
Merge "Added a method and run GC for testing."
2014-02-28 09:33:51 +00:00
Keisuke Kuroyanagi
d302b98ce6
Added a method and run GC for testing.
...
Bug: 13231889
Change-Id: If64b7422967c3e4107c845072b64a7bb26a35f7e
2014-02-28 18:17:09 +09:00
Tadashi G. Takaoka
5c7c538f16
Add unit test message for KeyboardLayoutSetTests
...
Change-Id: Ia92e4b410ca966d2dc1c5f29a340d366aa066838
2014-02-28 13:15:27 +09:00
Tadashi G. Takaoka
b24dc822bc
Name constants of the number of subtypes.
...
This is a follow up CL of Ief028e8ab5.
Bug: 13017434
Change-Id: Idf0a47300c208b9904ffcc8b64d97a43b4d708ae
2014-02-27 12:37:20 +09:00
Tadashi G. Takaoka
997ba1b41e
Merge "Add keyboard layout set tests"
2014-02-27 03:08:42 +00:00
Tadashi G. Takaoka
dd01a0bb1d
Add keyboard layout set tests
...
This CL is a ground work to add keyboard layout labels and more keys
tests.
Bug: 13017434
Change-Id: Ief028e8ab563d79bc0b0f9c06f1fe1d645a6469d
2014-02-26 16:10:52 +09:00
Tadashi G. Takaoka
53b62fe7d0
Add KeyboardTextsSetTests
...
- Text "label_to_alpha_key" needed to implement Emoji keyboard exists.
- Test the text from resources are loaded correctly.
Bug: 13017434
Change-Id: Idfb9ac87c1556c535ebc10eaef78d8166799a657
2014-02-25 12:24:55 +09:00
Jean Chalard
890b44e537
Correctly read the header of APK-embedded dicts
...
Bug: 13164518
Change-Id: I8768ad887af8b89ad9f29637f606c3c68629c7ca
2014-02-24 22:54:01 +09:00
Tadashi G. Takaoka
8e2951f299
Merge "Fix punctuation test for tablet"
2014-02-21 11:54:28 +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
239256b156
Merge "Add an auto-correction by user history test."
2014-02-21 07:59:05 +00: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
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
21f9482999
Fix: UserHistoryDictionaryTests.testDecaying().
...
Bug: 13106697
Change-Id: If81f77c3cefdefae94cb9145aa9f700494f8237a
2014-02-20 21:23:57 +09:00
Keisuke Kuroyanagi
0bc66daae3
Add user history dictionary decaying test.
...
Bug: 10667710
Change-Id: Ib2be57d8c4cbbb34f64555d84ea6fd571cfdd247
2014-02-20 18:36:46 +09:00
Jean Chalard
fbb8cb5a82
Fix build
...
This is a forgotten rebase
Change-Id: I7c7c381775488ed9239dc284bd9c31247a86a972
2014-02-18 20:08:53 +09:00
Jean Chalard
28e0b24965
Merge "Fix a bug where the cache would be out of sync"
2014-02-18 10:58:50 +00:00
Jean Chalard
fe92c174ea
Fix a bug where the cache would be out of sync
...
During recorrection, the cursor position when calling
commitText is not necessarily at the end of the
composing text.
Besides, RichInputConnection assumes the cursor is
always after any composing text. This is not correct,
but in the practice, it seems all code paths work.
We should fix this in the future.
Bug: 13060691
Change-Id: I15f71fff62d36e80cf6e4a022c5e78af634b199d
2014-02-18 19:55:54 +09:00
Jean Chalard
63be066544
Cleanup.
...
Less code, less chance of stuff escaping, and a bit of a clarification.
Yay.
Change-Id: I3193fd8ad7ac28195260cbc231c4e498a63a460c
2014-02-18 17:07:46 +09:00
Yohei Yukawa
6d43124215
Stop using deprecated InputMethodSubtype constructor
...
The constructors of InputMethodSubtype were deprecated in API level 19.
However we cannot yet switch to a new InputMethodSubtypeBuilder style
due to our minimum support API level.
As an intermediate solution, this patch replaces the these API calls
with InputMethodSubtypeCompatUtils.newInputMethodSubtype so that
these legacy API call can be consolidated at the same place.
BUG: 13030512
Change-Id: I561a585f5dbea56c337680b645be5ef07015a0b1
2014-02-17 15:32:33 +09:00
Keisuke Kuroyanagi
95d16561e0
Remove unused code.
...
Bug: 12810574
Change-Id: I9c7fff60ae0e94d52f3bd19c3e88de5a53b917d7
2014-02-15 17:39:24 +09:00
Keisuke Kuroyanagi
0fc93fe445
Implement PatriciaTriePolicy::getNextWordAndNextToken().
...
Bug: 12810574
Change-Id: Id1d44f90de9455d9cbe7b6e0a161cae91d6d422c
2014-02-15 17:39:20 +09:00
Keisuke Kuroyanagi
85fe06e759
Merge "Remove unused argument from readDictionaryBinary."
2014-02-14 10:37:56 +00:00
Keisuke Kuroyanagi
8e3a1d0f89
Remove unused argument from readDictionaryBinary.
...
Bug: 12810574
Change-Id: Ice415ebd8d11162facca3fe8927ef8a616b11424
2014-02-14 19:02:15 +09:00
Keisuke Kuroyanagi
8fa7a09f1e
Merge "Implement PatriciaTriePolicy::getWordProperty()."
2014-02-14 09:08:09 +00:00
Tadashi G. Takaoka
e4b0add353
Fix SpacingAndPunctuationsTests due to I2219224840
...
Bug: 12640318
Change-Id: If0b0696b937c580d69cb909ddaf414d01ea2c01b
2014-02-14 17:59:53 +09:00
Keisuke Kuroyanagi
c63d183473
Implement PatriciaTriePolicy::getWordProperty().
...
Bug: 12810574
Change-Id: I7bcccfd3641ebbcf2b8d857d33bb4734c42af5eb
2014-02-14 17:56:45 +09:00
Tadashi G. Takaoka
a273319c59
Add PunctuationSuggestions class
...
This change must be checked in together with I366c477516.
Bug: 12640318
Change-Id: I8d3864b9d9649c9e3306e82b01a6327b11281b1f
2014-02-14 14:13:39 +09:00
Tadashi G. Takaoka
bd0591ce62
Merge "Make InputLogicTest more robust"
2014-02-13 10:44:44 +00:00
Tadashi G. Takaoka
da973e75dc
Make InputLogicTest more robust
...
Change-Id: I134f14971126cbeed05b472c08747f2b88ad30e6
2014-02-13 19:38:51 +09:00
Jean Chalard
5dc0d405b4
Merge "Clean-up follow-up to I3ecc8496"
2014-02-13 10:26:48 +00:00
Jean Chalard
2d68f4b392
Clean-up follow-up to I3ecc8496
...
Change-Id: I8db952a4152dab027e4f34bc5270bfca508d154d
2014-02-13 19:18:29 +09:00
Tadashi G. Takaoka
7ae6721ffa
Remove RTL aware !code and add corresponding !text
...
Change-Id: I9021c8fa1cf2d4ac07579237a939c15551509a0b
2014-02-13 17:32:09 +09:00
Tadashi G. Takaoka
36b8962a9a
Merge "Fix UserHistoryDictionaryTests"
2014-02-13 07:49:51 +00:00
Tadashi G. Takaoka
0cda0e8a9c
Fix UserHistoryDictionaryTests
...
Change-Id: I5f2f555f9c3f471545921ef80e4cf528976be837
2014-02-13 16:16:44 +09:00
Jean Chalard
e0a425681c
Merge "Fix a test."
2014-02-13 05:20:58 +00:00
Jean Chalard
cf03ff02b1
Fix a test.
...
This fixes two separate problems:
- The word finds itself with two separate suggestion spans.
This is fine for LatinIME, but it's hard to predict whether it's
fine for other interested parties (other keyboards).
- The test for the blue underline was incorrect.
Change-Id: I3ecc849676851bf25a25238d694adaa956521a26
2014-02-13 14:01:37 +09:00
Jean Chalard
bac89ecc50
Fix a failing test.
...
A replay of that old, horribly hard-to-find bug: we post a
resume message during onStartInputView, so we need
to process it before we start the test. But now the message
is posted with a delay, so we need to wait for the delay...
Change-Id: I843d70e636fa51a68aadbdbbaa73b1711ad7bddd
2014-02-12 23:32:51 +09:00
Keisuke Kuroyanagi
2ef87aee3e
Merge "Make PtNode have ProbabilityInfo instead of raw value."
2014-02-10 06:10:51 +00:00
Keisuke Kuroyanagi
8ffc631826
Make PtNode have ProbabilityInfo instead of raw value.
...
Bug: 11281877
Bug: 12810574
Change-Id: Id1cda0afc74c4e30633c735729143491b2274a7b
2014-02-10 15:05:08 +09:00
Tadashi G. Takaoka
bd9887a574
Fix possible NPE while finding device override value from resource
...
Bug: 12949735
Change-Id: Iffda08db413b3b3d338ab9bf625bb0968c2e48dd
2014-02-10 14:38:53 +09:00
Tadashi G. Takaoka
a9e1db6636
Merge "Decimal number is treated as outputText"
2014-02-07 09:26:04 +00:00
Keisuke Kuroyanagi
6422f77e94
Merge "Use native logic to read Ver4 dict."
2014-02-06 13:00:09 +00:00
Keisuke Kuroyanagi
ab6a93773b
Use native logic to read Ver4 dict.
...
Bug: 11281877
Bug: 12810574
Change-Id: Ief371d3ef61818e4e031de4659aee3c9584c7379
2014-02-06 21:55:37 +09:00
Tadashi G. Takaoka
3bbd50c36b
Use SubtypeLocaleUtils.isRtlLanguage
...
Change-Id: Ic0208412cd9c02975641cb5c448d092f28786746
2014-02-06 18:15:32 +09:00
Jean Chalard
a9e1930a6a
Merge "Conditionally store the raw suggestions."
2014-02-06 07:31:22 +00:00
Tadashi G. Takaoka
4a64ad9538
Decimal number is treated as outputText
...
Change-Id: I9d4a8ac5dd26a7c41fcfbe1842a40f347a2f2aab
2014-02-06 16:30:12 +09:00
Jean Chalard
a49f61f8a7
Conditionally store the raw suggestions.
...
Bug: 12913520
Change-Id: Ie15f97d90c142c51089280252b35b5ad1d226e19
2014-02-06 16:14:41 +09:00
Keisuke Kuroyanagi
337dce8074
Merge "Consolidate WordProperty and Word."
2014-02-06 07:02:07 +00:00
Keisuke Kuroyanagi
5f5feeba13
Consolidate WordProperty and Word.
...
Bug: 11281877
Bug: 12810574
Change-Id: I9dc99188f80f25a8780c1860dab46e4aa80a23e5
2014-02-06 15:13:33 +09:00
Jean Chalard
58eed6360d
Merge "Stop considering personalization dicts outputs as words"
2014-02-05 13:33:12 +00:00
Jean Chalard
5095fabdd0
Stop considering personalization dicts outputs as words
...
Bug: 12800726
Bug: 12798403
Change-Id: I6d60f9ad39761757f8a64533f40d6441f3a36410
2014-02-05 21:57:37 +09:00
Keisuke Kuroyanagi
239f7daf4a
Merge "Make WeightedString have ProbabilityInfo."
2014-02-05 12:53:14 +00:00
Keisuke Kuroyanagi
df1d3e733e
Make WeightedString have ProbabilityInfo.
...
Bug: 11281877
Bug: 12810574
Change-Id: I265e3d8654c75766cd0e0d09d67ef62b4566298a
2014-02-05 21:44:55 +09:00
Tadashi G. Takaoka
02a534d13f
Merge "Treat a sole "|" as a special case of key label"
2014-02-05 09:32:12 +00:00
Tadashi G. Takaoka
6e5dbdd501
Merge "Add null check to KeySpecParser"
2014-02-05 09:32:04 +00:00
Jean Chalard
b162911fa4
Merge "[HD04] Make the locale mandatory."
2014-02-05 09:16:17 +00:00
Tadashi G. Takaoka
f7d8b8fcbc
Treat a sole "|" as a special case of key label
...
Change-Id: Ia72c31d15c891fa522935ba9792e88fd5d8ce7f7
2014-02-05 17:57:44 +09:00
Tadashi G. Takaoka
d9c6b33209
Add null check to KeySpecParser
...
Change-Id: Ic37db8cbf8f83f753d7381e1edba8eac1ef1ceb1
2014-02-05 17:49:26 +09:00
Jean Chalard
43cf9076b2
[HD04] Make the locale mandatory.
...
Bug: 11281748
Change-Id: I69281b0053bec404c3e3c713ade3f65a140f51b1
2014-02-05 17:35:25 +09:00
Tadashi G. Takaoka
2151216c09
Rename base test class KeySpecParserTestsBase
...
Change-Id: I41e1ccb3f0cfde4e5ae311a763e5659e5ff71d3c
2014-02-05 14:55:36 +09:00
Tadashi G. Takaoka
e158c92ae1
Merge "Add KeySpecParser unit test"
2014-02-05 03:35:17 +00:00
Keisuke Kuroyanagi
b986f78ba8
Separate header class from FormatSpec.
...
Bug: 12810574
Change-Id: Iacf1cd05a268bf690ab864b5e32a18a4b0ccc693
2014-02-04 21:36:04 +09:00
Tadashi G. Takaoka
853e8d8869
Add KeySpecParser unit test
...
Change-Id: Ie1c32daecefc2909e58056f515631cbd7de687f7
2014-02-04 19:01:45 +09:00
Keisuke Kuroyanagi
d79fd29f61
Make dumpAllWordsForDebug() use getNextWordProperty().
...
Bug: 11736680
Bug: 12810574
Change-Id: I32a388e23ee7da5d7291e88a46c90b61d2f25dee
2014-02-04 13:51:49 +09:00
Keisuke Kuroyanagi
941734695b
Implement Ver4PatriciaTriePolicy::getNextWordAndNextToken.
...
Bug: 12810574
Change-Id: Idea44f03c477964f58e65fbf2b55e3fcd77a2934
2014-02-04 12:42:14 +09:00
Keisuke Kuroyanagi
9221772ab7
Get bigram information via getWordProperty().
...
Bug: 12810574
Change-Id: I2750a5659ccbc3e31307c28e35dd9a1dbdffbeee
2014-02-03 11:47:26 +09:00
Keisuke Kuroyanagi
5ecf74b148
Merge "Extend jni interface to get bigrams in WordProperty."
2014-01-31 11:53:10 +00:00
Keisuke Kuroyanagi
94d9a2309f
Extend jni interface to get bigrams in WordProperty.
...
Bug: 12810574
Change-Id: Ia4b88d02ea8790a5c47d32376cc0b84c3e071ddd
2014-01-31 20:32:44 +09:00
Tadashi G. Takaoka
2ae7e53c77
Merge "Move some methods to MoreKeySpec class"
2014-01-31 11:23:41 +00:00
Tadashi G. Takaoka
e855093f55
Move some methods to MoreKeySpec class
...
Change-Id: I025ed15e36ac3113db6a5fccefa0c87f016703fa
2014-01-31 20:19:48 +09:00
Keisuke Kuroyanagi
35ff07c70b
Merge "Fix BinaryDictDecoderEncoderTests."
2014-01-31 10:58:26 +00:00
Keisuke Kuroyanagi
5cb7509314
Fix BinaryDictDecoderEncoderTests.
...
Bug: 12809791
Change-Id: I04313df78692b01e153a34c932a37f079a924105
2014-01-31 19:44:17 +09:00
Jean Chalard
4e6f72cb80
Merge "[HD03] Straighten out attribute key names in Java."
2014-01-31 08:40:25 +00:00
Tadashi G. Takaoka
0bae2ab460
Refactor KeyboardTextsSet class
...
Change-Id: I0b48c85aa2c291e1e7ee25d61c558700fc677e29
2014-01-31 16:31:07 +09:00
Jean Chalard
79b2e4d86c
[HD03] Straighten out attribute key names in Java.
...
Bug: 11281748
Change-Id: I1d813bdacd45bcfd9c4cc73ac1d67c5c89854e86
2014-01-31 14:46:07 +09:00
Keisuke Kuroyanagi
080a35e959
Rename UnigramProperty to WordProperty.
...
Bug: 12810574
Change-Id: If5ddd803948aaf6e491ddcbaa5436fb3af3f7257
2014-01-31 11:06:42 +09:00
Keisuke Kuroyanagi
26bd46095a
Reading dictionary containing timestamps in Java Side.
...
Just skipping historical information fields.
Bug: 11281877
Change-Id: I43d2adaa576b7da11ed3ca54990265dbb6f53b08
2014-01-29 20:19:24 +09:00
Tadashi G. Takaoka
c2e2b3949b
Merge "Add SubtypeLocaleUtils.isRtlLanguage method"
2014-01-28 01:28:47 +00:00
Tadashi G. Takaoka
c0c74d22a0
Add SubtypeLocaleUtils.isRtlLanguage method
...
Change-Id: I2e399ae9ca111638b583c5681de08b0e6db86e3a
2014-01-27 19:05:16 +09:00
Jean Chalard
6d1c8b2c3f
Merge "Try to figure out whether d.quotes open or close."
2014-01-27 10:01:17 +00:00
Tadashi G. Takaoka
73472efac1
Fix SubtypeLocaleUtilsTests
...
Change-Id: Ifbdfd320b1416d210592ec14099e4dd9d9d0047d
2014-01-27 18:23:54 +09:00
Jean Chalard
c7ef305bbc
Try to figure out whether d.quotes open or close.
...
Bug: 8911672
Change-Id: I5d5635949530a67f95e5208986907251b7bce903
2014-01-27 18:17:33 +09:00
Keisuke Kuroyanagi
963d97af6d
Merge "Add length check for dict update operations."
2014-01-25 00:47:27 +00:00
Keisuke Kuroyanagi
51c5ec10f9
Add length check for dict update operations.
...
Bug: 12602903
Change-Id: I6835dee8bf8b356f0f1cf6c0531bee5b3415a13f
2014-01-24 16:32:42 -08:00
Ken Wakasa
0acd121083
Fix wrong indents.
...
Removed an unused method too.
Change-Id: Id364009fd4e94ec65862fc3651a181e862909a42
2014-01-24 23:55:33 +09:00
Jean Chalard
90adbc7fdf
Fix build
...
Missing change after a thousandth comment fix
Change-Id: Iec48f892978507fb9823236cd1c5a70209b58b0e
2014-01-24 12:16:22 +09:00
Jean Chalard
1d6e647ac3
[IL69.1] Move a static method to a utility class.
...
This is a followup to IL69.
Change-Id: Iba154517aa7f75b9f16aa1b808c0da8d84be837f
2014-01-24 11:59:23 +09:00
Jean Chalard
1284e556f4
[IL70] Remove unused arguments
...
Bug: 8636060
Change-Id: Iec56bce362ebfc52fedab02b127978abb4f3c7f9
2014-01-23 15:33:14 +09:00
Jean Chalard
d1f463eacf
[IL69] Oust Keyboard from WordComposer#setComposingWord
...
Bug: 8636060
Change-Id: I624a45500603dfad355ee3b8b794b2d895219c0b
2014-01-23 15:32:59 +09:00