Home
last modified time | relevance | path

Searched refs:fmi (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/text/
DStaticLayoutTest.java44 FontMetricsInt fmi = b.paint.getFontMetricsInt(); in testGetters1() local
47 Log.i("TG1:paint", fmi.toString()); in testGetters1()
51 fmi.ascent, fmi.descent); in testGetters1()
71 FontMetricsInt fmi = b.paint.getFontMetricsInt(); in testGetters2() local
74 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testGetters2()
75 fmi.top, fmi.bottom); in testGetters2()
87 FontMetricsInt fmi = b.paint.getFontMetricsInt(); in testGetters3() local
90 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testGetters3()
91 fmi.top, fmi.descent, in testGetters3()
92 fmi.ascent, fmi.bottom); in testGetters3()
[all …]
/frameworks/base/core/java/android/text/
DTextLine.java260 float metrics(FontMetricsInt fmi) { in metrics() argument
261 return measure(mLen, false, fmi); in metrics()
277 float measure(int offset, boolean trailing, FontMetricsInt fmi) { in measure() argument
287 return measureRun(0, offset, mLen, false, fmi); in measure()
290 return measureRun(0, offset, mLen, true, fmi); in measure()
327 return h += measureRun(segstart, offset, j, runIsRtl, fmi); in measure()
330 float w = measureRun(segstart, j, j, runIsRtl, fmi); in measure()
407 FontMetricsInt fmi) {
408 return handleRun(start, offset, limit, runIsRtl, null, 0, 0, 0, 0, fmi, true);
675 private static void expandMetricsFromPaint(FontMetricsInt fmi, TextPaint wp) { in expandMetricsFromPaint() argument
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DPaint_Delegate.java541 /*package*/ static int getFontMetricsInt(Paint thisPaint, FontMetricsInt fmi) { in getFontMetricsInt() argument
550 if (fmi != null) { in getFontMetricsInt()
552 fmi.top = - javaMetrics.getMaxAscent(); in getFontMetricsInt()
553 fmi.ascent = - javaMetrics.getAscent(); in getFontMetricsInt()
554 fmi.descent = javaMetrics.getDescent(); in getFontMetricsInt()
555 fmi.bottom = javaMetrics.getMaxDescent(); in getFontMetricsInt()
556 fmi.leading = javaMetrics.getLeading(); in getFontMetricsInt()
/frameworks/base/graphics/java/android/graphics/
DPaint.java1190 public native int getFontMetricsInt(FontMetricsInt fmi); in getFontMetricsInt() argument