Home
last modified time | relevance | path

Searched refs:descent (Results 1 – 25 of 47) 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()
31 descent = std::max(descent, e.descent); in extendBy()
35 float descent; // positive member
40 return os << "(ascent = " << e.ascent << ", descent = " << e.descent << ")";
44 return l.ascent == r.ascent && l.descent == r.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.cpp35 LayoutWrapper(minikin::Layout&& layout, float ascent, float descent) in LayoutWrapper()
36 : layout(std::move(layout)), ascent(ascent), descent(descent) {} in LayoutWrapper()
39 float descent; member
64 overallDescent = std::max(overallDescent, extent.descent); in shapeTextRun()
126 return layout->descent; in TextShaper_Result_getDescent()
DMeasuredText.cpp146 int32_t descent = SkScalarRoundToInt(extent.descent); in nGetExtent() local
148 return (((jlong)(ascent)) << 32) | ((jlong)descent); in nGetExtent()
/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/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/
DCenteredImageSpan.java43 fontMetrics.descent = paintFontMetrics.descent; in getSize()
/frameworks/base/core/tests/coretests/src/android/graphics/
DTypefaceTest.java117 float descent = 0; in testUniformY() local
123 descent = fm.descent; in testUniformY()
126 assertTrue("fontMetrics", fm.descent == descent); in testUniformY()
/frameworks/base/core/java/android/text/
DStaticLayout.java809 defaultDescent = Math.round(b.mMinimumFontMetrics.descent); in generate()
1016 fm.descent = fmCache[fmCacheIndex * 4 + 3]; in generate()
1025 if (fm.descent > fmDescent) { in generate()
1026 fmDescent = fm.descent; in generate()
1045 final int descent = isFallbackLineSpacing in generate()
1056 if (descent > fmBottom) { in generate()
1057 fmBottom = descent; in generate()
1062 ascent, descent, fmTop, fmBottom, in generate()
1074 fmDescent = Math.max(defaultDescent, fm.descent); in generate()
1100 fm.descent = defaultDescent; in generate()
[all …]
DBoringLayout.java444 spacing = metrics.descent - metrics.ascent; in init()
445 mDesc = metrics.descent; in init()
468 mBottomPadding = metrics.bottom - metrics.descent; in init()
599 fm.bottom = Math.max(fm.bottom, fm.descent); in isBoring()
780 descent = 0; in reset()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/shadow/
DDoubleShadowTextClock.kt130 floor(metrics.descent.toDouble()).toInt() / paddingDividedOffset in initializeAttributes()
132 textDescentExtraPadding - floor(metrics.descent.toDouble()).toInt() in initializeAttributes()
/frameworks/minikin/libs/minikin/
DGreedyLineBreaker.cpp523 out.descents.push_back(extent.descent); in getResult()
524 out.bounds.emplace_back(0, extent.ascent, breakPoint.lineWidth, extent.descent); in getResult()
528 out.descents.push_back(metrics.extent.descent); in getResult()
535 out.descents.push_back(extent.descent); in getResult()
538 out.bounds.emplace_back(0, extent.ascent, breakPoint.lineWidth, extent.descent); in getResult()
DOptimalLineBreaker.cpp388 result.descents.push_back(extent.descent); in finishBreaksOptimal()
390 extent.descent); in finishBreaksOptimal()
394 result.descents.push_back(metrics.extent.descent); in finishBreaksOptimal()
400 result.descents.push_back(extent.descent); in finishBreaksOptimal()
402 extent.descent); in finishBreaksOptimal()
/frameworks/base/graphics/java/android/graphics/
DPaint.java2186 public float descent() { in descent() method in Paint
2209 public float descent; field in Paint.FontMetrics
2225 return that.top == top && that.ascent == ascent && that.descent == descent in equals()
2231 return Objects.hash(top, ascent, descent, bottom, leading); in hashCode()
2239 + ", descent=" + descent in toString()
2429 public int descent; field in Paint.FontMetricsInt
2448 descent = fontMetricsInt.descent; in set()
2462 descent = Math.round(fontMetrics.descent); in set()
2469 " descent=" + descent + " bottom=" + bottom + in toString()
2480 && descent == that.descent in equals()
[all …]
/frameworks/minikin/tests/unittest/
DLineBreakerTestHelper.h45 float descent) in ConstantRun() argument
50 mDescent(descent) { in ConstantRun()
/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/java/android/content/res/
DStringBlock.java571 if (size - fm.descent >= need) { in chooseHeight()
577 fm.ascent = fm.descent - size; in chooseHeight()
585 fm.bottom = fm.descent = fm.top + size; in chooseHeight()
592 fm.bottom = fm.descent = 0; in chooseHeight()
/frameworks/base/core/tests/coretests/src/android/widget/
DLabelView.java167 result = (int) (-mAscent + mTextPaint.descent()) + mPaddingTop in measureHeight()
/frameworks/base/graphics/java/android/graphics/text/
DMeasuredText.java163 outMetrics.descent = (int) (packed & 0xFFFFFFFF); in getFontMetricsInt()
165 outMetrics.bottom = Math.max(outMetrics.descent, mBottom); in getFontMetricsInt()
/frameworks/minikin/tests/util/
DFreeTypeMinikinFontForTest.cpp113 extent->descent = -static_cast<float>(mFtFace->descender) * paint.size / upem; in GetFontExtent()
/frameworks/base/core/java/android/widget/
DSimpleMonthView.java541 final float halfLineHeight = (p.ascent() + p.descent()) / 2f; in findClosestRow()
637 final float lineHeight = mMonthPaint.ascent() + mMonthPaint.descent(); in drawMonth()
654 final float halfLineHeight = (p.ascent() + p.descent()) / 2f; in drawDaysOfWeek()
681 final float halfLineHeight = (p.ascent() + p.descent()) / 2f; in drawDays()
/frameworks/base/core/java/android/view/
DNotificationTopLineView.java217 int descent = childHeight - childBaseline; in onLayout() local
218 childTop -= (mMaxDescent - descent); in onLayout()

12