Searched refs:destRect (Results 1 – 6 of 6) sorted by relevance
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
D | LetterTileDrawable.java | 138 final Rect destRect = copyBounds(); in drawDrawableOnCanvas() local 141 final int halfLength = (int) (mScale * Math.min(destRect.width(), destRect.height()) / 2); in drawDrawableOnCanvas() 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() 150 drawable.setBounds(destRect); in drawDrawableOnCanvas()
|
/packages/apps/Contacts/src/com/android/contacts/lettertiles/ |
D | LetterTileDrawable.java | 118 final Rect destRect = copyBounds(); in drawBitmap() local 121 final int halfLength = (int) (mScale * Math.min(destRect.width(), destRect.height()) / 2); in drawBitmap() 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() 135 canvas.drawBitmap(bitmap, sRect, destRect, sPaint); in drawBitmap()
|
/packages/apps/Dialer/java/com/android/dialer/lettertile/ |
D | LetterTileDrawable.java | 143 final Rect destRect = copyBounds(); in getScaledBounds() local 145 final int halfLength = (int) (scale * Math.min(destRect.width(), destRect.height()) / 2); in getScaledBounds() 147 destRect.set( in getScaledBounds() 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() 152 return destRect; in getScaledBounds()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
D | IconFactory.java | 83 Rect destRect = new Rect(0, 0, iconWidth, iconHeight); in drawIcon() local 106 canvas.drawBitmap(sourceImage, srcRect, destRect, new Paint(Paint.FILTER_BITMAP_FLAG)); in drawIcon()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | ImageFilterTinyPlanet.java | 144 RectF destRect = new RectF(left * scale, top * scale, right * scale, bottom * scale); in applyXmp() local 145 paddedCanvas.drawBitmap(bitmapIn, null, destRect, null); in applyXmp()
|
/packages/apps/Camera2/src/com/android/camera/tinyplanet/ |
D | TinyPlanetFragment.java | 479 RectF destRect = new RectF(left * scale, top * scale, right * scale, bottom * scale); in createPaddedBitmap() local 480 paddedCanvas.drawBitmap(bitmapIn, null, destRect, null); in createPaddedBitmap()
|