/frameworks/base/core/tests/coretests/src/android/text/ |
StaticLayoutTest.java | 44 FontMetricsInt fmi = b.paint.getFontMetricsInt(); local 47 Log.i("TG1:paint", fmi.toString()); 51 fmi.ascent, fmi.descent); 71 FontMetricsInt fmi = b.paint.getFontMetricsInt(); local 74 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, 75 fmi.top, fmi.bottom) 87 FontMetricsInt fmi = b.paint.getFontMetricsInt(); local 105 FontMetricsInt fmi = b.paint.getFontMetricsInt(); local 126 FontMetricsInt fmi = b.paint.getFontMetricsInt(); local 154 FontMetricsInt fmi = b.paint.getFontMetricsInt(); local 175 FontMetricsInt fmi = b.paint.getFontMetricsInt(); local 197 FontMetricsInt fmi = b.paint.getFontMetricsInt(); local [all...] |
/frameworks/base/core/java/android/text/ |
TextLine.java | 263 * @param fmi receives font metrics information, can be null 266 float metrics(FontMetricsInt fmi) { 267 return measure(mLen, false, fmi); 278 * @param fmi receives metrics information about the requested 283 float measure(int offset, boolean trailing, FontMetricsInt fmi) { 293 return measureRun(0, offset, mLen, false, fmi); 296 return measureRun(0, offset, mLen, true, fmi); 333 return h += measureRun(segstart, offset, j, runIsRtl, fmi); 336 float w = measureRun(segstart, j, j, runIsRtl, fmi); 407 * @param fmi receives metrics information about the requeste [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
PaintTest.java | 806 Paint.FontMetricsInt fmi = new Paint.FontMetricsInt(); 812 p.getFontMetricsInt(fmi); 813 assertEquals(Math.round(p.ascent()), fmi.ascent); 814 assertEquals(Math.round(p.descent()), fmi.descent); 817 p.getFontMetricsInt(fmi); 818 assertEquals(Math.round(p.ascent()), fmi.ascent); 819 assertEquals(Math.round(p.descent()), fmi.descent); 825 Paint.FontMetricsInt fmi; 831 fmi = p.getFontMetricsInt(); 832 assertEquals(Math.round(p.ascent()), fmi.ascent) [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
ShortcutIntentBuilder.java | 400 final FontMetricsInt fmi = textPaint.getFontMetricsInt(); local 408 final int textBandHeight = (fmi.descent - fmi.ascent) + textPadding * 2; 418 - fmi.descent - textPadding, textPaint);
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
Paint_Delegate.java | 545 /*package*/ static int getFontMetricsInt(Paint thisPaint, FontMetricsInt fmi) { 554 if (fmi != null) { 556 fmi.top = - javaMetrics.getMaxAscent(); 557 fmi.ascent = - javaMetrics.getAscent(); 558 fmi.descent = javaMetrics.getDescent(); 559 fmi.bottom = javaMetrics.getMaxDescent(); 560 fmi.leading = javaMetrics.getLeading(); [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
ConversationItemViewCoordinates.java | 548 final FontMetricsInt fmi = t.getPaint().getFontMetricsInt(); local 549 return (fmi.top - fmi.ascent);
|
/frameworks/base/graphics/java/android/graphics/ |
Paint.java | [all...] |