Home
last modified time | relevance | path

Searched refs:fontMetrics (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/
DCenteredImageSpan.java36 Paint paint, CharSequence text, int start, int end, Paint.FontMetricsInt fontMetrics) { in getSize() argument
40 if (fontMetrics != null) { in getSize()
42 fontMetrics.ascent = paintFontMetrics.ascent; in getSize()
43 fontMetrics.descent = paintFontMetrics.descent; in getSize()
44 fontMetrics.top = paintFontMetrics.top; in getSize()
45 fontMetrics.bottom = paintFontMetrics.bottom; in getSize()
/frameworks/base/tests/FlickerTests/test-apps/flickerapp/src/com/android/server/wm/flicker/testapp/
DMailAdapter.java66 Paint.FontMetrics fontMetrics = paint.getFontMetrics(); in draw() local
67 float distance = (fontMetrics.bottom - fontMetrics.top) / 2 - fontMetrics.bottom; in draw()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DRestrictedLockImageSpan.java65 Paint.FontMetricsInt fontMetrics) { in getSize() argument
66 int size = super.getSize(paint, text, start, end, fontMetrics); in getSize()
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/app/
DPerfTimeline.java107 Paint.FontMetrics fontMetrics = mTextPaint.getFontMetrics(); in invalidateTextPaintAndMeasurements() local
108 mTextHeight = fontMetrics.bottom; in invalidateTextPaintAndMeasurements()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/shadow/
DDoubleShadowTextClock.kt126 val metrics = paint.fontMetrics in initializeAttributes()
/frameworks/base/graphics/java/android/graphics/
DPaint.java2458 public void set(@NonNull FontMetrics fontMetrics) { in set() argument
2460 top = (int) Math.floor(fontMetrics.top); in set()
2461 ascent = Math.round(fontMetrics.ascent); in set()
2462 descent = Math.round(fontMetrics.descent); in set()
2463 bottom = (int) Math.ceil(fontMetrics.bottom); in set()
2464 leading = Math.round(fontMetrics.leading); in set()
/frameworks/base/core/java/com/android/internal/widget/
DEmphasizedNotificationButton.java408 @Nullable Paint.FontMetricsInt fontMetrics) { in getSize() argument
/frameworks/base/packages/SystemUI/customization/src/com/android/systemui/shared/clocks/
DAnimatableClockView.kt118 get() = paint?.fontMetrics?.bottom ?: 0f in <lambda>()
/frameworks/base/core/java/android/widget/
DEditor.java5387 final Paint.FontMetrics fontMetrics = mTextView.getPaint().getFontMetrics(); in tooLargeTextForMagnifier() local
5388 final float glyphHeight = fontMetrics.descent - fontMetrics.ascent; in tooLargeTextForMagnifier()