summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server/InputMethodManagerService.java
Commit message (Collapse)AuthorAgeFilesLines
* Fix an issue where voice input is not enabled by default for the secondary userSatoshi Kataoka2013-02-181-5/+12
| | | | | Bug: 8205725 Change-Id: I438daf996ba48cdb34f0a6158a0cbb510aae931b
* Do not turn on imes unexpectedly with unit testsSatoshi Kataoka2013-01-281-15/+30
| | | | | | Bug: 7872918 Change-Id: Ie1d74c9fac27de140e7aa85f2eaefcb89aa06ea7
* Add new disabled state for "optional" built-in apps.Dianne Hackborn2013-01-221-7/+36
| | | | | | | | | | | | | | | The disabled state allows you to make an app disabled except for whatever parts of the system still want to provide access to them and automatically enable them if the user want to use it. Currently the input method manager service is the only part of the system that supports this, so you can put an IME in this state and it will generally look disabled but still be available in the IME list and once selected switched to the enabled state. Change-Id: I77f01c70610d82ce9070d4aabbadec8ae2cff2a3
* Merge "Ensure that the input method dialog is dismissed when changing the ↵Satoshi Kataoka2013-01-181-0/+3
|\ | | | | | | hardware keyboard state."
| * Ensure that the input method dialog is dismissed when changing the hardware ↵Satoshi Kataoka2013-01-181-0/+3
| | | | | | | | | | | | keyboard state. Change-Id: I51882ecd2b1a12116f43afff7c23454164a6272b
* | Merge "Rename bindService to bindServiceAsUser to follow convention."Amith Yamasani2013-01-161-1/+2
|\ \ | |/ |/|
| * Rename bindService to bindServiceAsUser to follow convention.Amith Yamasani2013-01-161-1/+2
| | | | | | | | | | | | This is for the multi-user version of bindService, not the original. Change-Id: Ib2de35941196accf387b1a276a77e6f9af805ec0
* | Refactor utilities for InputMethodManagerSerivce that we want to share with ↵Satoshi Kataoka2013-01-151-775/+62
|/ | | | | | | | the Settings application Bug: 7872918 Change-Id: I0bc9954f163a3ec38d08b9ba842a8a31176eb6a6
* am 50fc82fd: am 30b074fc: am 2495d08a: am 5327322a: Merge "Revert "Fix a bug ↵Satoshi Kataoka2013-01-111-9/+0
|\ | | | | | | | | | | | | where disabled auxilialy IME is unexpectedly re-enabled"" into jb-mr1.1-dev * commit '50fc82fdf025bc1fee8f0eb50fa88e4591c8daae': Revert "Fix a bug where disabled auxilialy IME is unexpectedly re-enabled"
| * am 2495d08a: am 5327322a: Merge "Revert "Fix a bug where disabled auxilialy ↵Satoshi Kataoka2013-01-101-9/+0
| |\ | | | | | | | | | | | | | | | | | | IME is unexpectedly re-enabled"" into jb-mr1.1-dev * commit '2495d08a5c06556deb7c3993add337037b8b492e': Revert "Fix a bug where disabled auxilialy IME is unexpectedly re-enabled"
| | * Revert "Fix a bug where disabled auxilialy IME is unexpectedly re-enabled"Satoshi Kataoka2013-01-101-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 32b812054cce27d1c70b53ba8ac729c7186b105e Bug: 7976890 Change-Id: I75ab60734153719b199cf7281d23f5eb1ad2d1bc
* | | am 5ce02267: am 7ad7b2c4: am 32b81205: Fix a bug where disabled auxilialy ↵satok2012-12-191-0/+9
|\ \ \ | |/ / | | | | | | | | | | | | | | | IME is unexpectedly re-enabled * commit '5ce0226708ec75b8636d062ae89aeb410c06659c': Fix a bug where disabled auxilialy IME is unexpectedly re-enabled
| * | am 32b81205: Fix a bug where disabled auxilialy IME is unexpectedly re-enabledsatok2012-12-191-0/+9
| |\ \ | | |/ | | | | | | | | | * commit '32b812054cce27d1c70b53ba8ac729c7186b105e': Fix a bug where disabled auxilialy IME is unexpectedly re-enabled
| | * Fix a bug where disabled auxilialy IME is unexpectedly re-enabledsatok2012-12-191-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 7872918 This is a serious issue which the disabled system auxilialy IME is unexpectedly re-enabled by re-building internal IMI cache. Change-Id: I0727cc973dfaea9823194021ce94af8665b98373
* | | resolved conflicts for merge of ebcbfb3f to masterMita Yun2012-12-101-2/+2
|\ \ \ | |/ / | | | | | | Change-Id: I0658dd4a1418fbad91d9663e5b52418a979dc683
| * | Use asynchronous messages for input method events.Mita Yun2012-12-061-2/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | Improves the throughput of IME event handling by ensuring that input events do not get serialized behind UI traversal and drawing messages such as when the UI is animating. Added support for creating an asynchronous Handler as part of a HandlerCaller. It turns out we should be using an asynchronous Handler not only in IME dispatch but also in accessibility and wallpaper events where HandlerCaller is used. So fixed those services to also use an asynchronous Handler. Change-Id: I0b19140c9d5ca6ee300c1a150c48312fd55ed8eb
* | am 8ec9f8f0: am dc5b21a5: am 487f8e93: Merge "Fix an issue on installing ↵satok2012-12-051-2/+4
|\ \ | |/ | | | | | | | | | | 3rd-party IME by a non-primary user" into jb-mr1.1-dev * commit '8ec9f8f074ea35cad6e6a75a87e4bde947f12ea1': Fix an issue on installing 3rd-party IME by a non-primary user
| * Fix an issue on installing 3rd-party IME by a non-primary usersatok2012-12-041-2/+4
| | | | | | | | | | | | | | | | Bug: 7573552 Currently IMMS doesn't receive install/uninstall messages. Accordingly enabled IMEs' list is not refreshed properly. Change-Id: I25e9798a65f528dd270cd6bb1f14b1d887194787
* | am c86ae7cf: am 1c37b800: am 1af08411: Merge "Hide current soft input when a ↵Satoshi Kataoka2012-11-271-3/+11
|\ \ | |/ | | | | | | | | | | background user gains window focus." into jb-mr1.1-dev * commit 'c86ae7cf318f6c9d8cf581447e8897fbc1245ef3': Hide current soft input when a background user gains window focus.
| * Merge "Hide current soft input when a background user gains window focus." ↵Satoshi Kataoka2012-11-261-3/+11
| |\ | | | | | | | | | into jb-mr1.1-dev
| | * Hide current soft input when a background user gains window focus.Satoshi Kataoka2012-11-201-3/+11
| | | | | | | | | | | | | | | Bug: 7507226 Change-Id: If58f68469e21eaaba8536c4b54b3aa8cf8c08eb5
* | | am 4e3520a8: am ce393d33: am 3f64edec: Merge "Fix IME down caret in keyguard ↵John Spurlock2012-11-211-4/+14
|\ \ \ | |/ / | | | | | | | | | | | | | | | nav bar bug." into jb-mr1.1-dev * commit '4e3520a8d441dd2c1cb446f6f9a28b43d07238c9': Fix IME down caret in keyguard nav bar bug.
| * | Fix IME down caret in keyguard nav bar bug.John Spurlock2012-11-201-4/+14
| |/ | | | | | | | | | | | | | | | | The input method manager service now keeps track of whether or not the ime was shown on the keyguard. This prevents activities behind the keyguard from incorrectly showing the down-caret in the keyguard. Bug:7498792 Change-Id: I0de01ec29cb544e902305b0f9d9fb94a73835e7b
* | am 9371747e: am 0e1c092a: am 2656abe0: Merge "Fix an inconsistent state with ↵Satoshi Kataoka2012-11-171-4/+2
|\ \ | |/ | | | | | | | | | | IMMS and Settings when the hard keyboard is connected" into jb-mr1.1-dev * commit '9371747e752236727be58149a8d04248860c134f': Fix an inconsistent state with IMMS and Settings when the hard keyboard is connected
| * Fix an inconsistent state with IMMS and Settings when the hard keyboard is ↵Satoshi Kataoka2012-11-161-4/+2
| | | | | | | | | | | | | | connected Bug: 7540140 Change-Id: Iaac951ff457c35751b442e84ac07f1f86be93494
* | Fix an issue on LED in IME switcherSatoshi Kataoka2012-11-121-1/+3
|/ | | | | Bug: 5282186 Change-Id: I66362aefb319a02ca741e40a50b8b345a89c8726
* Fix issue #7457380: IME leaves a mark after user switchingDianne Hackborn2012-11-021-7/+7
| | | | | | | | | | | | | | | | | | The gnarly stuff where we keep track of the old input method window as if it was still there was sitting around leaving things in a stuck state. Now we clear this out at key points in the window manager (freezing screen, user change), and the input method manager service is less aggressive about asking the window manager to do it. Also fixed a problem that was causing flickers during some wallpaper transitions -- when we are animating two things on top of the wallpaper and one of them disappears, we need to make sure the wallpaper target points to whatever the current target should be (if any), not left pointing to the old target that has gone away. Change-Id: I2fb9600f569a5bd5e3528aaf24cde9340af56cb0
* Fix a crash in InputMethodManagerService due to permission failure.Amith Yamasani2012-10-241-1/+6
| | | | | | | Clear calling identity before sending broadcast to the current user. Bug: 7403829 Change-Id: If2b27d07d917b892470163e1303883b29a86c0e4
* System server should always send broadcasts to a specific or all usersAmith Yamasani2012-10-221-2/+2
| | | | | | | | | | | | | Bug: 7368245 Log a warning if the system process calls unqualified sendBroadcast() and other calls. As a result of the logging above, found a few more method calls such as bindService() that would benefit from being more explicit to avoid future confusion and reduce the log warnings. Change-Id: I17f15c8be9adf7becd456d6abbab606f19befdbf
* Fix an issue on showInputMethodPickerFromClientSatoshi Kataoka2012-10-091-1/+3
| | | | | Bug: 7302748 Change-Id: Iff4345d26b3d6e4bfedf893bbd6a864c771df01d
* Fix the issue on the input method switch pickerSatoshi Kataoka2012-10-051-2/+2
| | | | | Bug: 7292731 Change-Id: I8cb51dd01e4c467fff511d4ecee79426f9b2ed80
* Close the current input method when attached view doesn't have a handlerSatoshi Kataoka2012-10-031-1/+1
| | | | | Bug: 7187452 Change-Id: Iba4f7ac89f5806e871aaeb97f366935b83b95a5a
* Always accept API calls from processes which have INTERACT_ACROSS_USERS_FULL ↵Satoshi Kataoka2012-10-011-11/+29
| | | | | | | in InputMethodManagerService Bug: 6931482 Change-Id: I1620413578b9e8da6564664219f65bdc00d5ecfd
* Fix ime swtich issueSatoshi Kataoka2012-09-281-0/+3
| | | | | Bug: 7250097 Change-Id: Ibe85aaf7d60e7c3a27363eece528d19a0c8ddca2
* Treat additional inputmethod subtypes per userSatoshi Kataoka2012-09-271-11/+17
| | | | | Bug: 6931482 Change-Id: I4f7c7e69a80534da3a48ac508ff7a9e7511f33ce
* Enable multi-user function for IMFSatoshi Kataoka2012-09-261-135/+402
| | | | | | Bug: 6931482 Change-Id: Ib23849d352db33f0747aa9d5a178f00ac726c13b
* Add subtypeId for keeping enabled "InputMethodSubtype"s even if subtype ↵Satoshi Kataoka2012-09-041-11/+15
| | | | | | | parameters are changed Bug: 6752230 Change-Id: I3a2d512e395fe8645edf6ab82108948b927c629a
* Window position not reported if the window is not moved.Svetoslav Ganov2012-08-061-10/+20
| | | | | | | | | | | 1.If a window is shown but never moved the window window is never notified for its current location. Therefore, accessibility nodes do not contain correct bounds in screen coordinates. bug:6926295 Change-Id: I7df18b095d33ecafffced75aba9e4f4693b0c393
* Make AtomicFile a public API. It's about time!Dianne Hackborn2012-07-311-1/+1
| | | | Change-Id: Ib34e294747405b7ab709cb0bbb2d9a0cc80ce86a
* Workaround: Never reset the default IME if the system is not readysatok2012-06-211-1/+10
| | | | | Bug: 6685037 Change-Id: Ifb311f85154beadd4787ec73669bedfdf1f5172d
* Show even fewer notifications in Setup.Daniel Sandler2012-06-141-0/+4
| | | | | | | | | | | | | | | | | Restricting to pkg="android" didn't filter out things like open wifi networks, etc. So now we have a whitelist: notifications must be sent the "android" pseudo-package, *and* they must have one of these "kind" tags: - android.system.imeswitcher (IME switcher, needed by SUW) - android.system.update (OTAs) Note that OTAs currently use a fullScreenIntent, so they bypass this logic anyway, but for consistency's sake we now allow OTA icons in the status bar explicitly. Bug: 6645469 Change-Id: Ib2e2f22d7a0817a1acaf8137ed4f3c7d3ddf8af5
* Fix issue #5680541: onStartInputView called upon focus lossDianne Hackborn2012-05-221-21/+18
| | | | | | | | | | | We should tell the app that it is inactive, before unbinding. Otherwise when it is told to unbind it will see that it is still supposed to be active and immediately re-bind. Also change the calls to set the active state to go through the message dispatch path, to ensure ordering is correct. Change-Id: I246241eac8f7521f42c4c1eee7f46097337e7303
* Fix issue #6499411: Characters not displayed (but suggestion bar is working)Dianne Hackborn2012-05-221-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | The problem was that when dismissing the lock screen, the window manager would briefly turn off force hiding when it started animating the transition and then turn it back on until the transition was done. This would cause it to briefly switch focus to the app behind and then take focus off it. The app would find out it got focus, and re-start input on itself, asking the input method service to do so. At this point the input method service would ask the window manager if the caller really had focus, and it may or may not be told no depending on the timing. If it is told no, then it doesn't allow the focus switch to happen at that point, ignoring the new input connection, and ultimately when focus does really switch the IME is left talking with an old dead input connection. I added some code to the input connection to make sure when we are no longer using one that we mark it inactive and can't use it. This bug was especially difficult to track down because it would only visibly break when a GC happened during this time, causing the weak reference on the input connection to become null. With this change it will now always break (though in the scenario here only if you hit the race condition correctly). Change-Id: I81a6164dc140c548da1a9736e42cd253e8238a80
* Fix the issue on the inconsistent condition of InputMethodSubtypesatok2012-05-211-21/+30
| | | | | Bug: 6510104 Change-Id: I67790e5f59d0d05340b74eca1029c60f381061b8
* Consolidate the initialization of InputMethodManagerService not to use ↵satok2012-05-181-16/+43
| | | | | | | | resource values until system ready Bug: 6477193 InputMethodManagerService have used the resource value of "isDefault" in the constructor. We should wait to use that value until system ready. Change-Id: I682fc109c303d8c7fd33d494c59e8e28d6dc6fa5
* Fix the issue that the insets linger after closing the voice inputsatok2012-05-101-0/+4
| | | | | Bug: 6456954 Change-Id: Idf7700271cf882dfbf35c9d16f0f173a791221bc
* Fix sort order of the input method switcher in IMMSsatok2012-05-091-4/+56
| | | | | Bug: 6333988 Change-Id: Ief392c9157f2a37600e517ec9caf586ffb9d5f0d
* Do not return stale subtypessatok2012-05-081-29/+45
| | | | | Bug: 6294329 Change-Id: I3f0713f94c291298dfd447d1b65bd7c6d2858492
* Reset the default system ime to the proper one when the system locale is changedsatok2012-05-031-23/+101
| | | | | | | | | | The framework automatically enables only valid system default IMEs and IMEs that have at least one English subtype at the initial boot and system locale changes. Settings: I9af4065e4b9f933 Bug: 6422666 Bug: 6422390 Change-Id: I0b86ddba692144521f30e0b9086ddd67bfb9a793
* Move handling of package changes to a background thread.Dianne Hackborn2012-04-191-1/+1
| | | | | | Helps get rid of some jank when installing applications. Change-Id: I97d0022f82d67796e334d37086e5911dd6ca6b62