Home
last modified time | relevance | path

Searched refs:ascent (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/text/
DStaticLayoutTest.java57 fmi.ascent, fmi.descent); in testGetters1()
80 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testGetters2()
96 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testGetters3()
98 fmi.ascent, fmi.bottom); in testGetters3()
114 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testGetters4()
116 fmi.ascent, fmi.descent, in testGetters4()
117 fmi.ascent, fmi.bottom); in testGetters4()
142 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testGetters5()
144 fmi.ascent, fmi.descent, in testGetters5()
145 fmi.ascent, fmi.bottom); in testGetters5()
[all …]
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
DTypefaceTest.java75 float ascent = 0; in testUniformY() local
81 ascent = fm.ascent; in testUniformY()
84 assertTrue("fontMetrics", fm.ascent == ascent); in testUniformY()
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/
DReplacementDrawableSpan.java34 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/support/design/src/android/support/design/widget/
DCollapsingTextHelper.java408 mCollapsedDrawY = mCollapsedBounds.top - mTextPaint.ascent(); in calculateBaseOffsets()
412 float textHeight = mTextPaint.descent() - mTextPaint.ascent(); in calculateBaseOffsets()
440 mExpandedDrawY = mExpandedBounds.top - mTextPaint.ascent(); in calculateBaseOffsets()
444 float textHeight = mTextPaint.descent() - mTextPaint.ascent(); in calculateBaseOffsets()
488 final float ascent; in draw() local
491 ascent = mTextureAscent * mScale; in draw()
494 ascent = mTextPaint.ascent() * mScale; in draw()
500 canvas.drawRect(mCurrentBounds.left, y + ascent, mCurrentBounds.right, y + descent, in draw()
505 y += ascent; in draw()
622 mTextureAscent = mTextPaint.ascent(); in ensureExpandedTexture()
/frameworks/base/core/java/android/text/style/
DSuperscriptSpan.java54 tp.baselineShift += (int) (tp.ascent() / 2); in updateDrawState()
59 tp.baselineShift += (int) (tp.ascent() / 2); in updateMeasureState()
DSubscriptSpan.java54 tp.baselineShift -= (int) (tp.ascent() / 2); in updateDrawState()
59 tp.baselineShift -= (int) (tp.ascent() / 2); in updateMeasureState()
DDynamicDrawableSpan.java81 fm.ascent = -rect.bottom; in getSize()
84 fm.top = fm.ascent; in getSize()
DIconMarginSpan.java60 int need = ht - (v + fm.descent - fm.ascent - istartv); in chooseHeight()
DDrawableMarginSpan.java63 int need = ht - (v + fm.descent - fm.ascent - istartv); in chooseHeight()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DAbstractDetailsDescriptionPresenter.java66 mTitleMargin = titleAscent + titleFontMetricsInt.ascent; in ViewHolder()
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()
/frameworks/base/core/java/android/content/res/
DStringBlock.java428 fm.ascent = fm.ascent - size; in chooseHeight()
443 sProportion = (r.top) / p.ascent(); in chooseHeight()
454 fm.ascent = fm.descent - size; in chooseHeight()
461 fm.top = fm.ascent = -need; in chooseHeight()
468 fm.top = fm.ascent = -size; in chooseHeight()
/frameworks/base/core/java/android/text/
DBoringLayout.java188 spacing = metrics.descent - metrics.ascent; in init()
210 mTopPadding = metrics.top - metrics.ascent; in init()
437 ascent = 0; in reset()
DStaticLayout.java734 fmCache[fmCacheCount * 4 + 2] = fm.ascent;
792 fm.ascent = fmCache[fmCacheIndex * 4 + 2];
799 if (fm.ascent < fmAscent) {
800 fmAscent = fm.ascent;
830 fmAscent = fm.ascent;
858 bufEnd, bufEnd, fm.ascent, fm.descent,
900 fm.ascent = above;
915 above = fm.ascent;
DTextLine.java656 final int previousAscent = fmi.ascent; in expandMetricsFromPaint()
670 fmi.ascent = Math.min(fmi.ascent, previousAscent); in updateMetrics()
807 previousAscent = fmi.ascent; in handleReplacement()
/frameworks/base/core/jni/android/graphics/
DPaint.cpp57 jfieldID ascent; member
429 static jfloat ascent(JNIEnv* env, jobject, jlong paintHandle, jlong typefaceHandle) { in ascent() function
449 … env->SetFloatField(metricsObj, gFontMetrics_fieldID.ascent, SkScalarToFloat(metrics.fAscent)); in getFontMetrics()
462 int ascent = SkScalarRoundToInt(metrics.fAscent); in getFontMetricsInt() local
469 env->SetIntField(metricsObj, gFontMetricsInt_fieldID.ascent, ascent); in getFontMetricsInt()
474 return descent - ascent + leading; in getFontMetricsInt()
988 {"nAscent","!(JJ)F", (void*) PaintGlue::ascent},
1026 gFontMetrics_fieldID.ascent = GetFieldIDOrDie(env, gFontMetrics_class, "ascent", "F"); in register_android_graphics_Paint()
1035 gFontMetricsInt_fieldID.ascent = GetFieldIDOrDie(env, gFontMetricsInt_class, "ascent", "I"); in register_android_graphics_Paint()
/frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/
DTestWallpaper.java224 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/
DLabelView.java161 mAscent = (int) mTextPaint.ascent(); in measureHeight()
/frameworks/base/core/java/android/widget/
DSimpleMonthView.java527 final float halfLineHeight = (p.ascent() + p.descent()) / 2f; in findClosestRow()
621 final float lineHeight = mMonthPaint.ascent() + mMonthPaint.descent(); in drawMonth()
638 final float halfLineHeight = (p.ascent() + p.descent()) / 2f; in drawDaysOfWeek()
665 final float halfLineHeight = (p.ascent() + p.descent()) / 2f; in drawDays()
/frameworks/base/services/core/java/com/android/server/wm/
DWatermark.java95 mTextHeight = fm.descent - fm.ascent; in Watermark()
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/
DAmPmCirclesView.java207 int textYCenter = mAmPmYCenter - (int) (mPaint.descent() + mPaint.ascent()) / 2; in onDraw()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
DErrorFragment.java182 setTopMargin(mTextView, underImageBaselineMargin + metrics.ascent); in onCreateView()
DErrorSupportFragment.java184 setTopMargin(mTextView, underImageBaselineMargin + metrics.ascent); in onCreateView()
/frameworks/base/core/tests/coretests/src/android/util/
DInternalSelectionView.java178 rectTop + 2 - (int) mTextPaint.ascent(), in onDraw()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DBatteryMeterDrawable.java265 mWarningTextHeight = -mWarningTextPaint.getFontMetrics().ascent; in setBounds()
458 mTextHeight = -mTextPaint.getFontMetrics().ascent; in draw()
/frameworks/base/graphics/java/android/graphics/
DPaint.java1563 public float ascent() { in ascent() method in Paint
1597 public float ascent; field in Paint.FontMetrics
1645 public int ascent; field in Paint.FontMetricsInt
1651 return "FontMetricsInt: top=" + top + " ascent=" + ascent + in toString()

12