OSDN Git Service

Notify new IME target before IME starts interacting
authorYohei Yukawa <yukawa@google.com>
Sat, 23 Jun 2018 00:33:19 +0000 (17:33 -0700)
committerYohei Yukawa <yukawa@google.com>
Sat, 23 Jun 2018 00:33:19 +0000 (17:33 -0700)
commit99e1f6e04b63a4d85f42fda292001e8b77060093
treeff6a0d287183a5144afae1c3ae7c70a1b1b16636
parentabe78cd313875032a3411a79dc9b687098fc1db6
Notify new IME target before IME starts interacting

Previously, there was a time window between when an IME starts new
input and when the IME issues an IPC IMM#setImeWindowStatus() so that
WindowManagerService (WMS) can be notified about the new IME target
window.

With this CL, it is now guaranteed that WindowManagerService (WMS) is
always notified about the new IME target window before IME starts
interacting with that window.

Note that WMS is not using notified IME target window yet hence there
should be no user-visible behavior change.

Bug: 110531072
Test: atest CtsInputMethodTestCases CtsInputMethodServiceHostTestCases
Change-Id: I032b91ce722a16b17518a5d88015c574d7d3e51b
core/java/android/inputmethodservice/InputMethodService.java
core/java/android/view/inputmethod/InputMethodManager.java
core/java/com/android/internal/view/IInputMethodManager.aidl
services/core/java/com/android/server/InputMethodManagerService.java
services/core/java/com/android/server/wm/WindowManagerInternal.java
services/core/java/com/android/server/wm/WindowManagerService.java