Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewActivityMouseTest.java43 import static android.widget.espresso.TextViewAssertions.hasSelection;
93 onView(withId(R.id.textview)).check(hasSelection("llo wor")); in testSelectTextByDrag()
101 onView(withId(R.id.textview)).check(hasSelection("")); in testSelectTextByDrag()
114 onView(withId(R.id.textview)).check(hasSelection("llo wor")); in testSelectTextByDrag_reverse()
167 onView(withId(R.id.textview)).check(hasSelection("c def g")); in testContextMenu()
179 onView(withId(R.id.textview)).check(hasSelection("")); in testContextMenu()
197 onView(withId(R.id.textview)).check(hasSelection("")); in testDragAndDrop()
214 onView(withId(R.id.textview)).check(hasSelection("")); in testDragAndDrop_longClick()
226 onView(withId(R.id.textview)).check(hasSelection("Hello")); in testSelectTextByLongClick()
230 onView(withId(R.id.textview)).check(hasSelection("world")); in testSelectTextByLongClick()
[all …]
DTextViewActivityTest.java47 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 …]
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DTextViewAssertions.java62 public static ViewAssertion hasSelection(String selection) { in hasSelection() method in TextViewAssertions
63 return hasSelection(is(selection)); in hasSelection()
77 public static ViewAssertion hasSelection(Matcher<String> selection) { in hasSelection() method in TextViewAssertions
/frameworks/support/recyclerview-selection/src/main/java/androidx/recyclerview/selection/
DMouseInputHandler.java114 if (mSelectionTracker.hasSelection()) { in onSingleTapUp()
126 checkState(mSelectionTracker.hasSelection()); in onItemClick()
156 if (mSelectionTracker.hasSelection()) { in onSingleTapConfirmed()
DDefaultSelectionTracker.java110 public boolean hasSelection() { in hasSelection() method in DefaultSelectionTracker
160 if (!hasSelection()) { in clearSelection()
170 if (!hasSelection()) { in clearPrimarySelection()
188 if (hasSelection()) { in clearSelectionQuietly()
210 if (mSingleSelect && hasSelection()) { in select()
DTouchInputHandler.java90 if (mSelectionTracker.hasSelection()) { in onSingleTapUp()
DSelectionTracker.java114 public abstract boolean hasSelection(); in hasSelection() method in SelectionTracker
/frameworks/support/recyclerview-selection/src/androidTest/java/androidx/recyclerview/selection/
DDefaultSelectionTrackerTest.java189 assertFalse(mTracker.hasSelection()); in testClearSelection_RemovesPrimarySelection()
199 assertFalse(mTracker.hasSelection()); in testClearSelection_RemovesProvisionalSelection()
/frameworks/base/core/java/android/widget/
DEditor.java473 if (mTextView.hasSelection()) { in onAttachedToWindow()
1249 mCreatedWithASelection = mFrozenWithFocus && mTextView.hasSelection() in onFocusChanged()
1330 if (!mTextView.textCanBeSelected() && mTextView.hasSelection()) { in ensureNoSelectionIfNonSelectable()
1397 if (mTextView.hasSelection() && !extractedTextModeWillBeStarted()) { in onWindowFocusChanged()
1593 final CursorController cursorController = mTextView.hasSelection() in finishBatchEdit()
2056 final boolean hasSelection = mTextView.hasSelection(); in refreshTextActionMode()
2065 if (hasSelection) { in refreshTextActionMode()
2182 if (!mTextView.hasSelection() && !selectCurrentWord()) { in selectCurrentWordAndStartDrag()
2217 && (!checkField() || !mTextView.hasSelection())) { in startActionModeInternal()
2733 final boolean isOnSelection = mTextView.hasSelection() in onCreateContextMenu()
[all …]
DTextView.java5320 boolean hasSelection = false; in onSaveInstanceState()
5329 hasSelection = true; in onSaveInstanceState()
5333 if (freezesText || hasSelection) { in onSaveInstanceState()
5351 if (hasSelection) { in onSaveInstanceState()
6935 || mSpannable != null || hasSelection() || isHorizontalFadingEdgeEnabled()); in hasOverlappingRendering()
9349 public boolean hasSelection() { in hasSelection() method in TextView.Drawables
9357 if (!hasSelection()) { in getSelectedText()
9904 if (!hasSelection() in spanChange()
11254 final boolean hadSelection = hasSelection(); in onTextContextMenuItem()
11654 if (mText.length() > 0 && hasSelection() && mText instanceof Editable && mEditor != null in canCut()
[all …]
/frameworks/support/recyclerview-selection/api/
Dcurrent.txt101 method public abstract boolean hasSelection();
/frameworks/support/recyclerview-selection/api_legacy/
Dcurrent.txt101 method public abstract boolean hasSelection();
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt38831 method public boolean hasSelection();
/frameworks/base/api/
Dcurrent.txt53841 method public boolean hasSelection();
/frameworks/base/config/
Dboot-image-profile.txt37385 HSPLandroid/widget/TextView;->hasSelection()Z
Dhiddenapi-public-dex.txt55777 Landroid/widget/TextView;->hasSelection()Z