/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 | 271 * selection range from {@code selectionStart} to {@code selectionEnd} 275 final int selectionStart = Selection.getSelectionStart(source); 278 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 | 402 int selectionStart = Selection.getSelectionStart(content); 404 if (selectionEnd < selectionStart) { 406 selectionEnd = selectionStart; 407 selectionStart = temp; 409 if (selectionStart != selectionEnd) { 410 content.delete(selectionStart, selectionEnd); 485 int selectionStart = Selection.getSelectionStart(content); 487 if (selectionEnd < selectionStart) { 489 selectionEnd = selectionStart; 490 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/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/ |
TextField.java | 81 protected int cursor, selectionStart; 258 int minIndex = Math.min(cursor, selectionStart); 259 int maxIndex = Math.max(cursor, selectionStart); 396 if (selectionStart > newDisplayText.length()) selectionStart = textLength; 414 clipboard.setContents(text.substring(Math.min(cursor, selectionStart), Math.max(cursor, selectionStart))); 436 if (hasSelection) textLength -= Math.abs(cursor - selectionStart); 465 int from = selectionStart; 601 return selectionStart; [all...] |
TextArea.java | 218 int minIndex = Math.min(cursor, selectionStart); 219 int maxIndex = Math.max(cursor, selectionStart); 311 public void setSelection (int selectionStart, int selectionEnd) { 312 super.setSelection(selectionStart, selectionEnd); 400 selectionStart = cursor; 412 selectionStart = cursor;
|
/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...] |
/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;
|