Loading core/java/android/view/inputmethod/InputMethodManager.java +14 −4 Original line number Original line Diff line number Diff line Loading @@ -446,6 +446,7 @@ public final class InputMethodManager { * {@code true} if next {@link ImeFocusController#onPostWindowFocus} needs to * {@code true} if next {@link ImeFocusController#onPostWindowFocus} needs to * restart input. * restart input. */ */ @GuardedBy("mH") private boolean mRestartOnNextWindowFocus = true; private boolean mRestartOnNextWindowFocus = true; /** /** Loading Loading @@ -495,8 +496,11 @@ public final class InputMethodManager { private CompletionInfo[] mCompletions; private CompletionInfo[] mCompletions; // Cursor position on the screen. // Cursor position on the screen. @GuardedBy("mH") @UnsupportedAppUsage @UnsupportedAppUsage Rect mTmpCursorRect = new Rect(); Rect mTmpCursorRect = new Rect(); @GuardedBy("mH") @UnsupportedAppUsage @UnsupportedAppUsage Rect mCursorRect = new Rect(); Rect mCursorRect = new Rect(); Loading Loading @@ -545,6 +549,7 @@ public final class InputMethodManager { * @deprecated New code should use {@code mCurBindState.mImeId}. * @deprecated New code should use {@code mCurBindState.mImeId}. */ */ @Deprecated @Deprecated @GuardedBy("mH") @UnsupportedAppUsage @UnsupportedAppUsage String mCurId; String mCurId; Loading Loading @@ -586,6 +591,7 @@ public final class InputMethodManager { * @deprecated This is kept for {@link UnsupportedAppUsage}. Must not be used. * @deprecated This is kept for {@link UnsupportedAppUsage}. Must not be used. */ */ @Deprecated @Deprecated @GuardedBy("mH") private int mRequestUpdateCursorAnchorInfoMonitorMode = REQUEST_UPDATE_CURSOR_ANCHOR_INFO_NONE; private int mRequestUpdateCursorAnchorInfoMonitorMode = REQUEST_UPDATE_CURSOR_ANCHOR_INFO_NONE; /** /** Loading @@ -594,7 +600,9 @@ public final class InputMethodManager { @GuardedBy("mH") @GuardedBy("mH") private ImeInsetsSourceConsumer mImeInsetsConsumer; private ImeInsetsSourceConsumer mImeInsetsConsumer; @GuardedBy("mH") private final Pool<PendingEvent> mPendingEventPool = new SimplePool<>(20); private final Pool<PendingEvent> mPendingEventPool = new SimplePool<>(20); @GuardedBy("mH") private final SparseArray<PendingEvent> mPendingEvents = new SparseArray<>(20); private final SparseArray<PendingEvent> mPendingEvents = new SparseArray<>(20); private final DelegateImpl mDelegate = new DelegateImpl(); private final DelegateImpl mDelegate = new DelegateImpl(); Loading Loading @@ -841,12 +849,14 @@ public final class InputMethodManager { */ */ @Override @Override public boolean isRestartOnNextWindowFocus(boolean reset) { public boolean isRestartOnNextWindowFocus(boolean reset) { synchronized (mH) { final boolean result = mRestartOnNextWindowFocus; final boolean result = mRestartOnNextWindowFocus; if (reset) { if (reset) { mRestartOnNextWindowFocus = false; mRestartOnNextWindowFocus = false; } } return result; return result; } } } /** /** * Checks whether the active input connection (if any) is for the given view. * Checks whether the active input connection (if any) is for the given view. Loading Loading
core/java/android/view/inputmethod/InputMethodManager.java +14 −4 Original line number Original line Diff line number Diff line Loading @@ -446,6 +446,7 @@ public final class InputMethodManager { * {@code true} if next {@link ImeFocusController#onPostWindowFocus} needs to * {@code true} if next {@link ImeFocusController#onPostWindowFocus} needs to * restart input. * restart input. */ */ @GuardedBy("mH") private boolean mRestartOnNextWindowFocus = true; private boolean mRestartOnNextWindowFocus = true; /** /** Loading Loading @@ -495,8 +496,11 @@ public final class InputMethodManager { private CompletionInfo[] mCompletions; private CompletionInfo[] mCompletions; // Cursor position on the screen. // Cursor position on the screen. @GuardedBy("mH") @UnsupportedAppUsage @UnsupportedAppUsage Rect mTmpCursorRect = new Rect(); Rect mTmpCursorRect = new Rect(); @GuardedBy("mH") @UnsupportedAppUsage @UnsupportedAppUsage Rect mCursorRect = new Rect(); Rect mCursorRect = new Rect(); Loading Loading @@ -545,6 +549,7 @@ public final class InputMethodManager { * @deprecated New code should use {@code mCurBindState.mImeId}. * @deprecated New code should use {@code mCurBindState.mImeId}. */ */ @Deprecated @Deprecated @GuardedBy("mH") @UnsupportedAppUsage @UnsupportedAppUsage String mCurId; String mCurId; Loading Loading @@ -586,6 +591,7 @@ public final class InputMethodManager { * @deprecated This is kept for {@link UnsupportedAppUsage}. Must not be used. * @deprecated This is kept for {@link UnsupportedAppUsage}. Must not be used. */ */ @Deprecated @Deprecated @GuardedBy("mH") private int mRequestUpdateCursorAnchorInfoMonitorMode = REQUEST_UPDATE_CURSOR_ANCHOR_INFO_NONE; private int mRequestUpdateCursorAnchorInfoMonitorMode = REQUEST_UPDATE_CURSOR_ANCHOR_INFO_NONE; /** /** Loading @@ -594,7 +600,9 @@ public final class InputMethodManager { @GuardedBy("mH") @GuardedBy("mH") private ImeInsetsSourceConsumer mImeInsetsConsumer; private ImeInsetsSourceConsumer mImeInsetsConsumer; @GuardedBy("mH") private final Pool<PendingEvent> mPendingEventPool = new SimplePool<>(20); private final Pool<PendingEvent> mPendingEventPool = new SimplePool<>(20); @GuardedBy("mH") private final SparseArray<PendingEvent> mPendingEvents = new SparseArray<>(20); private final SparseArray<PendingEvent> mPendingEvents = new SparseArray<>(20); private final DelegateImpl mDelegate = new DelegateImpl(); private final DelegateImpl mDelegate = new DelegateImpl(); Loading Loading @@ -841,12 +849,14 @@ public final class InputMethodManager { */ */ @Override @Override public boolean isRestartOnNextWindowFocus(boolean reset) { public boolean isRestartOnNextWindowFocus(boolean reset) { synchronized (mH) { final boolean result = mRestartOnNextWindowFocus; final boolean result = mRestartOnNextWindowFocus; if (reset) { if (reset) { mRestartOnNextWindowFocus = false; mRestartOnNextWindowFocus = false; } } return result; return result; } } } /** /** * Checks whether the active input connection (if any) is for the given view. * Checks whether the active input connection (if any) is for the given view. Loading