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.java74 private Spannable mSpannable; field in LinkMovementMethodTest
94 mSpannable = (Spannable) mView.getText(); in setup()
165 assertSelection(mSpannable, -1); in testOnKeyDown()
168 assertFalse(mMethod.onKeyDown(mView, mSpannable, KeyEvent.KEYCODE_ENTER, in testOnKeyDown()
174 Selection.setSelection(mSpannable, mSpannable.getSpanStart(mClickable0), in testOnKeyDown()
175 mSpannable.getSpanEnd(mClickable0)); in testOnKeyDown()
178 assertFalse(mMethod.onKeyDown(mView, mSpannable, KeyEvent.KEYCODE_DPAD_CENTER, in testOnKeyDown()
184 Selection.setSelection(mSpannable, mSpannable.getSpanEnd(mClickable0), in testOnKeyDown()
185 mSpannable.getSpanStart(mClickable1)); in testOnKeyDown()
188 assertFalse(mMethod.onKeyDown(mView, mSpannable, KeyEvent.KEYCODE_ENTER, in testOnKeyDown()
[all …]
DScrollingMovementMethodTest.java75 private Spannable mSpannable; field in ScrollingMovementMethodTest
89 mSpannable = (Spannable) mTextView.getText(); in setup()
113 mSpannable = (Spannable) mTextView.getText(); in testOnTouchEventHorizontalMotion()
128 mResult = method.onTouchEvent(mTextView, mSpannable, in testOnTouchEventHorizontalMotion()
138 mResult = method.onTouchEvent(mTextView, mSpannable, in testOnTouchEventHorizontalMotion()
147 mResult = method.onTouchEvent(mTextView, mSpannable, in testOnTouchEventHorizontalMotion()
155 mResult = method.onTouchEvent(mTextView, mSpannable, in testOnTouchEventHorizontalMotion()
165 mResult = method.onTouchEvent(mTextView, mSpannable, in testOnTouchEventHorizontalMotion()
177 mResult = method.onTouchEvent(mTextView, mSpannable, in testOnTouchEventHorizontalMotion()
188 mResult = method.onTouchEvent(mTextView, mSpannable, in testOnTouchEventHorizontalMotion()
[all …]
/cts/tests/tests/os/src/android/os/cts/
DBundleTest.java54 private Spannable mSpannable; field in BundleTest
63 mSpannable = new SpannableString("foo bar"); in setUp()
64 mSpannable.setSpan(new ForegroundColorSpan(0x123456), 0, 3, 0); in setUp()
258 mBundle.putCharSequence(KEY2, mSpannable); in testGetCharSequence()
260 assertSpannableEquals(mSpannable, mBundle.getCharSequence(KEY2)); in testGetCharSequence()
263 assertSpannableEquals(mSpannable, mBundle.getCharSequence(KEY2)); in testGetCharSequence()
269 "one", "two", "three", mSpannable in testGetCharSequenceArray()
276 assertSpannableEquals(mSpannable, ret[3]); in testGetCharSequenceArray()
283 assertSpannableEquals(mSpannable, ret[3]); in testGetCharSequenceArray()
292 list.add(mSpannable); in testGetCharSequenceArrayList()
[all …]
/cts/tests/tests/text/src/android/text/cts/
DSpannableStringBuilderSpanTest.java407 private Spannable mSpannable; field in SpannableStringBuilderSpanTest.SpanWatcherRecorder
438 mSpannable = spannable; in reset()
446 if (text == mSpannable) mAdded.add(new AddedRemoved(span, start, end)); in onSpanAdded()
451 if (text == mSpannable) mRemoved.add(new AddedRemoved(span, start, end)); in onSpanRemoved()
457 if (text == mSpannable) mChanged.add(new Changed(span, ostart, oend, nstart, nend)); in onSpanChanged()