Searched refs:mSpannable (Results 1 – 4 of 4) sorted by relevance
/cts/tests/tests/text/src/android/text/method/cts/ |
D | LinkMovementMethodTest.java | 52 private Spannable mSpannable; field in LinkMovementMethodTest 77 mSpannable = (Spannable) mView.getText(); in setUp() 142 assertSelection(mSpannable, -1); in testOnKeyDown() 145 assertFalse(mMethod.onKeyDown(mView, mSpannable, KeyEvent.KEYCODE_ENTER, in testOnKeyDown() 151 Selection.setSelection(mSpannable, mSpannable.getSpanStart(mClickable0), in testOnKeyDown() 152 mSpannable.getSpanEnd(mClickable0)); in testOnKeyDown() 155 assertFalse(mMethod.onKeyDown(mView, mSpannable, KeyEvent.KEYCODE_DPAD_CENTER, in testOnKeyDown() 161 Selection.setSelection(mSpannable, mSpannable.getSpanEnd(mClickable0), in testOnKeyDown() 162 mSpannable.getSpanStart(mClickable1)); in testOnKeyDown() 165 assertFalse(mMethod.onKeyDown(mView, mSpannable, KeyEvent.KEYCODE_ENTER, in testOnKeyDown() [all …]
|
D | ScrollingMovementMethodTest.java | 53 private Spannable mSpannable; field in ScrollingMovementMethodTest 66 mSpannable = (Spannable) mTextView.getText(); in setUp() 96 mSpannable = (Spannable) mTextView.getText(); in testOnTouchEventHorizontalMotion() 112 mResult = method.onTouchEvent(mTextView, mSpannable, in testOnTouchEventHorizontalMotion() 122 mResult = method.onTouchEvent(mTextView, mSpannable, in testOnTouchEventHorizontalMotion() 131 mResult = method.onTouchEvent(mTextView, mSpannable, in testOnTouchEventHorizontalMotion() 139 mResult = method.onTouchEvent(mTextView, mSpannable, in testOnTouchEventHorizontalMotion() 149 mResult = method.onTouchEvent(mTextView, mSpannable, in testOnTouchEventHorizontalMotion() 161 mResult = method.onTouchEvent(mTextView, mSpannable, in testOnTouchEventHorizontalMotion() 172 mResult = method.onTouchEvent(mTextView, mSpannable, in testOnTouchEventHorizontalMotion() [all …]
|
/cts/tests/tests/os/src/android/os/cts/ |
D | BundleTest.java | 51 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/ |
D | SpannableStringBuilderSpanTest.java | 388 private Spannable mSpannable; field in SpannableStringBuilderSpanTest.SpanWatcherRecorder 419 mSpannable = spannable; in reset() 427 if (text == mSpannable) mAdded.add(new AddedRemoved(span, start, end)); in onSpanAdded() 432 if (text == mSpannable) mRemoved.add(new AddedRemoved(span, start, end)); in onSpanRemoved() 438 if (text == mSpannable) mChanged.add(new Changed(span, ostart, oend, nstart, nend)); in onSpanChanged()
|