Searched refs:hasSelection (Results 1 – 9 of 9) sorted by relevance
34 import static android.widget.espresso.TextViewAssertions.hasSelection;78 onView(withId(R.id.textview)).check(hasSelection("llo wor")); in testSelectTextByDrag()86 onView(withId(R.id.textview)).check(hasSelection("")); in testSelectTextByDrag()99 onView(withId(R.id.textview)).check(hasSelection("llo wor")); in testSelectTextByDrag_reverse()135 onView(withId(R.id.textview)).check(hasSelection("c def g")); in testContextMenu()147 onView(withId(R.id.textview)).check(hasSelection("")); in testContextMenu()165 onView(withId(R.id.textview)).check(hasSelection("")); in testDragAndDrop()182 onView(withId(R.id.textview)).check(hasSelection("")); in testDragAndDrop_longClick()194 onView(withId(R.id.textview)).check(hasSelection("Hello")); in testSelectTextByLongClick()198 onView(withId(R.id.textview)).check(hasSelection("world")); in testSelectTextByLongClick()[all …]
30 import static android.widget.espresso.TextViewAssertions.hasSelection;148 onView(withId(R.id.textview)).check(hasSelection("Kirk")); in testLongPressToSelect()170 onView(withId(R.id.textview)).check(hasSelection("little handsome")); in testLongPressAndDragToSelect()178 onView(withId(R.id.textview)).check(hasSelection("\uD83D\uDE02")); in testLongPressAndDragToSelect_emoji()183 onView(withId(R.id.textview)).check(hasSelection("\uD83D\uDE01")); in testLongPressAndDragToSelect_emoji()195 onView(withId(R.id.textview)).check(hasSelection("")); in testDragAndDrop()213 onView(withId(R.id.textview)).check(hasSelection("SuetYi")); in testDoubleTapToSelect()222 onView(withId(R.id.textview)).check(hasSelection("young beautiful")); in testDoubleTapAndDragToSelect()230 onView(withId(R.id.textview)).check(hasSelection("abcd\nefg\nhijklm")); in testDoubleTapAndDragToSelect_multiLine()239 onView(withId(R.id.textview)).check(hasSelection("king of the")); in testSelectBackwordsByTouch()[all …]
59 public static ViewAssertion hasSelection(String selection) { in hasSelection() method in TextViewAssertions60 return hasSelection(is(selection)); in hasSelection()74 public static ViewAssertion hasSelection(Matcher<String> selection) { in hasSelection() method in TextViewAssertions
71 if (isNoOpTextClassifier() || !hasSelection()) { in startActionModeAsync()91 if (isNoOpTextClassifier() || !hasSelection()) { in invalidateActionModeAsync()139 private boolean hasSelection() { in hasSelection() method in SelectionActionModeHelper
406 if (mTextView.hasSelection()) { in onAttachedToWindow()1149 mCreatedWithASelection = mFrozenWithFocus && mTextView.hasSelection() in onFocusChanged()1286 if (mTextView.hasSelection() && !extractedTextModeWillBeStarted()) { in onWindowFocusChanged()1475 final CursorController cursorController = mTextView.hasSelection() in finishBatchEdit()1938 final boolean hasSelection = mTextView.hasSelection(); in refreshTextActionMode()1947 if (hasSelection) { in refreshTextActionMode()2055 if (!mTextView.hasSelection() && !selectCurrentWord()) { in selectCurrentWordAndStartDrag()2089 if (!checkField() || !mTextView.hasSelection()) { in startSelectionActionModeInternal()2590 final boolean isOnSelection = mTextView.hasSelection() in onCreateContextMenu()3759 public TextActionModeCallback(boolean hasSelection) { in TextActionModeCallback() argument[all …]
5004 boolean hasSelection = false;5013 hasSelection = true;5017 if (freezesText || hasSelection) {5035 if (hasSelection) {6583 || mText instanceof Spannable || hasSelection() in hasOverlappingRendering()8967 public boolean hasSelection() { in hasSelection() method8975 if (!hasSelection()) { in getSelectedText()9499 if (!hasSelection() in spanChange()10803 final boolean hadSelection = hasSelection(); in onTextContextMenuItem()11062 if (mText.length() > 0 && hasSelection() && mText instanceof Editable && mEditor != null in canCut()[all …]
38831 method public boolean hasSelection();
51230 method public boolean hasSelection();
55138 method public boolean hasSelection();