Searched refs:destRect (Results 1 – 7 of 7) sorted by relevance
/packages/apps/Car/RotaryController/src/com/android/car/rotary/ |
D | FocusFinder.java | 49 static boolean isPartiallyInDirection(Rect srcRect, Rect destRect, int direction) { in isPartiallyInDirection() argument 52 return destRect.left < srcRect.right; in isPartiallyInDirection() 54 return destRect.right > srcRect.left; in isPartiallyInDirection() 56 return destRect.top < srcRect.bottom; in isPartiallyInDirection() 58 return destRect.bottom > srcRect.top; in isPartiallyInDirection() 73 static boolean isInDirection(Rect srcRect, Rect destRect, int direction) { in isInDirection() argument 76 if (isStrictlyInDirection(srcRect, destRect, direction)) { in isInDirection() 84 && isStrictlyInDirection(srcRect, destRect, DIRECTIONS[i])) { in isInDirection() 92 return destRect.left < srcRect.left; in isInDirection() 94 return destRect.right > srcRect.right; in isInDirection() [all …]
|
/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/Launcher3/src/com/android/launcher3/dragndrop/ |
D | DragLayer.java | 275 Rect destRect = new Rect(); in animateViewIntoPosition() local 276 d.getWorkspaceVisualDragBounds(destRect); in animateViewIntoPosition() 280 toScale *= ((1f * destRect.width()) in animateViewIntoPosition() 288 … toX += scale * destRect.left - toScale * dragView.getBlurSizeOutline() / 2 - scaleShiftX; in animateViewIntoPosition() 289 toY += scale * destRect.top - toScale * dragView.getBlurSizeOutline() / 2 - scaleShiftY; in animateViewIntoPosition()
|
/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 | 481 RectF destRect = new RectF(left * scale, top * scale, right * scale, bottom * scale); in createPaddedBitmap() local 482 paddedCanvas.drawBitmap(bitmapIn, null, destRect, null); in createPaddedBitmap()
|