Home
last modified time | relevance | path

Searched refs:mTextMetrics (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/
DTestWallpaper.java59 private final Paint.FontMetrics mTextMetrics = new Paint.FontMetrics(); field in TestWallpaper.ClockEngine
113 mTextPaint.getFontMetrics(mTextMetrics); in onCreate()
216 final int ascdesc = (int)(-mTextMetrics.ascent + mTextMetrics.descent); in drawFrame()
217 final int linegap = (int)(-mTextMetrics.ascent + mTextMetrics.descent in drawFrame()
218 + mTextMetrics.leading); in drawFrame()
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java120 private final FontMetricsInt mTextMetrics = new FontMetricsInt(); field in PointerLocationView
195 mTextPaint.getFontMetricsInt(mTextMetrics); in onMeasure()
196 mHeaderBottom = -mTextMetrics.ascent+mTextMetrics.descent+2; in onMeasure()
198 Log.i("foo", "Metrics: ascent=" + mTextMetrics.ascent in onMeasure()
199 + " descent=" + mTextMetrics.descent in onMeasure()
200 + " leading=" + mTextMetrics.leading in onMeasure()
201 + " top=" + mTextMetrics.top in onMeasure()
202 + " bottom=" + mTextMetrics.bottom); in onMeasure()
225 final int base = -mTextMetrics.ascent+1; in onDraw()