/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 | 23 import android.text.Selection; 117 int a = Selection.getSelectionStart(buffer); in action() 118 int b = Selection.getSelectionEnd(buffer); in action() 172 Selection.setSelection(buffer, bestEnd, bestStart); in action() 194 Selection.setSelection(buffer, bestStart, bestEnd); in action() 241 Selection.setSelection(buffer, in onTouchEvent() 247 Selection.removeSelection(buffer); in onTouchEvent() 256 Selection.removeSelection(text); in initialize() 262 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; 109 int a = Selection.getSelectionStart(content); in onKeyDown() 110 int b = Selection.getSelectionEnd(content); in onKeyDown() 118 Selection.setSelection(content, 0); in onKeyDown() 126 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 | 25 import android.text.Selection; 37 public class WordIterator implements Selection.PositionIterator {
|
D | TextKeyListener.java | 28 import android.text.Selection; 186 if (what == Selection.SELECTION_END) { in onSpanChanged()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | PhoneNumberWatcherTest.java | 23 import android.text.Selection; 40 Selection.setSelection(number, number.length()); in testAppendChars() 44 assertEquals(formatted1.length(), Selection.getSelectionEnd(number)); in testAppendChars() 51 Selection.setSelection(number, number.length()); in testAppendChars() 55 assertEquals(formatted2.length(), Selection.getSelectionEnd(number)); in testAppendChars() 68 Selection.setSelection(number, number.length()); in testRemoveLastChars() 72 assertEquals(result1.length(), Selection.getSelectionEnd(number)); in testRemoveLastChars() 77 Selection.setSelection(number, number.length()); in testRemoveLastChars() 81 assertEquals(result2.length(), Selection.getSelectionEnd(number)); in testRemoveLastChars() 94 Selection.setSelection(number, 4); // make the cursor at right of 1 in testInsertChars() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | EditText.java | 21 import android.text.Selection; 129 Selection.setSelection(getText(), start, stop); in setSelection() 136 Selection.setSelection(getText(), index); in setSelection() 143 Selection.selectAll(getText()); in selectAll() 150 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/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/span/ |
D | LinkSpanTest.java | 25 import android.text.Selection; 86 Selection.setSelection(text, /* start= */ 0, /* stop= */ 5); in onClick_shouldClearSelection() 90 assertThat(Selection.getSelectionStart(textView.getText())).isEqualTo(0); in onClick_shouldClearSelection() 91 assertThat(Selection.getSelectionEnd(textView.getText())).isEqualTo(0); in onClick_shouldClearSelection()
|
/frameworks/base/telephony/java/android/telephony/ |
D | PhoneNumberFormattingTextWatcher.java | 21 import android.text.Selection; 109 String formatted = reformat(s, Selection.getSelectionEnd(s)); in afterTextChanged() 117 Selection.setSelection(s, rememberedPos); in afterTextChanged()
|
/frameworks/base/apct-tests/perftests/core/src/android/widget/ |
D | EditTextCursorMovementPerfTest.java | 22 import android.text.Selection; 90 Selection.setSelection(editText.getText(), 0, 0); in testCursorMovement() 105 Assert.assertEquals(mCursorPos, Selection.getSelectionStart(editText.getText())); in testCursorMovement()
|
D | EditTextBackspacePerfTest.java | 22 import android.text.Selection; 90 Selection.setSelection(editText.getText(), 0, 0); in prepareTextForBackspace() 105 Assert.assertEquals(mCursorPos, Selection.getSelectionStart(editText.getText())); in prepareTextForBackspace()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/ |
D | TouchableMovementMethod.java | 19 import android.text.Selection; 62 lastEventResult = Selection.getSelectionStart(buffer) != -1; in onTouchEvent()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/span/ |
D | LinkSpan.java | 24 import android.text.Selection; 100 Selection.setSelection((Spannable) text, 0); in onClick()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | TextViewTest.java | 33 import android.text.Selection; 111 Selection.setSelection((Spannable) mTextView.getText(), 0, mTextView.getText().length()); in testProcessTextActivityResultNonEditable() 135 Selection.setSelection(((EditText) mTextView).getText(), 0, mTextView.getText().length()); in testProcessTextActivityResultEditable() 153 Selection.setSelection(((EditText) mTextView).getText(), 0, mTextView.getText().length()); in testProcessTextActivityResultCancel() 172 Selection.setSelection(((EditText) mTextView).getText(), 0, mTextView.getText().length()); in testProcessTextActivityNoData()
|
D | TextViewActivityTest.java | 66 import android.text.Selection; 801 () -> Selection.setSelection((Spannable) textView.getText(), 0, 3)); in testSetSelectionAndActionMode() 812 () -> Selection.setSelection((Spannable) textView.getText(), 0, 3)); in testSetSelectionAndActionMode() 821 () -> Selection.setSelection((Spannable) textView.getText(), 0, text.length())); in testSetSelectionAndActionMode() 831 () -> Selection.setSelection((Spannable) textView.getText(), 0)); in testSetSelectionAndActionMode() 842 () -> Selection.setSelection((Spannable) textView.getText(), 0)); in testSetSelectionAndActionMode() 852 () -> Selection.setSelection((Spannable) textView.getText(), 1, text.length())); in testSetSelectionAndActionMode() 876 () -> Selection.setSelection((Spannable) textView.getText(), 0, text.length())); in testTransientState()
|
/frameworks/base/core/java/android/webkit/ |
D | FindActionModeCallback.java | 26 import android.text.Selection; 84 Selection.setSelection(span, length, length); in setText() 214 Selection.setSelection(edit, edit.length()); in onCreateActionMode()
|
/frameworks/ex/common/java/com/android/ex/editstyledtext/ |
D | EditStyledText.java | 54 import android.text.Selection; 227 int oldSelStart = Selection.getSelectionStart(getText()); in onTouchEvent() 228 int oldSelEnd = Selection.getSelectionEnd(getText()); in onTouchEvent() 235 mManager.showSoftKey(Selection.getSelectionStart(getText()), in onTouchEvent() 236 Selection.getSelectionEnd(getText())); in onTouchEvent() 1522 Selection.setSelection(mEST.getText(), max); in pasteFromClipboard() 1558 Selection.selectAll(mEST.getText()); in selectAll() 1675 Selection.setSelection(mEST.getText(), max); in setStyledTextSpan() 1690 Selection.setSelection(mEST.getText(), current); in setLineStyledTextSpan() 1803 mSkr.mNewStart = Selection.getSelectionStart(mEST.getText()); in showSoftKey() [all …]
|
/frameworks/compile/libbcc/ |
D | Android.bp | 59 // Architecture Selection
|
/frameworks/base/core/java/android/text/ |
D | Selection.java | 29 public class Selection { class 30 private Selection() { /* cannot be instantiated */ } in Selection() method in Selection
|