Home
last modified time | relevance | path

Searched refs:Selection (Results 1 – 25 of 56) sorted by relevance

123

/frameworks/base/core/java/android/text/method/
DArrowKeyMovementMethod.java21 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 …]
DMultiTapKeyListener.java22 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 …]
DLinkMovementMethod.java23 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()
DBaseKeyListener.java27 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()
DQwertyKeyListener.java22 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()
DNumberKeyListener.java24 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()
DCharacterPickerDialog.java23 import android.text.Selection;
95 int selEnd = Selection.getSelectionEnd(mText); in replaceCharacterAndClose()
DWordIterator.java26 import android.text.Selection;
38 public class WordIterator implements Selection.PositionIterator {
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneNumberWatcherTest.java23 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/
DEditText.java22 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()
DTextViewOnReceiveContentListener.java36 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()
DDialerFilter.java23 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/
DBaseInputConnection.java33 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/
DLinkSpanTest.java25 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/
DTextViewProcessTextTest.java24 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/
DTouchableMovementMethod.java19 import android.text.Selection;
62 lastEventResult = Selection.getSelectionStart(buffer) != -1; in onTouchEvent()
/frameworks/base/apct-tests/perftests/core/src/android/widget/
DEditTextCursorMovementPerfTest.java22 import android.text.Selection;
91 Selection.setSelection(editText.getText(), 0, 0); in testCursorMovement()
106 Assert.assertEquals(mCursorPos, Selection.getSelectionStart(editText.getText())); in testCursorMovement()
DEditTextBackspacePerfTest.java22 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/
DCustomizationProviderClient.kt92 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()
DFakeCustomizationProviderClient.kt112 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/
DPhoneNumberFormattingTextWatcher.java22 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/
DLinkSpan.java24 import android.text.Selection;
100 Selection.setSelection((Spannable) text, 0); in onClick()
/frameworks/base/core/java/com/android/internal/inputmethod/
DEditableInputConnection.java27 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/
DCustomizationProviderTest.kt268 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/
DFindActionModeCallback.java26 import android.text.Selection;
90 Selection.setSelection(span, length, length); in setText()
225 Selection.setSelection(edit, edit.length()); in onCreateActionMode()

123