/frameworks/base/core/java/android/text/style/ |
H A D | IconMarginSpan.java | 57 Paint.FontMetricsInt fm) { 61 int need = ht - (v + fm.descent - fm.ascent - istartv); 63 fm.descent += need; 65 need = ht - (v + fm.bottom - fm.top - istartv); 67 fm.bottom += need; 55 chooseHeight(CharSequence text, int start, int end, int istartv, int v, Paint.FontMetricsInt fm) argument
|
H A D | DrawableMarginSpan.java | 63 Paint.FontMetricsInt fm) { 67 int need = ht - (v + fm.descent - fm.ascent - istartv); 69 fm.descent += need; 71 need = ht - (v + fm.bottom - fm.top - istartv); 73 fm.bottom += need; 61 chooseHeight(CharSequence text, int start, int end, int istartv, int v, Paint.FontMetricsInt fm) argument
|
H A D | DynamicDrawableSpan.java | 79 Paint.FontMetricsInt fm) { 83 if (fm != null) { 84 fm.ascent = -rect.bottom; 85 fm.descent = 0; 87 fm.top = fm.ascent; 88 fm.bottom = 0; 77 getSize(Paint paint, CharSequence text, int start, int end, Paint.FontMetricsInt fm) argument
|
H A D | LineHeightSpan.java | 29 Paint.FontMetricsInt fm); 34 Paint.FontMetricsInt fm, TextPaint paint); 27 chooseHeight(CharSequence text, int start, int end, int spanstartv, int v, Paint.FontMetricsInt fm) argument 32 chooseHeight(CharSequence text, int start, int end, int spanstartv, int v, Paint.FontMetricsInt fm, TextPaint paint) argument
|
H A D | ReplacementSpan.java | 27 Paint.FontMetricsInt fm); 25 getSize(Paint paint, CharSequence text, int start, int end, Paint.FontMetricsInt fm) argument
|
/frameworks/base/core/java/android/content/res/ |
H A D | StringBlock.java | 324 Paint.FontMetricsInt fm) { 326 chooseHeight(text, start, end, spanstartv, v, fm, null); 331 Paint.FontMetricsInt fm, TextPaint paint) { 337 if (fm.bottom - fm.top < size) { 338 fm.top = fm.bottom - size; 339 fm.ascent = fm.ascent - size; 357 int need = (int) Math.ceil(-fm 322 chooseHeight(CharSequence text, int start, int end, int spanstartv, int v, Paint.FontMetricsInt fm) argument 329 chooseHeight(CharSequence text, int start, int end, int spanstartv, int v, Paint.FontMetricsInt fm, TextPaint paint) argument [all...] |
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
H A D | TypefaceTest.java | 79 Paint.FontMetrics fm = p.getFontMetrics(); 81 ascent = fm.ascent; 82 descent = fm.descent; 84 assertTrue("fontMetrics", fm.ascent == ascent); 85 assertTrue("fontMetrics", fm.descent == descent);
|
/frameworks/base/core/java/android/text/ |
H A D | StaticLayout.java | 128 Paint.FontMetricsInt fm = mFontMetricsInt; 320 paint.getFontMetricsInt(fm); 326 widths, fm); 331 fm.ascent += mWorkPaint.baselineShift; 332 fm.top += mWorkPaint.baselineShift; 334 fm.descent += mWorkPaint.baselineShift; 335 fm.bottom += mWorkPaint.baselineShift; 339 int fmtop = fm.top; 340 int fmbottom = fm.bottom; 341 int fmascent = fm 969 out(CharSequence text, int start, int end, int above, int below, int top, int bottom, int v, float spacingmult, float spacingadd, LineHeightSpan[] chooseht, int[] choosehtv, Paint.FontMetricsInt fm, boolean tab, boolean needMultiply, int pstart, byte[] chdirs, int dir, boolean easy, boolean last, boolean includepad, boolean trackpad, float[] widths, int widstart, int widoff, TextUtils.TruncateAt ellipsize, float ellipsiswidth, float textwidth, TextPaint paint) argument [all...] |
H A D | BoringLayout.java | 275 Metrics fm = metrics; 276 if (fm == null) { 277 fm = new Metrics(); 284 text, 0, text.length(), fm))); 286 fm.width = wid; 287 return fm;
|
H A D | Layout.java | 1600 * and the line metrics in fm if fm is not null. 1607 * @param fm object to return integer metrics in, can be null 1616 Paint.FontMetricsInt fm, 1631 if (fm != null) { 1632 fm.ascent = 0; 1633 fm.descent = 0; 1657 fm); 1659 if (fm != null) { 1661 fm 1612 measureText(TextPaint paint, TextPaint workPaint, CharSequence text, int start, int end, Paint.FontMetricsInt fm, boolean hasTabs, Object[] tabs) argument [all...] |
H A D | DynamicLayout.java | 134 Paint.FontMetricsInt fm = paint.getFontMetricsInt(); 135 int asc = fm.ascent; 136 int desc = fm.descent;
|
/frameworks/base/tests/BrowserTestPlugin/jni/event/ |
H A D | EventPlugin.cpp | 94 ANPFontMetrics fm; local 95 gPaintI.getFontMetrics(paint, &fm); 99 gCanvasI.drawText(canvas, c, sizeof(c)-1, leftMargin, -fm.fTop, paint);
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Paint.java | 936 * Allocates a new FontMetrics object, and then calls getFontMetrics(fm) 940 FontMetrics fm = new FontMetrics(); 941 getFontMetrics(fm); 942 return fm; 976 FontMetricsInt fm = new FontMetricsInt(); 977 getFontMetricsInt(fm); 978 return fm;
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Bitmap.cpp | 270 SkImageEncoder::Type fm;
local 274 fm = SkImageEncoder::kJPEG_Type;
277 fm = SkImageEncoder::kPNG_Type;
286 SkImageEncoder* encoder = SkImageEncoder::Create(fm);
|
/frameworks/base/services/java/com/android/server/ |
H A D | WindowManagerService.java | 10105 FontMetricsInt fm = mTextPaint.getFontMetricsInt(); 10107 mTextAscent = fm.ascent; 10108 mTextDescent = fm.descent; 10109 mTextHeight = fm.descent - fm.ascent;
|