Commit graph

2166 commits

Author SHA1 Message Date
satok
f000bdc696 Merge "Moved a functionality of setting touchableRegion to InputMethodServiceCompatWrapper." 2011-03-24 21:28:25 -07:00
satok
1ddf2a1808 Merge "Added InputMethodInfoCompatWrapper" 2011-03-24 21:03:17 -07:00
satok
5cbc984ce1 Merge "Renamed Proxy classes" 2011-03-24 21:01:34 -07:00
satok
b86905943c Renamed Proxy classes
- VoiceConnector to VoiceProxy
- VoiceInputConnector to VoiceInputWrapper
- VoiceLoggerConnector to VoiceLoggerWrapper

Change-Id: I908ddc590c8846cf5cbd80b9c0257cb65c638bde
2011-03-24 17:50:19 -07:00
satok
24119dfd41 Moved a functionality of setting touchableRegion to InputMethodServiceCompatWrapper.
Change-Id: I8b9fe507885ef5ae7cb09db93a977e23b1bbd0db
2011-03-24 13:27:45 -07:00
satok
2e36fb68d0 Added InputMethodInfoCompatWrapper
Change-Id: I5f2970e986afbe3b0b24ccf819f57f524e83ef3f
2011-03-24 12:24:50 -07:00
Jean Chalard
9107d98290 Add comments and basic reformatting for new files.
Ic4df2a9a introduced new keyboard layouts for Hebrew and Arabic.
This change adds a comment to them alongside with trailing
whitespace suppression.

This change explicitly limits its scope to files introduced by
Ic4df2a9a. It replaces I48927626 which has been deemed too reckless.

Change-Id: Id6b0e47f0623ead0b4e42e57dae359231a2b97fc
2011-03-24 00:32:10 -07:00
Jean Chalard
b916fab196 Merge "Add a first version of Hebrew and Arabic keyboard." 2011-03-23 22:36:42 -07:00
Jean Chalard
e50add1fbd Add a first version of Hebrew and Arabic keyboard.
The Arabic keyboard is more or less based on PC keyboard and other
sources. It has no means to input diacritics at the moment.
Some data for the Hebrew keyboard was already there, but not used.
This change splits phone and tablet layout and consolidates the
tablet one to something that seems sensible. It can't input diacritics
either at the moment.

Other shortcomings affect those keyboards. For example, normal
Hebrew keyboards switch to capital QWERTY keyboard with shift on,
as there are no capital Hebrew characters, but this version does not
feature this.

It should be mostly possible already to enter Arabic or Hebrew with
these keyboards however.

Change-Id: Ic4df2a9a77ffd03c4f9ee2c47e03c0f43f8e48ae
2011-03-23 22:31:40 -07:00
Jean Chalard
525028c897 Merge "Remove a useless variable." 2011-03-23 22:14:19 -07:00
satok
6dd7778d22 Fix a bug that Voice IME is not triggered properly.
Background:
Both SubtypeSwitcher and VoiceConnector have an instance of VoiceInput.
And VoiceConnector has a responsivity for setting VoiceInput to SubtypeSwitcher.
But in case that VoiceInputConnector already has an instance of VoiceInput
VoiceInputConnector doesn't set VoiceInput to SubtypeSwitcher.

Change-Id: I42d0220e7d84a08e03f143213cc6eff87e7e79a6
2011-03-23 13:05:06 -07:00
satok
f8e67182f0 Merge "Add InputMethodServiceCompatWrapper for moving the callback from LatinIME." 2011-03-23 12:05:17 -07:00
Jean Chalard
4fc18095f5 Remove a useless variable.
Change-Id: Ifec283fcd397f7f42933220f19a807879ef6195e
2011-03-23 11:17:18 -07:00
satok
10dd34de0f Add InputMethodServiceCompatWrapper for moving the callback from LatinIME.
Change-Id: If6b0180c63738e5e78a20fe5b938ef50d62865d6
2011-03-23 01:12:27 -07:00
Eric Fischer
6a6308a3b9 am d22359e4: (-s ours) am f75f9c53: Import revised translations. DO NOT MERGE
* commit 'd22359e46beeb855da6cab21c5b51ec96f7ccb44':
  Import revised translations.  DO NOT MERGE
2011-03-22 14:08:24 -07:00
Eric Fischer
d22359e46b am f75f9c53: Import revised translations. DO NOT MERGE
* commit 'f75f9c5303cf7f4e3254448c3430afb0075fd5be':
  Import revised translations.  DO NOT MERGE
