/frameworks/base/core/tests/coretests/src/android/widget/ |
D | TextViewActivityMouseTest.java | 43 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 …]
|
D | TextViewActivityTest.java | 47 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/ |
D | TextViewAssertions.java | 62 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/ |
D | MouseInputHandler.java | 114 if (mSelectionTracker.hasSelection()) { in onSingleTapUp() 126 checkState(mSelectionTracker.hasSelection()); in onItemClick() 156 if (mSelectionTracker.hasSelection()) { in onSingleTapConfirmed()
|
D | DefaultSelectionTracker.java | 110 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()
|
D | TouchInputHandler.java | 90 if (mSelectionTracker.hasSelection()) { in onSingleTapUp()
|
D | SelectionTracker.java | 114 public abstract boolean hasSelection(); in hasSelection() method in SelectionTracker
|
/frameworks/support/recyclerview-selection/src/androidTest/java/androidx/recyclerview/selection/ |
D | DefaultSelectionTrackerTest.java | 189 assertFalse(mTracker.hasSelection()); in testClearSelection_RemovesPrimarySelection() 199 assertFalse(mTracker.hasSelection()); in testClearSelection_RemovesProvisionalSelection()
|
/frameworks/base/core/java/android/widget/ |
D | Editor.java | 473 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 …]
|
D | TextView.java | 5320 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/ |
D | current.txt | 101 method public abstract boolean hasSelection();
|
/frameworks/support/recyclerview-selection/api_legacy/ |
D | current.txt | 101 method public abstract boolean hasSelection();
|
/frameworks/opt/setupwizard/tools/docs/ |
D | android-22.txt | 38831 method public boolean hasSelection();
|
/frameworks/base/api/ |
D | current.txt | 53841 method public boolean hasSelection();
|
/frameworks/base/config/ |
D | boot-image-profile.txt | 37385 HSPLandroid/widget/TextView;->hasSelection()Z
|
D | hiddenapi-public-dex.txt | 55777 Landroid/widget/TextView;->hasSelection()Z
|