Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewActivityMouseTest.java34 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 …]
DTextViewActivityTest.java30 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 …]
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DTextViewAssertions.java59 public static ViewAssertion hasSelection(String selection) { in hasSelection() method in TextViewAssertions
60 return hasSelection(is(selection)); in hasSelection()
74 public static ViewAssertion hasSelection(Matcher<String> selection) { in hasSelection() method in TextViewAssertions
/frameworks/base/core/java/android/widget/
DSelectionActionModeHelper.java71 if (isNoOpTextClassifier() || !hasSelection()) { in startActionModeAsync()
91 if (isNoOpTextClassifier() || !hasSelection()) { in invalidateActionModeAsync()
139 private boolean hasSelection() { in hasSelection() method in SelectionActionModeHelper
DEditor.java406 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 …]
DTextView.java5004 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() method
8975 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 …]
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt38831 method public boolean hasSelection();
/frameworks/base/api/
Dcurrent.txt51230 method public boolean hasSelection();
Dsystem-current.txt55138 method public boolean hasSelection();