aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/compat (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | | am 96db9222: am cabb66e9: follow-up to API change in I4a577bfd02b37bYohei Yukawa2014-08-221-87/+19
|\ \ \ | |/ / |/| / | |/ | | * commit '96db9222c2c8c728498751221cc92664676dd4f0': follow-up to API change in I4a577bfd02b37b
| * follow-up to API change in I4a577bfd02b37bYohei Yukawa2014-08-211-87/+19
| | | | | | | | | | | | BUG: 17182367 BUG: 17185263 Change-Id: Id54ca29c191b9752fa82ffe5a960113b2e97e5c1
| * Merge "DO NOT MERGE: Abolish source code overlay and introduce overridable ↵Ken Wakasa2014-08-161-29/+0
| |\ | | | | | | | | | src dir" into lmp-dev
| | * DO NOT MERGE: Abolish source code overlay and introduce overridable src dirKen Wakasa2014-08-201-29/+0
| | | | | | | | | | | | | | | | | | | | | This should make IDEs happy with appropriate source code directory selection. Change-Id: Ic734bd4d20aa050c688a3158b1a382ae0ac18991 (cherry picked from commit fb74ab15c1343084740d65ef8744cad33a678e82)
* | | [ML1] Introduce RichInputMethodSubtypeJean Chalard2014-08-221-3/+6
| | | | | | | | | | | | | | | Bug: 11230254 Change-Id: Ic7a1bf938a5a186dcff527b556295aba2406e8b9
* | | am 17aeaa75: am fa39ffcf: Support more methods in the wrapper of ↵Yohei Yukawa2014-08-202-43/+156
|\| | | | | | | | | | | | | | | | | | | | CursorAnchorInfo * commit '17aeaa75780591f1bf7fefcc887869fd90c88a9f': Support more methods in the wrapper of CursorAnchorInfo
| * | Support more methods in the wrapper of CursorAnchorInfoYohei Yukawa2014-08-202-43/+156
| |/ | | | | | | | | | | | | | | | | | | This CL add more compatibility wrapper methods for CursorAnchorInfo. This CL also adds more utility functions and types into CompatUtils to reduce explict cast operations. Change-Id: Id50165b552bbf28b832a6da13bf06eedcd2a190e
* / Abolish source code overlay and inroduce overridable src dirKen Wakasa2014-08-161-29/+0
|/ | | | | | | | This should make IDEs happy with appropriate source code directory selection. bug: 16829244 Change-Id: Ic734bd4d20aa050c688a3158b1a382ae0ac18991
* Add BuildCompatUtils to get an effective platfrom API versionTadashi G. Takaoka2014-08-131-0/+43
| | | | | | | This CL removes reference of VERSION_CODES.CUR_DEVELOPMENT. Bug: 13888366 Change-Id: I5c8499a175473a220c8fb04ead219760c585a19a
* Add CursorAnchorInfoCompatWrapper for KitKat and older platformsYohei Yukawa2014-08-121-0/+135
| | | | Change-Id: Ia26c783ebefd7b928d623a598792b7ba32d89a80
* Add ViewCompatUtils.setElevationTadashi G. Takaoka2014-08-051-0/+10
| | | | | Bug: 16210054 Change-Id: I632158951a60ab527246410caefd9fbe471dd859
* Clean up compatible utility classesTadashi G. Takaoka2014-08-047-29/+40
| | | | Change-Id: I95a682052037d292801477db0f05e04926b61412
* Enable InputMethodService#onUpdateCursor behind the flagYohei Yukawa2014-07-201-27/+0
| | | | | | | | | | With this CL, InputMethodService#onUpdateCursor and InputMethodService#onUpdateCursorAnchorInfo can be enabled on L when ENABLE_CURSOR_ANCHOR_INFO_CALLBACK and ENABLE_CURSOR_RECT_CALLBACK are specified, respectively. BUG: 16382260 Change-Id: I29924128f6bd2f08cbd91cc4e82c9c4a6ecce3ff
* Add two convenient utility methods for L new APIYohei Yukawa2014-07-191-6/+70
| | | | | | | | | This CL adds two convenient utility methods for InputConnection#requestCursorAnchorInfo to encapsulate a bit complicated parameter construction. BUG: 16382260 Change-Id: Ib11e3bd15a4edcb602c08ff830b2fb7b34ec00da
* Add a compatibility library for newly added methods in LYohei Yukawa2014-07-181-0/+70
| | | | | | | | | This CL adds an compatibility library for InputConnection#requestCursorAnchorInfo method that is supposed to be available in L and later. BUG: 16382260 Change-Id: I68be0c56b9fd929546e8706ccece938ae4f33339
* Rename ProductionFlag to ProductionFlagsTadashi G. Takaoka2014-07-161-2/+2
| | | | Change-Id: I5da2dbf8828fa0e176e7c2496392a5f561ebfe20
* Rename LatinImeLogger to DebugFlagsTadashi G. Takaoka2014-07-161-2/+2
| | | | | Bug: 15318007 Change-Id: Ic0268fd12865c9a692a5e7110a9beb76cb8b6d7f
* Simplify the wrapper for TextInfo#getCharSequenceYohei Yukawa2014-07-091-3/+11
| | | | | | | | | 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
* Add a compatibility utility class for TextInfoYohei Yukawa2014-07-081-0/+59
| | | | | | | | | | 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
* Ensure each character is coverted by at most one LocaleSpanYohei Yukawa2014-07-071-5/+170
| | | | | | | | | | | | | | 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
* Add compatibility utility class for LocaleSpanYohei Yukawa2014-07-041-0/+59
| | | | | | | | | 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
* Additional subtype ID should be independent of OS-versionYohei Yukawa2014-07-041-1/+7
| | | | | | | | | | | | | | | | | | | | | 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
* Use whether it's exact match to detect distracters.Keisuke Kuroyanagi2014-05-261-1/+1
| | | | | Bug: 13142176 Change-Id: Id5b7286d28897931f7bfe571be45d46ffeef4adf
* Use ViewCompat support library and delete ViewCompatUtilsTadashi G. Takaoka2014-05-241-19/+2
| | | | Change-Id: I57d60cacd86e83894294c3f64402aba8c1829872
* Revert "Use ViewCompat support library and delete ViewCompatUtils"Tadashi G. Takaoka2014-05-231-0/+71
| | | | | | | This reverts commit db21267b788592ce99b9fb052801c6ec90bfe7b6. The reverting change breaks build in unbundled jb-ub-latinimegoole branch. Change-Id: Ia61424f5321eb97f981d22c4b08e9ea8d348f6c1
* Use ViewCompat support library and delete ViewCompatUtilsTadashi G. Takaoka2014-05-241-71/+0
| | | | Change-Id: Ifee496ff7ecaf361898444ff4127f16748d96422
* Use Java 7 diamond operatorTadashi G. Takaoka2014-05-241-2/+1
| | | | Change-Id: If16ef50ae73147594615d0f49d6a22621eaf1aef
* Merge "Handle user dict as an ExpandableBinaryDictionary."Keisuke Kuroyanagi2014-04-301-2/+2
|\
| * Handle user dict as an ExpandableBinaryDictionary.Keisuke Kuroyanagi2014-04-301-2/+2
| | | | | | | | | | Bug: 13755213 Change-Id: I2d242a3332e9633d4e41e08c0bbfafcefd814ecd
* | Use shouldOfferSwitchingToNextInputMethod when availableYohei Yukawa2014-04-281-0/+11
|/ | | | | | | | | | | | | | | | With this CL, LatinIME starts using InputMethodManager#shouldOfferSwitchingToNextInputMethod when available and API level is higher than 19 (KitKat). Note that relevant settings of LatinIME will be ignored if InputMethodManager#shouldOfferSwitchingToNextInputMethod is considered to be available at the moment. We will revisit here to reorganize the user visible settings before the new global IME switching mechanism becomes publicly available. BUG: 12965588 Change-Id: I0188fa56cba8e983c61cef3ae3400a0e3821f718
* Merge "Plumbing for ProductionFlag.USES_CURSOR_ANCHOR_MONITOR"Yohei Yukawa2014-04-131-1/+28
|\
| * Plumbing for ProductionFlag.USES_CURSOR_ANCHOR_MONITORYohei Yukawa2014-04-111-1/+28
| | | | | | | | | | | | | | | | | | | | With this CL, LatinIME starts calling InputMethodService#setCursorAnchorMonitorMode in #onStartInput() when ProductionFlag.USES_CURSOR_ANCHOR_MONITOR flag is explicitly set to true. BUG: 13891796 Change-Id: Ib2fb0c3521b61859d4cc530155ccaaee7ee16cbc
* | Fix some flaky tests.Jean Chalard2014-04-101-0/+42
|/ | | | | | | | | | 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
* Add InputMethodSubtypeCompatUtils.isAsciiCapable()Tadashi G. Takaoka2014-02-171-0/+14
| | | | Change-Id: I8145f090486f6fe30ef1e992db374cfba0c31012
* Add PunctuationSuggestions classTadashi G. Takaoka2014-02-141-2/+1
| | | | | | | This change must be checked in together with I366c477516. Bug: 12640318 Change-Id: I8d3864b9d9649c9e3306e82b01a6327b11281b1f
* Revert "Use ViewCompat support library"Tadashi G. Takaoka2014-01-271-0/+71
| | | | | | This reverts commit e7ee4fa862e9d7986c292c2e3a0d6b392100540a. Change-Id: I56fab60ac859289d3ed51f691cd7e2a15da01856
* Use ViewCompat support libraryTadashi G. Takaoka2014-01-271-68/+0
| | | | Change-Id: I4ba261752750f5087cba810045669512b430b5e0
* [IL57] Don't require a main dict suggestion.Jean Chalard2014-01-161-12/+0
| | | | | | | | | | This is bad for recorrection (it will ignore recorrection suggestions). But if you think about it well, if you didn't have a main dict, then you probably will compute the same stuff anyway. It's not useful to make this check at all. Bug: 12297051 Change-Id: I6d6cf4d9353b7c668c5413c67701563b243e585c
* [IL21] Move the workaround utils to a better place.Jean Chalard2013-12-201-3/+3
| | | | | Bug: 8636060 Change-Id: I566f9e109ebcabe3a6a778118434ce79d02d1113
* [IL16] Improve getTextWithSuggestionSpanJean Chalard2013-12-201-6/+20
| | | | | | | | | | | | Dynamically test for the presence of main dict suggestions. This is much more potent and more accurate than the vaguely defined boolean. Also, resolve a TODO and avoid creating an object uselessly. Not directly related, but helpful with: Bug: 8636060 Change-Id: Ib1745f77ee6d9ec7cd8bbfa5a548652ec84ec902
* Fix crash in AdditionalSubtypeUtilsSatoshi Kataoka2013-10-091-0/+56
| | | | | | Bug: 11136982 Change-Id: I9d022a178c47bad3566be4c0bd8ffbce0b14896d
* Add a utility of isLowRamDeviceSatoshi Kataoka2013-09-241-0/+46
| | | | | | Bug: 8967766 Change-Id: Id7132d1155bb3489bdab72d613289335945808e8
* Fix some warningsJean Chalard2013-07-311-3/+1
| | | | Change-Id: I7290cd1fb675a1b85b9b6ac2d464c932b5bca1dd
* Move util classes to the latin/utils directoryKen Wakasa2013-06-241-1/+1
| | | | Change-Id: I1c5b27c8edf231680edb8d96f63b9d04cfc6a6fa
* Clean up IntentCompatUtils a bitTadashi G. Takaoka2013-05-211-5/+4
| | | | Change-Id: I803aa6c2160bfa1ffe992b28e7eb6e8a320c9762
* Add a method to work around apps broken by recorrectionJean Chalard2013-05-212-0/+36
| | | | | Bug: 8944307 Change-Id: I8986622554f30aaf4f595099c4ab5652b75c972c
* Extract a new class for app-specific workarounds.Jean Chalard2013-05-211-0/+53
| | | | | Bug: 8944307 Change-Id: Iaff9dd03d3d856a6bdaa2b16c4e71e95cd2b6349
* Support ICS on the user dictionary settingsSatoshi Kataoka2013-04-261-2/+8
| | | | | Bug: 8600958 Change-Id: I50e9228afc7b04147eb7c4734d3145abe8859a30
* Update setup wizard iconsTadashi G. Takaoka2013-04-181-9/+9
| | | | | Bug: 8159728 Change-Id: Ia5a14a35292b43dc1eaa2d4edd65134040355149
* Remove the dialog to insert words to the dictionary.Jean Chalard2013-04-121-0/+51
| | | | | Bug: 8562529 Change-Id: Ibd853f0cb995e7fb35f8730eafcef73ead58c869