Searched refs:fmi (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/text/ |
D | StaticLayoutTest.java | 107 FontMetricsInt fmi = b.paint.getFontMetricsInt(); in testGetters1() local 110 Log.i("TG1:paint", fmi.toString()); in testGetters1() 114 new int[][]{{fmi.ascent, fmi.descent, 0}}); in testGetters1() 134 FontMetricsInt fmi = b.paint.getFontMetricsInt(); in testLineMetrics_withPadding() local 137 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testLineMetrics_withPadding() 138 new int[][]{{fmi.top, fmi.bottom, 0}}); in testLineMetrics_withPadding() 150 FontMetricsInt fmi = b.paint.getFontMetricsInt(); in testLineMetrics_withPaddingAndWidth() local 153 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testLineMetrics_withPaddingAndWidth() 155 {fmi.top, fmi.descent, 0}, in testLineMetrics_withPaddingAndWidth() 156 {fmi.ascent, fmi.bottom, 0} in testLineMetrics_withPaddingAndWidth() [all …]
|
/frameworks/base/core/java/android/text/ |
D | TextLine.java | 305 public float metrics(FontMetricsInt fmi) { in metrics() argument 306 return measure(mLen, false, fmi); in metrics() 351 @NonNull FontMetricsInt fmi) { in measure() argument 375 return h + measureRun(segStart, offset, j, runIsRtl, fmi); in measure() 378 final float segmentWidth = measureRun(segStart, j, j, runIsRtl, fmi); in measure() 408 public float[] measureAllOffsets(boolean[] trailing, FontMetricsInt fmi) { 431 final float w = measureRun(segStart, j, j, runIsRtl, fmi); 435 FontMetricsInt crtfmi = advance ? fmi : null; 509 FontMetricsInt fmi) { 510 return handleRun(start, offset, limit, runIsRtl, null, 0, 0, 0, 0, fmi, true); [all …]
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | Paint_Delegate.java | 613 /*package*/ static int nGetFontMetricsInt(long nativePaint, FontMetricsInt fmi) { in nGetFontMetricsInt() argument 623 if (fmi != null) { in nGetFontMetricsInt() 625 fmi.top = (int)(- javaMetrics.getMaxAscent() * 1.15); in nGetFontMetricsInt() 626 fmi.ascent = - javaMetrics.getAscent(); in nGetFontMetricsInt() 627 fmi.descent = javaMetrics.getDescent(); in nGetFontMetricsInt() 628 fmi.bottom = (int)(javaMetrics.getMaxDescent() * 1.15); in nGetFontMetricsInt() 629 fmi.leading = javaMetrics.getLeading(); in nGetFontMetricsInt()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Paint.java | 2135 public int getFontMetricsInt(FontMetricsInt fmi) { in getFontMetricsInt() argument 2136 return nGetFontMetricsInt(mNativePaint, fmi); in getFontMetricsInt() 3085 private static native int nGetFontMetricsInt(long paintPtr, FontMetricsInt fmi); in nGetFontMetricsInt() argument
|