Home
last modified time | relevance | path

Searched refs:ascent (Results 1 – 25 of 44) 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;
31 float ascent; // negative member
34 void reset() { ascent = descent = 0.0; } in reset()
37 ascent = std::min(ascent, e.ascent); 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()
156 {fmi.ascent, fmi.bottom, 0} in testLineMetrics_withPaddingAndWidth()
173 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testLineMetrics_withThreeLines()
176 {fmi.ascent, fmi.descent, 0}, in testLineMetrics_withThreeLines()
177 {fmi.ascent, fmi.bottom, 0} in testLineMetrics_withThreeLines()
203 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testLineMetrics_withLargeText()
206 {fmi.ascent, fmi.descent, 0}, in testLineMetrics_withLargeText()
207 {fmi.ascent, fmi.bottom, 0} in testLineMetrics_withLargeText()
[all …]
/frameworks/base/core/tests/coretests/src/android/graphics/
DTypefaceTest.java93 float ascent = 0; in testUniformY() local
99 ascent = fm.ascent; in testUniformY()
102 assertTrue("fontMetrics", fm.ascent == ascent); in testUniformY()
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/
DReplacementDrawableSpan.java34 final int textHeight = fm.descent - fm.ascent; in setupFontMetrics()
36 fm.ascent = Math.min(fm.top, fm.top + (textHeight - bounds.bottom) / 2) - halfMargin; in setupFontMetrics()
39 fm.top = fm.ascent; in setupFontMetrics()
/frameworks/base/core/java/android/text/style/
DSubscriptSpan.java82 textPaint.baselineShift -= (int) (textPaint.ascent() / 2); in updateDrawState()
87 textPaint.baselineShift -= (int) (textPaint.ascent() / 2); in updateMeasureState()
DSuperscriptSpan.java79 textPaint.baselineShift += (int) (textPaint.ascent() / 2); in updateDrawState()
84 textPaint.baselineShift += (int) (textPaint.ascent() / 2); in updateMeasureState()
DLineHeightSpan.java142 final int originHeight = fm.descent - fm.ascent; in chooseHeight()
149 fm.ascent = fm.descent - mHeight; in chooseHeight()
DDynamicDrawableSpan.java148 fm.ascent = -rect.bottom; in getSize()
151 fm.top = fm.ascent; in getSize()
DIconMarginSpan.java101 int need = ht - (v + fm.descent - fm.ascent - istartv); in chooseHeight()
DDrawableMarginSpan.java104 int need = ht - (v + fm.descent - fm.ascent - istartv); in chooseHeight()
/frameworks/base/core/java/android/content/res/
DStringBlock.java466 fm.ascent = fm.ascent - size; in chooseHeight()
481 sProportion = (r.top) / p.ascent(); in chooseHeight()
492 fm.ascent = fm.descent - size; in chooseHeight()
499 fm.top = fm.ascent = -need; in chooseHeight()
506 fm.top = fm.ascent = -size; in chooseHeight()
/frameworks/base/core/java/android/text/
DStaticLayout.java829 fm.ascent = fmCache[fmCacheIndex * 4 + 2]; in generate()
836 if (fm.ascent < fmAscent) { in generate()
837 fmAscent = fm.ascent; in generate()
856 final int ascent = fallbackLineSpacing in generate()
864 ascent, descent, fmTop, fmBottom, in generate()
875 fmAscent = fm.ascent; in generate()
901 bufEnd, bufEnd, fm.ascent, fm.descent, in generate()
943 fm.ascent = above;
957 above = fm.ascent;
DBoringLayout.java246 spacing = metrics.descent - metrics.ascent; in init()
269 mTopPadding = metrics.top - metrics.ascent; in init()
490 ascent = 0; in reset()
DMeasuredParagraph.java605 mCachedFm.ascent += mCachedPaint.baselineShift; in applyMetricsAffectingSpan()
614 mFontMetrics.append(mCachedFm.ascent); in applyMetricsAffectingSpan()
DTextLine.java781 final int previousAscent = fmi.ascent;
795 fmi.ascent = Math.min(fmi.ascent, previousAscent);
993 previousAscent = fmi.ascent;
/frameworks/minikin/tests/unittest/
DLineBreakerTestHelper.h44 ConstantRun(const Range& range, const std::string& lang, float width, float ascent, in ConstantRun() argument
49 mAscent(ascent), in ConstantRun()
/frameworks/base/core/jni/android/graphics/
DPaint.cpp62 jfieldID ascent; member
623 … env->SetFloatField(metricsObj, gFontMetrics_fieldID.ascent, SkScalarToFloat(metrics.fAscent)); in getFontMetrics()
635 int ascent = SkScalarRoundToInt(metrics.fAscent); in getFontMetricsInt() local
642 env->SetIntField(metricsObj, gFontMetricsInt_fieldID.ascent, ascent); in getFontMetricsInt()
647 return descent - ascent + leading; in getFontMetricsInt()
950 static jfloat ascent(jlong paintHandle) { in ascent() function
1127 {"nAscent","(J)F", (void*) PaintGlue::ascent},
1143 gFontMetrics_fieldID.ascent = GetFieldIDOrDie(env, gFontMetrics_class, "ascent", "F"); in register_android_graphics_Paint()
1152 gFontMetricsInt_fieldID.ascent = GetFieldIDOrDie(env, gFontMetricsInt_class, "ascent", "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.java161 mAscent = (int) mTextPaint.ascent(); in measureHeight()
/frameworks/minikin/tests/util/
DFreeTypeMinikinFontForTest.cpp113 extent->ascent = -static_cast<float>(mFtFace->ascender) * 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()
/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/core/tests/coretests/src/android/util/
DInternalSelectionView.java175 rectTop + 2 - (int) mTextPaint.ascent(), in onDraw()
/frameworks/base/libs/hwui/hwui/
DMinikinSkia.cpp98 extent->ascent = metrics.fAscent; in GetFontExtent()

12