Home
last modified time | relevance | path

Searched refs:textHeight (Results 1 – 9 of 9) sorted by relevance

/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/
DReplacementDrawableSpan.java34 final int textHeight = fm.descent - fm.ascent; in setupFontMetrics() local
36 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()
/frameworks/base/core/java/com/android/internal/widget/
DEmphasizedNotificationButton.java445 final int textHeight = (int) -textPaint.ascent(); in updateMeasureState() local
451 if (textHeight < mImageHeight) { in updateMeasureState()
452 mBaselineShiftOffset = -(mImageHeight - textHeight) / 2; in updateMeasureState()
462 + "textHeight = " + textHeight + "px, " in updateMeasureState()
/frameworks/base/core/java/android/hardware/input/
DKeyboardLayoutPreviewDrawable.java270 float textHeight = textBounds.height(); in measureGlyphs() local
271 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() local
284 if (textWidth == 0 || textHeight == 0 || keyWidth == 0 || keyHeight == 0) { in draw()
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/
DDrawTextAnchored.java190 float textHeight = scale * (mBounds[3] - mBounds[1]); in getVerticalOffset() local
191 return (boxHeight - textHeight) * (1 - mOutPanY) / 2 in getVerticalOffset()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DPasswordTextView.java283 float textHeight = mTextHeightRaw * getResources().getDisplayMetrics().scaledDensity; in getCharBounds() local
284 mDrawPaint.setTextSize(textHeight); in getCharBounds()
/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/
DWallpaperBackupAgent.java520 String textHeight = readText(parser); in parseDeviceDimensions() local
521 height = Integer.valueOf(textHeight); in parseDeviceDimensions()
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/
DPeopleTileViewHelper.java628 int textHeight = estimateTextHeight(text, textSizeResId, maxTextWidth); in createDndRemoteViews() local
629 if (textHeight <= maxTextHeight && mLayoutSize == LAYOUT_LARGE) { in createDndRemoteViews()
632 availableAvatarHeight = heightWithoutIcon - textHeight - paddingBetweenElements * 2; in createDndRemoteViews()
/frameworks/base/core/java/android/widget/
DCalendarViewLegacyDelegate.java1450 final float textHeight = mDrawPaint.getTextSize(); in drawWeekNumbersAndDates() local
1451 final int y = (int) ((mHeight + textHeight) / 2) - mWeekSeparatorLineWidth; in drawWeekNumbersAndDates()
DEditor.java5973 final int textHeight = layout.getLineBottom(line, /* includeLineSpacing= */ false) in transformEventForTouchThrough() local
5982 ev.getRawY() - ev.getY() - (textHeight >> 1) - mTouchDownY); in transformEventForTouchThrough()