HomeSort by relevance Sort by last modified time
    Searched defs:selectionStart (Results 1 - 25 of 76) sorted by null

1 2 3 4

  /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);
  /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/view/inputmethod/
ExtractedText.java 61 * <var>startOffset</var>+<var>selectionStart</var>.
63 public int selectionStart;
109 dest.writeInt(selectionStart);
126 res.selectionStart = source.readInt();
  /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/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);
  /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);
  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowTextView.java 49 protected int selectionStart = -1;
  /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;
  /cts/tests/inputmethod/src/android/view/inputmethod/cts/
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/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);
  /external/droiddriver/src/io/appium/droiddriver/base/
BaseUiElement.java 163 final int selectionStart = getSelectionStart();
166 return selectionStart >= 0 && selectionStart != 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...]
  /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/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/
ScriptEditor.java 271 int selectionStart = Math.min(mContentText.getSelectionStart(), mContentText.getSelectionEnd());
273 mContentText.getEditableText().replace(selectionStart, selectionEnd, text);
  /frameworks/base/core/java/android/widget/
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...]
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...]
Editor.java     [all...]
TextView.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/apps/Dialer/java/com/android/dialer/dialpadview/
DialpadFragment.java     [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/
InputLogic.java     [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/compose/
ComposeActivity.java     [all...]
  /cts/tests/tests/widget/src/android/widget/cts/
TextViewTest.java 326 final int selectionStart = 10;
334 selectionStart, selectionEnd);
340 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText()));
345 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText()));
346 assertEquals(selectionStart, Selection.getSelectionEnd(mTextView.getText()));
351 selectionStart, selectionEnd);
357 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText()));
362 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText()));
    [all...]

Completed in 1157 milliseconds

1 2 3 4