Home
last modified time | relevance | path

Searched refs:textBound (Results 1 – 4 of 4) sorted by relevance

/aosp12/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
H A DSimSelectorAvatarRequest.java102 final Rect textBound = new Rect(); in renderSimAvatarInternal() local
103 paint.getTextBounds(firstCharString, 0, 1, textBound); in renderSimAvatarInternal()
105 final float xOffset = halfWidth - textBound.centerX(); in renderSimAvatarInternal()
106 final float yOffset = halfHeight - textBound.centerY(); in renderSimAvatarInternal()
H A DAvatarRequest.java170 final Rect textBound = new Rect(); in renderLetterTile() local
171 paint.getTextBounds(firstCharString, 0, 1, textBound); in renderLetterTile()
174 final float xOffset = halfWidth - textBound.centerX(); in renderLetterTile()
175 final float yOffset = halfHeight - textBound.centerY(); in renderLetterTile()
/aosp12/packages/apps/Settings/src/com/android/settings/accessibility/
H A DPaletteListPreference.java134 final float textBound = (textWidth + textPadding) / getScreenWidthPixels(context); in initPaletteView() local
135 mGradientOffsets.set(Position.CENTER, textBound); in initPaletteView()
/aosp12/frameworks/base/telephony/java/android/telephony/
H A DSubscriptionInfo.java431 final Rect textBound = new Rect(); in createIconBitmap() local
432 paint.getTextBounds(index, 0, 1, textBound); in createIconBitmap()
433 final float xOffset = (width / 2.f) - textBound.centerX(); in createIconBitmap()
434 final float yOffset = (height / 2.f) - textBound.centerY(); in createIconBitmap()