HomeSort by relevance Sort by last modified time
    Searched refs:getSelectionStart (Results 1 - 25 of 85) sorted by null

1 2 3 4

  /cts/tests/tests/text/src/android/text/cts/
SelectionTest.java 30 assertEquals(-1, Selection.getSelectionStart(builder));
33 assertEquals(3, Selection.getSelectionStart(builder));
36 assertEquals(3, Selection.getSelectionStart(builder));
39 assertEquals(5, Selection.getSelectionStart(builder));
41 assertEquals(-1, Selection.getSelectionStart(null));
58 assertEquals(-1, Selection.getSelectionStart(null));
64 assertEquals(-1, Selection.getSelectionStart(builder));
68 assertEquals(3, Selection.getSelectionStart(builder));
72 assertEquals(3, Selection.getSelectionStart(builder));
76 assertEquals(3, Selection.getSelectionStart(builder))
    [all...]
  /cts/tests/tests/widget/src/android/widget/cts/
EditTextTest.java 98 assertEquals(position, editText.getSelectionStart());
103 assertEquals(position, editText.getSelectionStart());
129 assertEquals(start, editText.getSelectionStart());
135 assertEquals(start, editText.getSelectionStart());
141 assertEquals(start, editText.getSelectionStart());
165 assertEquals(0, editText.getSelectionStart());
170 assertEquals(0, editText.getSelectionStart());
175 assertEquals(0, editText.getSelectionStart());
186 assertEquals(start, editText.getSelectionStart());
191 assertEquals(start, editText.getSelectionStart());
    [all...]
TextViewTest.java 265 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText()));
270 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText()));
284 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText()));
289 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText()));
520 assertEquals(-1, mTextView.getSelectionStart());
531 assertEquals(0, mTextView.getSelectionStart());
542 assertEquals(0, mTextView.getSelectionStart());
553 assertEquals(0, mTextView.getSelectionStart());
564 assertEquals(0, mTextView.getSelectionStart());
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
CursorAnchorInfoCompatWrapper.java 65 public int getSelectionStart() {
126 public int getSelectionStart() {
127 return mInstance.getSelectionStart();
  /packages/apps/Messaging/src/com/android/messaging/ui/
PlainTextEditText.java 42 final int selectionStartPrePaste = getSelectionStart();
50 int selectionStart = getSelectionStart();
  /cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
AccessibilityTextTraversalTest.java 534 assertEquals(1, Selection.getSelectionStart(textView.getText()));
568 assertEquals(2, Selection.getSelectionStart(textView.getText()));
602 assertEquals(3, Selection.getSelectionStart(textView.getText()));
610 assertEquals(3, Selection.getSelectionStart(textView.getText()));
644 assertEquals(2, Selection.getSelectionStart(textView.getText()));
    [all...]
  /frameworks/base/core/java/android/text/
Selection.java 37 public static final int getSelectionStart(CharSequence text) {
72 int ostart = getSelectionStart(text);
123 int start = getSelectionStart(text);
169 int start = getSelectionStart(text);
214 int start = getSelectionStart(text);
239 int start = getSelectionStart(text);
  /external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/translit/
TransliteratingTextComponent.java 114 int end = flush ? getSelectionEnd() : getSelectionStart();
118 getSelectionStart()));*/
124 if (index.start == -1) index.start = getSelectionStart();
191 log.append(", sel " + getSelectionStart());
222 start = getSelectionStart();
  /development/samples/ApiDemos/src/com/example/android/apis/app/
PersistentState.java 122 editor.putInt("selection-start", mSaved.getSelectionStart());
  /frameworks/base/core/tests/coretests/src/android/widget/espresso/
TextViewAssertions.java 108 int selectionStart = textView.getSelectionStart();
154 int selectionStart = textView.getSelectionStart();
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
ShadowAutoCompleteTextViewTest.java 80 assertEquals(text.length(), autoCompleteTextView.getSelectionStart());
  /packages/apps/Email/src/com/android/email/activity/
ComposeActivityEmail.java 57 final int selStart = mBodyView.getSelectionStart();
  /frameworks/base/core/java/android/view/inputmethod/
BaseInputConnection.java 224 int a = Selection.getSelectionStart(content);
381 int a = Selection.getSelectionStart(content);
459 int a = Selection.getSelectionStart(content);
486 int a = Selection.getSelectionStart(content);
517 int a = Selection.getSelectionStart(content);
542 int a = Selection.getSelectionStart(content);
789 a = Selection.getSelectionStart(content);
  /frameworks/ex/common/java/com/android/ex/editstyledtext/
EditStyledText.java 227 int oldSelStart = Selection.getSelectionStart(getText());
235 mManager.showSoftKey(Selection.getSelectionStart(getText()),
280 boolean selection = getSelectionStart() != getSelectionEnd();
    [all...]
  /frameworks/base/core/java/android/text/method/
BaseKeyListener.java 354 int currentCursorOffset = Selection.getSelectionStart(content);
402 int selectionStart = Selection.getSelectionStart(content);
420 final int line = layout.getLineForOffset(Selection.getSelectionStart(content));
485 int selectionStart = Selection.getSelectionStart(content);
NumberKeyListener.java 101 int a = Selection.getSelectionStart(content);
MultiTapKeyListener.java 95 int a = Selection.getSelectionStart(content);
270 int st = Selection.getSelectionStart(buf);
  /cts/tests/tests/view/src/android/view/inputmethod/cts/
BaseInputConnectionTest.java 275 final int selectionStart = Selection.getSelectionStart(source);
294 final int expectedSelectionStart = Selection.getSelectionStart(expectedString);
372 final int expectedSelectionStart = Selection.getSelectionStart(expectedString);
  /cts/tests/tests/text/src/android/text/method/cts/
BackspaceTest.java 57 state.mSelectionStart = mTextView.getSelectionStart();
ForwardDeleteTest.java 57 state.mSelectionStart = mTextView.getSelectionStart();
ArrowKeyMovementMethodTest.java 210 assertEquals(SPACE_IN_2ND_LINE, Selection.getSelectionStart(mEditable));
294 assertEquals(SPACE_IN_2ND_LINE, Selection.getSelectionStart(mEditable));
    [all...]
  /frameworks/base/core/tests/coretests/src/android/view/inputmethod/
CursorAnchorInfoTest.java 107 assertEquals(SELECTION_START, info.getSelectionStart());
132 assertEquals(SELECTION_START, info2.getSelectionStart());
159 assertEquals(SELECTION_START, info3.getSelectionStart());
185 assertEquals(-1, uninitializedInfo.getSelectionStart());
  /packages/apps/Calculator/src/com/android/calculator2/
CalculatorEditText.java 134 if (getSelectionStart() != textLength || getSelectionEnd() != textLength) {
  /external/droiddriver/src/io/appium/droiddriver/base/
BaseUiElement.java 152 public int getSelectionStart() {
163 final int selectionStart = getSelectionStart();
  /frameworks/base/core/java/android/widget/
Editor.java 361 int middle = (mTextView.getSelectionStart() + mTextView.getSelectionEnd()) / 2;
    [all...]

Completed in 757 milliseconds

1 2 3 4