Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/coretests/src/android/text/
DStaticLayoutTest.java51 fmi.ascent, fmi.descent); in testGetters1()
74 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testGetters2()
90 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testGetters3()
92 fmi.ascent, fmi.bottom); in testGetters3()
108 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testGetters4()
110 fmi.ascent, fmi.descent, in testGetters4()
111 fmi.ascent, fmi.bottom); in testGetters4()
136 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testGetters5()
138 fmi.ascent, fmi.descent, in testGetters5()
139 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.java33 final int textHeight = fm.descent - fm.ascent; in setupFontMetrics()
35 fm.ascent = Math.min(fm.top, fm.top + (textHeight - bounds.bottom) / 2) - halfMargin; in setupFontMetrics()
38 fm.top = fm.ascent; in setupFontMetrics()
/frameworks/base/core/java/android/text/style/
DSuperscriptSpan.java44 tp.baselineShift += (int) (tp.ascent() / 2); in updateDrawState()
49 tp.baselineShift += (int) (tp.ascent() / 2); in updateMeasureState()
DSubscriptSpan.java44 tp.baselineShift -= (int) (tp.ascent() / 2); in updateDrawState()
49 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.java59 mTitleMargin = titleAscent + titleFontMetricsInt.ascent; in ViewHolder()
140 vh.mSubtitleFontMetricsInt.ascent - vh.mTitleFontMetricsInt.descent); in onBindViewHolder()
155 vh.mBodyFontMetricsInt.ascent - vh.mSubtitleFontMetricsInt.descent); in onBindViewHolder()
158 vh.mBodyFontMetricsInt.ascent - vh.mTitleFontMetricsInt.descent); in onBindViewHolder()
/frameworks/base/core/java/android/content/res/
DStringBlock.java424 fm.ascent = fm.ascent - size; in chooseHeight()
439 sProportion = (r.top) / p.ascent(); in chooseHeight()
450 fm.ascent = fm.descent - size; in chooseHeight()
457 fm.top = fm.ascent = -need; in chooseHeight()
464 fm.top = fm.ascent = -size; in chooseHeight()
/frameworks/base/core/java/android/text/
DTextLine.java243 float bmAscent = ascent(j); in draw()
357 float bmAscent = ascent(j); in measure()
686 final int previousAscent = fmi.ascent; in expandMetricsFromPaint()
700 fmi.ascent = Math.min(fmi.ascent, previousAscent); in updateMetrics()
838 previousAscent = fmi.ascent; in handleReplacement()
1001 float ascent(int pos) { in ascent() method
1003 return mPaint.ascent(); in ascent()
1009 return mPaint.ascent(); in ascent()
1017 return wp.ascent(); in ascent()
DBoringLayout.java188 spacing = metrics.descent - metrics.ascent; in init()
196 mDesc = spacing + metrics.ascent; in init()
215 mTopPadding = metrics.top - metrics.ascent; in init()
DStaticLayout.java290 int fmAscent = fm.ascent; in generate()
332 float wid = bm.getWidth() * -whichPaint.ascent() / bm.getHeight(); in generate()
463 fitAscent = fm.ascent; in generate()
496 bufEnd, bufEnd, fm.ascent, fm.descent, in generate()
538 fm.ascent = above;
553 above = fm.ascent;
DMeasuredText.java217 fm.ascent += workPaint.baselineShift; in addStyleRun()
/frameworks/base/core/jni/android/graphics/
DPaint.cpp52 jfieldID ascent; member
464 static jfloat ascent(JNIEnv* env, jobject paint) { in ascent() function in android::PaintGlue
486 … env->SetFloatField(metricsObj, gFontMetrics_fieldID.ascent, SkScalarToFloat(metrics.fAscent)); in getFontMetrics()
499 int ascent = SkScalarRoundToInt(metrics.fAscent); in getFontMetricsInt() local
506 env->SetIntField(metricsObj, gFontMetricsInt_fieldID.ascent, ascent); in getFontMetricsInt()
511 return descent - ascent + leading; in getFontMetricsInt()
993 {"ascent","!()F", (void*) PaintGlue::ascent},
1035 gFontMetrics_fieldID.ascent = req_fieldID(env->GetFieldID(gFontMetrics_class, "ascent", "F")); in register_android_graphics_Paint()
1045 …gFontMetricsInt_fieldID.ascent = req_fieldID(env->GetFieldID(gFontMetricsInt_class, "ascent", "I")… in register_android_graphics_Paint()
/frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/
DTestWallpaper.java216 final int ascdesc = (int)(-mTextMetrics.ascent + mTextMetrics.descent); in drawFrame()
217 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/graphics/java/android/graphics/
DPaint.java1329 public native float ascent(); in ascent() method in Paint
1355 public float ascent; field in Paint.FontMetrics
1398 public int ascent; field in Paint.FontMetricsInt
1404 return "FontMetricsInt: top=" + top + " ascent=" + ascent + in toString()
/frameworks/base/core/tests/coretests/src/android/util/
DInternalSelectionView.java178 rectTop + 2 - (int) mTextPaint.ascent(), in onDraw()
/frameworks/base/services/core/java/com/android/server/wm/
DWatermark.java93 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/
DErrorSupportFragment.java222 setTopMargin(mTextView, underImageBaselineMargin + metrics.ascent); in onCreateView()
DErrorFragment.java220 setTopMargin(mTextView, underImageBaselineMargin + metrics.ascent); in onCreateView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DBatteryMeterView.java282 mWarningTextHeight = -mWarningTextPaint.getFontMetrics().ascent; in onSizeChanged()
406 mTextHeight = -mTextPaint.getFontMetrics().ascent; in draw()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DLinearLayoutCompat.java1099 final int ascent = Math.max(maxAscent[INDEX_FILL], in measureHorizontal() local
1105 maxHeight = Math.max(maxHeight, ascent + descent); in measureHorizontal()
1256 final int ascent = Math.max(maxAscent[INDEX_FILL], in measureHorizontal() local
1262 maxHeight = Math.max(maxHeight, ascent + descent); in measureHorizontal()

12