Searched refs:halfLength (Results 1 – 3 of 3) sorted by relevance
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
D | LetterTileDrawable.java | 124 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/ |
D | LetterTileDrawable.java | 121 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/ |
D | LetterTileDrawable.java | 145 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()
|