2011-03-22 14:06:11 -07:00
Eric Fischer
f75f9c5303 Import revised translations. DO NOT MERGE
Change-Id: Icac4b15118a9a49cac6d0c70e5783e64fa430782
2011-03-22 13:40:31 -07:00
satok
5862b4cb8a Merge "Use reflections for classes related to InputMethodSubtype" 2011-03-19 13:25:50 -07:00
satok
610f1dc855 Use reflections for classes related to InputMethodSubtype
Change-Id: Ica53ce879c2b4c5eb47f757fb788a795a881c30e
2011-03-18 22:49:57 -07:00
Ken Wakasa
788c90daaa Merge "Add -Werror flag to catch more warnings and errors" 2011-03-18 18:21:39 -07:00
Ken Wakasa
de3070a71b Add -Werror flag to catch more warnings and errors
Change-Id: I9c39ba24578931944aae8182918ed48a2e82eb39
2011-03-19 10:12:15 +09:00
Eric Fischer
bf9bc9900b am 645f5e98: (-s ours) am f11c0a24: (-s ours) am e37ee542: Import revised translations. DO NOT MERGE
* commit '645f5e98ea44bee1d8e73801e1b0475b33db57b1':
  Import revised translations.  DO NOT MERGE
2011-03-18 17:05:43 -07:00
Eric Fischer
645f5e98ea am f11c0a24: (-s ours) am e37ee542: Import revised translations. DO NOT MERGE
* commit 'f11c0a245694d8396405e9ee47172714282b176b':
  Import revised translations.  DO NOT MERGE
2011-03-18 17:02:42 -07:00
Eric Fischer
f11c0a2456 am e37ee542: Import revised translations. DO NOT MERGE
* commit 'e37ee542e688c6815e1640abf31dbe6e983dd825':
  Import revised translations.  DO NOT MERGE
2011-03-18 16:53:05 -07:00
Eric Fischer
e37ee542e6 Import revised translations. DO NOT MERGE
Change-Id: I09b8c4f7c9a0b89fe5c4da8202115dedaa237fc3
2011-03-18 15:17:46 -07:00
Jean Chalard
0a7cf81ca2 Merge "Add different ways of reading the dictionary file." 2011-03-18 12:19:00 -07:00
Jean Chalard
cba93f50c3 Add different ways of reading the dictionary file.
This change adds basic support for an external dictionary provider.
It adds methods for reading the dictionary itself from an asset in
the dictionary provider package directly, obtaining the file name
through the ContentProvider interface; it also adds a way of getting
the data through an InputStream and copying the file locally.

Incidentally this change also adds the code needed to listen for
updating the dictionary provider package and reloading it in time.

This change also goes hand-in-hand with Iab31db6e, which implements
the small closed part of this.

Issue: 3414944

Change-Id: I5e4fff99a59bb99dbdb002102db6c90e6cb41c8a
2011-03-18 12:16:50 -07:00
satok
da4236fb51 Merge "Added CompatUtils for starting a language selector" 2011-03-17 20:36:42 -07:00
satok
2cff4d7e4a Added CompatUtils for starting a language selector
Change-Id: I158414efaff43d0c6abe1f9af83ed3425992dfb9
2011-03-18 12:33:04 +09:00
Eric Fischer
76c2ff2154 Import revised translations.
Change-Id: I02fb673c7b4f180fb60c5cb869c458b65820781a
2011-03-17 16:56:28 -07:00
satok
9807ab27ea (Refactor 1) Moved voice related codes to deprecated/voice
Change-Id: I008ac7099c815fb74a9ab374419617b336453f97
2011-03-16 23:00:59 -07:00
Tadashi G. Takaoka
071f47140c Refactor BinaryDictionary a bit
This changes:
* Flag initialization code in BinaryDictionary to be more unit test friendly.
* Removing unnecessary class hierarchy of LatinIME inner class WordAlternatives.
* Formatting normalized score neatly.

Change-Id: I9f10c093d4f36258fe883cf3fb10cbbda2770497
2011-03-16 19:46:19 -07:00
Tadashi G. Takaoka
89ff5adc80 Merge "Add Utils.equalsIgnoreCase methods" 2011-03-16 19:19:56 -07:00
Eric Fischer
6556b19fe1 am 88adb7d4: (-s ours) Import revised translations. DO NOT MERGE
* commit '88adb7d4a943b934427154962c7dfc3e3e3ba0a6':
  Import revised translations.  DO NOT MERGE
2011-03-16 17:12:13 -07:00
Eric Fischer
88adb7d4a9 Import revised translations. DO NOT MERGE
Change-Id: Ieb00b75f2eb2f9a85e11c1694d42d2ee449e29e0
2011-03-16 17:02:12 -07:00
Tadashi G. Takaoka
e7a2512aa3 Add Utils.equalsIgnoreCase methods
This change also corrects usage of "frequency", "priority" and "score"
* Frequency is the relative probability in dictionary.
* Score is the relative probability in suggestions.
* Priority is kind a sorted score.

