/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; 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/ |
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() 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/ |
D | TypefaceTest.java | 93 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/ |
D | ReplacementDrawableSpan.java | 34 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/ |
D | SubscriptSpan.java | 82 textPaint.baselineShift -= (int) (textPaint.ascent() / 2); in updateDrawState() 87 textPaint.baselineShift -= (int) (textPaint.ascent() / 2); in updateMeasureState()
|
D | SuperscriptSpan.java | 79 textPaint.baselineShift += (int) (textPaint.ascent() / 2); in updateDrawState() 84 textPaint.baselineShift += (int) (textPaint.ascent() / 2); in updateMeasureState()
|
D | LineHeightSpan.java | 142 final int originHeight = fm.descent - fm.ascent; in chooseHeight() 149 fm.ascent = fm.descent - mHeight; in chooseHeight()
|
D | DynamicDrawableSpan.java | 148 fm.ascent = -rect.bottom; in getSize() 151 fm.top = fm.ascent; in getSize()
|
D | IconMarginSpan.java | 101 int need = ht - (v + fm.descent - fm.ascent - istartv); in chooseHeight()
|
D | DrawableMarginSpan.java | 104 int need = ht - (v + fm.descent - fm.ascent - istartv); in chooseHeight()
|
/frameworks/base/core/java/android/content/res/ |
D | StringBlock.java | 466 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/ |
D | StaticLayout.java | 829 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;
|
D | BoringLayout.java | 246 spacing = metrics.descent - metrics.ascent; in init() 269 mTopPadding = metrics.top - metrics.ascent; in init() 490 ascent = 0; in reset()
|
D | MeasuredParagraph.java | 605 mCachedFm.ascent += mCachedPaint.baselineShift; in applyMetricsAffectingSpan() 614 mFontMetrics.append(mCachedFm.ascent); in applyMetricsAffectingSpan()
|
D | TextLine.java | 781 final int previousAscent = fmi.ascent; 795 fmi.ascent = Math.min(fmi.ascent, previousAscent); 993 previousAscent = fmi.ascent;
|
/frameworks/minikin/tests/unittest/ |
D | LineBreakerTestHelper.h | 44 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/ |
D | Paint.cpp | 62 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/ |
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 | 161 mAscent = (int) mTextPaint.ascent(); in measureHeight()
|
/frameworks/minikin/tests/util/ |
D | FreeTypeMinikinFontForTest.cpp | 113 extent->ascent = -static_cast<float>(mFtFace->ascender) * 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()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | InternalSelectionView.java | 175 rectTop + 2 - (int) mTextPaint.ascent(), 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 | 98 extent->ascent = metrics.fAscent; in GetFontExtent()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/ |
D | BatteryMeterDrawableBase.java | 254 mWarningTextHeight = -mWarningTextPaint.getFontMetrics().ascent; in updateSize() 436 mTextHeight = -mTextPaint.getFontMetrics().ascent; in draw()
|