Loading core/java/android/inputmethodservice/IRemoteInputConnectionInvoker.java +4 −4 Original line number Diff line number Diff line Loading @@ -828,8 +828,7 @@ final class IRemoteInputConnectionInvoker { } /** * Invokes {@code IRemoteInputConnection#replaceText(InputConnectionCommandHeader, int, int, * CharSequence, TextAttribute)}. * Replaces the specific range in the current input field with suggested text. * * @param start the character index where the replacement should start. * @param end the character index where the replacement should end. Loading @@ -839,8 +838,9 @@ final class IRemoteInputConnectionInvoker { * that this means you can't position the cursor within the text. * @param text the text to replace. This may include styles. * @param textAttribute The extra information about the text. This value may be null. * @return {@code true} if the invocation is completed without {@link RemoteException}, {@code * false} otherwise. * @return {@code true} if the specific range is replaced successfully, {@code false} otherwise. * @see android.view.inputmethod.InputConnection#replaceText(int, int, CharSequence, int, * TextAttribute) */ @AnyThread public boolean replaceText( Loading core/java/android/view/inputmethod/InputConnection.java +2 −0 Original line number Diff line number Diff line Loading @@ -1440,6 +1440,8 @@ public interface InputConnection { * that this means you can't position the cursor within the text. * @param text the text to replace. This may include styles. * @param textAttribute The extra information about the text. This value may be null. * @return {@code true} if the replace command was sent to the associated editor (regardless of * whether the replacement is success or not), {@code false} otherwise. */ default boolean replaceText( @IntRange(from = 0) int start, Loading Loading
core/java/android/inputmethodservice/IRemoteInputConnectionInvoker.java +4 −4 Original line number Diff line number Diff line Loading @@ -828,8 +828,7 @@ final class IRemoteInputConnectionInvoker { } /** * Invokes {@code IRemoteInputConnection#replaceText(InputConnectionCommandHeader, int, int, * CharSequence, TextAttribute)}. * Replaces the specific range in the current input field with suggested text. * * @param start the character index where the replacement should start. * @param end the character index where the replacement should end. Loading @@ -839,8 +838,9 @@ final class IRemoteInputConnectionInvoker { * that this means you can't position the cursor within the text. * @param text the text to replace. This may include styles. * @param textAttribute The extra information about the text. This value may be null. * @return {@code true} if the invocation is completed without {@link RemoteException}, {@code * false} otherwise. * @return {@code true} if the specific range is replaced successfully, {@code false} otherwise. * @see android.view.inputmethod.InputConnection#replaceText(int, int, CharSequence, int, * TextAttribute) */ @AnyThread public boolean replaceText( Loading
core/java/android/view/inputmethod/InputConnection.java +2 −0 Original line number Diff line number Diff line Loading @@ -1440,6 +1440,8 @@ public interface InputConnection { * that this means you can't position the cursor within the text. * @param text the text to replace. This may include styles. * @param textAttribute The extra information about the text. This value may be null. * @return {@code true} if the replace command was sent to the associated editor (regardless of * whether the replacement is success or not), {@code false} otherwise. */ default boolean replaceText( @IntRange(from = 0) int start, Loading