summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2017-02-14 01:38:04 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2017-02-14 01:38:07 +0000
commit3400795aecc8b1c139dd0726716545118b125f47 (patch)
tree079298ed7528fe94439ca33c313229f7d5ddc0ef /core/java/android
parent2eaae562fed8c6b228c19a8b2d8a98e022d96cf9 (diff)
parent69e68024220d3f18b08cbb314c7991f8f76cbe49 (diff)
Merge "Propagate setImeWindowStatus() to WMS"
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/view/WindowManagerInternal.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/core/java/android/view/WindowManagerInternal.java b/core/java/android/view/WindowManagerInternal.java
index 6e2a92cd4ee9..7a5e670c02bd 100644
--- a/core/java/android/view/WindowManagerInternal.java
+++ b/core/java/android/view/WindowManagerInternal.java
@@ -282,6 +282,25 @@ public abstract class WindowManagerInternal {
public abstract void clearLastInputMethodWindowForTransition();
/**
+ * Notifies WindowManagerService that the current IME window status is being changed.
+ *
+ * <p>Only {@link com.android.server.InputMethodManagerService} is the expected and tested
+ * caller of this method.</p>
+ *
+ * @param imeToken token to track the active input method. Corresponding IME windows can be
+ * identified by checking {@link android.view.WindowManager.LayoutParams#token}.
+ * Note that there is no guarantee that the corresponding window is already
+ * created
+ * @param imeWindowVisible whether the active IME thinks that its window should be visible or
+ * hidden, no matter how WindowManagerService will react / has reacted
+ * to corresponding API calls. Note that this state is not guaranteed
+ * to be synchronized with state in WindowManagerService.
+ * @param targetWindowToken token to identify the target window that the IME is associated with.
+ */
+ public abstract void updateInputMethodWindowStatus(IBinder imeToken, boolean imeWindowVisible,
+ IBinder targetWindowToken);
+
+ /**
* Returns true when the hardware keyboard is available.
*/
public abstract boolean isHardKeyboardAvailable();