/frameworks/base/core/java/android/text/style/ |
D | SubscriptSpan.java | 81 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()
|
D | SuperscriptSpan.java | 78 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()
|
D | BackgroundColorSpan.java | 100 public void updateDrawState(@NonNull TextPaint textPaint) { in updateDrawState() argument 101 textPaint.bgColor = mColor; in updateDrawState()
|
D | ForegroundColorSpan.java | 101 public void updateDrawState(@NonNull TextPaint textPaint) { in updateDrawState() argument 102 textPaint.setColor(mColor); in updateDrawState()
|
D | MetricAffectingSpan.java | 36 public abstract void updateMeasureState(@NonNull TextPaint textPaint); in updateMeasureState() argument
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
D | ListViewAnimation.cpp | 85 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()
|
D | ListOfFadedTextAnimation.cpp | 36 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/ |
D | SubtitleView.java | 305 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/ |
D | ClosedCaptionRenderer.java | 236 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/ |
D | DynamicLayoutTest.java | 123 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/ |
D | ClosedCaptionRenderer.java | 1337 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/ |
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 | 600 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()
|