/frameworks/base/core/java/android/text/method/ |
D | ArrowKeyMovementMethod.java | 21 import android.text.Selection; 39 return layout.getLineTop(layout.getLineForOffset(Selection.getSelectionEnd(buffer))); in getCurrentLineTop() 72 return Selection.extendLeft(buffer, layout); in left() 74 return Selection.moveLeft(buffer, layout); in left() 82 return Selection.extendRight(buffer, layout); in right() 84 return Selection.moveRight(buffer, layout); in right() 92 return Selection.extendUp(buffer, layout); in up() 94 return Selection.moveUp(buffer, layout); in up() 102 return Selection.extendDown(buffer, layout); in down() 104 return Selection.moveDown(buffer, layout); in down() [all …]
|
D | MultiTapKeyListener.java | 22 import android.text.Selection; 98 int a = Selection.getSelectionStart(content); in onKeyDown() 99 int b = Selection.getSelectionEnd(content); in onKeyDown() 164 Selection.setSelection(content, selEnd, selEnd); in onKeyDown() 190 Selection.setSelection(content, selEnd); in onKeyDown() 199 selEnd = Selection.getSelectionEnd(content); in onKeyDown() 202 Selection.setSelection(content, oldStart, selEnd); in onKeyDown() 239 if (what == Selection.SELECTION_END) { in onSpanChanged() 273 int st = Selection.getSelectionStart(buf); in run() 274 int en = Selection.getSelectionEnd(buf); in run() [all …]
|
D | LinkMovementMethod.java | 21 import android.text.Selection; 112 int a = Selection.getSelectionStart(buffer); in action() 113 int b = Selection.getSelectionEnd(buffer); in action() 161 Selection.setSelection(buffer, bestEnd, bestStart); in action() 183 Selection.setSelection(buffer, bestStart, bestEnd); in action() 218 Selection.setSelection(buffer, in onTouchEvent() 224 Selection.removeSelection(buffer); in onTouchEvent() 233 Selection.removeSelection(text); in initialize() 239 Selection.removeSelection(text); in onTakeFocus()
|
D | BaseKeyListener.java | 27 import android.text.Selection; 351 final int start = Selection.getSelectionEnd(content); in backspaceOrForwardDelete() 377 int currentCursorOffset = Selection.getSelectionStart(content); in deleteUntilWordBoundary() 380 if (currentCursorOffset != Selection.getSelectionEnd(content)) { in deleteUntilWordBoundary() 425 int selectionStart = Selection.getSelectionStart(content); in deleteSelection() 426 int selectionEnd = Selection.getSelectionEnd(content); in deleteSelection() 443 final int line = layout.getLineForOffset(Selection.getSelectionStart(content)); in deleteLine() 508 int selectionStart = Selection.getSelectionStart(content); in onKeyOther() 509 int selectionEnd = Selection.getSelectionEnd(content); in onKeyOther()
|
D | QwertyKeyListener.java | 22 import android.text.Selection; 99 int a = Selection.getSelectionStart(content); in onKeyDown() 100 int b = Selection.getSelectionEnd(content); in onKeyDown() 107 Selection.setSelection(content, 0, 0); in onKeyDown() 163 Selection.setSelection(content, selStart, selEnd); in onKeyDown() 193 Selection.setSelection(content, selEnd); in onKeyDown() 223 Selection.setSelection(content, selEnd); in onKeyDown() 231 selEnd = Selection.getSelectionEnd(content); in onKeyDown() 239 Selection.setSelection(content, oldStart, selEnd); in onKeyDown() 285 selEnd = Selection.getSelectionEnd(content); in onKeyDown()
|
D | NumberKeyListener.java | 24 import android.text.Selection; 111 int a = Selection.getSelectionStart(content); in onKeyDown() 112 int b = Selection.getSelectionEnd(content); in onKeyDown() 120 Selection.setSelection(content, 0); in onKeyDown() 128 Selection.setSelection(content, selEnd); in onKeyDown()
|
D | CharacterPickerDialog.java | 23 import android.text.Selection; 95 int selEnd = Selection.getSelectionEnd(mText); in replaceCharacterAndClose()
|
D | WordIterator.java | 24 import android.text.Selection; 36 public class WordIterator implements Selection.PositionIterator {
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | PhoneNumberWatcherTest.java | 22 import android.text.Selection; 38 Selection.setSelection(number, number.length()); in testAppendChars() 42 assertEquals(formatted1.length(), Selection.getSelectionEnd(number)); in testAppendChars() 49 Selection.setSelection(number, number.length()); in testAppendChars() 53 assertEquals(formatted2.length(), Selection.getSelectionEnd(number)); in testAppendChars() 66 Selection.setSelection(number, number.length()); in testRemoveLastChars() 70 assertEquals(result1.length(), Selection.getSelectionEnd(number)); in testRemoveLastChars() 75 Selection.setSelection(number, number.length()); in testRemoveLastChars() 79 assertEquals(result2.length(), Selection.getSelectionEnd(number)); in testRemoveLastChars() 92 Selection.setSelection(number, 4); // make the cursor at right of 1 in testInsertChars() [all …]
|
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/ |
D | SoftDeleteTest.java | 38 import android.text.Selection; 82 Selection.setSelection(mEditable, mTestString.emojiStartIndex(), in testDelete_doesNotDelete_whenThereIsSelectionLongerThanZero() 94 Selection.setSelection(mEditable, mTestString.emojiEndIndex()); in testDelete_withNullEditable() 104 Selection.setSelection(mEditable, mTestString.emojiEndIndex()); in testDelete_withNullInputConnection() 115 Selection.setSelection(mEditable, mTestString.emojiEndIndex()); in testDelete_withInvalidLength() 127 Selection.setSelection(mEditable, mTestString.emojiEndIndex()); in testDelete_withInvalidAfterLength() 138 Selection.setSelection(mEditable, mTestString.emojiEndIndex()); in testDelete_backward() 150 Selection.setSelection(mEditable, mTestString.emojiEndIndex()); in testDelete_backward_inCodepoints() 162 Selection.setSelection(mEditable, mTestString.emojiStartIndex()); in testDelete_forward() 174 Selection.setSelection(mEditable, mTestString.emojiStartIndex()); in testDelete_forward_inCodepoints() [all …]
|
D | HardDeleteTest.java | 43 import android.text.Selection; 76 Selection.setSelection(mEditable, mTestString.emojiEndIndex()); in testOnKeyDown_doesNotDelete_whenKeyCodeIsNotDelOrForwardDel() 85 Selection.setSelection(mEditable, mTestString.emojiEndIndex()); in testOnKeyDown_doesNotDelete_withOtherModifiers() 94 Selection.setSelection(mEditable, mTestString.emojiEndIndex()); in testOnKeyDown_doesNotDelete_withAltModifier() 103 Selection.setSelection(mEditable, mTestString.emojiEndIndex()); in testOnKeyDown_doesNotDelete_withCtrlModifier() 112 Selection.setSelection(mEditable, mTestString.emojiEndIndex()); in testOnKeyDown_doesNotDelete_withShiftModifier() 122 Selection.setSelection(mEditable, 0, mEditable.length()); in testOnKeyDown_doesNotDelete_withSelectionLongerThanZeroLength() 132 Selection.setSelection(editable, 1); in testOnKeyDown_doesNotDelete_withoutEmojiSpans() 141 Selection.setSelection(mEditable, mTestString.emojiStartIndex()); in testOnKeyDown_doesNotDelete_whenNoSpansBefore() 150 Selection.setSelection(mEditable, mTestString.emojiEndIndex()); in testOnKeyDown_deletesEmoji() [all …]
|
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/widget/ |
D | EmojiKeyListenerTest.java | 50 import android.text.Selection; 92 Selection.setSelection(mEditable, 0); in testOnKeyDown_doesNotDelete_whenKeyCodeIsNotDelOrForwardDel() 101 Selection.setSelection(mEditable, 0); in testOnKeyDown_doesNotDelete_withOtherModifiers() 110 Selection.setSelection(mEditable, 0); in testOnKeyDown_doesNotDelete_withAltModifier() 119 Selection.setSelection(mEditable, 0); in testOnKeyDown_doesNotDelete_withCtrlModifier() 128 Selection.setSelection(mEditable, 0); in testOnKeyDown_doesNotDelete_withShiftModifier() 137 Selection.setSelection(mEditable, 0, mEditable.length()); in testOnKeyDown_doesNotDelete_withSelection() 147 Selection.setSelection(editable, 1); in testOnKeyDown_doesNotDelete_withoutEmojiSpans() 156 Selection.setSelection(mEditable, mTestString.emojiStartIndex()); in testOnKeyDown_doesNotDelete_whenNoSpansBefore() 165 Selection.setSelection(mEditable, mTestString.emojiEndIndex()); in testOnKeyDown_deletesEmoji() [all …]
|
D | EmojiInputConnectionTest.java | 45 import android.text.Selection; 100 Selection.setSelection(mEditable, 0, mEditable.length()); in testDeleteSurroundingText_doesNotDelete() 107 Selection.setSelection(mEditable, mTestString.emojiEndIndex()); in testDeleteSurroundingText_deletesEmojiBackward() 114 Selection.setSelection(mEditable, mTestString.emojiStartIndex()); in testDeleteSurroundingText_doesNotDeleteEmojiIfSelectionAtStartIndex() 121 Selection.setSelection(mEditable, mTestString.emojiStartIndex()); in testDeleteSurroundingText_deletesEmojiForward() 130 Selection.setSelection(mEditable, 0, mEditable.length()); in testDeleteSurroundingTextInCodePoints_doesNotDelete() 139 Selection.setSelection(mEditable, mTestString.emojiEndIndex()); in testDeleteSurroundingTextInCodePoints_deletesEmojiBackward() 148 Selection.setSelection(mEditable, mTestString.emojiStartIndex()); in testDeleteSurroundingTextInCodePoints_deletesEmojiForward() 157 Selection.setSelection(mEditable, mTestString.emojiStartIndex()); in testDeleteSurroundingTextInCodePoints_doesNotDeleteEmojiIfSelectionAtStartIndex()
|
/frameworks/support/emoji/core/src/android/support/text/emoji/widget/ |
D | EmojiInputFilter.java | 25 import android.text.Selection; 109 final int selectionStart = Selection.getSelectionStart(result); in onInitialized() 110 final int selectionEnd = Selection.getSelectionEnd(result); in onInitialized() 123 Selection.setSelection(spannable, start, end); in updateSelection() 125 Selection.setSelection(spannable, start); in updateSelection() 127 Selection.setSelection(spannable, end); in updateSelection()
|
D | EmojiTextWatcher.java | 25 import android.text.Selection; 108 final int selectionStart = Selection.getSelectionStart(text); in onInitialized() 109 final int selectionEnd = Selection.getSelectionEnd(text); in onInitialized()
|
/frameworks/base/core/java/android/widget/ |
D | EditText.java | 21 import android.text.Selection; 120 Selection.setSelection(getText(), start, stop); in setSelection() 127 Selection.setSelection(getText(), index); in setSelection() 134 Selection.selectAll(getText()); in selectAll() 141 Selection.extendSelection(getText(), index); in extendSelection()
|
D | DialerFilter.java | 23 import android.text.Selection; 288 Selection.setSelection(lettersText, lettersText.length()); in swapPrimaryAndHint() 293 Selection.setSelection(digitsText, digitsText.length()); in swapPrimaryAndHint()
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | BaseInputConnection.java | 27 import android.text.Selection; 137 Selection.setSelection(mEditable, 0); in getEditable() 223 int a = Selection.getSelectionStart(content); in deleteSurroundingText() 224 int b = Selection.getSelectionEnd(content); in deleteSurroundingText() 380 int a = Selection.getSelectionStart(content); in deleteSurroundingTextInCodePoints() 381 int b = Selection.getSelectionEnd(content); in deleteSurroundingTextInCodePoints() 458 int a = Selection.getSelectionStart(content); in getCursorCapsMode() 459 int b = Selection.getSelectionEnd(content); in getCursorCapsMode() 485 int a = Selection.getSelectionStart(content); in getTextBeforeCursor() 486 int b = Selection.getSelectionEnd(content); in getTextBeforeCursor() [all …]
|
/frameworks/base/telephony/java/android/telephony/ |
D | PhoneNumberFormattingTextWatcher.java | 24 import android.text.Selection; 108 String formatted = reformat(s, Selection.getSelectionEnd(s)); in afterTextChanged() 116 Selection.setSelection(s, rememberedPos); in afterTextChanged()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | TextViewTest.java | 27 import android.text.Selection; 94 Selection.setSelection((Spannable) mTextView.getText(), 0, mTextView.getText().length()); in testProcessTextActivityResultNonEditable() 125 Selection.setSelection(((EditText) mTextView).getText(), 0, mTextView.getText().length()); in testProcessTextActivityResultEditable() 148 Selection.setSelection(((EditText) mTextView).getText(), 0, mTextView.getText().length()); in testProcessTextActivityResultCancel() 172 Selection.setSelection(((EditText) mTextView).getText(), 0, mTextView.getText().length()); in testProcessTextActivityNoData()
|
/frameworks/base/apct-tests/perftests/core/src/android/widget/ |
D | EditTextCursorMovementPerfTest.java | 24 import android.text.Selection; 94 Selection.setSelection(editText.getText(), 0, 0); in testCursorMovement() 109 Assert.assertEquals(mCursorPos, Selection.getSelectionStart(editText.getText())); in testCursorMovement()
|
D | EditTextBackspacePerfTest.java | 24 import android.text.Selection; 94 Selection.setSelection(editText.getText(), 0, 0); in prepareTextForBackspace() 109 Assert.assertEquals(mCursorPos, Selection.getSelectionStart(editText.getText())); in prepareTextForBackspace()
|
/frameworks/base/core/java/android/webkit/ |
D | FindActionModeCallback.java | 25 import android.text.Selection; 83 Selection.setSelection(span, length, length); in setText() 211 Selection.setSelection(edit, edit.length()); in onCreateActionMode()
|
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/util/ |
D | KeyboardUtil.java | 19 import android.text.Selection; 123 Selection.setSelection(spannable, start, end); in setSelection()
|
/frameworks/support/emoji/core/src/android/support/text/emoji/ |
D | EmojiProcessor.java | 31 import android.text.Selection; 303 final int start = Selection.getSelectionStart(content); in delete() 304 final int end = Selection.getSelectionEnd(content); in delete() 355 final int selectionStart = Selection.getSelectionStart(editable); in handleDeleteSurroundingText() 356 final int selectionEnd = Selection.getSelectionEnd(editable); in handleDeleteSurroundingText()
|