/frameworks/base/core/tests/coretests/src/android/text/ |
D | StaticLayoutTest.java | 52 fmi.ascent, fmi.descent); in testGetters1() 75 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testGetters2() 91 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testGetters3() 92 fmi.top, fmi.descent, in testGetters3() 109 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testGetters4() 110 fmi.top, fmi.descent, in testGetters4() 111 fmi.ascent, fmi.descent, in testGetters4() 137 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testGetters5() 138 fmi.top, fmi.descent, in testGetters5() 139 fmi.ascent, fmi.descent, in testGetters5() [all …]
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | TypefaceTest.java | 77 float descent = 0; in testUniformY() local 83 descent = fm.descent; in testUniformY() 86 assertTrue("fontMetrics", fm.descent == descent); in testUniformY()
|
/frameworks/support/emoji/core/src/android/support/text/emoji/ |
D | EmojiSpan.java | 79 final int fontHeight = Math.abs(mTmpFontMetrics.descent - mTmpFontMetrics.ascent); in getSize() 87 fm.descent = mTmpFontMetrics.descent; in getSize()
|
/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/support/design/src/android/support/design/widget/ |
D | CollapsingTextHelper.java | 412 float textHeight = mTextPaint.descent() - mTextPaint.ascent(); in calculateBaseOffsets() 413 float textOffset = (textHeight / 2) - mTextPaint.descent(); in calculateBaseOffsets() 444 float textHeight = mTextPaint.descent() - mTextPaint.ascent(); in calculateBaseOffsets() 445 float textOffset = (textHeight / 2) - mTextPaint.descent(); in calculateBaseOffsets() 489 final float descent; in draw() local 492 descent = mTextureDescent * mScale; in draw() 495 descent = mTextPaint.descent() * mScale; in draw() 500 canvas.drawRect(mCurrentBounds.left, y + ascent, mCurrentBounds.right, y + descent, in draw() 627 mTextureDescent = mTextPaint.descent(); in ensureExpandedTexture() 639 c.drawText(mTextToDraw, 0, mTextToDraw.length(), 0, h - mTextPaint.descent(), mTextPaint); in ensureExpandedTexture()
|
/frameworks/base/core/java/android/text/style/ |
D | IconMarginSpan.java | 60 int need = ht - (v + fm.descent - fm.ascent - istartv); in chooseHeight() 62 fm.descent += need; in chooseHeight()
|
D | DrawableMarginSpan.java | 63 int need = ht - (v + fm.descent - fm.ascent - istartv); in chooseHeight() 65 fm.descent += need; in chooseHeight()
|
D | DynamicDrawableSpan.java | 82 fm.descent = 0; in getSize() 100 transY -= paint.getFontMetricsInt().descent; in draw()
|
/frameworks/base/core/java/android/text/ |
D | BoringLayout.java | 188 spacing = metrics.descent - metrics.ascent; in init() 189 mDesc = metrics.descent; in init() 211 mBottomPadding = metrics.bottom - metrics.descent; in init() 419 descent = 0; in reset()
|
D | StaticLayout.java | 753 fmCache[fmCacheCount * 4 + 3] = fm.descent; 811 fm.descent = fmCache[fmCacheIndex * 4 + 3]; 820 if (fm.descent > fmDescent) { 821 fmDescent = fm.descent; 849 fmDescent = fm.descent; 876 bufEnd, bufEnd, fm.ascent, fm.descent, 919 fm.descent = below; 934 below = fm.descent;
|
D | TextLine.java | 679 final int previousDescent = fmi.descent; in expandMetricsFromPaint() 693 fmi.descent = Math.max(fmi.descent, previousDescent); in updateMetrics() 831 previousDescent = fmi.descent; in handleReplacement()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | AbstractDetailsDescriptionPresenter.java | 183 + vh.mSubtitleFontMetricsInt.ascent - vh.mTitleFontMetricsInt.descent); in onBindViewHolder() 198 + vh.mBodyFontMetricsInt.ascent - vh.mSubtitleFontMetricsInt.descent); in onBindViewHolder() 201 + vh.mBodyFontMetricsInt.ascent - vh.mTitleFontMetricsInt.descent); in onBindViewHolder()
|
D | RowHeaderPresenter.java | 224 return fontMeasurePaint.descent(); in getFontDescent()
|
/frameworks/base/core/java/android/content/res/ |
D | StringBlock.java | 448 if (size - fm.descent >= need) { in chooseHeight() 454 fm.ascent = fm.descent - size; in chooseHeight() 462 fm.bottom = fm.descent = fm.top + size; in chooseHeight() 469 fm.bottom = fm.descent = 0; in chooseHeight()
|
/frameworks/base/core/jni/android/graphics/ |
D | Paint.cpp | 57 jfieldID descent; member 610 … env->SetFloatField(metricsObj, gFontMetrics_fieldID.descent, SkScalarToFloat(metrics.fDescent)); in getFontMetrics() 623 int descent = SkScalarRoundToInt(metrics.fDescent); in getFontMetricsInt() local 630 env->SetIntField(metricsObj, gFontMetricsInt_fieldID.descent, descent); in getFontMetricsInt() 634 return descent - ascent + leading; in getFontMetricsInt() 958 static jfloat descent(jlong paintHandle, jlong typefaceHandle) { in descent() function 1074 {"nDescent","(JJ)F", (void*) PaintGlue::descent}, 1085 gFontMetrics_fieldID.descent = GetFieldIDOrDie(env, gFontMetrics_class, "descent", "F"); in register_android_graphics_Paint() 1094 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/support/v7/appcompat/src/android/support/v7/widget/ |
D | LinearLayoutCompat.java | 1106 final int descent = Math.max(maxDescent[INDEX_FILL], in measureHorizontal() local 1109 maxHeight = Math.max(maxHeight, ascent + descent); in measureHorizontal() 1263 final int descent = Math.max(maxDescent[INDEX_FILL], in measureHorizontal() local 1266 maxHeight = Math.max(maxHeight, ascent + descent); in measureHorizontal() 1620 int descent = child.getMeasuredHeight() - childBaseline; in layoutHorizontal() local 1621 childTop -= (maxDescent[INDEX_BOTTOM] - descent); in layoutHorizontal()
|
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/ |
D | EmojiSpanTest.java | 68 fontMetrics.descent = -fontHeight; in testGetSize()
|
/frameworks/base/core/java/android/widget/ |
D | SimpleMonthView.java | 528 final float halfLineHeight = (p.ascent() + p.descent()) / 2f; in findClosestRow() 622 final float lineHeight = mMonthPaint.ascent() + mMonthPaint.descent(); in drawMonth() 639 final float halfLineHeight = (p.ascent() + p.descent()) / 2f; in drawDaysOfWeek() 666 final float halfLineHeight = (p.ascent() + p.descent()) / 2f; in drawDays()
|
D | LinearLayout.java | 1252 final int descent = Math.max(maxDescent[INDEX_FILL], in measureHorizontal() local 1255 maxHeight = Math.max(maxHeight, ascent + descent); in measureHorizontal() 1401 final int descent = Math.max(maxDescent[INDEX_FILL], in measureHorizontal() local 1404 maxHeight = Math.max(maxHeight, ascent + descent); in measureHorizontal() 1766 int descent = child.getMeasuredHeight() - childBaseline; in layoutHorizontal() local 1767 childTop -= (maxDescent[INDEX_BOTTOM] - descent); in layoutHorizontal()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
D | ErrorSupportFragment.java | 185 setTopMargin(mButton, underMessageBaselineMargin - metrics.descent); in onCreateView()
|
D | ErrorFragment.java | 182 setTopMargin(mButton, underMessageBaselineMargin - metrics.descent); in onCreateView()
|
/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 | 95 mTextHeight = fm.descent - fm.ascent; in Watermark()
|