Home
last modified time | relevance | path

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

123

/frameworks/base/core/java/android/text/method/
DArrowKeyMovementMethod.java22 import android.text.Selection;
40 return layout.getLineTop(layout.getLineForOffset(Selection.getSelectionEnd(buffer))); in getCurrentLineTop()
76 return Selection.extendLeft(buffer, layout); in left()
78 return Selection.moveLeft(buffer, layout); in left()
89 return Selection.extendRight(buffer, layout); in right()
91 return Selection.moveRight(buffer, layout); in right()
102 return Selection.extendUp(buffer, layout); in up()
104 return Selection.moveUp(buffer, layout); in up()
115 return Selection.extendDown(buffer, layout); in down()
117 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;
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()
253 Selection.setSelection(buffer, in onTouchEvent()
259 Selection.removeSelection(buffer); in onTouchEvent()
268 Selection.removeSelection(text); in initialize()
274 Selection.removeSelection(text); in onTakeFocus()
DBaseKeyListener.java27 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 …]
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()
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 …]
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()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneNumberWatcherTest.java22 import android.text.Selection;
42 Selection.setSelection(number, number.length()); in testAppendChars()
46 assertEquals(formatted1.length(), Selection.getSelectionEnd(number)); in testAppendChars()
55 Selection.setSelection(number, number.length()); in testAppendChars()
59 assertEquals(formatted2.length(), Selection.getSelectionEnd(number)); in testAppendChars()
79 Selection.setSelection(number, number.length()); in testRemoveLastChars()
83 assertEquals(result1.length(), Selection.getSelectionEnd(number)); in testRemoveLastChars()
90 Selection.setSelection(number, number.length()); in testRemoveLastChars()
94 assertEquals(result2.length(), Selection.getSelectionEnd(number)); in testRemoveLastChars()
108 Selection.setSelection(number, 4); // make the cursor at right of 1 in testInsertChars()
[all …]
/frameworks/base/core/java/android/view/inputmethod/
DBaseInputConnection.java34 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()
520 int a = Selection.getSelectionStart(content); in getCursorCapsMode()
521 int b = Selection.getSelectionEnd(content); in getCursorCapsMode()
551 int a = Selection.getSelectionStart(content); in getTextBeforeCursor()
552 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/base/core/java/android/widget/
DEditText.java27 import android.text.Selection;
191 Selection.setSelection(getText(), start, stop); in setSelection()
198 Selection.setSelection(getText(), index); in setSelection()
205 Selection.selectAll(getText()); in selectAll()
212 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()
DOWNERS10 per-file TextView*,Edit*,Selection* = file:../text/OWNERS
DDialerFilter.java23 import android.text.Selection;
288 Selection.setSelection(lettersText, lettersText.length()); in swapPrimaryAndHint()
293 Selection.setSelection(digitsText, digitsText.length()); in swapPrimaryAndHint()
/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/telephony/java/android/telephony/
DPhoneNumberFormattingTextWatcher.java23 import android.text.Selection;
116 String formatted = reformat(s, Selection.getSelectionEnd(s)); in afterTextChanged()
124 Selection.setSelection(s, rememberedPos); in afterTextChanged()
/frameworks/base/packages/SystemUI/customization/src/com/android/systemui/shared/customization/data/content/
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>()
DCustomizationProviderClient.kt93 suspend fun querySelections(): List<Selection> in <lambda>()
100 fun observeSelections(): Flow<List<Selection>> in <lambda>()
180 data class Selection( in <lambda>() class
402 override suspend fun querySelections(): List<CustomizationProviderClient.Selection> { in querySelections()
438 CustomizationProviderClient.Selection( in querySelections()
451 override fun observeSelections(): Flow<List<CustomizationProviderClient.Selection>> { in observeSelections()
/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/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DCustomizationProviderTest.kt295 Selection( in <lambda>()
368 Selection( in <lambda>()
400 Selection( in <lambda>()
442 private fun querySelections(): List<Selection> { in <lambda>()
476 Selection( in <lambda>()
576 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()
/frameworks/base/core/java/com/android/internal/inputmethod/
DEditableInputConnection.java30 import android.text.Selection;
338 int start = Selection.getSelectionStart(content); in dumpDebug()
339 int end = Selection.getSelectionEnd(content); in dumpDebug()

123