Home
last modified time | relevance | path

Searched refs:selectedText (Results 1 – 9 of 9) sorted by relevance

/aosp12/frameworks/base/core/java/android/view/inputmethod/
H A DInputConnection.java334 CharSequence selectedText = getSelectedText(flags); in getSurroundingText() local
335 if (selectedText == null) { in getSurroundingText()
336 selectedText = ""; in getSurroundingText()
339 TextUtils.concat(textBeforeCursor, selectedText, textAfterCursor); in getSurroundingText()
341 textBeforeCursor.length() + selectedText.length(), -1); in getSurroundingText()
/aosp12/frameworks/base/core/java/com/android/internal/widget/
H A DEditableInputConnection.java266 CharSequence selectedText = getSelectedText(0 /* flags */); in dumpDebug() local
271 if (selectedText != null) { in dumpDebug()
272 proto.write(SELECTED_TEXT, selectedText.toString()); in dumpDebug()
/aosp12/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
H A DEditorInfoTest.java212 final CharSequence selectedText = testText.subSequence(editorInfo.initialSelStart, in setOverSizeInitialText_cursorAtMiddle_dividesProportionately() local
216 new SurroundingText(TextUtils.concat(beforeCursor, selectedText, afterCursor), in setOverSizeInitialText_cursorAtMiddle_dividesProportionately()
396 final CharSequence selectedText = in assertExpectedTextLength() local
413 assertNull(selectedText); in assertExpectedTextLength()
415 assertEquals(expectSelectionLength.intValue(), selectedText.length()); in assertExpectedTextLength()
/aosp12/frameworks/base/core/tests/coretests/src/android/widget/espresso/
H A DTextViewAssertions.java173 String selectedText = textView.getText()
176 assertThat(selectedText, mSelection);
/aosp12/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DViewPropertyAlphaActivity.java63 EditText selectedText = findViewById(R.id.selectedtext); in onCreate()
64 selectedText.setSelection(3, 8); in onCreate()
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DRichInputConnection.java928 final CharSequence selectedText = isConnected() ? mIC.getSelectedText(0 /* flags */) : null; in tryFixLyingCursorPosition() local
930 (!TextUtils.isEmpty(selectedText) && mExpectedSelEnd == mExpectedSelStart)) { in tryFixLyingCursorPosition()
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/
H A DInputLogic.java1406 final CharSequence selectedText = in performRecapitalization() local
1408 if (TextUtils.isEmpty(selectedText)) return; // Race condition with the input connection in performRecapitalization()
1409 mRecapitalizeStatus.start(selectionStart, selectionEnd, selectedText.toString(), in performRecapitalization()
/aosp12/frameworks/base/core/java/android/widget/
H A DEditor.java1389 CharSequence selectedText = mTextView.getTransformedText(start, end); in startDragAndDrop() local
1390 ClipData data = ClipData.newPlainText(null, selectedText); in startDragAndDrop()
7724 String selectedText = mTextView.getSelectedText(); in fireIntent() local
7725 selectedText = TextUtils.trimToParcelableSize(selectedText); in fireIntent()
7726 intent.putExtra(Intent.EXTRA_PROCESS_TEXT, selectedText); in fireIntent()
H A DTextView.java13047 String selectedText = getSelectedText(); in shareSelectedText() local
13048 if (selectedText != null && !selectedText.isEmpty()) { in shareSelectedText()
13052 selectedText = TextUtils.trimToParcelableSize(selectedText); in shareSelectedText()
13053 sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, selectedText); in shareSelectedText()