Searched refs:textHeight (Results 1 – 9 of 9) sorted by relevance
34 final int textHeight = fm.descent - fm.ascent; in setupFontMetrics() local36 fm.ascent = Math.min(fm.top, fm.top + (textHeight - bounds.bottom) / 2) - halfMargin; in setupFontMetrics()37 fm.descent = Math.max(fm.bottom, fm.bottom + (bounds.bottom - textHeight) / 2) in setupFontMetrics()
445 final int textHeight = (int) -textPaint.ascent(); in updateMeasureState() local451 if (textHeight < mImageHeight) { in updateMeasureState()452 mBaselineShiftOffset = -(mImageHeight - textHeight) / 2; in updateMeasureState()462 + "textHeight = " + textHeight + "px, " in updateMeasureState()
270 float textHeight = textBounds.height(); in measureGlyphs() local271 glyph.rect.set(centerX - textWidth / 2, centerY - textHeight / 2 - textBounds.top, in measureGlyphs()272 centerX + textWidth / 2, centerY + textHeight / 2 - textBounds.top); in measureGlyphs()281 float textHeight = glyph.rect.height(); in draw() local284 if (textWidth == 0 || textHeight == 0 || keyWidth == 0 || keyHeight == 0) { in draw()
190 float textHeight = scale * (mBounds[3] - mBounds[1]); in getVerticalOffset() local191 return (boxHeight - textHeight) * (1 - mOutPanY) / 2 in getVerticalOffset()
283 float textHeight = mTextHeightRaw * getResources().getDisplayMetrics().scaledDensity; in getCharBounds() local284 mDrawPaint.setTextSize(textHeight); in getCharBounds()
520 String textHeight = readText(parser); in parseDeviceDimensions() local521 height = Integer.valueOf(textHeight); in parseDeviceDimensions()
628 int textHeight = estimateTextHeight(text, textSizeResId, maxTextWidth); in createDndRemoteViews() local629 if (textHeight <= maxTextHeight && mLayoutSize == LAYOUT_LARGE) { in createDndRemoteViews()632 availableAvatarHeight = heightWithoutIcon - textHeight - paddingBetweenElements * 2; in createDndRemoteViews()
1450 final float textHeight = mDrawPaint.getTextSize(); in drawWeekNumbersAndDates() local1451 final int y = (int) ((mHeight + textHeight) / 2) - mWeekSeparatorLineWidth; in drawWeekNumbersAndDates()
5973 final int textHeight = layout.getLineBottom(line, /* includeLineSpacing= */ false) in transformEventForTouchThrough() local5982 ev.getRawY() - ev.getY() - (textHeight >> 1) - mTouchDownY); in transformEventForTouchThrough()