Home
last modified time | relevance | path

Searched refs:fm (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/core/java/android/content/res/
DStringBlock.java350 Paint.FontMetricsInt fm) { in chooseHeight() argument
352 chooseHeight(text, start, end, spanstartv, v, fm, null); in chooseHeight()
357 Paint.FontMetricsInt fm, TextPaint paint) { in chooseHeight() argument
363 if (fm.bottom - fm.top < size) { in chooseHeight()
364 fm.top = fm.bottom - size; in chooseHeight()
365 fm.ascent = fm.ascent - size; in chooseHeight()
383 int need = (int) Math.ceil(-fm.top * sProportion); in chooseHeight()
385 if (size - fm.descent >= need) { in chooseHeight()
390 fm.top = fm.bottom - size; in chooseHeight()
391 fm.ascent = fm.descent - size; in chooseHeight()
[all …]
/frameworks/base/core/java/android/text/style/
DIconMarginSpan.java57 Paint.FontMetricsInt fm) { in chooseHeight() argument
61 int need = ht - (v + fm.descent - fm.ascent - istartv); in chooseHeight()
63 fm.descent += need; in chooseHeight()
65 need = ht - (v + fm.bottom - fm.top - istartv); in chooseHeight()
67 fm.bottom += need; in chooseHeight()
DDrawableMarginSpan.java60 Paint.FontMetricsInt fm) { in chooseHeight() argument
64 int need = ht - (v + fm.descent - fm.ascent - istartv); in chooseHeight()
66 fm.descent += need; in chooseHeight()
68 need = ht - (v + fm.bottom - fm.top - istartv); in chooseHeight()
70 fm.bottom += need; in chooseHeight()
DDynamicDrawableSpan.java79 Paint.FontMetricsInt fm) { in getSize() argument
83 if (fm != null) { in getSize()
84 fm.ascent = -rect.bottom; in getSize()
85 fm.descent = 0; in getSize()
87 fm.top = fm.ascent; in getSize()
88 fm.bottom = 0; in getSize()
DLineHeightSpan.java29 Paint.FontMetricsInt fm); in chooseHeight() argument
34 Paint.FontMetricsInt fm, TextPaint paint); in chooseHeight() argument
DReplacementSpan.java27 Paint.FontMetricsInt fm); in getSize() argument
/frameworks/base/core/java/android/text/
DStaticLayout.java169 Paint.FontMetricsInt fm = mFontMetricsInt; in generate() local
275 measured.addStyleRun(paint, spanLen, fm); in generate()
281 measured.addStyleRun(paint, spans, spanLen, fm); in generate()
287 int fmTop = fm.top; in generate()
288 int fmBottom = fm.bottom; in generate()
289 int fmAscent = fm.ascent; in generate()
290 int fmDescent = fm.descent; in generate()
414 chooseHtv, fm, hasTabOrEmoji, in generate()
430 chooseHtv, fm, hasTabOrEmoji, in generate()
447 fm.ascent, fm.descent, in generate()
[all …]
DMeasuredText.java146 float addStyleRun(TextPaint paint, int len, Paint.FontMetricsInt fm) { in addStyleRun() argument
147 if (fm != null) { in addStyleRun()
148 paint.getFontMetricsInt(fm); in addStyleRun()
178 Paint.FontMetricsInt fm) { in addStyleRun() argument
197 wid = addStyleRun(workPaint, len, fm); in addStyleRun()
201 mTextStart + mPos + len, fm); in addStyleRun()
209 if (fm != null) { in addStyleRun()
211 fm.ascent += workPaint.baselineShift; in addStyleRun()
212 fm.top += workPaint.baselineShift; in addStyleRun()
214 fm.descent += workPaint.baselineShift; in addStyleRun()
[all …]
DBoringLayout.java300 Metrics fm = metrics; in isBoring() local
301 if (fm == null) { in isBoring()
302 fm = new Metrics(); in isBoring()
308 fm.width = (int) FloatMath.ceil(line.metrics(fm)); in isBoring()
311 return fm; in isBoring()
DDynamicLayout.java153 Paint.FontMetricsInt fm = paint.getFontMetricsInt(); in DynamicLayout() local
154 int asc = fm.ascent; in DynamicLayout()
155 int desc = fm.descent; in DynamicLayout()
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
DTypefaceTest.java79 Paint.FontMetrics fm = p.getFontMetrics(); in testUniformY() local
81 ascent = fm.ascent; in testUniformY()
82 descent = fm.descent; in testUniformY()
84 assertTrue("fontMetrics", fm.ascent == ascent); in testUniformY()
85 assertTrue("fontMetrics", fm.descent == descent); in testUniformY()
/frameworks/base/services/java/com/android/server/wm/
DWatermark.java89 FontMetricsInt fm = mTextPaint.getFontMetricsInt(); in Watermark() local
91 mTextAscent = fm.ascent; in Watermark()
92 mTextDescent = fm.descent; in Watermark()
93 mTextHeight = fm.descent - fm.ascent; in Watermark()
/frameworks/base/tests/BrowserTestPlugin/jni/event/
DEventPlugin.cpp94 ANPFontMetrics fm; in drawPlugin() local
95 gPaintI.getFontMetrics(paint, &fm); in drawPlugin()
99 gCanvasI.drawText(canvas, c, sizeof(c)-1, leftMargin, -fm.fTop, paint); in drawPlugin()
/frameworks/support/v13/java/android/support/v13/app/
DFragmentPagerAdapter.java40 public FragmentPagerAdapter(FragmentManager fm) { in FragmentPagerAdapter() argument
41 mFragmentManager = fm; in FragmentPagerAdapter()
DFragmentStatePagerAdapter.java41 public FragmentStatePagerAdapter(FragmentManager fm) { in FragmentStatePagerAdapter() argument
42 mFragmentManager = fm; in FragmentStatePagerAdapter()
/frameworks/support/v4/java/android/support/v4/app/
DFragmentPagerAdapter.java37 public FragmentPagerAdapter(FragmentManager fm) { in FragmentPagerAdapter() argument
38 mFragmentManager = fm; in FragmentPagerAdapter()
DFragmentStatePagerAdapter.java38 public FragmentStatePagerAdapter(FragmentManager fm) { in FragmentStatePagerAdapter() argument
39 mFragmentManager = fm; in FragmentStatePagerAdapter()
DBackStackRecord.java39 public BackStackState(FragmentManagerImpl fm, BackStackRecord bse) { in BackStackState() argument
94 public BackStackRecord instantiate(FragmentManagerImpl fm) { in instantiate() argument
95 BackStackRecord bse = new BackStackRecord(fm); in instantiate()
102 Fragment f = fm.mActive.get(mOps[pos++]); in instantiate()
114 Fragment r = fm.mActive.get(mOps[pos++]); in instantiate()
/frameworks/base/core/java/android/app/
DFragmentBreadCrumbs.java236 FragmentManager fm = mActivity.getFragmentManager(); in updateCrumbs() local
237 int numEntries = fm.getBackStackEntryCount(); in updateCrumbs()
243 : fm.getBackStackEntryAt(i - numPreEntries); in updateCrumbs()
DBackStackRecord.java39 public BackStackState(FragmentManagerImpl fm, BackStackRecord bse) { in BackStackState() argument
94 public BackStackRecord instantiate(FragmentManagerImpl fm) { in instantiate() argument
95 BackStackRecord bse = new BackStackRecord(fm); in instantiate()
102 Fragment f = fm.mActive.get(mOps[pos++]); in instantiate()
114 Fragment r = fm.mActive.get(mOps[pos++]); in instantiate()
/frameworks/base/core/jni/android/graphics/
DBitmap.cpp283 SkImageEncoder::Type fm; in Bitmap_compress() local
287 fm = SkImageEncoder::kJPEG_Type; in Bitmap_compress()
290 fm = SkImageEncoder::kPNG_Type; in Bitmap_compress()
293 fm = SkImageEncoder::kWEBP_Type; in Bitmap_compress()
302 SkImageEncoder* encoder = SkImageEncoder::Create(fm); in Bitmap_compress()
/frameworks/base/graphics/java/android/graphics/
DPaint.java1157 FontMetrics fm = new FontMetrics(); in getFontMetrics() local
1158 getFontMetrics(fm); in getFontMetrics()
1159 return fm; in getFontMetrics()
1193 FontMetricsInt fm = new FontMetricsInt(); in getFontMetricsInt() local
1194 getFontMetricsInt(fm); in getFontMetricsInt()
1195 return fm; in getFontMetricsInt()
/frameworks/base/core/res/assets/webkit/
Dhyph_en_US.dic1886 4fm