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;
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 …]
DTextViewActivityTest.java36 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.java63 public static ViewAssertion hasSelection(String selection) { in hasSelection() method in TextViewAssertions
64 return hasSelection(is(selection)); in hasSelection()
78 public static ViewAssertion hasSelection(Matcher<String> selection) { in hasSelection() method in TextViewAssertions
/frameworks/base/core/java/android/widget/
DEditor.java491 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 …]
DTextView.java5845 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.Drawables
10147 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 …]
/frameworks/base/config/
Dboot-image-profile.txt19370 HSPLandroid/widget/TextView;->hasSelection()Z
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt38831 method public boolean hasSelection();
/frameworks/base/non-updatable-api/
Dcurrent.txt58554 method public boolean hasSelection();
/frameworks/base/api/
Dcurrent.txt58698 method public boolean hasSelection();