/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 | ForegroundColorSpan.java | 101 public void updateDrawState(@NonNull TextPaint textPaint) { in updateDrawState() argument 102 textPaint.setColor(mColor); in updateDrawState()
|
D | BackgroundColorSpan.java | 100 public void updateDrawState(@NonNull TextPaint textPaint) { in updateDrawState() argument 101 textPaint.bgColor = mColor; in updateDrawState()
|
D | MetricAffectingSpan.java | 36 public abstract void updateMeasureState(@NonNull TextPaint textPaint); in updateMeasureState() argument
|
/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/base/libs/hwui/tests/common/scenes/ |
D | ListViewAnimation.cpp | 87 Paint textPaint; in createListItem() local 88 textPaint.setColor(rand() % 2 ? Color::Black : Color::Grey_500); in createListItem() 89 textPaint.getSkFont().setSize(dp(20)); in createListItem() 90 textPaint.setAntiAlias(true); in createListItem() 93 TestUtils::drawUtf8ToCanvas(&canvas, buf, textPaint, itemHeight, dp(25)); in createListItem() 94 textPaint.getSkFont().setSize(dp(15)); in createListItem() 95 TestUtils::drawUtf8ToCanvas(&canvas, "This is some more text on the card", textPaint, in createListItem()
|
D | ListOfFadedTextAnimation.cpp | 36 Paint textPaint; in createListItem() local 37 textPaint.getSkFont().setSize(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/tests/coretests/src/android/text/ |
D | DynamicLayoutTest.java | 124 final TextPaint textPaint = new TextPaint(); in testGetLineExtra_withoutLinespacing() local 128 text.length(), textPaint, WIDTH) in testGetLineExtra_withoutLinespacing() 135 textPaint, in testGetLineExtra_withoutLinespacing() 152 final TextPaint textPaint = new TextPaint(); in testGetLineExtra_withLinespacing() local 158 text.length(), textPaint, WIDTH) in testGetLineExtra_withLinespacing() 166 textPaint, in testGetLineExtra_withLinespacing()
|
/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 …]
|