Home
last modified time | relevance | path

Searched refs:resultSpan (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/java/com/android/internal/util/
DNotificationColorUtil.java189 Object resultSpan = span; in invertCharSequenceColors() local
190 if (resultSpan instanceof CharacterStyle) { in invertCharSequenceColors()
191 resultSpan = ((CharacterStyle) span).getUnderlying(); in invertCharSequenceColors()
193 if (resultSpan instanceof TextAppearanceSpan) { in invertCharSequenceColors()
196 if (processedSpan != resultSpan) { in invertCharSequenceColors()
197 resultSpan = processedSpan; in invertCharSequenceColors()
200 resultSpan = span; in invertCharSequenceColors()
202 } else if (resultSpan instanceof ForegroundColorSpan) { in invertCharSequenceColors()
203 ForegroundColorSpan originalSpan = (ForegroundColorSpan) resultSpan; in invertCharSequenceColors()
205 resultSpan = new ForegroundColorSpan(processColor(foregroundColor)); in invertCharSequenceColors()
[all …]
/frameworks/base/core/java/android/app/
DNotification.java2146 Object resultSpan = span; in removeTextSizeSpans() local
2147 if (resultSpan instanceof CharacterStyle) { in removeTextSizeSpans()
2148 resultSpan = ((CharacterStyle) span).getUnderlying(); in removeTextSizeSpans()
2150 if (resultSpan instanceof TextAppearanceSpan) { in removeTextSizeSpans()
2151 TextAppearanceSpan originalSpan = (TextAppearanceSpan) resultSpan; in removeTextSizeSpans()
2152 resultSpan = new TextAppearanceSpan( in removeTextSizeSpans()
2158 } else if (resultSpan instanceof RelativeSizeSpan in removeTextSizeSpans()
2159 || resultSpan instanceof AbsoluteSizeSpan) { in removeTextSizeSpans()
2162 resultSpan = span; in removeTextSizeSpans()
2164 builder.setSpan(resultSpan, ss.getSpanStart(span), ss.getSpanEnd(span), in removeTextSizeSpans()
[all …]