summaryrefslogtreecommitdiff
path: root/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java
Commit message (Collapse)AuthorAgeFilesLines
* Create display context when switching IME to new display for AOSP IMElumark2020-05-251-6/+11
| | | | | | | | | | | | | | | | | | | | To address IME service context's Resources / DisplayMetrics update when switching IME window to another display after onConfigurationChange. We use Context#createDisplayContext to create display specific context when display changed, to ensure soft keyboard can re-layout with correct resources. Bug: 126930163 Test: manual with AOSP IME as below steps: 1) Settings > Developer options > enable "Simulated Display" & "Force desktop mode". 2) Reboot device 3) Launch app (i.e. Contacts) with bluetooth or usb mouse in Simulated display. 4) Tap EditText on app to see see if IME window layout correctly on simulated display. 5) Launch app (i.e Files) on primary display. 6) Tap EditText on app to see if IME window layout correctly on primary display. Change-Id: I0ed6a079af1ed90c75fee1d36d5ce3ef3c41f8ed Merged-In: I0ed6a079af1ed90c75fee1d36d5ce3ef3c41f8ed
* Define shortcuts for toggling IME layouts.Dan Zivkovic2015-10-151-28/+95
| | | | | | | | | | | Out of the box, we want Alt-Left to toggle Emojis, while Alt-Right toggles the shifted symbols layout. Bug: 23954008 Bug: 24369173 Change-Id: I93dd66fb469e5d0a831359ff3a786fe68e1d73ea (cherry picked from commit 411841b374aa04e333ea5a438dfd539f49ec589a)
* Remove ALS from LatinIME.Dan Zivkovic2015-03-111-2/+1
| | | | | | This fixes unit tests and brings us closer to a green build. Change-Id: Iffcc392eda4a7671a238b79cc7367320ca648725
* Remove shortcut support from LatinIME.Dan Zivkovic2015-02-111-12/+1
| | | | | | Note this change does not affect the native decoder interface. Change-Id: I73b7dc008a5acaf75a31a36a2d332b5afabd82d0
* LatinIME portion of "green plus" feature.Dan Zivkovic2015-02-031-1/+0
| | | | | | | | | Removes the feature that adds strings to the user dictionary, aka the "green highlight with a plus sign". Bug 19237189. Change-Id: I2387129a3add2d69d625f2ff16ed8cab3f10a735
* Remove SubtypeSwitcherTadashi G. Takaoka2014-12-121-4/+0
| | | | Change-Id: Ic4def69a9f742f13c98bc3e518c406658b52797d
* Make LanguageOnSpacebarHelper as utility classTadashi G. Takaoka2014-12-111-9/+10
| | | | Change-Id: I546f3b1943999a41803222bd14f9ddd23aa87a51
* Add NetworkConnectivityUtils classTadashi G. Takaoka2014-12-111-1/+5
| | | | Change-Id: I7bd71f1d4ef0fc0fe21ddfd9f3e11463f53ac4e7
* Revert "Add keyboard margin options to place the keyboard dynamically."Tadashi G. Takaoka2014-12-091-12/+2
| | | | | | | | This reverts commit 8584db1461d286f8eb966c40eb0bc76e8c9df76a. Bug: 18675223 Bug: 18675476 Change-Id: I4e25d87ac261c44b1943df832115f8cca690103a
* Remove unnecessary cast and importTadashi G. Takaoka2014-12-091-3/+1
| | | | Change-Id: I9bcd6c9c48ad51aa0f95937869eb6757e4dd4511
* Add keyboard margin options to place the keyboard dynamically.Andy Wang2014-12-051-2/+14
| | | | | | | Keyboard location and location can now be set in the debug options section. Change-Id: I87c5a1d679489e12dccf26632c399af28087629e
* Move current subtype management code to RichInputMethodManagerTadashi G. Takaoka2014-11-061-2/+3
| | | | Change-Id: I82d5a17a5ec96f26047d29e79f3f28850fc5b3bb
* Move shorcut IME related code from SubtypeSwitcher to RichInputMethodManagerTadashi G. Takaoka2014-11-061-3/+4
| | | | Change-Id: I0f95f603d80570c937e8c38ded88df341c11795e
* Fix MainKeyboardView visibility must be aligned with main keyboard frameTadashi G. Takaoka2014-11-041-2/+10
| | | | | Bug: 18105755 Change-Id: Ifdcaded538d0eac3b100486ddf27ae4314293792
* Add debug loggingTadashi G. Takaoka2014-11-021-3/+42
| | | | Change-Id: I38bf53a0b5ea5064462b8eb5d99b7247ff8bddc4
* Add a preference to resize the keyboard height.Andy Wang2014-10-301-1/+1
| | | | | | | | The keyboard height is controlled by a slider in the debug preferences. Without access to debug preferences, this change is a no-op. Bug: 6867494 Change-Id: I984064ed1cab752876615f5ed582818474d6041b
* Fix some compiler warningsTadashi G. Takaoka2014-10-211-0/+1
| | | | | | | | | | | | | | | | | | | | | 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
* [ML14] Forward the locale list to relevant places, againJean Chalard2014-10-061-2/+4
| | | | | | | | | | | | | | | | Diff: +++ b/java/src/com/android/inputmethod/keyboard/internal/KeyboardBuilder.java @@ -735,7 +735,7 @@ public class KeyboardBuilder<KP extends KeyboardParams> { private boolean matchLocaleCodes(TypedArray caseAttr, final Locale[] locales) { // TODO: adujst this for multilingual input - return matchString(caseAttr, R.styleable.Keyboard_Case_languageCode, locales[0].toString()); + return matchString(caseAttr, R.styleable.Keyboard_Case_localeCode, locales[0].toString()); } private boolean matchLanguageCodes(TypedArray caseAttr, Locale[] locales) { Change-Id: Icefac18dd6d5fea97f591177cf8df1ba6de7f4f0
* Revert "[ML14] Forward the locale list to relevant places"Ken Wakasa2014-10-031-4/+2
| | | | | | | | | | This reverts commit 15dbd38283fc9c8fdfd2540f1d94d4dbf2eabcb5. Bug: 11230254 Reverting due to unit test breakage. Change-Id: Icf29ba5c808c754515aef2d1b4162d72f606acfe
* [ML14] Forward the locale list to relevant placesJean Chalard2014-10-031-2/+4
| | | | | Bug: 11230254 Change-Id: Idf3ed27b396d63ade9800c72c5ce0ed613f5f669
* Fix when to show input viewTadashi G. Takaoka2014-10-031-2/+3
| | | | | | Bug: 15922840 Bug: 17788786 Change-Id: I69aea682202650b601a295d9da583ef8e05a3982
* Start showing the split keyboard layoutSandeep Siddhartha2014-09-171-0/+3
| | | | | | | | | | | Change [3/3] Added tests for Qwerty/en-US/split Parse the switch-case statement from KeyboardBuilder to use the right layout. Bug: 4968173 Change-Id: If4d6d71d5900525290268d8affa55dccf1ebd4f2
* Revert "Revert "Fall back to default keyboard theme""Tadashi G. Takaoka2014-09-171-9/+4
| | | | | | This reverts commit 821486ba8b7a8e2d1a8f31846af456faf076d126. Change-Id: If0285c87edcd5f7d3c5449026953a74bf1125f65
* Revert "Fall back to default keyboard theme"Tadashi G. Takaoka2014-09-171-4/+9
| | | | | | This reverts commit 6ed8b183262063d009e3bb2264e2fe04d780dea3. Change-Id: I48f775e54f4077e556b26bc0146bc918421c6845
* Fall back to default keyboard themeTadashi G. Takaoka2014-09-171-9/+4
| | | | | Bug: 17537884 Change-Id: I3452d6d4a5837c6b2d417c8d256c121df86131cc
* resolved conflicts for merge of 75513e51 to masterKen Wakasa2014-09-131-7/+5
|\ | | | | | | Change-Id: I058c3e63e5e349b58b2bdd2723cb43fbc24a0425
| * Fix not always showing input view with physical keyboard connectedTadashi G. Takaoka2014-09-121-7/+5
| | | | | | | | | | Bug: 17163374 Change-Id: I57f7eeac0c9ac0a15d3d55927e18a2d97849c508
* | am c3fac52d: am 1f74ba17: am cb077f75: Merge "Resolve an old TODO." into lmp-devJean Chalard2014-09-081-24/+16
|\| | | | | | | | | * commit 'c3fac52dd51ba70db83d96b2d421bd440683d9bc': Resolve an old TODO.
| * Resolve an old TODO.Jean Chalard2014-09-051-24/+16
| | | | | | | | | | | | | | This is cleaner. Bug: 17347779 Change-Id: I5b612783b1ec98a1a11401f00d68db49654f3023
* | am 3ad86d91: am afa9d6d8: Merge "Add theme aware key popup preview ↵Tadashi G. Takaoka2014-09-021-2/+5
|\| | | | | | | | | | | | | animation" into lmp-dev * commit '3ad86d91f1e3d251635303e0fb9a83dce22efa3a': Add theme aware key popup preview animation
| * Add theme aware key popup preview animationTadashi G. Takaoka2014-09-021-2/+5
| | | | | | | | | | Bug: 15678343 Change-Id: I26e4d292deab37724387cc9ebc03033fcd698c60
* | am 727cd740: am f2eadbb4: Clear keyboard cache when system locale is changedTadashi G. Takaoka2014-08-291-1/+1
|\| | | | | | | | | * commit '727cd74072d97af334fe8c0d18fa6a1e23629ccb': Clear keyboard cache when system locale is changed
| * Clear keyboard cache when system locale is changedTadashi G. Takaoka2014-08-281-1/+1
| | | | | | | | | | Bug: 17310080 Change-Id: I2b388772f269f1e7610a5bd32de80793da2df16e
* | am 68a2a69a: am 37beaf15: Simplify onComputeInsets of LatinIMETadashi G. Takaoka2014-08-271-1/+1
|\| | | | | | | | | * commit '68a2a69ae35352650a4c6dfc0b0c69069c4a1e1d': Simplify onComputeInsets of LatinIME
| * Simplify onComputeInsets of LatinIMETadashi G. Takaoka2014-08-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | This CL expands SoftInputWindow to the entire screen. Thus a key review backing view is eliminated and onComputeInsets() gets simplified too. Bug: 17212702 Bug: 10841052 Bug: 10541453 Change-Id: I2d859f4e4698c64cabe399000821f13bab729996
* | Fix a bug where mic/emoji key wouldn't work.Jean Chalard2014-08-261-2/+3
|/ | | | | | Bug: 17272902 Bug: 17269948 Change-Id: I561609fa84a6265f8148db7d2411bc1fd38dd163
* Fix NPE when pressing ALT keyTadashi G. Takaoka2014-08-251-0/+3
| | | | | Bug: 17203708 Change-Id: I4f203603496e9401dacba4db21372e3353916418
* (DO NOT MERGE) Show InputView even when hardware keyboard is connectedTadashi G. Takaoka2014-08-121-1/+20
| | | | | | Bug: 13988700 Change-Id: I4aeb01bf3571afc97959c213474a6424d7896120 (cherry picked from commit 06514f00f43f15e702ad3d8287e0d90bff555b7f)
* [HW2] Have a script for hardware keyboardJean Chalard2014-07-011-0/+4
| | | | Change-Id: I3ee85867c529156374ecc17db3243a50912e760b
* [SD3] Forward the script ID to where it will be usedJean Chalard2014-06-271-0/+4
| | | | | Bug: 15840116 Change-Id: If2073e76fed74ae6e1cdd7670013e0e985b0e630
* Always update voice key visibilityTadashi G. Takaoka2014-06-061-3/+1
| | | | | Bug: 15128166 Change-Id: Ie15724c323efa3b102f6aebddc3bda210aad1727
* Remove unused supportsSwitchingToShortcutIme attributeTadashi G. Takaoka2014-06-061-4/+4
| | | | Change-Id: I51c5247ac925a158facb79057f704b763b903552
* Remove LatinImeLogger and UsabilityStudyLogUtilsTadashi G. Takaoka2014-05-291-2/+0
| | | | | | | This CL must be checked in together with Ie52007dc5c. Bug: 15318007 Change-Id: Ie665f296e43b5485ae8ba7e949aa262794ee0dcc
* Remove unused auto correction led for spacebar featureTadashi G. Takaoka2014-05-151-19/+0
| | | | Change-Id: Ie1544bd0d28684d9b7887fddff37b224ed4f8201
* Fix NPE in KeyboardSwitcher while orientation changeTadashi G. Takaoka2014-05-151-1/+1
| | | | | | | | This is a follow up of I8a737e2b73. Bug: 14981300 Bug: 14419121 Change-Id: I87f910adbff248d9606d074c351aa951c9539163
* Create com.android.inputmethod.keyboard.emoji packageTadashi G. Takaoka2014-05-141-0/+1
| | | | Change-Id: Idd12c2fa4f5add7bb50bd7349ff9a74fffe82cfd
* Make Emoji palette more Quantum light compliantTadashi G. Takaoka2014-05-141-1/+2
| | | | | Bug: 14419121 Change-Id: I8a737e2b73a000ad66e7e30a695677fe0bcc66fb
* Refactor KeyboardThemeTadashi G. Takaoka2014-05-121-3/+4
| | | | | | | | | | | | | | | | | | | | | This CL introduces two preference keys in addition to the existing one. - pref_keyboard_theme: The new preference key that is used only in the preference settings. - pref_keyboard_layout_20110916: The previous preference key that holds keyboard color scheme settings. This is superseded by the next key. - pref_keyboard_theme_20140509: The new preference key that holds keyboard theme settings. This value is forcibly reset to LMP theme on a LMP device. On a KitKat and previous device, the settings of the pref_keyboard_layout_20110916 is carried on into this preference. This CL must be checked in together with Id7b3ddd8aa. Change-Id: I2d55602d026e30b38d8f822d2124f5c5e4a9a812
* Revert "Refactor KeyboardTheme"Ken Wakasa2014-05-091-4/+3
| | | | | | | | This reverts commit 19688b584bb903192559196a0e3836bc4c957696. Build breakage. Change-Id: I95d4be1578824eaee5a2fb08ec277250727ac668
* Refactor KeyboardThemeTadashi G. Takaoka2014-05-091-3/+4
| | | | | | | | | | | | | | | | | | | | | This CL introduces two preference keys in addition to the existing one. - pref_keyboard_theme: The new preference key that is used only in the preference settings. - pref_keyboard_layout_20110916: The previous preference key that holds keyboard color scheme settings. This is superseded by the next key. - pref_keyboard_theme_20140509: The new preference key that holds keyboard theme settings. This value is forcibly reset to LMP theme on a LMP device. On a KitKat and previous device, the settings of the pref_keyboard_layout_20110916 is carried on into this preference. This CL must be checked in together with Ifcedeabbec. Change-Id: Ibe75146e2c1c7eebf964ca86550baf244fedb79a