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()
224 final int ascdesc = (int)(-mTextMetrics.ascent + mTextMetrics.descent); in drawFrame()
225 final int linegap = (int)(-mTextMetrics.ascent + mTextMetrics.descent in drawFrame()
226 + mTextMetrics.leading); in drawFrame()
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java136 private final FontMetricsInt mTextMetrics = new FontMetricsInt(); field in PointerLocationView
241 mTextPaint.getFontMetricsInt(mTextMetrics); in onMeasure()
242 mHeaderBottom = mHeaderPaddingTop-mTextMetrics.ascent+mTextMetrics.descent+2; in onMeasure()
244 Log.i("foo", "Metrics: ascent=" + mTextMetrics.ascent in onMeasure()
245 + " descent=" + mTextMetrics.descent in onMeasure()
246 + " leading=" + mTextMetrics.leading in onMeasure()
247 + " top=" + mTextMetrics.top in onMeasure()
248 + " bottom=" + mTextMetrics.bottom); in onMeasure()
271 final int base = mHeaderPaddingTop-mTextMetrics.ascent+1; in onDraw()