Home
last modified time | relevance | path

Searched refs:getSpanFlags (Results 1 – 12 of 12) sorted by relevance

/cts/tests/tests/text/src/android/text/method/cts/
DMetaKeyKeyListenerTest.java111 assertEquals(Spanned.SPAN_POINT_POINT, content.getSpanFlags(Selection.SELECTION_START)); in testAdjustMetaAfterKeypress()
112 assertEquals(Spanned.SPAN_POINT_POINT, content.getSpanFlags(Selection.SELECTION_END)); in testAdjustMetaAfterKeypress()
120 assertEquals(Spanned.SPAN_POINT_POINT, content.getSpanFlags(Selection.SELECTION_START)); in testAdjustMetaAfterKeypress()
121 assertEquals(Spanned.SPAN_POINT_POINT, content.getSpanFlags(Selection.SELECTION_END)); in testAdjustMetaAfterKeypress()
129 assertEquals(Spanned.SPAN_POINT_POINT, content.getSpanFlags(Selection.SELECTION_START)); in testAdjustMetaAfterKeypress()
130 assertEquals(Spanned.SPAN_POINT_POINT, content.getSpanFlags(Selection.SELECTION_END)); in testAdjustMetaAfterKeypress()
155 assertEquals(Spanned.SPAN_POINT_POINT, text.getSpanFlags(Selection.SELECTION_START)); in testResetMetaState()
156 assertEquals(Spanned.SPAN_POINT_POINT, text.getSpanFlags(Selection.SELECTION_END)); in testResetMetaState()
163 assertEquals(Spanned.SPAN_POINT_POINT, text.getSpanFlags(Selection.SELECTION_START)); in testResetMetaState()
164 assertEquals(Spanned.SPAN_POINT_POINT, text.getSpanFlags(Selection.SELECTION_END)); in testResetMetaState()
[all …]
DQwertyKeyListenerTest.java221 assertEquals(Spannable.SPAN_EXCLUSIVE_EXCLUSIVE, content.getSpanFlags(repl[0])); in testMarkAsReplaced()
228 assertEquals(Spannable.SPAN_EXCLUSIVE_EXCLUSIVE, content.getSpanFlags(repl[0])); in testMarkAsReplaced()
DDigitsKeyListenerTest.java114 assertEquals(Spanned.SPAN_POINT_POINT, filtered.getSpanFlags(what)); in testFilter1()
193 assertEquals(Spanned.SPAN_POINT_POINT, filtered.getSpanFlags(what)); in testFilter2()
276 assertEquals(Spanned.SPAN_POINT_POINT, filtered.getSpanFlags(what)); in testFilter3()
362 assertEquals(Spanned.SPAN_POINT_POINT, filtered.getSpanFlags(what)); in testFilter4()
476 assertEquals(Spanned.SPAN_POINT_POINT, filtered.getSpanFlags(what)); in testFilter4_internationalized()
DNumberKeyListenerTest.java83 assertEquals(Spanned.SPAN_POINT_POINT, filtered.getSpanFlags(what)); in testFilter()
DLinkMovementMethodTest.java131 assertEquals(Spanned.SPAN_POINT_POINT, spannable.getSpanFlags(span)); in testOnTakeFocus()
/cts/tests/tests/text/src/android/text/cts/
DSpannableStringTest.java84 assertEquals(SpannableString.SPAN_POINT_POINT, spannable.getSpanFlags(null)); in testSetSpan()
91 spannable.getSpanFlags(underlineSpan)); in testSetSpan()
117 assertEquals(2, spannable.getSpanFlags(underlineSpan)); in testRemoveSpan()
122 assertEquals(0, spannable.getSpanFlags(underlineSpan)); in testRemoveSpan()
128 assertEquals(0, spannable.getSpanFlags(underlineSpan)); in testRemoveSpan()
181 assertEquals(expected[i][3], second.getSpanFlags(secondSpan)); in testSubsequence_copiesSpans()
204 assertEquals(first.getSpanFlags(firstSpan), second.getSpanFlags(secondSpan)); in testCopyConstructor_copiesAllSpans()
DSpannableStringBuilderTest.java99 assertEquals(0, builder.getSpanFlags(mUnderlineSpan)); in testGetSpanFlags()
105 assertEquals(Spanned.SPAN_EXCLUSIVE_INCLUSIVE, builder.getSpanFlags(mUnderlineSpan)); in testGetSpanFlags()
106 assertEquals(Spanned.SPAN_INCLUSIVE_EXCLUSIVE, builder.getSpanFlags(mStrikethroughSpan)); in testGetSpanFlags()
107 assertEquals(0, builder.getSpanFlags(new Object())); in testGetSpanFlags()
146 assertEquals(Spanned.SPAN_POINT_POINT, builder.getSpanFlags(null)); in testSetSpan()
151 assertEquals(Spanned.SPAN_EXCLUSIVE_EXCLUSIVE, builder.getSpanFlags(mUnderlineSpan)); in testSetSpan()
420 assertEquals(2, builder.getSpanFlags(mUnderlineSpan)); in testClearSpans()
425 assertEquals(0, builder.getSpanFlags(mUnderlineSpan)); in testClearSpans()
459 assertEquals(2, builder.getSpanFlags(mUnderlineSpan)); in testRemoveSpan()
464 assertEquals(2, builder.getSpanFlags(mUnderlineSpan)); in testRemoveSpan()
[all …]
DInputFilter_AllCapsTest.java135 assertEquals(Spanned.SPAN_INCLUSIVE_INCLUSIVE, spannedResult.getSpanFlags(span)); in testFilter_greekWithSpans()
DAlteredCharSequenceTest.java159 public int getSpanFlags(Object tag) { in getSpanFlags() method in AlteredCharSequenceTest.MockSpanned
DPrecomputedTextTest.java227 assertTrue((s.getSpanFlags(SPAN) & Spanned.SPAN_INCLUSIVE_EXCLUSIVE) != 0); in testSpannedInterface_Spanned()
245 assertTrue((s.getSpanFlags(span) & Spanned.SPAN_INCLUSIVE_EXCLUSIVE) != 0); in testSpannedInterface_Spannable()
279 assertEquals(0, s.getSpanFlags(SPAN)); in testSpannedInterface_String()
DTextUtilsTest.java386 assertEquals(Spanned.SPAN_INCLUSIVE_INCLUSIVE, dest1.getSpanFlags(urlSpan)); in testCopySpansFrom()
389 assertEquals(Spanned.SPAN_EXCLUSIVE_EXCLUSIVE, dest1.getSpanFlags(bgColorSpan)); in testCopySpansFrom()
401 assertEquals(Spanned.SPAN_EXCLUSIVE_INCLUSIVE, dest2.getSpanFlags(urlSpan)); in testCopySpansFrom()
2075 assertEquals(Spanned.SPAN_INCLUSIVE_INCLUSIVE, ret.getSpanFlags(spans[0])); in testWriteToParcel()
2101 assertEquals(Spanned.SPAN_INCLUSIVE_INCLUSIVE, ret.getSpanFlags(spans[0])); in testWriteToParcel()
2111 assertEquals(Spanned.SPAN_INCLUSIVE_EXCLUSIVE, ret.getSpanFlags(spans[1])); in testWriteToParcel()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewTest.java6278 assertEquals(source.getSpanFlags(span), result.getSpanFlags(span)); in testAllCaps_SpansArePreserved()