Commit graph

34681 commits

Author SHA1 Message Date
Geoff Mendal
698cce6e98 am da855ea1: (-s ours) Merge "Import translations. DO NOT MERGE" into mnc-dev
* commit 'da855ea1fdaca0674d9c9ccb11145bcb91e5ff5e':
  Import translations. DO NOT MERGE
2015-06-11 01:31:35 +00:00
Geoff Mendal
f527654c98 am e7622f9d: (-s ours) Import translations. DO NOT MERGE
* commit 'e7622f9db830f0b91584f2a12d25111f0ea518a9':
  Import translations. DO NOT MERGE
2015-06-11 01:31:34 +00:00
Geoff Mendal
401b9e8e67 am 1f428ace: (-s ours) Merge "Import translations. DO NOT MERGE" into mnc-dev
* commit '1f428ace1b1e667dc1528543324048afaf918ed4':
  Import translations. DO NOT MERGE
2015-06-11 01:31:32 +00:00
Geoff Mendal
ec58d6b6f8 am 966fd1b2: (-s ours) Merge "Import translations. DO NOT MERGE" into mnc-dev
* commit '966fd1b2d825df4c1ba4c88a45934067ea56ae08':
  Import translations. DO NOT MERGE
2015-06-11 01:31:31 +00:00
Geoff Mendal
3701ce750e am 79c48938: (-s ours) Merge "Import translations. DO NOT MERGE" into mnc-dev
* commit '79c489389a53c1bc358bac994bc52b1ee99b85e4':
  Import translations. DO NOT MERGE
2015-06-11 01:31:30 +00:00
Geoff Mendal
c584739fb5 am 275211f5: (-s ours) Import translations. DO NOT MERGE
* commit '275211f5819fc8b757730559346285da80b277ba':
  Import translations. DO NOT MERGE
2015-06-11 01:31:28 +00:00
Geoff Mendal
a57d3bb035 am cc9aca91: (-s ours) Import translations. DO NOT MERGE
* commit 'cc9aca9150745514a7480fef58d2bc3a0685230f':
  Import translations. DO NOT MERGE
2015-06-11 01:31:27 +00:00
Geoff Mendal
da855ea1fd Merge "Import translations. DO NOT MERGE" into mnc-dev 2015-05-31 03:32:45 +00:00
Geoff Mendal
488c037b8e Import translations. DO NOT MERGE
Change-Id: I818a58b2205a45a3ff19248acebe9e7141eac24c
Auto-generated-cl: translation import
2015-05-30 20:20:47 -07:00
Geoff Mendal
e7622f9db8 Import translations. DO NOT MERGE
Change-Id: Iaa49902baab0352eb4d6a76495cbc3ea9efcd336
Auto-generated-cl: translation import
2015-05-30 20:13:28 -07:00
Geoff Mendal
1f428ace1b Merge "Import translations. DO NOT MERGE" into mnc-dev 2015-05-14 03:47:51 +00:00
Geoff Mendal
14c21ca768 Import translations. DO NOT MERGE
Change-Id: I48f032dc490abd64459f7a0afcdd564807c5c3ae
Auto-generated-cl: translation import
2015-05-13 20:45:57 -07:00
Geoff Mendal
966fd1b2d8 Merge "Import translations. DO NOT MERGE" into mnc-dev 2015-05-14 03:42:43 +00:00
Geoff Mendal
f1eb1fd164 Import translations. DO NOT MERGE
Change-Id: Ibfbf17225e965703b97e6f21ade5c70442f077f0
Auto-generated-cl: translation import
2015-05-13 20:41:45 -07:00
Geoff Mendal
79c489389a Merge "Import translations. DO NOT MERGE" into mnc-dev 2015-05-14 03:40:04 +00:00
Geoff Mendal
670206c32c Import translations. DO NOT MERGE
Change-Id: I2e11fbb3d7a07932b5aa224dbce0f990571e5fda
Auto-generated-cl: translation import
2015-05-13 20:39:41 -07:00
Geoff Mendal
275211f581 Import translations. DO NOT MERGE
Change-Id: I873ea76f10bb8636e78a595099d94fa1a850afe7
Auto-generated-cl: translation import
2015-05-13 20:38:17 -07:00
Geoff Mendal
cc9aca9150 Import translations. DO NOT MERGE
Change-Id: I0d89c976107040d79695ea31b6d1c4a3db6ea81d
Auto-generated-cl: translation import
2015-05-13 05:43:21 -07:00
Geoff Mendal
e9b52401a2 Merge "Import translations. DO NOT MERGE" 2015-04-25 09:26:04 +00:00
Geoff Mendal
b6ced82d3b Import translations. DO NOT MERGE
Change-Id: I9964b966c2cf45db046bf295cc7d9051eb6ae023
Auto-generated-cl: translation import
2015-04-25 01:24:27 -07:00
Geoff Mendal
5617af7363 Import translations. DO NOT MERGE
Change-Id: I9ae307bf3567fa52a6fbb6f17de26de9274eff9c
Auto-generated-cl: translation import
2015-04-25 01:20:01 -07:00
Dan Zivkovic
784233dbc6 Specify fileName argument as Nullable.
Bug 20526371.

