Searched refs:selectedText (Results 1 – 7 of 7) sorted by relevance
/aosp14/frameworks/base/core/java/android/view/inputmethod/ |
H A D | InputConnection.java | 393 CharSequence selectedText = getSelectedText(flags); in getSurroundingText() local 394 if (selectedText == null) { in getSurroundingText() 395 selectedText = ""; in getSurroundingText() 398 TextUtils.concat(textBeforeCursor, selectedText, textAfterCursor); in getSurroundingText() 400 textBeforeCursor.length() + selectedText.length(), -1); in getSurroundingText()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/espresso/ |
H A D | TextViewAssertions.java | 173 String selectedText = textView.getText() 176 assertThat(selectedText, mSelection);
|
/aosp14/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | ViewPropertyAlphaActivity.java | 63 EditText selectedText = findViewById(R.id.selectedtext); in onCreate() 64 selectedText.setSelection(3, 8); in onCreate()
|
/aosp14/frameworks/base/core/java/com/android/internal/inputmethod/ |
H A D | EditableInputConnection.java | 339 CharSequence selectedText = getSelectedText(0 /* flags */); in dumpDebug() local 344 if (selectedText != null) { in dumpDebug() 345 proto.write(SELECTED_TEXT, selectedText.toString()); in dumpDebug()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/view/inputmethod/ |
H A D | EditorInfoTest.java | 249 final CharSequence selectedText = testText.subSequence(editorInfo.initialSelStart, in setOverSizeInitialText_cursorAtMiddle_dividesProportionately() local 253 new SurroundingText(TextUtils.concat(beforeCursor, selectedText, afterCursor), in setOverSizeInitialText_cursorAtMiddle_dividesProportionately() 433 final CharSequence selectedText = in assertExpectedTextLength() local 450 assertNull(selectedText); in assertExpectedTextLength() 452 assertEquals(expectSelectionLength.intValue(), selectedText.length()); in assertExpectedTextLength()
|
/aosp14/frameworks/base/core/java/android/widget/ |
H A D | Editor.java | 1469 CharSequence selectedText = mTextView.getTransformedText(start, end); in startDragAndDrop() local 1470 ClipData data = ClipData.newPlainText(null, selectedText); in startDragAndDrop() 8007 String selectedText = mTextView.getSelectedText(); in fireIntent() local 8008 selectedText = TextUtils.trimToParcelableSize(selectedText); in fireIntent() 8009 intent.putExtra(Intent.EXTRA_PROCESS_TEXT, selectedText); in fireIntent()
|
H A D | TextView.java | 15088 String selectedText = getSelectedText(); in shareSelectedText() local 15089 if (selectedText != null && !selectedText.isEmpty()) { in shareSelectedText() 15093 selectedText = TextUtils.trimToParcelableSize(selectedText); in shareSelectedText() 15094 sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, selectedText); in shareSelectedText()
|