Home
last modified time | relevance | path

Searched refs:descent (Results 1 – 25 of 41) 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 …]
DDynamicLayoutTest.java240 assertEquals(2 * textSize, paint.descent(), 0.0f); in testFallbackLineSpacing()
/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/core/tests/coretests/src/android/graphics/
DTypefaceTest.java94 float descent = 0; in testUniformY() local
100 descent = fm.descent; in testUniformY()
103 assertTrue("fontMetrics", fm.descent == descent); in testUniformY()
/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/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.java782 final int previousDescent = fmi.descent;
796 fmi.descent = Math.max(fmi.descent, previousDescent);
994 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.java486 if (size - fm.descent >= need) { in chooseHeight()
492 fm.ascent = fm.descent - size; in chooseHeight()
500 fm.bottom = fm.descent = fm.top + size; in chooseHeight()
507 fm.bottom = fm.descent = 0; in chooseHeight()
/frameworks/base/core/jni/android/graphics/
DPaint.cpp63 jfieldID descent; member
624 … env->SetFloatField(metricsObj, gFontMetrics_fieldID.descent, SkScalarToFloat(metrics.fDescent)); in getFontMetrics()
636 int descent = SkScalarRoundToInt(metrics.fDescent); in getFontMetricsInt() local
643 env->SetIntField(metricsObj, gFontMetricsInt_fieldID.descent, descent); in getFontMetricsInt()
647 return descent - ascent + leading; in getFontMetricsInt()
956 static jfloat descent(jlong paintHandle) { in descent() function
1128 {"nDescent","(J)F", (void*) PaintGlue::descent},
1144 gFontMetrics_fieldID.descent = GetFieldIDOrDie(env, gFontMetrics_class, "descent", "F"); in register_android_graphics_Paint()
1153 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/minikin/tests/util/
DFreeTypeMinikinFontForTest.cpp114 extent->descent = -static_cast<float>(mFtFace->descender) * paint.size / upem; in GetFontExtent()
/frameworks/base/core/java/android/widget/
DSimpleMonthView.java530 final float halfLineHeight = (p.ascent() + p.descent()) / 2f; in findClosestRow()
626 final float lineHeight = mMonthPaint.ascent() + mMonthPaint.descent(); in drawMonth()
643 final float halfLineHeight = (p.ascent() + p.descent()) / 2f; in drawDaysOfWeek()
670 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/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.java94 mTextHeight = fm.descent - fm.ascent; in Watermark()
/frameworks/base/libs/hwui/hwui/
DMinikinSkia.cpp99 extent->descent = metrics.fDescent; in GetFontExtent()
/frameworks/base/graphics/java/android/graphics/
DPaint.java2026 public float descent() { in descent() method in Paint
2049 public float descent; field in Paint.FontMetrics
2104 public int descent; field in Paint.FontMetricsInt
2117 " descent=" + descent + " bottom=" + bottom + in toString()

12