/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 …]
|
D | DynamicLayoutTest.java | 240 assertEquals(2 * textSize, paint.descent(), 0.0f); in testFallbackLineSpacing()
|
/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/core/tests/coretests/src/android/graphics/ |
D | TypefaceTest.java | 94 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/ |
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/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 | 782 final int previousDescent = fmi.descent; 796 fmi.descent = Math.max(fmi.descent, previousDescent); 994 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 | 486 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/ |
D | Paint.cpp | 63 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/ |
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 | 114 extent->descent = -static_cast<float>(mFtFace->descender) * paint.size / upem; in GetFontExtent()
|
/frameworks/base/core/java/android/widget/ |
D | SimpleMonthView.java | 530 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()
|
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/opt/datetimepicker/src/com/android/datetimepicker/time/ |
D | AmPmCirclesView.java | 207 int textYCenter = mAmPmYCenter - (int) (mPaint.descent() + mPaint.ascent()) / 2; in onDraw()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | Watermark.java | 94 mTextHeight = fm.descent - fm.ascent; in Watermark()
|
/frameworks/base/libs/hwui/hwui/ |
D | MinikinSkia.cpp | 99 extent->descent = metrics.fDescent; in GetFontExtent()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Paint.java | 2026 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()
|