Searched refs:textPaint (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/libs/hwui/tests/common/scenes/ |
D | ListViewAnimation.cpp | 85 SkPaint textPaint; in createListItem() local 86 textPaint.setTextEncoding(SkPaint::kGlyphID_TextEncoding); in createListItem() 87 textPaint.setColor(rand() % 2 ? Color::Black : Color::Grey_500); in createListItem() 88 textPaint.setTextSize(dp(20)); in createListItem() 89 textPaint.setAntiAlias(true); in createListItem() 92 TestUtils::drawUtf8ToCanvas(&canvas, buf, textPaint, itemHeight, dp(25)); in createListItem() 93 textPaint.setTextSize(dp(15)); in createListItem() 94 TestUtils::drawUtf8ToCanvas(&canvas, "This is some more text on the card", textPaint, in createListItem()
|
D | ListOfFadedTextAnimation.cpp | 37 SkPaint textPaint; in createListItem() local 38 textPaint.setTextSize(dp(20)); in createListItem() 39 textPaint.setAntiAlias(true); in createListItem() 40 TestUtils::drawUtf8ToCanvas(&canvas, "not that long long text", textPaint, dp(10), dp(30)); in createListItem()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | SubtitleView.java | 302 final Paint textPaint = mTextPaint; in onDraw() local 326 textPaint.setStrokeJoin(Join.ROUND); in onDraw() 327 textPaint.setStrokeWidth(mOutlineWidth); in onDraw() 328 textPaint.setColor(mEdgeColor); in onDraw() 329 textPaint.setStyle(Style.FILL_AND_STROKE); in onDraw() 335 textPaint.setShadowLayer(mShadowRadius, mShadowOffsetX, mShadowOffsetY, mEdgeColor); in onDraw() 343 textPaint.setColor(mForegroundColor); in onDraw() 344 textPaint.setStyle(Style.FILL); in onDraw() 345 textPaint.setShadowLayer(mShadowRadius, -offset, -offset, colorUp); in onDraw() 351 textPaint.setShadowLayer(mShadowRadius, offset, offset, colorDown); in onDraw() [all …]
|
/frameworks/base/media/java/android/media/ |
D | ClosedCaptionRenderer.java | 1346 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/ |
D | FrameBuilderTests.cpp | 608 SkPaint textPaint; in RENDERTHREAD_OPENGL_PIPELINE_TEST() local 609 textPaint.setAntiAlias(true); in RENDERTHREAD_OPENGL_PIPELINE_TEST() 610 textPaint.setTextSize(20); in RENDERTHREAD_OPENGL_PIPELINE_TEST() 611 textPaint.setFlags(textPaint.getFlags() | SkPaint::kStrikeThruText_ReserveFlag); in RENDERTHREAD_OPENGL_PIPELINE_TEST() 612 textPaint.setTextEncoding(SkPaint::kGlyphID_TextEncoding); in RENDERTHREAD_OPENGL_PIPELINE_TEST() 614 TestUtils::drawUtf8ToCanvas(&canvas, "test text", textPaint, 10, 100 * (i + 1)); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
|