Home
last modified time | relevance | path

Searched refs:descent (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/text/
DStaticLayoutTest.java52 fmi.ascent, fmi.descent); in testGetters1()
75 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testGetters2()
91 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testGetters3()
92 fmi.top, fmi.descent, in testGetters3()
109 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testGetters4()
110 fmi.top, fmi.descent, in testGetters4()
111 fmi.ascent, fmi.descent, in testGetters4()
137 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testGetters5()
138 fmi.top, fmi.descent, in testGetters5()
139 fmi.ascent, fmi.descent, in testGetters5()
[all …]
/frameworks/base/core/tests/coretests/src/android/graphics/
DTypefaceTest.java77 float descent = 0; in testUniformY() local
83 descent = fm.descent; in testUniformY()
86 assertTrue("fontMetrics", fm.descent == descent); in testUniformY()
/frameworks/support/emoji/core/src/android/support/text/emoji/
DEmojiSpan.java79 final int fontHeight = Math.abs(mTmpFontMetrics.descent - mTmpFontMetrics.ascent); in getSize()
87 fm.descent = mTmpFontMetrics.descent; in getSize()
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/
DReplacementDrawableSpan.java34 final int textHeight = fm.descent - fm.ascent; in setupFontMetrics()
37 fm.descent = Math.max(fm.bottom, fm.bottom + (bounds.bottom - textHeight) / 2) in setupFontMetrics()
40 fm.bottom = fm.descent; in setupFontMetrics()
/frameworks/support/design/src/android/support/design/widget/
DCollapsingTextHelper.java412 float textHeight = mTextPaint.descent() - mTextPaint.ascent(); in calculateBaseOffsets()
413 float textOffset = (textHeight / 2) - mTextPaint.descent(); in calculateBaseOffsets()
444 float textHeight = mTextPaint.descent() - mTextPaint.ascent(); in calculateBaseOffsets()
445 float textOffset = (textHeight / 2) - mTextPaint.descent(); in calculateBaseOffsets()
489 final float descent; in draw() local
492 descent = mTextureDescent * mScale; in draw()
495 descent = mTextPaint.descent() * mScale; in draw()
500 canvas.drawRect(mCurrentBounds.left, y + ascent, mCurrentBounds.right, y + descent, in draw()
627 mTextureDescent = mTextPaint.descent(); in ensureExpandedTexture()
639 c.drawText(mTextToDraw, 0, mTextToDraw.length(), 0, h - mTextPaint.descent(), mTextPaint); in ensureExpandedTexture()
/frameworks/base/core/java/android/text/style/
DIconMarginSpan.java60 int need = ht - (v + fm.descent - fm.ascent - istartv); in chooseHeight()
62 fm.descent += need; in chooseHeight()
DDrawableMarginSpan.java63 int need = ht - (v + fm.descent - fm.ascent - istartv); in chooseHeight()
65 fm.descent += need; in chooseHeight()
DDynamicDrawableSpan.java82 fm.descent = 0; in getSize()
100 transY -= paint.getFontMetricsInt().descent; in draw()
/frameworks/base/core/java/android/text/
DBoringLayout.java188 spacing = metrics.descent - metrics.ascent; in init()
189 mDesc = metrics.descent; in init()
211 mBottomPadding = metrics.bottom - metrics.descent; in init()
419 descent = 0; in reset()
DStaticLayout.java753 fmCache[fmCacheCount * 4 + 3] = fm.descent;
811 fm.descent = fmCache[fmCacheIndex * 4 + 3];
820 if (fm.descent > fmDescent) {
821 fmDescent = fm.descent;
849 fmDescent = fm.descent;
876 bufEnd, bufEnd, fm.ascent, fm.descent,
919 fm.descent = below;
934 below = fm.descent;
DTextLine.java679 final int previousDescent = fmi.descent; in expandMetricsFromPaint()
693 fmi.descent = Math.max(fmi.descent, previousDescent); in updateMetrics()
831 previousDescent = fmi.descent; in handleReplacement()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DAbstractDetailsDescriptionPresenter.java183 + vh.mSubtitleFontMetricsInt.ascent - vh.mTitleFontMetricsInt.descent); in onBindViewHolder()
198 + vh.mBodyFontMetricsInt.ascent - vh.mSubtitleFontMetricsInt.descent); in onBindViewHolder()
201 + vh.mBodyFontMetricsInt.ascent - vh.mTitleFontMetricsInt.descent); in onBindViewHolder()
DRowHeaderPresenter.java224 return fontMeasurePaint.descent(); in getFontDescent()
/frameworks/base/core/java/android/content/res/
DStringBlock.java448 if (size - fm.descent >= need) { in chooseHeight()
454 fm.ascent = fm.descent - size; in chooseHeight()
462 fm.bottom = fm.descent = fm.top + size; in chooseHeight()
469 fm.bottom = fm.descent = 0; in chooseHeight()
/frameworks/base/core/jni/android/graphics/
DPaint.cpp57 jfieldID descent; member
610 … env->SetFloatField(metricsObj, gFontMetrics_fieldID.descent, SkScalarToFloat(metrics.fDescent)); in getFontMetrics()
623 int descent = SkScalarRoundToInt(metrics.fDescent); in getFontMetricsInt() local
630 env->SetIntField(metricsObj, gFontMetricsInt_fieldID.descent, descent); in getFontMetricsInt()
634 return descent - ascent + leading; in getFontMetricsInt()
958 static jfloat descent(jlong paintHandle, jlong typefaceHandle) { in descent() function
1074 {"nDescent","(JJ)F", (void*) PaintGlue::descent},
1085 gFontMetrics_fieldID.descent = GetFieldIDOrDie(env, gFontMetrics_class, "descent", "F"); in register_android_graphics_Paint()
1094 gFontMetricsInt_fieldID.descent = GetFieldIDOrDie(env, gFontMetricsInt_class, "descent", "I"); in register_android_graphics_Paint()
/frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/
DTestWallpaper.java224 final int ascdesc = (int)(-mTextMetrics.ascent + mTextMetrics.descent); in drawFrame()
225 final int linegap = (int)(-mTextMetrics.ascent + mTextMetrics.descent in drawFrame()
/frameworks/base/core/tests/coretests/src/android/widget/
DLabelView.java167 result = (int) (-mAscent + mTextPaint.descent()) + mPaddingTop in measureHeight()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DLinearLayoutCompat.java1106 final int descent = Math.max(maxDescent[INDEX_FILL], in measureHorizontal() local
1109 maxHeight = Math.max(maxHeight, ascent + descent); in measureHorizontal()
1263 final int descent = Math.max(maxDescent[INDEX_FILL], in measureHorizontal() local
1266 maxHeight = Math.max(maxHeight, ascent + descent); in measureHorizontal()
1620 int descent = child.getMeasuredHeight() - childBaseline; in layoutHorizontal() local
1621 childTop -= (maxDescent[INDEX_BOTTOM] - descent); in layoutHorizontal()
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/
DEmojiSpanTest.java68 fontMetrics.descent = -fontHeight; in testGetSize()
/frameworks/base/core/java/android/widget/
DSimpleMonthView.java528 final float halfLineHeight = (p.ascent() + p.descent()) / 2f; in findClosestRow()
622 final float lineHeight = mMonthPaint.ascent() + mMonthPaint.descent(); in drawMonth()
639 final float halfLineHeight = (p.ascent() + p.descent()) / 2f; in drawDaysOfWeek()
666 final float halfLineHeight = (p.ascent() + p.descent()) / 2f; in drawDays()
DLinearLayout.java1252 final int descent = Math.max(maxDescent[INDEX_FILL], in measureHorizontal() local
1255 maxHeight = Math.max(maxHeight, ascent + descent); in measureHorizontal()
1401 final int descent = Math.max(maxDescent[INDEX_FILL], in measureHorizontal() local
1404 maxHeight = Math.max(maxHeight, ascent + descent); in measureHorizontal()
1766 int descent = child.getMeasuredHeight() - childBaseline; in layoutHorizontal() local
1767 childTop -= (maxDescent[INDEX_BOTTOM] - descent); in layoutHorizontal()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
DErrorSupportFragment.java185 setTopMargin(mButton, underMessageBaselineMargin - metrics.descent); in onCreateView()
DErrorFragment.java182 setTopMargin(mButton, underMessageBaselineMargin - metrics.descent); in onCreateView()
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/
DAmPmCirclesView.java207 int textYCenter = mAmPmYCenter - (int) (mPaint.descent() + mPaint.ascent()) / 2; in onDraw()
/frameworks/base/services/core/java/com/android/server/wm/
DWatermark.java95 mTextHeight = fm.descent - fm.ascent; in Watermark()

12