Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/text/style/
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()
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()
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/packages/SystemUI/src/com/android/systemui/battery/unified/
DBatterySpaceSharingPercentTextDrawable.kt63 private val textPaint = in <lambda>() constant
74 textPaint.textSize = 6f * hScale in <lambda>()
79 textPaint.textSize = 9f * hScale in <lambda>()
104 val offsetY = (totalAvailableHeight + textPaint.textSize) / 2 - (verticalNudge * vScale) in <lambda>()
107 val textWidth = textPaint.measureText(percentText) in <lambda>()
114 textPaint in <lambda>()
119 textPaint.color = tintColor in <lambda>()
128 textPaint.colorFilter = colorFilter in <lambda>()
DBatteryPercentTextOnlyDrawable.kt55 private val textPaint = in <lambda>() constant
71 textPaint.textSize = TextSize * vScale in <lambda>()
81 val offsetY = (totalAvailableHeight + textPaint.textSize) / 2 - (VerticalNudge * vScale) in <lambda>()
84 val textWidth = textPaint.measureText(percentText) in <lambda>()
93 textPaint in <lambda>()
98 textPaint.color = tintColor in <lambda>()
/frameworks/base/libs/hwui/tests/common/scenes/
DListViewAnimation.cpp96 Paint textPaint; in createListItem() local
97 textPaint.setColor(rand() % 2 ? Color::Black : Color::Grey_500); in createListItem()
98 textPaint.getSkFont().setSize(dp(20)); in createListItem()
99 textPaint.setAntiAlias(true); in createListItem()
102 TestUtils::drawUtf8ToCanvas(&canvas, buf, textPaint, itemHeight, dp(25)); in createListItem()
103 textPaint.getSkFont().setSize(dp(15)); in createListItem()
104 TestUtils::drawUtf8ToCanvas(&canvas, "This is some more text on the card", textPaint, in createListItem()
DListOfFadedTextAnimation.cpp37 Paint textPaint; in createListItem() local
38 textPaint.getSkFont().setSize(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()
DStretchyListViewAnimation.cpp146 Paint textPaint; in createListItem() local
147 textPaint.setColor(rand() % 2 ? Color::Black : Color::Grey_500); in createListItem()
148 textPaint.getSkFont().setSize(dp(20)); in createListItem()
149 textPaint.setAntiAlias(true); in createListItem()
152 TestUtils::drawUtf8ToCanvas(&canvas, buf, textPaint, itemHeight, dp(25)); in createListItem()
153 textPaint.getSkFont().setSize(dp(15)); in createListItem()
155 TestUtils::drawUtf8ToCanvas(&canvas, "I have a hole punch", textPaint, itemHeight, in createListItem()
158 TestUtils::drawUtf8ToCanvas(&canvas, "This is some more text on the card", textPaint, in createListItem()
/frameworks/base/core/java/com/android/internal/widget/
DSubtitleView.java306 final Paint textPaint = mTextPaint; in onDraw() local
330 textPaint.setStrokeJoin(Join.ROUND); in onDraw()
331 textPaint.setStrokeWidth(mOutlineWidth); in onDraw()
332 textPaint.setColor(mEdgeColor); in onDraw()
333 textPaint.setStyle(Style.FILL_AND_STROKE); in onDraw()
339 textPaint.setShadowLayer(mShadowRadius, mShadowOffsetX, mShadowOffsetY, mEdgeColor); in onDraw()
347 textPaint.setColor(mForegroundColor); in onDraw()
348 textPaint.setStyle(Style.FILL); in onDraw()
349 textPaint.setShadowLayer(mShadowRadius, -offset, -offset, colorUp); in onDraw()
355 textPaint.setShadowLayer(mShadowRadius, offset, offset, colorDown); in onDraw()
[all …]
DEmphasizedNotificationButton.java444 public void updateMeasureState(@NonNull TextPaint textPaint) { in updateMeasureState() argument
445 final int textHeight = (int) -textPaint.ascent(); in updateMeasureState()
466 textPaint.baselineShift += mBaselineShiftOffset; in updateMeasureState()
470 public void updateDrawState(TextPaint textPaint) { in updateDrawState() argument
471 if (textPaint == null) { in updateDrawState()
486 textPaint.baselineShift += mBaselineShiftOffset; in updateDrawState()
/frameworks/base/core/java/android/view/inputmethod/
DTextAppearanceInfo.java199 TextPaint textPaint = new TextPaint(); in createFromTextView() local
200 textPaint.set(textView.getPaint()); // Copy from textView in createFromTextView()
212 span.updateDrawState(textPaint); // Override the TextPaint in createFromTextView()
217 Typeface typeface = textPaint.getTypeface(); in createFromTextView()
227 builder.setTextSize(textPaint.getTextSize()) in createFromTextView()
228 .setTextLocales(textPaint.getTextLocales()) in createFromTextView()
232 .setShadowDx(textPaint.getShadowLayerDx()) in createFromTextView()
233 .setShadowDy(textPaint.getShadowLayerDy()) in createFromTextView()
234 .setShadowRadius(textPaint.getShadowLayerRadius()) in createFromTextView()
235 .setShadowColor(textPaint.getShadowLayerColor()) in createFromTextView()
[all …]
/frameworks/base/core/tests/coretests/src/android/text/
DDynamicLayoutTest.java124 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/
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/core/java/android/text/
DGraphemeClusterSegmentFinder.java46 @NonNull CharSequence text, @NonNull TextPaint textPaint) { in GraphemeClusterSegmentFinder() argument
60 textPaint.getTextWidths(chars, 0, text.length(), advances); in GraphemeClusterSegmentFinder()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...