/frameworks/minikin/include/minikin/ |
D | MinikinExtent.h | 26 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/ |
D | StaticLayoutTest.java | 114 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/ |
D | LineHeightSpan.java | 142 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()
|
D | IconMarginSpan.java | 101 int need = ht - (v + fm.descent - fm.ascent - istartv); in chooseHeight() 103 fm.descent += need; in chooseHeight()
|
D | DrawableMarginSpan.java | 104 int need = ht - (v + fm.descent - fm.ascent - istartv); in chooseHeight() 106 fm.descent += need; in chooseHeight()
|
D | DynamicDrawableSpan.java | 149 fm.descent = 0; in getSize() 167 transY -= paint.getFontMetricsInt().descent; in draw()
|
/frameworks/base/libs/hwui/jni/text/ |
D | TextShaper.cpp | 38 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/ |
D | ReplacementDrawableSpan.java | 34 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/ |
D | TypefaceTest.java | 116 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/ |
D | BoringLayout.java | 246 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()
|
D | StaticLayout.java | 830 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;
|
D | MeasuredParagraph.java | 608 mCachedFm.descent += mCachedPaint.baselineShift; in applyMetricsAffectingSpan() 615 mFontMetrics.append(mCachedFm.descent); in applyMetricsAffectingSpan()
|
D | TextLine.java | 838 final int previousDescent = fmi.descent; 852 fmi.descent = Math.max(fmi.descent, previousDescent); 1056 previousDescent = fmi.descent;
|
/frameworks/minikin/tests/unittest/ |
D | LineBreakerTestHelper.h | 45 float descent) in ConstantRun() argument 50 mDescent(descent) { in ConstantRun()
|
/frameworks/base/core/java/android/content/res/ |
D | StringBlock.java | 513 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/ |
D | TestWallpaper.java | 224 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/ |
D | LabelView.java | 167 result = (int) (-mAscent + mTextPaint.descent()) + mPaddingTop in measureHeight()
|
/frameworks/minikin/tests/util/ |
D | FreeTypeMinikinFontForTest.cpp | 112 extent->descent = -static_cast<float>(mFtFace->descender) * paint.size / upem; in GetFontExtent()
|
/frameworks/base/core/java/android/widget/ |
D | SimpleMonthView.java | 532 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()
|
D | LinearLayout.java | 1289 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/ |
D | NotificationTopLineView.java | 214 int descent = childHeight - childBaseline; in onLayout() local 215 childTop -= (mMaxDescent - descent); in onLayout()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | Watermark.java | 92 mTextHeight = fm.descent - fm.ascent; in Watermark()
|
/frameworks/base/libs/hwui/hwui/ |
D | MinikinSkia.cpp | 99 extent->descent = metrics.fDescent; in GetFontExtent()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | PeopleHelper.java | 126 int yPos = (int) (radius - ((mTextPaint.descent() + mTextPaint.ascent()) / 2)); in createAvatarSymbol()
|
/frameworks/base/libs/hwui/jni/ |
D | Graphics.cpp | 498 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()
|