Home
last modified time | relevance | path

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

/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DLetterTileDrawable.java124 final int halfLength = (int) (mScale * Math.min(destRect.width(), destRect.height()) / 2); in drawDrawableOnCanvas() local
126 destRect.set(destRect.centerX() - halfLength, in drawDrawableOnCanvas()
127 (int) (destRect.centerY() - halfLength + mOffset * destRect.height()), in drawDrawableOnCanvas()
128 destRect.centerX() + halfLength, in drawDrawableOnCanvas()
129 (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()