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

1 2 3

  /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/tests/view/src/android/view/inputmethod/cts/util/
InputConnectionTestUtils.java 46 int selectionStart = -1;
52 selectionStart = builder.length();
68 if (selectionStart < 0) {
74 Selection.setSelection(builder, selectionStart, selectionEnd);
  /cts/tests/tests/view/src/android/view/inputmethod/cts/
ExtractedTextTest.java 30 extractedText.selectionStart = 2;
40 assertEquals(extractedText.selectionStart, target.selectionStart);
BaseInputConnectionTest.java 268 * selection range from {@code selectionStart} to {@code selectionEnd}
272 final int selectionStart = Selection.getSelectionStart(source);
275 Selection.setSelection(editable, 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 59 * <var>startOffset</var>+<var>selectionStart</var>.
61 public int selectionStart;
100 dest.writeInt(selectionStart);
116 res.selectionStart = source.readInt();
  /frameworks/base/core/tests/coretests/src/android/widget/espresso/
TextViewAssertions.java 108 int selectionStart = textView.getSelectionStart();
111 assertThat(selectionStart, index);
154 int selectionStart = textView.getSelectionStart();
158 .subSequence(selectionStart, selectionEnd)
  /frameworks/base/core/java/android/text/method/
BaseKeyListener.java 401 int selectionStart = Selection.getSelectionStart(content);
403 if (selectionEnd < selectionStart) {
405 selectionEnd = selectionStart;
406 selectionStart = temp;
408 if (selectionStart != selectionEnd) {
409 content.delete(selectionStart, selectionEnd);
484 int selectionStart = Selection.getSelectionStart(content);
486 if (selectionEnd < selectionStart) {
488 selectionEnd = selectionStart;
489 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/base/core/java/android/view/
ViewStructure.java 165 * extending from <var>selectionStart</var> through <var>selectionEnd</var>.
167 public abstract void setText(CharSequence text, int selectionStart, int selectionEnd);
  /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;
  /frameworks/base/core/java/android/widget/
SpellChecker.java 264 final int selectionStart = Selection.getSelectionStart(editable);
284 final boolean apostrophe = (selectionStart == end + 1 && editable.charAt(end) == '\'');
289 isEditing = !apostrophe && (selectionEnd <= start || selectionStart > end);
291 isEditing = !apostrophe && (selectionEnd < start || selectionStart > end);
300 + mIds[i] + ", sel start = " + selectionStart + ", sel end = "
    [all...]
Editor.java 838 int selectionStart, selectionEnd;
845 selectionStart = ((Spanned) mTextView.getText()).getSpanStart(urlSpan);
853 selectionStart = wordIterator.getBeginning(minOffset);
856 if (selectionStart == BreakIterator.DONE || selectionEnd == BreakIterator.DONE ||
857 selectionStart == selectionEnd) {
860 selectionStart = TextUtils.unpackRangeStartFromLong(range);
865 Selection.setSelection((Spannable) mTextView.getText(), selectionStart, selectionEnd);
866 return selectionEnd > selectionStart;
    [all...]
NumberPicker.java     [all...]
  /packages/apps/Dialer/src/com/android/dialer/dialpad/
DialpadFragment.java     [all...]
  /frameworks/base/core/java/android/text/
SpannableStringBuilder.java 544 int selectionStart = 0;
547 selectionStart = Selection.getSelectionStart(this);
555 if (selectionStart > start && selectionStart < end) {
556 final long diff = selectionStart - start;
558 selectionStart = start + offset;
561 setSpan(false, Selection.SELECTION_START, selectionStart, selectionStart,
    [all...]
  /cts/tests/tests/text/src/android/text/method/cts/
BaseKeyListenerTest.java 550 final boolean selectInTextView, final int selectionStart, final int selectionEnd) {
557 selectionStart, selectionEnd);
  /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...]
  /cts/tests/tests/widget/src/android/widget/cts/
TextViewTest.java 249 final int selectionStart = 10;
258 selectionStart, selectionEnd);
265 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText()));
270 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText()));
271 assertEquals(selectionStart, Selection.getSelectionEnd(mTextView.getText()));
277 selectionStart, selectionEnd);
284 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText()));
289 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText()));
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/
InputLogic.java     [all...]
  /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);
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
RichInputConnectionAndTextRangeTests.java 242 et.selectionStart = 7;
  /frameworks/base/core/java/android/app/assist/
AssistStructure.java     [all...]

Completed in 243 milliseconds

1 2 3