Home
last modified time | relevance | path

Searched refs:getColorAt (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/text/
DSpanColorsTest.java61 assertThat(mSpanColors.getColorAt(27)).isEqualTo(SpanColors.NO_COLOR_FOUND); in testNoColorFound()
67 assertThat(mSpanColors.getColorAt(3)).isEqualTo(Color.RED); in testSingleColorSpan()
73 assertThat(mSpanColors.getColorAt(2)).isEqualTo(Color.RED); in testMultipleColorSpans()
74 assertThat(mSpanColors.getColorAt(5)).isEqualTo(SpanColors.NO_COLOR_FOUND); in testMultipleColorSpans()
75 assertThat(mSpanColors.getColorAt(8)).isEqualTo(Color.GREEN); in testMultipleColorSpans()
76 assertThat(mSpanColors.getColorAt(13)).isEqualTo(Color.BLUE); in testMultipleColorSpans()
/frameworks/base/core/java/android/text/
DSpanColors.java67 public @ColorInt int getColorAt(int index) { in getColorAt() method in SpanColors
DLayout.java1099 var textColor = mSpanColors.getColorAt(index); in drawHighContrastBackground()