Home
last modified time | relevance | path

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

12

/frameworks/minikin/include/minikin/
DMinikinExtent.h26 MinikinExtent() : ascent(0), descent(0) {} in MinikinExtent()
27 MinikinExtent(float ascent, float descent) : ascent(ascent), descent(descent) {} in MinikinExtent()
29 return ascent == o.ascent && descent == o.descent;
32 float descent; // positive member
34 void reset() { ascent = descent = 0.0; } in reset()
38 descent = std::max(descent, e.descent); in extendBy()
44 return os << e.ascent << ", " << e.descent;
/frameworks/base/core/tests/coretests/src/android/text/
DStaticLayoutTest.java114 new int[][]{{fmi.ascent, fmi.descent, 0}}); in testGetters1()
137 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testLineMetrics_withPadding()
153 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testLineMetrics_withPaddingAndWidth()
155 {fmi.top, fmi.descent, 0}, in testLineMetrics_withPaddingAndWidth()
173 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testLineMetrics_withThreeLines()
175 {fmi.top, fmi.descent, 0}, in testLineMetrics_withThreeLines()
176 {fmi.ascent, fmi.descent, 0}, in testLineMetrics_withThreeLines()
203 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testLineMetrics_withLargeText()
205 {fmi.top, fmi.descent, 0}, in testLineMetrics_withLargeText()
206 {fmi.ascent, fmi.descent, 0}, in testLineMetrics_withLargeText()
[all …]
/frameworks/base/core/java/android/text/style/
DLineHeightSpan.java142 final int originHeight = fm.descent - fm.ascent; in chooseHeight()
148 fm.descent = Math.round(fm.descent * ratio); in chooseHeight()
149 fm.ascent = fm.descent - mHeight; in chooseHeight()
DIconMarginSpan.java101 int need = ht - (v + fm.descent - fm.ascent - istartv); in chooseHeight()
103 fm.descent += need; in chooseHeight()
DDrawableMarginSpan.java104 int need = ht - (v + fm.descent - fm.ascent - istartv); in chooseHeight()
106 fm.descent += need; in chooseHeight()
DDynamicDrawableSpan.java149 fm.descent = 0; in getSize()
167 transY -= paint.getFontMetricsInt().descent; in draw()
/frameworks/base/libs/hwui/jni/text/
DTextShaper.cpp38 LayoutWrapper(minikin::Layout&& layout, float ascent, float descent) in LayoutWrapper()
39 : layout(std::move(layout)), ascent(ascent), descent(descent) {} in LayoutWrapper()
42 float descent; member
67 overallDescent = std::max(overallDescent, extent.descent); in shapeTextRun()
129 return layout->descent; in TextShaper_Result_getDescent()
/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/base/core/tests/coretests/src/android/graphics/
DTypefaceTest.java116 float descent = 0; in testUniformY() local
122 descent = fm.descent; in testUniformY()
125 assertTrue("fontMetrics", fm.descent == descent); in testUniformY()
/frameworks/base/core/java/android/text/
DBoringLayout.java246 spacing = metrics.descent - metrics.ascent; in init()
247 mDesc = metrics.descent; in init()
270 mBottomPadding = metrics.bottom - metrics.descent; in init()
491 descent = 0; in reset()
DStaticLayout.java830 fm.descent = fmCache[fmCacheIndex * 4 + 3]; in generate()
839 if (fm.descent > fmDescent) { in generate()
840 fmDescent = fm.descent; in generate()
859 final int descent = fallbackLineSpacing in generate()
864 ascent, descent, fmTop, fmBottom, in generate()
876 fmDescent = fm.descent; in generate()
901 bufEnd, bufEnd, fm.ascent, fm.descent, in generate()
944 fm.descent = below;
958 below = fm.descent;
DMeasuredParagraph.java608 mCachedFm.descent += mCachedPaint.baselineShift; in applyMetricsAffectingSpan()
615 mFontMetrics.append(mCachedFm.descent); in applyMetricsAffectingSpan()
DTextLine.java838 final int previousDescent = fmi.descent;
852 fmi.descent = Math.max(fmi.descent, previousDescent);
1056 previousDescent = fmi.descent;
/frameworks/minikin/tests/unittest/
DLineBreakerTestHelper.h45 float descent) in ConstantRun() argument
50 mDescent(descent) { in ConstantRun()
/frameworks/base/core/java/android/content/res/
DStringBlock.java513 if (size - fm.descent >= need) { in chooseHeight()
519 fm.ascent = fm.descent - size; in chooseHeight()
527 fm.bottom = fm.descent = fm.top + size; in chooseHeight()
534 fm.bottom = fm.descent = 0; in chooseHeight()
/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/minikin/tests/util/
DFreeTypeMinikinFontForTest.cpp112 extent->descent = -static_cast<float>(mFtFace->descender) * paint.size / upem; in GetFontExtent()
/frameworks/base/core/java/android/widget/
DSimpleMonthView.java532 final float halfLineHeight = (p.ascent() + p.descent()) / 2f; in findClosestRow()
628 final float lineHeight = mMonthPaint.ascent() + mMonthPaint.descent(); in drawMonth()
645 final float halfLineHeight = (p.ascent() + p.descent()) / 2f; in drawDaysOfWeek()
672 final float halfLineHeight = (p.ascent() + p.descent()) / 2f; in drawDays()
DLinearLayout.java1289 final int descent = Math.max(maxDescent[INDEX_FILL], in measureHorizontal() local
1292 maxHeight = Math.max(maxHeight, ascent + descent); in measureHorizontal()
1439 final int descent = Math.max(maxDescent[INDEX_FILL], in measureHorizontal() local
1442 maxHeight = Math.max(maxHeight, ascent + descent); in measureHorizontal()
1804 int descent = child.getMeasuredHeight() - childBaseline; in layoutHorizontal() local
1805 childTop -= (maxDescent[INDEX_BOTTOM] - descent); in layoutHorizontal()
/frameworks/base/core/java/android/view/
DNotificationTopLineView.java214 int descent = childHeight - childBaseline; in onLayout() local
215 childTop -= (mMaxDescent - descent); in onLayout()
/frameworks/base/services/core/java/com/android/server/wm/
DWatermark.java92 mTextHeight = fm.descent - fm.ascent; in Watermark()
/frameworks/base/libs/hwui/hwui/
DMinikinSkia.cpp99 extent->descent = metrics.fDescent; in GetFontExtent()
/frameworks/base/core/java/com/android/internal/widget/
DPeopleHelper.java126 int yPos = (int) (radius - ((mTextPaint.descent() + mTextPaint.ascent()) / 2)); in createAvatarSymbol()
/frameworks/base/libs/hwui/jni/
DGraphics.cpp498 int descent = SkScalarRoundToInt(skmetrics.fDescent); in set_metrics_int() local
505 env->SetIntField(metrics, gFontMetricsInt_descent, descent); in set_metrics_int()
509 return descent - ascent + leading; in set_metrics_int()

12