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 | 121 final Rect destRect = copyBounds(); in drawDrawableOnCanvas() local 124 final int halfLength = (int) (mScale * Math.min(destRect.width(), destRect.height()) / 2); in drawDrawableOnCanvas() 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() 133 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()
|