Home
last modified time | relevance | path

Searched refs:textPaint (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/core/java/android/text/style/
DSubscriptSpan.java81 public void updateDrawState(@NonNull TextPaint textPaint) { in updateDrawState() argument
82 textPaint.baselineShift -= (int) (textPaint.ascent() / 2); in updateDrawState()
86 public void updateMeasureState(@NonNull TextPaint textPaint) { in updateMeasureState() argument
87 textPaint.baselineShift -= (int) (textPaint.ascent() / 2); in updateMeasureState()
DSuperscriptSpan.java78 public void updateDrawState(@NonNull TextPaint textPaint) { in updateDrawState() argument
79 textPaint.baselineShift += (int) (textPaint.ascent() / 2); in updateDrawState()
83 public void updateMeasureState(@NonNull TextPaint textPaint) { in updateMeasureState() argument
84 textPaint.baselineShift += (int) (textPaint.ascent() / 2); in updateMeasureState()
DBackgroundColorSpan.java100 public void updateDrawState(@NonNull TextPaint textPaint) { in updateDrawState() argument
101 textPaint.bgColor = mColor; in updateDrawState()
DForegroundColorSpan.java101 public void updateDrawState(@NonNull TextPaint textPaint) { in updateDrawState() argument
102 textPaint.setColor(mColor); in updateDrawState()
DMetricAffectingSpan.java36 public abstract void updateMeasureState(@NonNull TextPaint textPaint); in updateMeasureState() argument
/frameworks/base/libs/hwui/tests/common/scenes/
DListViewAnimation.cpp85 SkPaint textPaint; in createListItem() local
86 textPaint.setColor(rand() % 2 ? Color::Black : Color::Grey_500); in createListItem()
87 textPaint.setTextSize(dp(20)); in createListItem()
88 textPaint.setAntiAlias(true); in createListItem()
91 TestUtils::drawUtf8ToCanvas(&canvas, buf, textPaint, itemHeight, dp(25)); in createListItem()
92 textPaint.setTextSize(dp(15)); in createListItem()
93 TestUtils::drawUtf8ToCanvas(&canvas, "This is some more text on the card", textPaint, in createListItem()
DListOfFadedTextAnimation.cpp36 SkPaint textPaint; in createListItem() local
37 textPaint.setTextSize(dp(20)); in createListItem()
38 textPaint.setAntiAlias(true); in createListItem()
39 TestUtils::drawUtf8ToCanvas(&canvas, "not that long long text", textPaint, dp(10), dp(30)); in createListItem()
/frameworks/base/core/java/com/android/internal/widget/
DSubtitleView.java305 final Paint textPaint = mTextPaint; in onDraw() local
329 textPaint.setStrokeJoin(Join.ROUND); in onDraw()
330 textPaint.setStrokeWidth(mOutlineWidth); in onDraw()
331 textPaint.setColor(mEdgeColor); in onDraw()
332 textPaint.setStyle(Style.FILL_AND_STROKE); in onDraw()
338 textPaint.setShadowLayer(mShadowRadius, mShadowOffsetX, mShadowOffsetY, mEdgeColor); in onDraw()
346 textPaint.setColor(mForegroundColor); in onDraw()
347 textPaint.setStyle(Style.FILL); in onDraw()
348 textPaint.setShadowLayer(mShadowRadius, -offset, -offset, colorUp); in onDraw()
354 textPaint.setShadowLayer(mShadowRadius, offset, offset, colorDown); in onDraw()
[all …]
/frameworks/support/media/src/main/java/androidx/media/subtitle/
DClosedCaptionRenderer.java236 TextPaint textPaint = getPaint(); in drawEdgeOutline() local
238 Paint.Style previousStyle = textPaint.getStyle(); in drawEdgeOutline()
239 Paint.Join previousJoin = textPaint.getStrokeJoin(); in drawEdgeOutline()
240 float previousWidth = textPaint.getStrokeWidth(); in drawEdgeOutline()
243 textPaint.setStyle(Paint.Style.FILL_AND_STROKE); in drawEdgeOutline()
244 textPaint.setStrokeJoin(Paint.Join.ROUND); in drawEdgeOutline()
245 textPaint.setStrokeWidth(mOutlineWidth); in drawEdgeOutline()
252 textPaint.setStyle(previousStyle); in drawEdgeOutline()
253 textPaint.setStrokeJoin(previousJoin); in drawEdgeOutline()
254 textPaint.setStrokeWidth(previousWidth); in drawEdgeOutline()
[all …]
/frameworks/base/core/tests/coretests/src/android/text/
DDynamicLayoutTest.java123 final TextPaint textPaint = new TextPaint(); in testGetLineExtra_withoutLinespacing() local
127 text.length(), textPaint, WIDTH) in testGetLineExtra_withoutLinespacing()
134 textPaint, in testGetLineExtra_withoutLinespacing()
151 final TextPaint textPaint = new TextPaint(); in testGetLineExtra_withLinespacing() local
157 text.length(), textPaint, WIDTH) in testGetLineExtra_withLinespacing()
165 textPaint, in testGetLineExtra_withLinespacing()
/frameworks/av/packages/MediaComponents/src/com/android/media/subtitle/
DClosedCaptionRenderer.java1337 TextPaint textPaint = getPaint(); in drawEdgeOutline() local
1339 Paint.Style previousStyle = textPaint.getStyle(); in drawEdgeOutline()
1340 Paint.Join previousJoin = textPaint.getStrokeJoin(); in drawEdgeOutline()
1341 float previousWidth = textPaint.getStrokeWidth(); in drawEdgeOutline()
1344 textPaint.setStyle(Paint.Style.FILL_AND_STROKE); in drawEdgeOutline()
1345 textPaint.setStrokeJoin(Paint.Join.ROUND); in drawEdgeOutline()
1346 textPaint.setStrokeWidth(mOutlineWidth); in drawEdgeOutline()
1353 textPaint.setStyle(previousStyle); in drawEdgeOutline()
1354 textPaint.setStrokeJoin(previousJoin); in drawEdgeOutline()
1355 textPaint.setStrokeWidth(previousWidth); in drawEdgeOutline()
[all …]
/frameworks/base/media/java/android/media/
DClosedCaptionRenderer.java1346 TextPaint textPaint = getPaint(); in drawEdgeOutline() local
1348 Paint.Style previousStyle = textPaint.getStyle(); in drawEdgeOutline()
1349 Paint.Join previousJoin = textPaint.getStrokeJoin(); in drawEdgeOutline()
1350 float previousWidth = textPaint.getStrokeWidth(); in drawEdgeOutline()
1353 textPaint.setStyle(Paint.Style.FILL_AND_STROKE); in drawEdgeOutline()
1354 textPaint.setStrokeJoin(Paint.Join.ROUND); in drawEdgeOutline()
1355 textPaint.setStrokeWidth(mOutlineWidth); in drawEdgeOutline()
1362 textPaint.setStyle(previousStyle); in drawEdgeOutline()
1363 textPaint.setStrokeJoin(previousJoin); in drawEdgeOutline()
1364 textPaint.setStrokeWidth(previousWidth); in drawEdgeOutline()
[all …]
/frameworks/base/libs/hwui/tests/unit/
DFrameBuilderTests.cpp600 SkPaint textPaint; in RENDERTHREAD_OPENGL_PIPELINE_TEST() local
601 textPaint.setAntiAlias(true); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
602 textPaint.setTextSize(20); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
603 textPaint.setFlags(textPaint.getFlags() | SkPaint::kStrikeThruText_ReserveFlag); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
605 TestUtils::drawUtf8ToCanvas(&canvas, "test text", textPaint, 10, 100 * (i + 1)); in RENDERTHREAD_OPENGL_PIPELINE_TEST()