Change-Id: If53a81f925fbb1b29ad945ba0ec2192d92ae1eff
2015-04-23 14:12:33 -07:00
Chieu Nguyen
a2376cd2b4 Restore switch for showing app icon.
Bug: 20307420
Change-Id: I95969de40936d2ea992669324d0c4df7e8de2bd9
2015-04-22 15:46:40 -07:00
Geoff Mendal
fece743fee Merge "Import translations. DO NOT MERGE" 2015-04-22 12:49:11 +00:00
Geoff Mendal
987ce53937 Merge "Import translations. DO NOT MERGE" 2015-04-22 12:48:08 +00:00
Geoff Mendal
072c2ed4f9 Merge "Import translations. DO NOT MERGE" 2015-04-22 12:47:56 +00:00
Geoff Mendal
02c00cb197 Merge "Import translations. DO NOT MERGE" 2015-04-22 12:47:42 +00:00
Geoff Mendal
0ff42b7f78 Merge "Import translations. DO NOT MERGE" 2015-04-22 12:47:29 +00:00
Geoff Mendal
2d75d6ac86 Import translations. DO NOT MERGE
Change-Id: Id500c47ffc67f94d2a8e273ab0f19deceb44a1e5
Auto-generated-cl: translation import
2015-04-22 05:46:20 -07:00
Geoff Mendal
3446b9662b Import translations. DO NOT MERGE
Change-Id: Ieca899d22fe4aee62edb01073e7fb301162406ef
Auto-generated-cl: translation import
2015-04-22 05:45:37 -07:00
Geoff Mendal
3a9f2b64a4 Import translations. DO NOT MERGE
Change-Id: I45a167114702d67738d5f9eb8781b421280787ed
Auto-generated-cl: translation import
2015-04-22 05:44:29 -07:00
Geoff Mendal
3363aa52e0 Import translations. DO NOT MERGE
Change-Id: I97a940bcf053f383c40e03847cf2f14b38e8a62c
Auto-generated-cl: translation import
2015-04-22 05:43:48 -07:00
Geoff Mendal
c203f669d7 Import translations. DO NOT MERGE
Change-Id: Ibcb1922d708ae3894eb7015fabf24a399ef31ca3
Auto-generated-cl: translation import
2015-04-22 05:42:49 -07:00
Geoff Mendal
424d59b608 Merge "Import translations. DO NOT MERGE" 2015-04-22 12:42:47 +00:00
Geoff Mendal
378416e1c8 Import translations. DO NOT MERGE
Change-Id: Ided6d0f74ba4159e0b59bc6ea8867b5096c1ea80
Auto-generated-cl: translation import
2015-04-22 05:42:17 -07:00
Geoff Mendal
8745f9e032 Import translations. DO NOT MERGE
Change-Id: Iceda291cbb5d6d33c82346973c45a24c0601b04d
Auto-generated-cl: translation import
2015-04-22 05:41:33 -07:00
Yohei Yukaw
490fa47a46 Always specify non-null Locale object to SuggestionSpan
Confusingly, specifying a null Locale object to the constructor
of SuggestionSpan does not necessarily mean that
SuggestionSpan#getLocale() returns null.  The constructor in
question also receives Context object, and Context's locale can
be used as a fallback locale to initialize locale of
SuggestionSpan.

