Home
last modified time | relevance | path

Searched refs:newCursorPosition (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/core/java/android/view/inputmethod/
DInputConnectionWrapper.java153 public boolean setComposingText(CharSequence text, int newCursorPosition) { in setComposingText() argument
154 return mTarget.setComposingText(text, newCursorPosition); in setComposingText()
163 int newCursorPosition, @Nullable TextAttribute textAttribute) { in setComposingText() argument
164 return mTarget.setComposingText(text, newCursorPosition, textAttribute); in setComposingText()
199 public boolean commitText(CharSequence text, int newCursorPosition) { in commitText() argument
200 return mTarget.commitText(text, newCursorPosition); in commitText()
208 public boolean commitText(@NonNull CharSequence text, int newCursorPosition, in commitText() argument
210 return mTarget.commitText(text, newCursorPosition, textAttribute); in commitText()
DInputConnection.java545 boolean setComposingText(CharSequence text, int newCursorPosition); in setComposingText() argument
569 default boolean setComposingText(@NonNull CharSequence text, int newCursorPosition, in setComposingText() argument
571 return setComposingText(text, newCursorPosition); in setComposingText()
677 boolean commitText(CharSequence text, int newCursorPosition); in commitText() argument
696 default boolean commitText(@NonNull CharSequence text, int newCursorPosition, in commitText() argument
698 return commitText(text, newCursorPosition); in commitText()
DBaseInputConnection.java217 public boolean commitText(CharSequence text, int newCursorPosition) { in commitText() argument
219 replaceText(text, newCursorPosition, false); in commitText()
710 public boolean setComposingText(CharSequence text, int newCursorPosition) { in setComposingText() argument
712 replaceText(text, newCursorPosition, true); in setComposingText()
862 private void replaceText(CharSequence text, int newCursorPosition, in replaceText() argument
931 if (newCursorPosition > 0) { in replaceText()
932 newCursorPosition += b - 1; in replaceText()
934 newCursorPosition += a; in replaceText()
936 if (newCursorPosition < 0) newCursorPosition = 0; in replaceText()
937 if (newCursorPosition > content.length()) in replaceText()
[all …]
/frameworks/base/core/java/com/android/internal/inputmethod/
DIInputContextInvoker.java231 public boolean commitText(CharSequence text, int newCursorPosition) { in commitText() argument
233 mIInputContext.commitText(createHeader(), text, newCursorPosition); in commitText() local
251 public boolean commitText(CharSequence text, int newCursorPosition, in commitText() argument
255 createHeader(), text, newCursorPosition, textAttribute); in commitText() local
397 public boolean setComposingText(CharSequence text, int newCursorPosition) { in setComposingText() argument
399 mIInputContext.setComposingText(createHeader(), text, newCursorPosition); in setComposingText() local
417 public boolean setComposingText(CharSequence text, int newCursorPosition, in setComposingText() argument
421 createHeader(), text, newCursorPosition, textAttribute); in setComposingText() local
DRemoteAccessibilityInputConnection.java89 public void commitText(@NonNull CharSequence text, int newCursorPosition, in commitText() argument
91 mInvoker.commitText(text, newCursorPosition, textAttribute); in commitText()
DEditableInputConnection.java196 public boolean commitText(CharSequence text, int newCursorPosition) { in commitText() argument
198 return super.commitText(text, newCursorPosition); in commitText()
201 boolean success = super.commitText(text, newCursorPosition); in commitText()
DIRemoteAccessibilityInputConnectionInvoker.java94 public void commitText(CharSequence text, int newCursorPosition, in commitText() argument
97 mConnection.commitText(createHeader(), text, newCursorPosition, textAttribute); in commitText() local
DRemoteInputConnectionImpl.java559 int newCursorPosition) { in commitText() argument
569 ic.commitText(text, newCursorPosition); in commitText()
576 int newCursorPosition, @Nullable TextAttribute textAttribute) { in commitTextWithTextAttribute() argument
586 ic.commitText(text, newCursorPosition, textAttribute); in commitTextWithTextAttribute()
714 int newCursorPosition) { in setComposingText() argument
724 ic.setComposingText(text, newCursorPosition); in setComposingText()
731 CharSequence text, int newCursorPosition, @Nullable TextAttribute textAttribute) { in setComposingTextWithTextAttribute() argument
741 ic.setComposingText(text, newCursorPosition, textAttribute); in setComposingTextWithTextAttribute()
1058 int newCursorPosition, @Nullable TextAttribute textAttribute) {
1071 ic.commitText(text, newCursorPosition, textAttribute);
DIRemoteAccessibilityInputConnection.aidl31 int newCursorPosition, in TextAttribute textAttribute); in commitText() argument
/frameworks/base/core/java/com/android/internal/view/
DIInputContext.aidl54 int newCursorPosition); in setComposingText() argument
57 CharSequence text, int newCursorPosition, in TextAttribute textAttribute); in setComposingTextWithTextAttribute() argument
62 int newCursorPosition); in commitText() argument
65 int newCursorPosition, in TextAttribute textAttribute); in commitTextWithTextAttribute() argument
/frameworks/base/core/java/android/inputmethodservice/
DRemoteInputConnection.java278 public boolean commitText(CharSequence text, int newCursorPosition) { in commitText() argument
279 final boolean handled = mInvoker.commitText(text, newCursorPosition); in commitText()
287 public boolean commitText(@NonNull CharSequence text, int newCursorPosition, in commitText() argument
290 mInvoker.commitText(text, newCursorPosition, textAttribute); in commitText()
342 public boolean setComposingText(CharSequence text, int newCursorPosition) { in setComposingText() argument
343 final boolean handled = mInvoker.setComposingText(text, newCursorPosition); in setComposingText()
351 public boolean setComposingText(CharSequence text, int newCursorPosition, in setComposingText() argument
353 final boolean handled = mInvoker.setComposingText(text, newCursorPosition, textAttribute); in setComposingText()
/frameworks/base/core/java/android/accessibilityservice/
DInputMethod.java234 public void commitText(@NonNull CharSequence text, int newCursorPosition, in commitText() argument
237 mIc.commitText(text, newCursorPosition, textAttribute); in commitText()
/frameworks/base/core/tests/coretests/src/android/view/
DViewInputConnectionTest.java472 public boolean setComposingText(CharSequence text, int newCursorPosition) {
487 public boolean commitText(CharSequence text, int newCursorPosition) {
/frameworks/base/core/java/android/widget/
DAbsListView.java6186 public boolean setComposingText(CharSequence text, int newCursorPosition) { in setComposingText() argument
6187 return getTarget().setComposingText(text, newCursorPosition); in setComposingText()
6201 public boolean commitText(CharSequence text, int newCursorPosition) { in commitText() argument
6202 return getTarget().commitText(text, newCursorPosition); in commitText()
DEditor.java3217 final int newCursorPosition = spanEnd + lengthDelta; in replaceWithSuggestion() local
3218 mTextView.setCursorPosition_internal(newCursorPosition, newCursorPosition); in replaceWithSuggestion()
/frameworks/ex/common/java/com/android/ex/editstyledtext/
DEditStyledText.java2482 public boolean commitText(CharSequence text, int newCursorPosition) { in commitText() argument
2487 return super.commitText(text, newCursorPosition); in commitText()