Loading services/core/java/com/android/server/inputmethod/InputMethodManagerService.java +14 −17 Original line number Diff line number Diff line Loading @@ -258,7 +258,6 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl. private static final int MSG_HIDE_ALL_INPUT_METHODS = 1035; private static final int MSG_REMOVE_IME_SURFACE = 1060; private static final int MSG_REMOVE_IME_SURFACE_FROM_WINDOW = 1061; private static final int MSG_UPDATE_IME_WINDOW_STATUS = 1070; private static final int MSG_RESET_HANDWRITING = 1090; private static final int MSG_START_HANDWRITING = 1100; Loading Loading @@ -2743,9 +2742,9 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl. } } private void updateImeWindowStatus(boolean disableImeIcon) { synchronized (ImfLock.class) { // TODO(b/350386877): Propagate userId from the caller. @GuardedBy("ImfLock.class") private void updateImeWindowStatusLocked(boolean disableImeIcon, int displayId) { // TODO(b/350386877): Propagate userId from displayId. final int userId = mCurrentUserId; if (disableImeIcon) { final var bindingController = getInputMethodBindingController(userId); Loading @@ -2754,7 +2753,6 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl. updateSystemUiLocked(userId); } } } // Caution! This method is called in this class. Handle multi-user carefully @GuardedBy("ImfLock.class") Loading Loading @@ -5092,10 +5090,6 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl. } return true; } case MSG_UPDATE_IME_WINDOW_STATUS: { updateImeWindowStatus(msg.arg1 == 1); return true; } // --------------------------------------------------------- Loading Loading @@ -5925,8 +5919,11 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl. @ImfLockFree @Override public void updateImeWindowStatus(boolean disableImeIcon, int displayId) { mHandler.obtainMessage(MSG_UPDATE_IME_WINDOW_STATUS, disableImeIcon ? 1 : 0, 0) .sendToTarget(); mHandler.post(() -> { synchronized (ImfLock.class) { updateImeWindowStatusLocked(disableImeIcon, displayId); } }); } @Override Loading Loading
services/core/java/com/android/server/inputmethod/InputMethodManagerService.java +14 −17 Original line number Diff line number Diff line Loading @@ -258,7 +258,6 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl. private static final int MSG_HIDE_ALL_INPUT_METHODS = 1035; private static final int MSG_REMOVE_IME_SURFACE = 1060; private static final int MSG_REMOVE_IME_SURFACE_FROM_WINDOW = 1061; private static final int MSG_UPDATE_IME_WINDOW_STATUS = 1070; private static final int MSG_RESET_HANDWRITING = 1090; private static final int MSG_START_HANDWRITING = 1100; Loading Loading @@ -2743,9 +2742,9 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl. } } private void updateImeWindowStatus(boolean disableImeIcon) { synchronized (ImfLock.class) { // TODO(b/350386877): Propagate userId from the caller. @GuardedBy("ImfLock.class") private void updateImeWindowStatusLocked(boolean disableImeIcon, int displayId) { // TODO(b/350386877): Propagate userId from displayId. final int userId = mCurrentUserId; if (disableImeIcon) { final var bindingController = getInputMethodBindingController(userId); Loading @@ -2754,7 +2753,6 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl. updateSystemUiLocked(userId); } } } // Caution! This method is called in this class. Handle multi-user carefully @GuardedBy("ImfLock.class") Loading Loading @@ -5092,10 +5090,6 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl. } return true; } case MSG_UPDATE_IME_WINDOW_STATUS: { updateImeWindowStatus(msg.arg1 == 1); return true; } // --------------------------------------------------------- Loading Loading @@ -5925,8 +5919,11 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl. @ImfLockFree @Override public void updateImeWindowStatus(boolean disableImeIcon, int displayId) { mHandler.obtainMessage(MSG_UPDATE_IME_WINDOW_STATUS, disableImeIcon ? 1 : 0, 0) .sendToTarget(); mHandler.post(() -> { synchronized (ImfLock.class) { updateImeWindowStatusLocked(disableImeIcon, displayId); } }); } @Override Loading