/cts/tests/inputmethod/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);
|
/frameworks/base/core/tests/coretests/src/android/widget/espresso/ |
TextViewAssertions.java | 108 int selectionStart = textView.getSelectionStart(); 111 assertThat(selectionStart, index); 166 int selectionStart = textView.getSelectionStart(); 170 .subSequence(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();
|
/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/android/support/text/emoji/widget/ |
EmojiInputFilter.java | 109 final int selectionStart = Selection.getSelectionStart(result); 115 updateSelection((Spannable) result, selectionStart, selectionEnd);
|
EmojiTextWatcher.java | 108 final int selectionStart = Selection.getSelectionStart(text); 113 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);
|
/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;
|
/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);
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
BaseInputConnectionTest.java | 264 * selection range from {@code selectionStart} to {@code selectionEnd} 268 final int selectionStart = Selection.getSelectionStart(source); 271 Selection.setSelection(editable, selectionStart, selectionEnd);
|
/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/android/support/text/emoji/ |
EmojiProcessor.java | 355 final int selectionStart = Selection.getSelectionStart(editable); 358 if (hasInvalidSelection(selectionStart, selectionEnd)) { 366 start = CodepointIndexFinder.findIndexBackward(editable, selectionStart, 376 start = Math.max(selectionStart - beforeLength, 0);
|
/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 | 270 int selectionStart = Math.min(mContentText.getSelectionStart(), mContentText.getSelectionEnd()); 272 mContentText.getEditableText().replace(selectionStart, selectionEnd, text);
|
/frameworks/base/core/java/android/view/textclassifier/ |
TextClassifierImpl.java | 453 final int selectionStart = selection[0]; 455 if (selectionStart >= 0 && selectionEnd <= text.length() 456 && selectionStart <= selectionEnd) { 459 text, selectionStart, selectionEnd, 460 getHintFlags(text, selectionStart, selectionEnd)); 465 context, type, text.substring(selectionStart, selectionEnd)); 468 spans.add(new SpanSpec(selectionStart, selectionEnd, span));
|
/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...] |
Editor.java | 861 int selectionStart, selectionEnd; 868 selectionStart = ((Spanned) mTextView.getText()).getSpanStart(urlSpan); [all...] |
TextView.java | [all...] |
/frameworks/base/core/java/android/text/ |
SpannableStringBuilder.java | 539 int selectionStart = 0; 542 selectionStart = Selection.getSelectionStart(this); 550 if (selectionStart > start && selectionStart < end) { 551 final long diff = selectionStart - start; 553 selectionStart = start + offset; 556 setSpan(false, Selection.SELECTION_START, selectionStart, selectionStart, [all...] |
/packages/apps/Dialer/java/com/android/dialer/app/dialpad/ |
DialpadFragment.java | [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/ |
InputLogic.java | [all...] |
/prebuilts/sdk/current/support/emoji/libs/ |
android-support-emoji.jar | |
/packages/apps/UnifiedEmail/src/com/android/mail/compose/ |
ComposeActivity.java | [all...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
TextViewTest.java | 321 final int selectionStart = 10; 329 selectionStart, selectionEnd); 335 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText())); 340 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText())); 341 assertEquals(selectionStart, Selection.getSelectionEnd(mTextView.getText())); 346 selectionStart, selectionEnd); 352 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText())); 357 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText())); [all...] |