/frameworks/base/core/java/android/text/style/ |
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 | 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 | 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/packages/SystemUI/src/com/android/systemui/battery/unified/ |
D | BatterySpaceSharingPercentTextDrawable.kt | 63 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>()
|
D | BatteryPercentTextOnlyDrawable.kt | 55 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/ |
D | ListViewAnimation.cpp | 96 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()
|
D | ListOfFadedTextAnimation.cpp | 37 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()
|
D | StretchyListViewAnimation.cpp | 146 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/ |
D | SubtitleView.java | 306 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 …]
|
D | EmphasizedNotificationButton.java | 444 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/ |
D | TextAppearanceInfo.java | 199 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/ |
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 …]
|
/frameworks/base/core/java/android/text/ |
D | GraphemeClusterSegmentFinder.java | 46 @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/ |
D | android-33.jar | AndroidManifest.xml
META-INF/
META-INF/MANIFEST.MF
NOTICES/
NOTICES/libcore ... |