summaryrefslogtreecommitdiff
path: root/java/src/com/android/inputmethod/keyboard
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
* LatinIME: Do we really still want Holo?Michael W2020-05-181-44/+1
| | | | | | * Remove Holo keyboard selection Change-Id: I2a67bc147afd9f5c86f0c723eda70083891707cd
* LatinIME: Add setting for theme to follow system settingMichael W2020-05-181-18/+39
| | | | | | | | | * Add a setting to follow the system design (light/dark) * Make it default for >= Q * Rework the handling to differentiate between selected theme (by id) and actual theme we use Change-Id: I380e3540b2437102685aa632c5b0a2f2dff11e1b
* LatinIME: Add Luxembourgish keyboard & spellchecking dictionaryMichel Weimerskirch2019-12-111-193/+239
| | | | Change-Id: Ie53bcb49b568a44a7bdcc8c7437d9981062487b6
* LatinIME: HU enable predictive dictionary and remove unused lettersTamás Tóth2019-12-111-32/+5
| | | | Change-Id: I6658bae54793c59b3c0839edda6933950920185e
* Don't interrupt active gesture input by modifier key presses.Danny Baumann2019-12-111-3/+8
| | | | | | They're likely to be caused by palm touches. Change-Id: Ic1e0b86c5bf5d4c22f888f0bb77342584e45763e
* LatinIME: Regenerate KeyboardTextsTableMichael Bestas2019-12-111-0/+36
| | | | | | * Add Burmese Change-Id: I650fdac232bb1aa6c35798e782edaa2ab829c5fc
* Fix send button not being centered for non-standard densities.Danny Baumann2019-12-111-10/+3
| | | | Change-Id: I6e6717dc7487eeafca121e94d93aff5c3aae5f6c
* Migrated various apps under packages/inputmethods/LatinIME/ to androidxvineel sadineni2018-05-153-3/+3
| | | | | | Bug: 76692459 Test: mmma packages/inputmethods/LatinIME/ Change-Id: Ib76af6f6db1a0dd5cf64a06a4ea56151712e9692
* Merge "Hide settings-key until the device is unlocked."Yohei Yukawa2016-01-071-0/+11
|\
| * Hide settings-key until the device is unlocked.Yohei Yukawa2016-01-071-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Starting in N, we are going to have new APIs to officially support the situation where apps need to run before the user has unlocked their device for the first time. For IME developers those APIs would be important not only because IMEs developers may want to support other apps that support that feature but also because IMEs developers have already needed to pay attention to the same situation where the IME is running so that the user can enter the initial password (e.g. for an encrypted device). Bug 11270326 is a perfect example of this scenario. Now we can disable settings-key until the device is unlocked by using the new API when running in Android N devices. Bug: 11270326 Change-Id: Ie1c6efa63b60b91430f1a78dde624d0f3dff3c69
* | Check if last shown Emoji category ID is still validDmitry Torokhov2015-12-081-2/+18
|/ | | | | | | | | | | | | When upgrading to a new version of APK we may find that the stored Emoji category ID is no longer applicable. For example it happened when we brought in the new Unicode 8.0 Emojis. Also restore the "Symbols" emoji category on pre-kitkat devices which was accidentally dropped when bringing in Unicode 8.0 Emojis. b/25972978 Change-Id: I91c044603b0aac8757cb8597d3af995f84b822f3
* Unicode 8.0 emoji additions to Google Keyboard.Chieu Nguyen2015-11-112-19/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed commit of the following: commit 8e86347b024e2460a17264fbcaa20cd6e5fd6018 Author: Chieu Nguyen <cvnguyen@google.com> Date: Tue Nov 10 11:29:44 2015 -0800 Remove check for version code. This was unnecessary and caused multi-codepoint emoji to not show up on any device. Bug: 25369504 Change-Id: Ia1e61c052444aaab824b18463c26b5a8066c65ed commit 1b924816665a3a2c48307dbdd1078f61dd3179f2 Author: Chieu Nguyen <cvnguyen@google.com> Date: Fri Nov 6 18:12:58 2015 -0800 Fix Material icons for new tab. Bug: 25369504 Bug: 16185905 Change-Id: I873eb9e8fc1259ac94a974c04a80a4f0d005f9c2 commit 956d5f86d2552d90d2c3240a85d5c1cddf05eda9 Author: Chieu Nguyen <cvnguyen@google.com> Date: Fri Nov 6 17:16:10 2015 -0800 Remove extraneous TalkBack descriptions. Bug: 25369504 Bug: 16185905 Change-Id: Iec4f0f46cf9dda169c5827168ef207e56d619096 commit 07357bdec69b5fc118c82401d59b61ad7b802c22 Author: Chieu Nguyen <cvnguyen@google.com> Date: Fri Nov 6 16:01:34 2015 -0800 Better checking of whether to display new emoji. Bug: 25369504 Bug: 16185905 Change-Id: I61f1b428e5a805f66eb4e9db346be8756fc84b8f commit 666a92f17034f5a1948e70f40226ed995c72d81f Author: Chieu Nguyen <cvnguyen@google.com> Date: Fri Nov 6 12:54:53 2015 -0800 Fix shading on emoji category icons. Bug: 25369504 Bug: 16185905 Change-Id: I217af3d97120e7910e9850de7ea331a461ae7e56 commit 2712432c0e7a1b90ebb7ed6bde8f87eec7bf1094 Author: Chieu Nguyen <cvnguyen@google.com> Date: Thu Nov 5 19:06:57 2015 -0800 Add new emoji categories to Holo Blue. Bug: 25369504 Bug: 16185905 Change-Id: Ie32af93e68e08b36a4a5861a06de511b2b190dca commit 04c79b1f53912b263d7f7eb8b71ac802ed960a8a Author: Chieu Nguyen <cvnguyen@google.com> Date: Thu Nov 5 18:06:35 2015 -0800 Fix default category, remove xxxhdpi Holo icons. Bug: 25369504 Bug: 16185905 Change-Id: I9bca795675297dceb93777d998e8f2935f7031a6 commit 15c0b578343db2baa873096891a69305398eb830 Merge: 77bc6fc 8604ce3 Author: Chieu Nguyen <cvnguyen@google.com> Date: Fri Nov 6 00:59:08 2015 +0000 Merge changes into jb-ub-latinimegoogle commit 77bc6fcfd760232757b5751993c0046f2a43626a Merge: b0380a0 8604ce3 Author: Chieu Nguyen <cvnguyen@google.com> Date: Fri Nov 6 00:59:04 2015 +0000 Merge "Remove Kosovo from flags (no glyph)." into jb-ub-latinimegoogle commit b0380a0744647039278ad6648b7a1bc94eeab623 Author: Chieu Nguyen <cvnguyen@google.com> Date: Thu Nov 5 16:42:24 2015 -0800 Add icons for new emoji categories. Bug: 25369504 Bug: 16185905 Change-Id: I1182e031994332b2e618406ad1cd467cb050766e commit 8604ce3a34b65598101cac37a3ed3e8087fe38ca Author: Chieu Nguyen <cvnguyen@google.com> Date: Thu Nov 5 16:29:33 2015 -0800 Remove Kosovo from flags (no glyph). Bug: 25369504 Bug: 16185905 Change-Id: I92c9ace19d3600cfa1f27678ada0cf45af42d8f5 commit e0489eab47d3a6d138bfa00a668f02bcb473cf88 Author: Chieu Nguyen <cvnguyen@google.com> Date: Thu Nov 5 14:30:58 2015 -0800 Update emoji set to blacklist non-color glyphs. Bug: 25369504 Bug: 16185905 Change-Id: I8b54217fa68da8ddaa1bbcd1845e0123ed106463 commit 9ffdcdff058d6b44cab70e4fb0bb301e39699483 Author: Chieu Nguyen <cvnguyen@google.com> Date: Wed Nov 4 17:18:22 2015 -0800 Add Unicode 8.0 emoji to emoji palette. Currently all emoji category tabs use the flower icon. A future CL will update these once the icons are finalized. If glyphs do not exist for new emoji, the old categories will be shown. Bug: 25369504 Bug: 16185905 Change-Id: Ie3759bfc4c8469a17f3205b45609ce6ef7510121 commit 4a4a042072790b19048a14d2ddab655b1be31a6e Author: Chieu Nguyen <cvnguyen@google.com> Date: Sun Nov 1 18:38:20 2015 -0800 Add description strings for Unicode 8.0 new emoji. Bug: 16185905 Bug: 25369504 Change-Id: I6048609ace715a23db5f82d47fefe4868ccb3d17 Change-Id: I30a043554b14531ab9cf89a1f663b6970d7d6863
* Revert "Unicode 8.0 emoji changes to Google Keyboard."Ian Pedowitz2015-11-102-140/+19
| | | | | | This reverts commit 9cc42549d18f1e28ffc8dae94ff36728933f53f1. Change-Id: Ia3b037160e55bc54ef55194b967d9c91f6814ff8
* Unicode 8.0 emoji changes to Google Keyboard.Chieu Nguyen2015-11-062-19/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed commit of the following: commit 1b924816665a3a2c48307dbdd1078f61dd3179f2 Author: Chieu Nguyen <cvnguyen@google.com> Date: Fri Nov 6 18:12:58 2015 -0800 Fix Material icons for new tab. Bug: 25369504 Bug: 16185905 Change-Id: I873eb9e8fc1259ac94a974c04a80a4f0d005f9c2 commit 956d5f86d2552d90d2c3240a85d5c1cddf05eda9 Author: Chieu Nguyen <cvnguyen@google.com> Date: Fri Nov 6 17:16:10 2015 -0800 Remove extraneous TalkBack descriptions. Bug: 25369504 Bug: 16185905 Change-Id: Iec4f0f46cf9dda169c5827168ef207e56d619096 commit 07357bdec69b5fc118c82401d59b61ad7b802c22 Author: Chieu Nguyen <cvnguyen@google.com> Date: Fri Nov 6 16:01:34 2015 -0800 Better checking of whether to display new emoji. Bug: 25369504 Bug: 16185905 Change-Id: I61f1b428e5a805f66eb4e9db346be8756fc84b8f commit 666a92f17034f5a1948e70f40226ed995c72d81f Author: Chieu Nguyen <cvnguyen@google.com> Date: Fri Nov 6 12:54:53 2015 -0800 Fix shading on emoji category icons. Bug: 25369504 Bug: 16185905 Change-Id: I217af3d97120e7910e9850de7ea331a461ae7e56 commit 2712432c0e7a1b90ebb7ed6bde8f87eec7bf1094 Author: Chieu Nguyen <cvnguyen@google.com> Date: Thu Nov 5 19:06:57 2015 -0800 Add new emoji categories to Holo Blue. Bug: 25369504 Bug: 16185905 Change-Id: Ie32af93e68e08b36a4a5861a06de511b2b190dca commit 04c79b1f53912b263d7f7eb8b71ac802ed960a8a Author: Chieu Nguyen <cvnguyen@google.com> Date: Thu Nov 5 18:06:35 2015 -0800 Fix default category, remove xxxhdpi Holo icons. Bug: 25369504 Bug: 16185905 Change-Id: I9bca795675297dceb93777d998e8f2935f7031a6 commit 15c0b578343db2baa873096891a69305398eb830 Merge: 77bc6fc 8604ce3 Author: Chieu Nguyen <cvnguyen@google.com> Date: Fri Nov 6 00:59:08 2015 +0000 Merge changes into jb-ub-latinimegoogle commit 77bc6fcfd760232757b5751993c0046f2a43626a Merge: b0380a0 8604ce3 Author: Chieu Nguyen <cvnguyen@google.com> Date: Fri Nov 6 00:59:04 2015 +0000 Merge "Remove Kosovo from flags (no glyph)." into jb-ub-latinimegoogle commit b0380a0744647039278ad6648b7a1bc94eeab623 Author: Chieu Nguyen <cvnguyen@google.com> Date: Thu Nov 5 16:42:24 2015 -0800 Add icons for new emoji categories. Bug: 25369504 Bug: 16185905 Change-Id: I1182e031994332b2e618406ad1cd467cb050766e commit 8604ce3a34b65598101cac37a3ed3e8087fe38ca Author: Chieu Nguyen <cvnguyen@google.com> Date: Thu Nov 5 16:29:33 2015 -0800 Remove Kosovo from flags (no glyph). Bug: 25369504 Bug: 16185905 Change-Id: I92c9ace19d3600cfa1f27678ada0cf45af42d8f5 commit e0489eab47d3a6d138bfa00a668f02bcb473cf88 Author: Chieu Nguyen <cvnguyen@google.com> Date: Thu Nov 5 14:30:58 2015 -0800 Update emoji set to blacklist non-color glyphs. Bug: 25369504 Bug: 16185905 Change-Id: I8b54217fa68da8ddaa1bbcd1845e0123ed106463 commit 9ffdcdff058d6b44cab70e4fb0bb301e39699483 Author: Chieu Nguyen <cvnguyen@google.com> Date: Wed Nov 4 17:18:22 2015 -0800 Add Unicode 8.0 emoji to emoji palette. Currently all emoji category tabs use the flower icon. A future CL will update these once the icons are finalized. If glyphs do not exist for new emoji, the old categories will be shown. Bug: 25369504 Bug: 16185905 Change-Id: Ie3759bfc4c8469a17f3205b45609ce6ef7510121 Change-Id: Ia5a5879cea828ea4cb4c678765fe5d9e5ecbfcd2
* Do not start in recents tab if we do not have recent emojisDmitry Torokhov2015-10-151-7/+14
| | | | | | | | | | | | | | If user has not used emojis we should not bring recents emoji tab on the first invocation of the on-screen keyboard as it is confusing to see an empty tab. We will still be showing recents tab even if it is empty if user actively switched to it when using on-screen keyboard. Bug: 24497650 Change-Id: I68b4bf64441590858d246168cc4733a2875a1357 (cherry picked from commit 24d67eba27cb23c0d3aca44236247ec12380daa5)
* 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)
* Set background color for emoji category tabs.Chieu Nguyen2015-03-181-0/+3
| | | | | Bug: 19686516. Change-Id: I519d09491ded4f5d85a5951afb48a9638b5fe652
* Remove ALS from LatinIME.Dan Zivkovic2015-03-115-32/+16
| | | | | | This fixes unit tests and brings us closer to a green build. Change-Id: Iffcc392eda4a7671a238b79cc7367320ca648725
* Delete user history files.Dan Zivkovic2015-03-111-1/+1
| | | | | | Bug 19669016. Change-Id: I8069fe561347851bf3c27423dbd8ba99d38c049e
* Remove shortcut support from LatinIME.Dan Zivkovic2015-02-112-20/+9
| | | | | | Note this change does not affect the native decoder interface. Change-Id: I73b7dc008a5acaf75a31a36a2d332b5afabd82d0
* Fix delete handling in Emoji keyboard.Dan Zivkovic2015-02-031-2/+55
| | | | | | Bug 19113652. Change-Id: I4255c248a25bb92f5c12da6a185d17cc13a9a69d
* LatinIME portion of "green plus" feature.Dan Zivkovic2015-02-035-690/+4
| | | | | | | | | Removes the feature that adds strings to the user dictionary, aka the "green highlight with a plus sign". Bug 19237189. Change-Id: I2387129a3add2d69d625f2ff16ed8cab3f10a735
* Remove custom code for Emoji keyboard Delete key.Dan Zivkovic2015-02-021-131/+1
| | | | | | | | The code tries to implement a completely separate touch handler for the Delete key, so it can do fancy things like suppress haptic feedback during long press. This is not really necessary. Change-Id: I0eae758b617e94605035c40e0df15d972ae733c1
* Create a new KeyboardLayout class to represent the layout.Mohammadinamul Sheik2015-01-303-1/+136
| | | | Change-Id: Ia08c8194f460271c831702675cfb687ab9f6678b
* Disable the Burmese keyboard.Dan Zivkovic2015-01-291-36/+0
| | | | | | | | We'll resurrect this effort in the new code base. Bug 16900511. Change-Id: Iae4cd27cb29cb8f991e97cffd88ed59c30d66628
* Remove SubtypeSwitcherTadashi G. Takaoka2014-12-121-4/+0
| | | | Change-Id: Ic4def69a9f742f13c98bc3e518c406658b52797d
* Make LanguageOnSpacebarHelper as utility classTadashi G. Takaoka2014-12-113-111/+16
| | | | 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-093-19/+6
| | | | | | | | 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
* Merge "Refactor KeysCache to UniqueKeysCache"Tadashi G. Takaoka2014-12-085-73/+98
|\
| * Refactor KeysCache to UniqueKeysCacheTadashi G. Takaoka2014-11-275-73/+98
| | | | | | | | Change-Id: I8e3c4705c705a1c6e05e9112211d7012912d7e41
* | Add keyboard margin options to place the keyboard dynamically.Andy Wang2014-12-053-6/+21
|/ | | | | | | Keyboard location and location can now be set in the debug options section. Change-Id: I87c5a1d679489e12dccf26632c399af28087629e
* Add null analysis annotations to keyboard packageTadashi G. Takaoka2014-11-2717-100/+219
| | | | Change-Id: I6f020ece3c45d584d413e4265d6d3fbdf1ea8bd8
* Merge "Fix possible NPE in MainKeyboardView"Tadashi G. Takaoka2014-11-271-2/+5
|\
| * Fix possible NPE in MainKeyboardViewTadashi G. Takaoka2014-11-201-2/+5
| | | | | | | | Change-Id: I1fc21a981d9f1740315763b5ca0c1024ece1fa4d
* | Remove obsolete commentTadashi G. Takaoka2014-11-261-1/+0
| | | | | | | | Change-Id: I9e606fd573a60d12482b12e0e9adaecd552f66a7
* | Refactor PointerTracker and MainKeyboardViewTadashi G. Takaoka2014-11-214-116/+110
|/ | | | | | This CL reorganize the key press/release state visual drawing code. Change-Id: I4aa10f57309ae2f81333a1e2bd863c23a7a41d82
* Rename StringUtils methods that handle title case manipulationTadashi G. Takaoka2014-11-193-18/+27
| | | | Change-Id: Iee0dd077a0423f110f4f8dad0f04933045baef2a
* Merge "Refactor KeyboardState.SavedKeyboardState class a bit"Tadashi G. Takaoka2014-11-171-23/+28
|\
| * Refactor KeyboardState.SavedKeyboardState class a bitTadashi G. Takaoka2014-11-101-23/+28
| | | | | | | | Change-Id: I5be7339c4797b0308c1a192d2984056619fdfbdd
* | Merge "Remove deprecated Canvas.clipRegion(Region) call"Tadashi G. Takaoka2014-11-171-56/+58
|\ \
| * | Remove deprecated Canvas.clipRegion(Region) callTadashi G. Takaoka2014-10-311-56/+58
| | | | | | | | | | | | Change-Id: I88e0a8d327c17bf4bafbe44cdfa265f5d0acb879
* | | Move isRtlLanguage method to LocaleUtilsTadashi G. Takaoka2014-11-121-1/+0
| | | | | | | | | | | | Change-Id: I485a076b81927fed0da593216fea2c740449ef4c
* | | Add RichInputMethodSubtype.getKeyboardLayoutSetNameTadashi G. Takaoka2014-11-123-3/+3
| |/ |/| | | | | Change-Id: I90cc74ee882e8aa2b243885d3b994223ca3b6f44
* | Move logic to determine spacebar text to LanguageOnSpacebarHelperTadashi G. Takaoka2014-11-081-4/+25
| | | | | | | | Change-Id: Ib9dbbb4bd4e35c15fd752c364d3012e8a7da2410
* | Merge "Clean up KeyboardLayoutSet a bit"Tadashi G. Takaoka2014-11-071-28/+19
|\ \
| * | Clean up KeyboardLayoutSet a bitTadashi G. Takaoka2014-11-061-28/+19
| | | | | | | | | | | | | | | | | | | | | This CL moves getScriptId() from KeyboardLayoutSet.Builder to KeyboardLayoutSet. Change-Id: I13588467e3d03abb92120acb367f021ee3490a50
* | | Merge "Move current subtype management code to RichInputMethodManager"Tadashi G. Takaoka2014-11-071-2/+3
|\ \ \