Searched refs:hasSelection (Results 1 – 9 of 9) sorted by relevance
34 import static android.widget.espresso.TextViewAssertions.hasSelection;94 onView(withId(R.id.textview)).check(hasSelection("llo wor")); in testSelectTextByDrag()102 onView(withId(R.id.textview)).check(hasSelection("")); in testSelectTextByDrag()115 onView(withId(R.id.textview)).check(hasSelection("llo wor")); in testSelectTextByDrag_reverse()168 onView(withId(R.id.textview)).check(hasSelection("c def g")); in testContextMenu()180 onView(withId(R.id.textview)).check(hasSelection("")); in testContextMenu()198 onView(withId(R.id.textview)).check(hasSelection("")); in testDragAndDrop()215 onView(withId(R.id.textview)).check(hasSelection("")); in testDragAndDrop_longClick()227 onView(withId(R.id.textview)).check(hasSelection("Hello")); in testSelectTextByLongClick()231 onView(withId(R.id.textview)).check(hasSelection("world")); in testSelectTextByLongClick()[all …]
36 import static android.widget.espresso.TextViewAssertions.hasSelection;183 onView(withId(R.id.textview)).check(hasSelection("Kirk")); in testLongPressToSelect()207 onView(withId(R.id.textview)).check(hasSelection("little handsome")); in testLongPressAndDragToSelect()216 onView(withId(R.id.textview)).check(hasSelection("\uD83D\uDE02")); in testLongPressAndDragToSelect_emoji()221 onView(withId(R.id.textview)).check(hasSelection("\uD83D\uDE01")); in testLongPressAndDragToSelect_emoji()234 onView(withId(R.id.textview)).check(hasSelection("")); in testDragAndDrop()252 onView(withId(R.id.textview)).check(hasSelection("SuetYi")); in testDoubleTapToSelect()262 onView(withId(R.id.textview)).check(hasSelection("young beautiful")); in testDoubleTapAndDragToSelect()271 onView(withId(R.id.textview)).check(hasSelection("abcd\nefg\nhijklm")); in testDoubleTapAndDragToSelect_multiLine()281 onView(withId(R.id.textview)).check(hasSelection("king of the")); in testSelectBackwordsByTouch()[all …]
63 public static ViewAssertion hasSelection(String selection) { in hasSelection() method in TextViewAssertions64 return hasSelection(is(selection)); in hasSelection()78 public static ViewAssertion hasSelection(Matcher<String> selection) { in hasSelection() method in TextViewAssertions
491 if (mTextView.hasSelection()) { in onAttachedToWindow()1267 mCreatedWithASelection = mFrozenWithFocus && mTextView.hasSelection() in onFocusChanged()1348 if (!mTextView.textCanBeSelected() && mTextView.hasSelection()) { in ensureNoSelectionIfNonSelectable()1415 if (mTextView.hasSelection() && !extractedTextModeWillBeStarted()) { in onWindowFocusChanged()1615 final CursorController cursorController = mTextView.hasSelection() in finishBatchEdit()2079 final boolean hasSelection = mTextView.hasSelection(); in refreshTextActionMode()2088 if (hasSelection) { in refreshTextActionMode()2205 if (!mTextView.hasSelection() && !selectCurrentWord()) { in selectCurrentWordAndStartDrag()2240 && (!checkField() || !mTextView.hasSelection())) { in startActionModeInternal()2764 final boolean isOnSelection = mTextView.hasSelection() in onCreateContextMenu()[all …]
5845 boolean hasSelection = false; in onSaveInstanceState()5854 hasSelection = true; in onSaveInstanceState()5858 if (freezesText || hasSelection) { in onSaveInstanceState()5876 if (hasSelection) { in onSaveInstanceState()7692 || mSpannable != null || hasSelection() || isHorizontalFadingEdgeEnabled() in hasOverlappingRendering()10139 public boolean hasSelection() { in hasSelection() method in TextView.Drawables10147 if (!hasSelection()) { in getSelectedText()10710 if (!hasSelection() in spanChange()12153 final boolean hadSelection = hasSelection(); in onTextContextMenuItem()12561 if (mText.length() > 0 && hasSelection() && mText instanceof Editable && mEditor != null in canCut()[all …]
19370 HSPLandroid/widget/TextView;->hasSelection()Z
38831 method public boolean hasSelection();
58554 method public boolean hasSelection();
58698 method public boolean hasSelection();