Home
last modified time | relevance | path

Searched refs:destRect (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Car/RotaryController/src/com/android/car/rotary/
DFocusFinder.java49 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/Car/libs/car-apps-common/src/com/android/car/apps/common/
DLetterTileDrawable.java138 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/Car/Messenger/src/com/android/car/messenger/core/ui/shared/
DLetterTileDrawable.java143 final Rect destRect = copyBounds(); in drawDrawableOnCanvas() local
146 final int halfLength = (int) (mScale * Math.min(destRect.width(), destRect.height()) / 2); in drawDrawableOnCanvas()
148 destRect.set( in drawDrawableOnCanvas()
149 destRect.centerX() - halfLength, in drawDrawableOnCanvas()
150 (int) (destRect.centerY() - halfLength + mOffset * destRect.height()), in drawDrawableOnCanvas()
151 destRect.centerX() + halfLength, in drawDrawableOnCanvas()
152 (int) (destRect.centerY() + halfLength + mOffset * destRect.height())); in drawDrawableOnCanvas()
156 drawable.setBounds(destRect); in drawDrawableOnCanvas()
/packages/apps/Contacts/src/com/android/contacts/lettertiles/
DLetterTileDrawable.java118 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/
DLetterTileDrawable.java143 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/Launcher3/src/com/android/launcher3/dragndrop/
DDragLayer.java272 Rect destRect = new Rect(); in animateViewIntoPosition() local
273 d.getWorkspaceVisualDragBounds(destRect); in animateViewIntoPosition()
277 toScale *= ((1f * destRect.width()) in animateViewIntoPosition()
285 … toX += scale * destRect.left - toScale * dragView.getBlurSizeOutline() / 2 - scaleShiftX; in animateViewIntoPosition()
286 toY += scale * destRect.top - toScale * dragView.getBlurSizeOutline() / 2 - scaleShiftY; in animateViewIntoPosition()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
DIconFactory.java83 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/
DImageFilterTinyPlanet.java144 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/
DTinyPlanetFragment.java479 RectF destRect = new RectF(left * scale, top * scale, right * scale, bottom * scale); in createPaddedBitmap() local
480 paddedCanvas.drawBitmap(bitmapIn, null, destRect, null); in createPaddedBitmap()