/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 | 26 import android.text.Selection; 38 public class WordIterator implements Selection.PositionIterator {
|
/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() 53 Selection.setSelection(number, number.length()); in testAppendChars() 57 assertEquals(formatted2.length(), Selection.getSelectionEnd(number)); in testAppendChars() 77 Selection.setSelection(number, number.length()); in testRemoveLastChars() 81 assertEquals(result1.length(), Selection.getSelectionEnd(number)); in testRemoveLastChars() 88 Selection.setSelection(number, number.length()); in testRemoveLastChars() 92 assertEquals(result2.length(), Selection.getSelectionEnd(number)); in testRemoveLastChars() 106 Selection.setSelection(number, 4); // make the cursor at right of 1 in testInsertChars() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | EditText.java | 22 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 | TextViewOnReceiveContentListener.java | 36 import android.text.Selection; 108 editable.insert(Selection.getSelectionEnd(editable), "\n"); in onReceiveContent() 109 editable.insert(Selection.getSelectionEnd(editable), itemText); in onReceiveContent() 118 final int selStart = Selection.getSelectionStart(editable); in replaceSelection() 119 final int selEnd = Selection.getSelectionEnd(editable); in replaceSelection() 122 Selection.setSelection(editable, end); in replaceSelection() 142 Selection.setSelection(editable, editable.length()); in onReceiveForAutofill()
|
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 | 33 import android.text.Selection; 146 Selection.setSelection(mEditable, 0); in getEditable() 249 int a = Selection.getSelectionStart(content); in deleteSurroundingText() 250 int b = Selection.getSelectionEnd(content); in deleteSurroundingText() 419 int a = Selection.getSelectionStart(content); in deleteSurroundingTextInCodePoints() 420 int b = Selection.getSelectionEnd(content); in deleteSurroundingTextInCodePoints() 498 int a = Selection.getSelectionStart(content); in getCursorCapsMode() 499 int b = Selection.getSelectionEnd(content); in getCursorCapsMode() 528 int a = Selection.getSelectionStart(content); in getTextBeforeCursor() 529 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/core/tests/coretests/src/android/widget/ |
D | TextViewProcessTextTest.java | 24 import android.text.Selection; 65 Selection.setSelection((Spannable) mTextView.getText(), 0, mTextView.getText().length()); in testProcessTextActivityResultNonEditable() 85 Selection.setSelection(((EditText) mTextView).getText(), 0, mTextView.getText().length()); in testProcessTextActivityResultCancel() 101 Selection.setSelection(((EditText) mTextView).getText(), 0, mTextView.getText().length()); in testProcessTextActivityNoData()
|
/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/base/apct-tests/perftests/core/src/android/widget/ |
D | EditTextCursorMovementPerfTest.java | 22 import android.text.Selection; 91 Selection.setSelection(editText.getText(), 0, 0); in testCursorMovement() 106 Assert.assertEquals(mCursorPos, Selection.getSelectionStart(editText.getText())); in testCursorMovement()
|
D | EditTextBackspacePerfTest.java | 22 import android.text.Selection; 91 Selection.setSelection(editText.getText(), 0, 0); in prepareTextForBackspace() 106 Assert.assertEquals(mCursorPos, Selection.getSelectionStart(editText.getText())); in prepareTextForBackspace()
|
/frameworks/base/packages/SystemUI/customization/src/com/android/systemui/shared/customization/data/content/ |
D | CustomizationProviderClient.kt | 92 suspend fun querySelections(): List<Selection> in <lambda>() 99 fun observeSelections(): Flow<List<Selection>> in <lambda>() 180 data class Selection( in <lambda>() dataClass 401 override suspend fun querySelections(): List<CustomizationProviderClient.Selection> { in querySelections() 437 CustomizationProviderClient.Selection( in querySelections() 450 override fun observeSelections(): Flow<List<CustomizationProviderClient.Selection>> { in observeSelections()
|
D | FakeCustomizationProviderClient.kt | 112 override suspend fun querySelections(): List<CustomizationProviderClient.Selection> { in <lambda>() 116 override fun observeSelections(): Flow<List<CustomizationProviderClient.Selection>> { in <lambda>() 170 ): List<CustomizationProviderClient.Selection> { in <lambda>() 177 CustomizationProviderClient.Selection( in <lambda>()
|
/frameworks/base/telephony/java/android/telephony/ |
D | PhoneNumberFormattingTextWatcher.java | 22 import android.text.Selection; 111 String formatted = reformat(s, Selection.getSelectionEnd(s)); in afterTextChanged() 119 Selection.setSelection(s, rememberedPos); in afterTextChanged()
|
/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/java/com/android/internal/inputmethod/ |
D | EditableInputConnection.java | 27 import android.text.Selection; 283 int start = Selection.getSelectionStart(content); in dumpDebug() 284 int end = Selection.getSelectionEnd(content); in dumpDebug()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
D | CustomizationProviderTest.kt | 268 Selection( in <lambda>() 341 Selection( in <lambda>() 373 Selection( in <lambda>() 415 private fun querySelections(): List<Selection> { in <lambda>() 449 Selection( in <lambda>() 549 data class Selection( in <lambda>() dataClass
|
/frameworks/base/core/java/android/webkit/ |
D | FindActionModeCallback.java | 26 import android.text.Selection; 90 Selection.setSelection(span, length, length); in setText() 225 Selection.setSelection(edit, edit.length()); in onCreateActionMode()
|