/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() 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/ |
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 | 35 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()
|
D | MeasuredText.cpp | 146 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/ |
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/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/ |
D | CenteredImageSpan.java | 43 fontMetrics.descent = paintFontMetrics.descent; in getSize()
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | TypefaceTest.java | 117 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/ |
D | StaticLayout.java | 809 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 …]
|
D | BoringLayout.java | 444 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/ |
D | DoubleShadowTextClock.kt | 130 floor(metrics.descent.toDouble()).toInt() / paddingDividedOffset in initializeAttributes() 132 textDescentExtraPadding - floor(metrics.descent.toDouble()).toInt() in initializeAttributes()
|
/frameworks/minikin/libs/minikin/ |
D | GreedyLineBreaker.cpp | 523 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()
|
D | OptimalLineBreaker.cpp | 388 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/ |
D | Paint.java | 2186 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/ |
D | LineBreakerTestHelper.h | 45 float descent) in ConstantRun() argument 50 mDescent(descent) { in ConstantRun()
|
/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/java/android/content/res/ |
D | StringBlock.java | 571 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/ |
D | LabelView.java | 167 result = (int) (-mAscent + mTextPaint.descent()) + mPaddingTop in measureHeight()
|
/frameworks/base/graphics/java/android/graphics/text/ |
D | MeasuredText.java | 163 outMetrics.descent = (int) (packed & 0xFFFFFFFF); in getFontMetricsInt() 165 outMetrics.bottom = Math.max(outMetrics.descent, mBottom); in getFontMetricsInt()
|
/frameworks/minikin/tests/util/ |
D | FreeTypeMinikinFontForTest.cpp | 113 extent->descent = -static_cast<float>(mFtFace->descender) * paint.size / upem; in GetFontExtent()
|
/frameworks/base/core/java/android/widget/ |
D | SimpleMonthView.java | 541 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/ |
D | NotificationTopLineView.java | 217 int descent = childHeight - childBaseline; in onLayout() local 218 childTop -= (mMaxDescent - descent); in onLayout()
|