/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/WallpaperPicker2/src/com/android/wallpaper/asset/ |
D | CropRectRotator.java | 34 public static Rect rotateCropRectForExifOrientation(Point dimensions, Rect srcRect, in rotateCropRectForExifOrientation() argument 39 return new Rect(srcRect); in rotateCropRectForExifOrientation() 41 return new Rect(srcRect.top, dimensions.x - srcRect.right, srcRect.bottom, in rotateCropRectForExifOrientation() 42 dimensions.x - srcRect.left); in rotateCropRectForExifOrientation() 44 return new Rect(dimensions.x - srcRect.right, dimensions.y - srcRect.bottom, in rotateCropRectForExifOrientation() 45 dimensions.x - srcRect.left, dimensions.y - srcRect.top); in rotateCropRectForExifOrientation() 47 … return new Rect(dimensions.y - srcRect.bottom, srcRect.left, dimensions.y - srcRect.top, in rotateCropRectForExifOrientation() 48 srcRect.right); in rotateCropRectForExifOrientation() 51 return new Rect(srcRect); in rotateCropRectForExifOrientation()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
D | IconFactory.java | 86 Rect srcRect = null; in drawIcon() local 89 srcRect = new Rect(0, 0, sourceWidth, sourceHeight); in drawIcon() 102 srcRect = new Rect(); in drawIcon() 103 rec.roundOut(srcRect); in drawIcon() 106 canvas.drawBitmap(sourceImage, srcRect, destRect, new Paint(Paint.FILTER_BITMAP_FLAG)); in drawIcon()
|
/packages/apps/Car/RotaryController/tests/unit/src/com/android/car/rotary/ |
D | FocusFinderTest.java | 556 private void assertBetterCandidate(int direction, Rect srcRect, Rect expectedBetter, in assertBetterCandidate() argument 562 expectedBetter, expectedWorse, srcRect, directionStr); in assertBetterCandidate() 565 FocusFinder.isBetterCandidate(direction, srcRect, expectedBetter, expectedWorse)); in assertBetterCandidate() 570 expectedWorse, expectedBetter, srcRect, directionStr); in assertBetterCandidate() 573 FocusFinder.isBetterCandidate(direction, srcRect, expectedWorse, expectedBetter)); in assertBetterCandidate() 585 private void assertBeamBeats(int direction, Rect srcRect, Rect rect1, Rect rect2) { in assertBeamBeats() argument 589 rect1, rect2, srcRect, directionStr); in assertBeamBeats() 590 assertTrue(assertMsg, FocusFinder.beamBeats(direction, srcRect, rect1, rect2)); in assertBeamBeats()
|
/packages/apps/Camera2/src/com/android/camera/widget/ |
D | RoundedThumbnailView.java | 672 RectF srcRect = new RectF( in precomputeThumbnailPaint() local 679 shaderMatrix.setRectToRect(srcRect, dstRect, Matrix.ScaleToFit.FILL); in precomputeThumbnailPaint() 683 srcRect.width() / 2, in precomputeThumbnailPaint() 684 srcRect.height() / 2); in precomputeThumbnailPaint()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | CropImage.java | 234 Rect srcRect = mCrop.getCropRect(); in onSaveClicked() local 237 int dx = (srcRect.width() - dstRect.width()) / 2; in onSaveClicked() 238 int dy = (srcRect.height() - dstRect.height()) / 2; in onSaveClicked() 241 srcRect.inset(Math.max(0, dx), Math.max(0, dy)); in onSaveClicked() 247 canvas.drawBitmap(mBitmap, srcRect, dstRect, null); in onSaveClicked()
|
D | GridViewSpecial.java | 1123 Rect srcRect = new Rect(0, 0, w, mBlockHeight); in doDraw() local 1124 Rect dstRect = new Rect(srcRect); in doDraw() 1126 canvas.drawBitmap(mBitmap, srcRect, dstRect, null); in doDraw()
|