Skip to content
Snippets Groups Projects
  1. Oct 10, 2024
  2. Jul 21, 2024
  3. Jul 14, 2024
  4. Jun 18, 2024
  5. Mar 12, 2024
  6. Jan 11, 2024
  7. Jan 10, 2024
    • Aleksandras Kostarevas's avatar
      Improve text selection logic · 968b39af
      Aleksandras Kostarevas authored
      * Shift + swiping space now lets you select text
      * Text editor uses more consistent selection logic instead of sending dpad and relying on apps to implement shift+dpad selection, which many of them don't. Dpad is still used for up/down
      968b39af
  8. Jan 07, 2024
  9. Sep 28, 2023
  10. Aug 14, 2023
  11. Jul 06, 2023
  12. Jun 24, 2015
  13. 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
      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
  14. 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
  15. Apr 13, 2015
  16. 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
  17. Apr 07, 2015
    • Dan Zivkovic's avatar
      Read less data from the input connection. · 6bb70115
      Dan Zivkovic authored
      Currently, we read 256 (max word size) * 5 (max N-gram size + 1) characters
      from the input connection when building our context. This is overkill. We
      don't need more than 80 characters, regardless of which decoder we use.
      
      Bug 19987461.
      
      Change-Id: Ie3a321cf2482adbacd8006d9d86e6601097c15ed
      6bb70115
  18. Feb 26, 2015
    • Dan Zivkovic's avatar
      Ignore the Emoji key when not connected. · edd94a44
      Dan Zivkovic authored
      When the LatinIME does not have an active InputConnection, it will not try
      to toggle the Emoji keyboard.
      
      Bug 19513415.
      
      Change-Id: I31f928cd7db1cddd771c548cd3dc42f8af64d0e2
      edd94a44
  19. Feb 11, 2015
    • Dan Zivkovic's avatar
      Fix master build. · 5254c01d
      Dan Zivkovic authored
      For some reason, we can't import android.os package in our Constants.
      
      Change-Id: I357ed72d13c5039a83c6e2489cdf5ef74d0ffea8
      5254c01d
    • Dan Zivkovic's avatar
      Remove shortcut support from LatinIME. · 12d80ebe
      Dan Zivkovic authored
      Note this change does not affect the native decoder interface.
      
      Change-Id: I73b7dc008a5acaf75a31a36a2d332b5afabd82d0
      12d80ebe
  20. Feb 05, 2015
  21. Feb 04, 2015
  22. Oct 28, 2014
  23. Oct 23, 2014
  24. Oct 21, 2014
    • Tadashi G. Takaoka's avatar
      Fix some compiler warnings · 5f00fe09
      Tadashi G. Takaoka authored
      This CL fixes the following compiler warnings.
      
      - Indirect access to static member
      - Access to a non-accessible member of an enclosing type
      - Parameter assignment
      - Method can be static
      - Local variable declaration hides another field or variable
      - Value of local variable is not used
      - Unused import
      - Unused private member
      - Unnecessary 'else' statement
      - Unnecessary declaration of throw exception
      - Redundant type arguments
      - Missing '@Override' annotation
      - Unused '@SuppressWarning' annotations
      
      Bug: 18003991
      Change-Id: Icfebe753e53a2cc621848f769d6a3d7ce501ebc7
      5f00fe09
  25. Oct 14, 2014
    • Jean Chalard's avatar
      Fix an NPE. · 7d745941
      Jean Chalard authored
      Bug: 17958289
      Change-Id: I5c9ea668ff75b38c7ddebd767c36a950835c0c9f
      7d745941
  26. Oct 03, 2014
  27. Oct 01, 2014
  28. Sep 29, 2014
  29. Sep 18, 2014
    • Yohei Yukawa's avatar
      Use Add-To-Dictionary indicator only · 5896153f
      Yohei Yukawa authored
      With this CL, the previously used commit indicator was reverted.
      Instead we use the add-to-dictionary indicator only at the moment.
      
      This CL also fixes the indicator position in bidi context.
      
      BUG: 17335734
      Change-Id: I5f7cf173ddc30876e2b01320acaff8ba4265edf6
      5896153f
  30. Sep 08, 2014
  31. Sep 03, 2014
    • Yohei Yukawa's avatar
      Follow up API signature change · 5d6ac777
      Yohei Yukawa authored
      This is a follow up CL for API signature change in
      I772c48ff18918e48a81e807b48ff907614485c09
      
      BUG: 17320996
      Change-Id: Ic8b6162bda12bf74fae79af212c5d81c400eb9e8
      5d6ac777
Loading