Change-Id: Iafb135a4ecdb401cc505014a07c74dfcac44d699
2011-03-16 16:03:05 -07:00
Jean Chalard
027992afdc am d631651b: Avoid the removal of high-ranking exactly typed candidates.
* commit 'd631651b1291aef52bdd6ea7caaf9b95c9704506':
  Avoid the removal of high-ranking exactly typed candidates.
2011-03-15 23:54:31 -07:00
Eric Fischer
1f3adba970 am c0471c43: (-s ours) Import revised translations. DO NOT MERGE
* commit 'c0471c43fb056adc32a9fd9f8eaff449e1822b29':
  Import revised translations.  DO NOT MERGE
2011-03-15 23:34:14 -07:00
Jean Chalard
d631651b12 Avoid the removal of high-ranking exactly typed candidates.
It used to be the case that the scoring system turns up the same word
that was entered with a different capitalization, but with a lower
score than some other, more frequent word. To cope with this, there
was code that would order such candidates in the first slot no matter
what. This processing is now useless because fully matching words now
have a huge boost that ensures they will get to the top of the list,
before any non-fully matching word (which means, differing only by
capitalization or accents).

The bug that did happen with this was, if a fully-matching word got
matched by several processing passes, and the (chronologically) later
score affected to this word was weaker, it would result in the
duplicate removal pass removing the stronger score. This in turn would
mess with autocorrect.

In an effort to keep the risk at a minimum for MR1, this change does
not actually remove the useless code, but adds a check in the odd case
to avoid the bad situation. Another change will remove the code for
ICS release.

bug: 4100269

Change-Id: I18c0575332981ffec0e257e26a360995838d521e
2011-03-15 21:12:38 -07:00
Eric Fischer
c0471c43fb Import revised translations. DO NOT MERGE
Change-Id: I6eaad0ee53243ae5eece9bc6f8013eb77472e988
2011-03-15 14:49:18 -07:00
Eric Fischer
9eb7e2c37f Import revised translations.
Change-Id: Idc65c5944dcfa576ee50facb6b1f82e2a7d7186f
2011-03-15 10:48:11 -07:00
Eric Fischer
7be32d4fb2 am 9db8d064: (-s ours) Import revised translations. DO NOT MERGE
* commit '9db8d0641862e2d9532d2cde38e3b1538df5f0b2':
  Import revised translations.  DO NOT MERGE
2011-03-10 13:54:44 -08:00
Eric Fischer
9db8d06418 Import revised translations. DO NOT MERGE
Change-Id: I660c6bc3b40072e209fe31c3c86ad11ce7928a71
2011-03-10 11:28:07 -08:00
Tadashi G. Takaoka
33e8124cf4 am 6a75cd12: Add alphabet hint to number password layout
* commit '6a75cd124d885df1b257d63c9c2b0561a9b09b84':
  Add alphabet hint to number password layout
2011-03-09 10:07:46 -08:00
Tadashi G. Takaoka
56d54381de am ab0ee37f: Disable debug flag in TextEntryState
* commit 'ab0ee37f52b87756c6d91aecd508fda821aeb4b6':
  Disable debug flag in TextEntryState
2011-03-08 18:41:24 -08:00
Tadashi G. Takaoka
6a75cd124d Add alphabet hint to number password layout
Bug: 4063047
Change-Id: I53e79edcb15d4da73a72d14a38224e80b612c115
2011-03-08 18:02:18 -08:00
Tadashi G. Takaoka
ab0ee37f52 Disable debug flag in TextEntryState
Bug: 4051276
Change-Id: I980c0dfefdf3ae70935aca9755a55d1c925a23f9
2011-03-08 12:11:47 -08:00
satok
b34c74abb1 am b55fcea6: Merge "Add whitelist dictionary" into honeycomb-mr1
* commit 'b55fcea6fc23bf44966ffb278d976c54995be72e':
  Add whitelist dictionary
2011-03-07 22:50:07 -08:00
satok
2113ec2fa4 am e07f93d3: Merge "Tweak the demotion rate for a word with missing letter" into honeycomb-mr1
* commit 'e07f93d3ab60f88b154740186795efaf802c7051':
  Tweak the demotion rate for a word with missing letter
2011-03-07 22:48:09 -08:00
satok
b55fcea6fc Merge "Add whitelist dictionary" into honeycomb-mr1 2011-03-07 22:45:09 -08:00