With this CL, LatinIME always specify non-null Locale object
when instantiating SuggestionSpan object.  It basically
corresponds to the active main dictionary, but can be
Locale#ROOT when one locale is not determined for some reasons.

BUG: 20435013
Change-Id: I2c152466410327300e7dba4d7ed9a22f57c17c4f
2015-04-20 20:29:44 -07:00
Martin Paraskevov
54e891e2bd Merge "Fix bug in regular expression stripping quotes." 2015-04-21 03:04:13 +00:00
Martin Paraskevov
ab8482a34b Fix bug in regular expression stripping quotes.
Change-Id: Iaf84a9a1f00b31daf7225991c4cfc5f17b578028
2015-04-20 19:58:45 -07:00
Tom Ouyang
cdfe8b93ec Merge "Add affinity model for contact names." 2015-04-17 01:05:44 +00:00
Martin Paraskevov
c155f7f5fd Merge "Strip quotes from begining/end of a word before checking its validity." 2015-04-16 23:46:40 +00:00
Tom Ouyang
44a175732d Add affinity model for contact names.
This allows us to:
1. Rank contacts and only add the top N names to the keyboard LM.
2. Avoid adding duplicate names.

Note: The affinity calcualuation is limited by the fact that some apps
currently do not update the TIMES_CONTACTED counter. To better handle
this case, the new measure also takes into account whether or not a
name is in the visible contacts group.

Bug: 20053274
Change-Id: I2741cb8958667d4a294aba8c437a45cec4b42dc7
2015-04-16 11:33:54 -07:00
Martin Paraskevov
8ff42d1581 Strip quotes from begining/end of a word before checking its validity.
Bug: 20142633

Change-Id: Ia0f3661ac3028473c00f83df72dcb9e1fd134247
2015-04-15 19:00:45 -07:00
Mohammadinamul Sheik
3a5de64110 Do not re-download the unused dictionaries.
Does the following
1. Uses dictionaries from the files/ directory while populating the
   entries into the pendingUpdates table. So that a download happens only
   if the metadata.json says so.
2. Delete an unusable dictionaries from the files/ directory.

Bug: 20142708
Change-Id: Ibd738793585c39735868e324b8ad682dff0eba34
2015-04-15 11:12:40 -07:00
Jatin Matani
bf732e7001 Merge "Store raw strings for personal dictionary" 2015-04-14 18:03:56 +00:00
Mohammadinamul Sheik
db96122787 Fix the NPE on selection string on unlearnWord
Bug: 20150386
Change-Id: I2ed69aba7b1fdaba1e2ac07b8218a265dfe23e09
2015-04-13 16:30:22 -07:00
Jatin Matani
1bfd7be208 Store raw strings for personal dictionary
The raw strings would be sent to personal LM for decoding.
Earlier lowercased strings were being used with the purpose
of isValid checks (spelling does not consider casing for spell
checking calls). But for showing these in suggestion, we need the
raw strings.

Note: PersonalDictionaryLookup#getWordsForLocale is used to feed
the personal LM in PersonalLanguageModelHelper.

Bug:20152986
Change-Id: I9d796fa57bf2073036bf11d86b143ff205a6199c
2015-04-13 16:28:26 -07:00
Dan Zivkovic
40f0f61bb3 Merge "Personal dictionary feeds a personal LM." 2015-04-10 01:43:35 +00:00
Dan Zivkovic
541ef56e05 Personal dictionary feeds a personal LM.
Bug 20043003.

Change-Id: I5ccac344c089855474263d1cdc547da1e6779301
2015-04-09 18:35:57 -07:00
Tom Ouyang
3952078a91 Extract fewer characters in getWordRangeAtCursor().
Use LOOKBACK_CHARACTER_NUM = 80 instead of the previous
EDITOR_CONTENTS_CACHE_SIZE = 1024 (which was overkill).

This speeds up many InputLogic operations.

Bug: 19987461
Change-Id: I62b6a589f87e5daab33376b3e48f1c615a66dcfb
2015-04-09 11:45:55 -07:00