Home
last modified time | relevance | path

Searched refs:mSpannable (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/text/src/android/text/method/cts/
DLinkMovementMethodTest.java53 private Spannable mSpannable; field in LinkMovementMethodTest
79 mSpannable = (Spannable) mView.getText(); in setUp()
144 assertSelection(mSpannable, -1); in testOnKeyDown()
147 assertFalse(mMethod.onKeyDown(mView, mSpannable, KeyEvent.KEYCODE_ENTER, in testOnKeyDown()
153 Selection.setSelection(mSpannable, mSpannable.getSpanStart(mClickable0), in testOnKeyDown()
154 mSpannable.getSpanEnd(mClickable0)); in testOnKeyDown()
157 assertFalse(mMethod.onKeyDown(mView, mSpannable, KeyEvent.KEYCODE_DPAD_CENTER, in testOnKeyDown()
163 Selection.setSelection(mSpannable, mSpannable.getSpanEnd(mClickable0), in testOnKeyDown()
164 mSpannable.getSpanStart(mClickable1)); in testOnKeyDown()
167 assertFalse(mMethod.onKeyDown(mView, mSpannable, KeyEvent.KEYCODE_ENTER, in testOnKeyDown()
[all …]
DScrollingMovementMethodTest.java53 private Spannable mSpannable; field in ScrollingMovementMethodTest
67 mSpannable = (Spannable) mTextView.getText(); in setUp()
97 mSpannable = (Spannable) mTextView.getText(); in testOnTouchEventHorizontalMotion()
113 mResult = method.onTouchEvent(mTextView, mSpannable, in testOnTouchEventHorizontalMotion()
123 mResult = method.onTouchEvent(mTextView, mSpannable, in testOnTouchEventHorizontalMotion()
132 mResult = method.onTouchEvent(mTextView, mSpannable, in testOnTouchEventHorizontalMotion()
140 mResult = method.onTouchEvent(mTextView, mSpannable, in testOnTouchEventHorizontalMotion()
150 mResult = method.onTouchEvent(mTextView, mSpannable, in testOnTouchEventHorizontalMotion()
162 mResult = method.onTouchEvent(mTextView, mSpannable, in testOnTouchEventHorizontalMotion()
173 mResult = method.onTouchEvent(mTextView, mSpannable, in testOnTouchEventHorizontalMotion()
[all …]
/cts/tests/tests/os/src/android/os/cts/
DBundleTest.java51 private Spannable mSpannable; field in BundleTest
60 mSpannable = new SpannableString("foo bar"); in setUp()
61 mSpannable.setSpan(new ForegroundColorSpan(0x123456), 0, 3, 0); in setUp()
255 mBundle.putCharSequence(KEY2, mSpannable); in testGetCharSequence()
257 assertSpannableEquals(mSpannable, mBundle.getCharSequence(KEY2)); in testGetCharSequence()
260 assertSpannableEquals(mSpannable, mBundle.getCharSequence(KEY2)); in testGetCharSequence()
266 "one", "two", "three", mSpannable in testGetCharSequenceArray()
273 assertSpannableEquals(mSpannable, ret[3]); in testGetCharSequenceArray()
280 assertSpannableEquals(mSpannable, ret[3]); in testGetCharSequenceArray()
289 list.add(mSpannable); in testGetCharSequenceArrayList()
[all …]
/cts/tests/tests/text/src/android/text/cts/
DSpannableStringBuilderSpanTest.java393 private Spannable mSpannable; field in SpannableStringBuilderSpanTest.SpanWatcherRecorder
424 mSpannable = spannable; in reset()
432 if (text == mSpannable) mAdded.add(new AddedRemoved(span, start, end)); in onSpanAdded()
437 if (text == mSpannable) mRemoved.add(new AddedRemoved(span, start, end)); in onSpanRemoved()
443 if (text == mSpannable) mChanged.add(new Changed(span, ostart, oend, nstart, nend)); in onSpanChanged()