/frameworks/base/core/tests/coretests/src/android/text/ |
D | StaticLayoutTest.java | 57 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/ |
D | TypefaceTest.java | 75 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/ |
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/support/design/src/android/support/design/widget/ |
D | CollapsingTextHelper.java | 408 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/ |
D | SuperscriptSpan.java | 54 tp.baselineShift += (int) (tp.ascent() / 2); in updateDrawState() 59 tp.baselineShift += (int) (tp.ascent() / 2); in updateMeasureState()
|
D | SubscriptSpan.java | 54 tp.baselineShift -= (int) (tp.ascent() / 2); in updateDrawState() 59 tp.baselineShift -= (int) (tp.ascent() / 2); in updateMeasureState()
|
D | DynamicDrawableSpan.java | 81 fm.ascent = -rect.bottom; in getSize() 84 fm.top = fm.ascent; in getSize()
|
D | IconMarginSpan.java | 60 int need = ht - (v + fm.descent - fm.ascent - istartv); in chooseHeight()
|
D | DrawableMarginSpan.java | 63 int need = ht - (v + fm.descent - fm.ascent - istartv); in chooseHeight()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | AbstractDetailsDescriptionPresenter.java | 66 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/ |
D | StringBlock.java | 428 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/ |
D | BoringLayout.java | 188 spacing = metrics.descent - metrics.ascent; in init() 210 mTopPadding = metrics.top - metrics.ascent; in init() 437 ascent = 0; in reset()
|
D | StaticLayout.java | 734 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;
|
D | TextLine.java | 656 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/ |
D | Paint.cpp | 57 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/ |
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/base/core/java/android/widget/ |
D | SimpleMonthView.java | 527 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/ |
D | Watermark.java | 95 mTextHeight = fm.descent - fm.ascent; in Watermark()
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/ |
D | AmPmCirclesView.java | 207 int textYCenter = mAmPmYCenter - (int) (mPaint.descent() + mPaint.ascent()) / 2; in onDraw()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
D | ErrorFragment.java | 182 setTopMargin(mTextView, underImageBaselineMargin + metrics.ascent); in onCreateView()
|
D | ErrorSupportFragment.java | 184 setTopMargin(mTextView, underImageBaselineMargin + metrics.ascent); in onCreateView()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | InternalSelectionView.java | 178 rectTop + 2 - (int) mTextPaint.ascent(), in onDraw()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | BatteryMeterDrawable.java | 265 mWarningTextHeight = -mWarningTextPaint.getFontMetrics().ascent; in setBounds() 458 mTextHeight = -mTextPaint.getFontMetrics().ascent; in draw()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Paint.java | 1563 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()
|