/packages/apps/Messaging/src/com/android/messaging/ui/ |
PlainTextEditText.java | 50 int selectionStart = getSelectionStart(); 57 final int startIndex = selectionStart - 1; 58 final int pasteStringLength = selectionStart - selectionStartPrePaste; 68 sb.replace(selectionStartPrePaste, selectionStart, url); 70 selectionStart = selectionStartPrePaste + url.length(); 71 selectionEnd = selectionStart; 79 setSelection(selectionStart, selectionEnd);
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/ |
InputConnectionTestUtils.java | 47 int selectionStart = -1; 53 selectionStart = builder.length(); 69 if (selectionStart < 0) { 75 Selection.setSelection(builder, selectionStart, selectionEnd);
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
PersistentState.java | 104 int selectionStart = prefs.getInt("selection-start", -1); 106 if (selectionStart != -1 && selectionEnd != -1) { 107 mSaved.setSelection(selectionStart, selectionEnd);
|
/frameworks/base/core/java/android/view/inputmethod/ |
ExtractedText.java | 61 * <var>startOffset</var>+<var>selectionStart</var>. 63 public int selectionStart; 109 dest.writeInt(selectionStart); 126 res.selectionStart = source.readInt();
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
ExtractedTextTest.java | 42 extractedText.selectionStart = 2; 55 assertEquals(extractedText.selectionStart, target.selectionStart);
|
BaseInputConnectionTest.java | 193 * and selection range from {@code selectionStart} to {@code selectionEnd} 196 final int selectionStart = Selection.getSelectionStart(source); 199 Selection.setSelection(editable, selectionStart, selectionEnd);
|
/frameworks/base/core/tests/coretests/src/android/widget/espresso/ |
TextViewAssertions.java | 111 int selectionStart = textView.getSelectionStart(); 114 assertThat(selectionStart, index); 169 int selectionStart = textView.getSelectionStart(); 173 .subSequence(selectionStart, selectionEnd)
|
/frameworks/base/core/java/android/text/method/ |
BaseKeyListener.java | 425 int selectionStart = Selection.getSelectionStart(content); 427 if (selectionEnd < selectionStart) { 429 selectionEnd = selectionStart; 430 selectionStart = temp; 432 if (selectionStart != selectionEnd) { 433 content.delete(selectionStart, selectionEnd); 508 int selectionStart = Selection.getSelectionStart(content); 510 if (selectionEnd < selectionStart) { 512 selectionEnd = selectionStart; 513 selectionStart = temp [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/ |
HyperlinksTest.java | 300 int selectionStart = selection.x - lineStart; 301 int selectionEnd = selectionStart + selection.y; 302 if (selectionEnd > selectionStart) { 304 text = text.substring(0, selectionStart) + "[^" + 305 text.substring(selectionStart, selectionEnd) + "]" + 308 text = text.substring(0, selectionStart) + "^" + 309 text.substring(selectionStart);
|
/frameworks/support/emoji/core/src/main/java/androidx/emoji/widget/ |
EmojiInputFilter.java | 113 final int selectionStart = Selection.getSelectionStart(result); 119 updateSelection((Spannable) result, selectionStart, selectionEnd);
|
EmojiTextWatcher.java | 124 final int selectionStart = Selection.getSelectionStart(text); 129 EmojiInputFilter.updateSelection(text, selectionStart, selectionEnd);
|
/frameworks/base/core/java/android/widget/ |
SelectionActionModeHelper.java | 455 private void resetTextClassificationHelper(int selectionStart, int selectionEnd) { 456 if (selectionStart < 0 || selectionEnd < 0) { 458 selectionStart = mTextView.getSelectionStart(); 464 selectionStart, selectionEnd, 504 CharSequence text, int selectionStart, int selectionEnd, boolean isLink) { 509 mOriginalStart = mSelectionStart = selectionStart; 514 text, selectionStart, 547 int selectionStart, int selectionEnd, 550 mSelectionStart = selectionStart; 553 mLogger.logSelectionModified(selectionStart, selectionEnd, classification, null) [all...] |
SpellChecker.java | 264 final int selectionStart = Selection.getSelectionStart(editable); 282 if (selectionStart == end + 1 290 isEditing = selectionEnd <= start || selectionStart > end; 292 isEditing = selectionEnd < start || selectionStart > end; 301 + mIds[i] + ", sel start = " + selectionStart + ", sel end = " [all...] |
Editor.java | [all...] |
NumberPicker.java | [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
CursorAnchorInfoUtils.java | 121 final int selectionStart = textView.getSelectionStart(); 122 builder.setSelectionRange(selectionStart, textView.getSelectionEnd()); 233 // Treat selectionStart as the insertion point. 234 if (0 <= selectionStart) { 235 final int offset = selectionStart;
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowTextView.java | 49 protected int selectionStart = 0; 85 boolean isSelectStartAtEnd = selectionStart == this.text.length(); 95 selectionStart = this.text.length(); 493 selectionStart = start; 499 return selectionStart;
|
/external/droiddriver/src/io/appium/droiddriver/base/ |
BaseUiElement.java | 163 final int selectionStart = getSelectionStart(); 166 return selectionStart >= 0 && selectionStart != selectionEnd;
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
ShadowTextView.java | 49 protected int selectionStart = -1;
|
/frameworks/base/core/java/android/view/ |
ViewStructure.java | 184 * extending from <var>selectionStart</var> through <var>selectionEnd</var>. 186 public abstract void setText(CharSequence text, int selectionStart, int selectionEnd);
|
/frameworks/support/emoji/core/src/main/java/androidx/emoji/text/ |
EmojiProcessor.java | 379 final int selectionStart = Selection.getSelectionStart(editable); 382 if (hasInvalidSelection(selectionStart, selectionEnd)) { 390 start = CodepointIndexFinder.findIndexBackward(editable, selectionStart, 400 start = Math.max(selectionStart - beforeLength, 0); [all...] |
/packages/apps/Dialer/java/com/android/dialer/dialpadview/ |
DialpadFragment.java | [all...] |
/frameworks/base/core/java/android/text/ |
SpannableStringBuilder.java | 541 int selectionStart = 0; 544 selectionStart = Selection.getSelectionStart(this); 552 if (selectionStart > start && selectionStart < end) { 553 final long diff = selectionStart - start; 555 selectionStart = start + offset; 558 setSpan(false, Selection.SELECTION_START, selectionStart, selectionStart, [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
RichInputConnection.java | 179 if (et.selectionStart != mExpectedSelStart 182 + "\nActual selection start = " + et.selectionStart 188 Log.e(TAG, "Exp <> Actual : " + mExpectedSelStart + " <> " + et.selectionStart); [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/ |
InputLogic.java | [all...] |