Searched refs:fmi (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/text/ |
D | StaticLayoutTest.java | 50 FontMetricsInt fmi = b.paint.getFontMetricsInt(); in testGetters1() local 53 Log.i("TG1:paint", fmi.toString()); in testGetters1() 57 fmi.ascent, fmi.descent); in testGetters1() 77 FontMetricsInt fmi = b.paint.getFontMetricsInt(); in testGetters2() local 80 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testGetters2() 81 fmi.top, fmi.bottom); in testGetters2() 93 FontMetricsInt fmi = b.paint.getFontMetricsInt(); in testGetters3() local 96 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testGetters3() 97 fmi.top, fmi.descent, in testGetters3() 98 fmi.ascent, fmi.bottom); in testGetters3() [all …]
|
/frameworks/base/core/java/android/text/ |
D | TextLine.java | 250 float metrics(FontMetricsInt fmi) { in metrics() argument 251 return measure(mLen, false, fmi); in metrics() 267 float measure(int offset, boolean trailing, FontMetricsInt fmi) { in measure() argument 277 return measureRun(0, offset, mLen, false, fmi); in measure() 280 return measureRun(0, offset, mLen, true, fmi); in measure() 313 return h += measureRun(segstart, offset, j, runIsRtl, fmi); in measure() 316 float w = measureRun(segstart, j, j, runIsRtl, fmi); in measure() 386 FontMetricsInt fmi) { 387 return handleRun(start, offset, limit, runIsRtl, null, 0, 0, 0, 0, fmi, true); 654 private static void expandMetricsFromPaint(FontMetricsInt fmi, TextPaint wp) { in expandMetricsFromPaint() argument [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | Paint_Delegate.java | 599 long nativeTypeface, FontMetricsInt fmi) { in nGetFontMetricsInt() argument 608 if (fmi != null) { in nGetFontMetricsInt() 610 fmi.top = - javaMetrics.getMaxAscent(); in nGetFontMetricsInt() 611 fmi.ascent = - javaMetrics.getAscent(); in nGetFontMetricsInt() 612 fmi.descent = javaMetrics.getDescent(); in nGetFontMetricsInt() 613 fmi.bottom = javaMetrics.getMaxDescent(); in nGetFontMetricsInt() 614 fmi.leading = javaMetrics.getLeading(); in nGetFontMetricsInt()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Paint.java | 1667 public int getFontMetricsInt(FontMetricsInt fmi) { in getFontMetricsInt() argument 1668 return nGetFontMetricsInt(mNativePaint, mNativeTypeface, fmi); in getFontMetricsInt() 1672 long typefacePtr, FontMetricsInt fmi); in nGetFontMetricsInt() argument
|