Home
last modified time | relevance | path

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

/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DLetterTileDrawable.java141 final int halfLength = (int) (mScale * Math.min(destRect.width(), destRect.height()) / 2); in drawDrawableOnCanvas() local
143 destRect.set(destRect.centerX() - halfLength, in drawDrawableOnCanvas()
144 (int) (destRect.centerY() - halfLength + mOffset * destRect.height()), in drawDrawableOnCanvas()
145 destRect.centerX() + halfLength, in drawDrawableOnCanvas()
146 (int) (destRect.centerY() + halfLength + mOffset * destRect.height())); in drawDrawableOnCanvas()
/packages/apps/Car/Messenger/src/com/android/car/messenger/core/ui/shared/
DLetterTileDrawable.java146 final int halfLength = (int) (mScale * Math.min(destRect.width(), destRect.height()) / 2); in drawDrawableOnCanvas() local
149 destRect.centerX() - halfLength, in drawDrawableOnCanvas()
150 (int) (destRect.centerY() - halfLength + mOffset * destRect.height()), in drawDrawableOnCanvas()
151 destRect.centerX() + halfLength, in drawDrawableOnCanvas()
152 (int) (destRect.centerY() + halfLength + mOffset * destRect.height())); in drawDrawableOnCanvas()
/packages/apps/Contacts/src/com/android/contacts/lettertiles/
DLetterTileDrawable.java121 final int halfLength = (int) (mScale * Math.min(destRect.width(), destRect.height()) / 2); in drawBitmap() local
123 destRect.set(destRect.centerX() - halfLength, in drawBitmap()
124 (int) (destRect.centerY() - halfLength + mOffset * destRect.height()), in drawBitmap()
125 destRect.centerX() + halfLength, in drawBitmap()
126 (int) (destRect.centerY() + halfLength + mOffset * destRect.height())); in drawBitmap()
/packages/apps/Dialer/java/com/android/dialer/lettertile/
DLetterTileDrawable.java145 final int halfLength = (int) (scale * Math.min(destRect.width(), destRect.height()) / 2); in getScaledBounds() local
148 destRect.centerX() - halfLength, in getScaledBounds()
149 (int) (destRect.centerY() - halfLength + offset * destRect.height()), in getScaledBounds()
150 destRect.centerX() + halfLength, in getScaledBounds()
151 (int) (destRect.centerY() + halfLength + offset * destRect.height())); in getScaledBounds()