/aosp14/frameworks/base/core/java/android/text/method/ |
H A D | ArrowKeyMovementMethod.java | 22 import android.text.Selection; 78 return Selection.moveLeft(buffer, layout); in left() 102 return Selection.extendUp(buffer, layout); in up() 104 return Selection.moveUp(buffer, layout); in up() 133 Selection.extendUp(buffer, layout); in pageUp() 135 Selection.moveUp(buffer, layout); in pageUp() 160 Selection.extendDown(buffer, layout); in pageDown() 162 Selection.moveDown(buffer, layout); in pageDown() 178 Selection.extendSelection(buffer, 0); in top() 180 Selection.setSelection(buffer, 0); in top() [all …]
|
H A 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 …]
|
H A D | LinkMovementMethod.java | 23 import android.text.Selection; 121 int a = Selection.getSelectionStart(buffer); in action() 122 int b = Selection.getSelectionEnd(buffer); in action() 176 Selection.setSelection(buffer, bestEnd, bestStart); in action() 198 Selection.setSelection(buffer, bestStart, bestEnd); in action() 245 Selection.setSelection(buffer, in onTouchEvent() 251 Selection.removeSelection(buffer); in onTouchEvent() 260 Selection.removeSelection(text); in initialize() 266 Selection.removeSelection(text); in onTakeFocus()
|
H A D | BaseKeyListener.java | 27 import android.text.Selection; 353 final int start = Selection.getSelectionEnd(content); in backspaceOrForwardDelete() 379 int currentCursorOffset = Selection.getSelectionStart(content); in deleteUntilWordBoundary() 382 if (currentCursorOffset != Selection.getSelectionEnd(content)) { in deleteUntilWordBoundary() 427 int selectionStart = Selection.getSelectionStart(content); in deleteSelection() 428 int selectionEnd = Selection.getSelectionEnd(content); in deleteSelection() 443 final int selectionStart = Selection.getSelectionStart(content); in deleteLineFromCursor() 444 final int selectionEnd = Selection.getSelectionEnd(content); in deleteLineFromCursor() 458 final int line = layout.getLineForOffset(Selection.getSelectionStart(content)); in deleteLineFromCursor() 527 int selectionStart = Selection.getSelectionStart(content); in onKeyOther() [all …]
|
H A 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() 198 Selection.setSelection(content, selEnd); in onKeyDown() 228 Selection.setSelection(content, selEnd); in onKeyDown() 236 selEnd = Selection.getSelectionEnd(content); in onKeyDown() 244 Selection.setSelection(content, oldStart, selEnd); in onKeyDown() 290 selEnd = Selection.getSelectionEnd(content); in onKeyDown() [all …]
|
H A 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()
|
H A D | CharacterPickerDialog.java | 23 import android.text.Selection; 95 int selEnd = Selection.getSelectionEnd(mText); in replaceCharacterAndClose()
|
H A D | WordIterator.java | 27 import android.text.Selection; 40 public class WordIterator implements Selection.PositionIterator {
|
H A D | TextKeyListener.java | 28 import android.text.Selection; 186 if (what == Selection.SELECTION_END) { in onSpanChanged()
|
/aosp14/frameworks/base/core/java/android/view/inputmethod/ |
H A D | BaseInputConnection.java | 34 import android.text.Selection; 171 Selection.setSelection(mEditable, 0); in getEditable() 269 int a = Selection.getSelectionStart(content); in deleteSurroundingText() 270 int b = Selection.getSelectionEnd(content); in deleteSurroundingText() 439 int a = Selection.getSelectionStart(content); in deleteSurroundingTextInCodePoints() 440 int b = Selection.getSelectionEnd(content); in deleteSurroundingTextInCodePoints() 521 int b = Selection.getSelectionEnd(content); in getCursorCapsMode() 552 int b = Selection.getSelectionEnd(content); in getTextBeforeCursor() 584 int b = Selection.getSelectionEnd(content); in getSelectedText() 613 int b = Selection.getSelectionEnd(content); in getTextAfterCursor() [all …]
|
/aosp14/frameworks/base/core/java/android/widget/ |
H A D | EditText.java | 23 import android.text.Selection; 156 Selection.setSelection(getText(), start, stop); in setSelection() 163 Selection.setSelection(getText(), index); in setSelection() 170 Selection.selectAll(getText()); in selectAll() 177 Selection.extendSelection(getText(), index); in extendSelection()
|
H A 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()
|
H A D | DialerFilter.java | 23 import android.text.Selection; 288 Selection.setSelection(lettersText, lettersText.length()); in swapPrimaryAndHint() 293 Selection.setSelection(digitsText, digitsText.length()); in swapPrimaryAndHint()
|
H A D | OWNERS | 11 per-file TextView*,Edit*,Selection* = file:../text/OWNERS
|
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/ |
H A 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()
|
/aosp14/frameworks/base/packages/SystemUI/customization/src/com/android/systemui/shared/customization/data/content/ |
H A D | CustomizationProviderClient.kt | 92 suspend fun querySelections(): List<Selection> 99 fun observeSelections(): Flow<List<Selection>> 179 data class Selection( dataClass 401 override suspend fun querySelections(): List<CustomizationProviderClient.Selection> { 437 CustomizationProviderClient.Selection( 450 override fun observeSelections(): Flow<List<CustomizationProviderClient.Selection>> {
|
H A D | FakeCustomizationProviderClient.kt | 112 override suspend fun querySelections(): List<CustomizationProviderClient.Selection> { 116 override fun observeSelections(): Flow<List<CustomizationProviderClient.Selection>> { 170 ): List<CustomizationProviderClient.Selection> { 177 CustomizationProviderClient.Selection(
|
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/widget/ |
H A 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()
|
H A 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()
|
/aosp14/frameworks/base/telephony/java/android/telephony/ |
H A 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()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
H A D | CustomizationProviderTest.kt | 292 Selection( 365 Selection( 397 Selection( 439 private fun querySelections(): List<Selection> { 473 Selection( 573 data class Selection( dataClass
|
/aosp14/frameworks/base/core/java/android/webkit/ |
H A D | FindActionModeCallback.java | 26 import android.text.Selection; 90 Selection.setSelection(span, length, length); in setText() 225 Selection.setSelection(edit, edit.length()); in onCreateActionMode()
|
/aosp14/frameworks/base/core/java/com/android/internal/inputmethod/ |
H A D | EditableInputConnection.java | 32 import android.text.Selection; 350 int start = Selection.getSelectionStart(content); in dumpDebug() 351 int end = Selection.getSelectionEnd(content); in dumpDebug()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/view/inputmethod/ |
H A D | BaseInputConnectionTest.java | 23 import android.text.Selection; 743 Selection.setSelection(mEditable, selectionStart, selectionEnd); in prepareContent() 766 assertThat(Selection.getSelectionStart(mEditable)).isEqualTo(selectionStart); in verifyContent() 767 assertThat(Selection.getSelectionEnd(mEditable)).isEqualTo(selectionEnd); in verifyContent()
|
/aosp14/frameworks/base/core/java/android/view/contentcapture/ |
H A D | ContentCaptureEvent.java | 30 import android.text.Selection; 352 ss.setSpan(Selection.SELECTION_START, mSelectionStartIndex, mSelectionStartIndex, 0); in restoreSelectionSpans() 353 ss.setSpan(Selection.SELECTION_END, mSelectionEndIndex, mSelectionEndIndex, 0); in restoreSelectionSpans()
|