Searched refs:fm (Results 1 - 15 of 15) sorted by relevance

/frameworks/base/core/java/android/text/style/
H A DIconMarginSpan.java57 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 DDrawableMarginSpan.java63 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 DDynamicDrawableSpan.java79 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 DLineHeightSpan.java29 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 DReplacementSpan.java27 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 DStringBlock.java324 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 DTypefaceTest.java79 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 DStaticLayout.java128 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 DBoringLayout.java275 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 DLayout.java1600 * 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 DDynamicLayout.java134 Paint.FontMetricsInt fm = paint.getFontMetricsInt();
135 int asc = fm.ascent;
136 int desc = fm.descent;
/frameworks/base/tests/BrowserTestPlugin/jni/event/
H A DEventPlugin.cpp94 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 DPaint.java936 * 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 DBitmap.cpp270 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 DWindowManagerService.java10105 FontMetricsInt fm = mTextPaint.getFontMetricsInt();
10107 mTextAscent = fm.ascent;
10108 mTextDescent = fm.descent;
10109 mTextHeight = fm.descent - fm.ascent;

Completed in 219 milliseconds