Home
last modified time | relevance | path

Searched refs:hasSelection (Results 1 – 12 of 12) sorted by relevance

/aosp14/frameworks/base/core/tests/coretests/src/android/widget/
H A DTextViewActivityMouseTest.java92 onView(withId(R.id.textview)).check(hasSelection("")); in testSelectTextByDrag()
168 onView(withId(R.id.textview)).check(hasSelection("")); in testContextMenu()
186 onView(withId(R.id.textview)).check(hasSelection("")); in testDragAndDrop()
202 onView(withId(R.id.textview)).check(hasSelection("")); in testDragAndDrop_longClick()
228 onView(withId(R.id.textview)).check(hasSelection("!")); in testSelectTextByLongClick()
254 onView(withId(R.id.textview)).check(hasSelection("!")); in testSelectTextByDoubleClick()
322 onView(withId(R.id.textview)).check(hasSelection( in testSelectTextByTripleClick()
331 onView(withId(R.id.textview)).check(hasSelection( in testSelectTextByTripleClick()
356 onView(withId(R.id.textview)).check(hasSelection( in testSelectTextByTripleClickAndDrag()
385 onView(withId(R.id.textview)).check(hasSelection( in testSelectTextByTripleClickAndDrag_reverse()
[all …]
H A DTextViewActivityTest.java352 assertTrue(textView.hasSelection()); in testToolbarAppearsAfterLinkClickedNonselectable()
357 assertFalse(textView.hasSelection()); in testToolbarAppearsAfterLinkClickedNonselectable()
361 assertTrue(textView.hasSelection()); in testToolbarAppearsAfterLinkClickedNonselectable()
365 assertFalse(textView.hasSelection()); in testToolbarAppearsAfterLinkClickedNonselectable()
465 assertTrue(textView.hasSelection()); in testSelectionRemovedWhenNonselectableTextLosesFocus()
470 assertFalse(textView.hasSelection()); in testSelectionRemovedWhenNonselectableTextLosesFocus()
482 assertTrue(nonselectableTextView.hasSelection()); in testSelectionRemovedFromNonselectableTextWhenWindowLosesFocus()
489 assertFalse(nonselectableTextView.hasSelection()); in testSelectionRemovedFromNonselectableTextWhenWindowLosesFocus()
783 onView(withId(R.id.textview)).check(hasSelection( in testSelectionHandles_multiLine_rtl()
788 onView(withId(R.id.textview)).check(hasSelection( in testSelectionHandles_multiLine_rtl()
[all …]
H A DEditorCursorDragTest.java23 import static android.widget.espresso.TextViewAssertions.hasSelection;
153 onView(withId(R.id.textview)).check(hasSelection(not(emptyString()))); in testCursorDrag_diagonal_whenTextViewContentsFitOnScreen()
158 onView(withId(R.id.textview)).check(hasSelection(emptyString())); in testCursorDrag_diagonal_whenTextViewContentsFitOnScreen()
165 onView(withId(R.id.textview)).check(hasSelection(not(emptyString()))); in testCursorDrag_diagonal_whenTextViewContentsFitOnScreen()
189 onView(withId(R.id.textview)).check(hasSelection(not(emptyString()))); in testCursorDrag_diagonal_whenTextViewContentsLargerThanScreen()
194 onView(withId(R.id.textview)).check(hasSelection(emptyString())); in testCursorDrag_diagonal_whenTextViewContentsLargerThanScreen()
251 onView(withId(R.id.textview)).check(hasSelection(not(emptyString()))); in testCursorDrag_vertical_whenTextViewContentsFitOnScreen()
258 onView(withId(R.id.textview)).check(hasSelection(not(emptyString()))); in testCursorDrag_vertical_whenTextViewContentsFitOnScreen()
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/espresso/
H A DTextViewAssertions.java63 public static ViewAssertion hasSelection(String selection) { in hasSelection() method in TextViewAssertions
64 return hasSelection(is(selection)); in hasSelection()
78 public static ViewAssertion hasSelection(Matcher<String> selection) { in hasSelection() method in TextViewAssertions
/aosp14/frameworks/base/core/java/android/widget/
H A DEditText.java216 if (mStyleShortcutsEnabled && hasSelection()) { in onKeyShortcut()
221 if (mStyleShortcutsEnabled && hasSelection()) { in onKeyShortcut()
226 if (mStyleShortcutsEnabled && hasSelection()) { in onKeyShortcut()
H A DEditor.java722 if (mTextView.hasSelection()) { in onAttachedToWindow()
1665 if (!mTextView.textCanBeSelected() && mTextView.hasSelection()) { in ensureNoSelectionIfNonSelectable()
2412 final boolean hasSelection = mTextView.hasSelection(); in refreshTextActionMode()
2421 if (hasSelection) { in refreshTextActionMode()
2539 if (!mTextView.hasSelection() && !selectCurrentWord()) { in selectCurrentWordAndStartDrag()
2574 && (!checkField() || !mTextView.hasSelection())) { in startActionModeInternal()
3142 final boolean isOnSelection = mTextView.hasSelection() in onCreateContextMenu()
4528 return mTextView.hasSelection() in createAssistMenuItemPendingIntentRequestCode()
6922 if (mTextView.hasSelection() in onTouchEvent()
6945 if (mTextView.hasSelection() && mEndHandle != null && in onTouchEvent()
[all …]
H A DTextView.java6740 boolean hasSelection = false; in onSaveInstanceState()
6749 hasSelection = true; in onSaveInstanceState()
6753 if (freezesText || hasSelection) { in onSaveInstanceState()
6771 if (hasSelection) { in onSaveInstanceState()
8659 || mSpannable != null || hasSelection() || isHorizontalFadingEdgeEnabled() in hasOverlappingRendering()
11819 public boolean hasSelection() { in hasSelection() method
11836 if (!hasSelection()) { in getSelectedText()
12531 if (!hasSelection() in spanChange()
14570 final boolean hadSelection = hasSelection(); in onTextContextMenuItem()
14983 if (mText.length() > 0 && hasSelection() && mText instanceof Editable && mEditor != null in canCut()
[all …]
/aosp14/frameworks/base/packages/CredentialManager/
H A Dprofile.txt.prof1868 HSPLandroidx/compose/foundation/text/selection/SelectionRegistrarKt;->hasSelection(Landroidx/compos…
/aosp14/frameworks/base/tools/aapt2/integration-tests/CommandTests/
H A Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
/aosp14/frameworks/base/boot/
H A Dboot-image-profile.txt20897 HSPLandroid/widget/TextView;->hasSelection()Z
/aosp14/frameworks/base/config/
H A Dboot-image-profile.txt20961 HSPLandroid/widget/TextView;->hasSelection()Z
/aosp14/frameworks/base/core/api/
H A Dcurrent.txt60311 method public boolean hasSelection();