Skip to content
Snippets Groups Projects
  1. Jun 24, 2015
  2. Jun 23, 2015
    • Tom Ouyang's avatar
      Workaround for preserving responsiveness on a slow InputConnection. · 912016b6
      Tom Ouyang authored
      1. Add mechanism to detect a slow or non-resonsive InputConnection (IC)
      2. When IC slowness is detected, skip certain IC calls that are known
         to be expensive (e.g., getTextAfterCursor).
      3. Similarly, disables learning / unlearning on a slow IC.
      4. IC slowness flag is reset when starting input on a new TextView or
         when a fixed amount of time has passed.
      
      Note: These are mostly temporary workarounds. The permanent solution is
      to refactor RichInputConnection so that it is less sensitive to IC
      slowness in general.
      
      Bug: 21926256
      Change-Id: I383fab0516d3f3a8e0f71e5d760a8336a7730f7c
      912016b6
    • Dan Zivkovic's avatar
      Do not decorate committed spans. · ee6de146
      Dan Zivkovic authored
      Users rarely tap on committed words, and the cost of sending the spans back
      through the input connection, back and forth to the target app, is too high.
      
      Bug 21926256.
      
      Change-Id: I8e55b57ce2148ed313dc927425b6d9c958634958
      ee6de146
    • Dan Zivkovic's avatar
      Do not force downloads on package replace. · 4e9d2608
      Dan Zivkovic authored
      This is causing issues we can't deal with in a safe and timely manner.
      Furthermore, users who need downloaded dictionaries already have them by now.
      
      Bug 21797386.
      
      Change-Id: I97e5fd84edcf2b16f04db57b7ae4a13fa9ce993f
      4e9d2608
    • Mohammadinamul Sheik's avatar
      Fix the previous downloads logic to not missing any downloads. · bf7c0106
      Mohammadinamul Sheik authored
      Bug: 21797386
      Change-Id: Ic09698b28e31b4f16831898d7cb08853f4e5df4a
      bf7c0106
    • Dan Zivkovic's avatar
      Detection and logging of slow input connections. · 73aaf683
      Dan Zivkovic authored
      Also adds a hook to log using StatsUtils.
      Proto change is coming in a separate CL.
      
      Bug 22010482.
      
      Change-Id: I08065fc7a5cd116e50ff84cb14bbbc44c4f14bc7
      73aaf683
  3. Jun 22, 2015
  4. Jun 20, 2015
  5. Jun 19, 2015
    • Dan Zivkovic's avatar
      Cleanup before fixing getTextAfterCursor(). · 0232e73d
      Dan Zivkovic authored
      We never delete text after the cursor, so constrain the API accordingly.
      Define the number of characters to read before and after.
      Set them to reasonable values.
      The next CL will start caching text after the cursor.
      
      Bug 21926256.
      
      Change-Id: Idd58daf68614de4a69344aa3c8a4323720c5d3a0
      0232e73d
  6. Jun 17, 2015
  7. Jun 15, 2015
  8. May 28, 2015
  9. May 21, 2015
  10. May 19, 2015
  11. May 12, 2015
  12. May 08, 2015
  13. May 06, 2015
  14. May 04, 2015
  15. May 01, 2015
  16. Apr 30, 2015
  17. Apr 29, 2015
    • Dan Zivkovic's avatar
      Spelling cannot cache words across invocations. · 459b4f35
      Dan Zivkovic authored
      We want to let the facilitator decide if a word is valid or invalid, and cache
      the answer in the facilitator's cache. The spell checker session doesn't need
      its own word cache, except as a crutch to communicate suggestions to the code
      that populates the suggestion drop-down. We leave that in place.
      
      Bug 20018546.
      
      Change-Id: I3c3c53e0c1d709fa2f64a2952a232acd7380b57a
      459b4f35
  18. Apr 27, 2015
  19. Apr 23, 2015
  20. Apr 22, 2015
  21. Apr 21, 2015
    • Yohei Yukaw's avatar
      Always specify non-null Locale object to SuggestionSpan · 490fa47a
      Yohei Yukaw authored
      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
      490fa47a
    • Martin Paraskevov's avatar
      Fix bug in regular expression stripping quotes. · ab8482a3
      Martin Paraskevov authored
      Change-Id: Iaf84a9a1f00b31daf7225991c4cfc5f17b578028
      ab8482a3
  22. Apr 16, 2015
    • Tom Ouyang's avatar
      Add affinity model for contact names. · 44a17573
      Tom Ouyang authored
      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
      44a17573
    • Martin Paraskevov's avatar
      Strip quotes from begining/end of a word before checking its validity. · 8ff42d15
      Martin Paraskevov authored
      Bug: 20142633
      
      Change-Id: Ia0f3661ac3028473c00f83df72dcb9e1fd134247
      8ff42d15
  23. Apr 15, 2015
    • Mohammadinamul Sheik's avatar
      Do not re-download the unused dictionaries. · 3a5de641
      Mohammadinamul Sheik authored
      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
      3a5de641
  24. Apr 13, 2015
    • Mohammadinamul Sheik's avatar
      Fix the NPE on selection string on unlearnWord · db961227
      Mohammadinamul Sheik authored
      Bug: 20150386
      Change-Id: I2ed69aba7b1fdaba1e2ac07b8218a265dfe23e09
      db961227
    • Jatin Matani's avatar
      Store raw strings for personal dictionary · 1bfd7be2
      Jatin Matani authored
      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
      1bfd7be2
  25. Apr 10, 2015
  26. Apr 09, 2015
    • Tom Ouyang's avatar
      Extract fewer characters in getWordRangeAtCursor(). · 3952078a
      Tom Ouyang authored
      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
      3952078a
  27. Apr 07, 2015
Loading