/frameworks/base/graphics/java/android/view/ |
D | PixelCopy.java | 129 public static void request(@NonNull SurfaceView source, @Nullable Rect srcRect, in request() argument 132 request(source.getHolder().getSurface(), srcRect, in request() local 176 public static void request(@NonNull Surface source, @Nullable Rect srcRect, in request() argument 183 if (srcRect != null && srcRect.isEmpty()) { in request() 187 int result = ThreadedRenderer.copySurfaceInto(source, srcRect, dest); in request() 254 public static void request(@NonNull Window source, @Nullable Rect srcRect, in request() argument 270 if (srcRect == null) { in request() 271 srcRect = new Rect(surfaceInsets.left, surfaceInsets.top, in request() 274 srcRect.offset(surfaceInsets.left, surfaceInsets.top); in request() 281 request(surface, srcRect, dest, listener, listenerThread); in request()
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | LayerDrawable.cpp | 40 SkRect srcRect = layer->getCurrentCropRect(); in onDraw() local 41 DrawLayer(canvas->recordingContext(), canvas, layer, &srcRect, nullptr, true); in onDraw() 51 static bool shouldFilterRect(const SkMatrix& matrix, const SkRect& srcRect, const SkRect& dstRect) { in shouldFilterRect() argument 67 if (!(MathUtils::areEqual(dstW, srcRect.width()) && in shouldFilterRect() 68 MathUtils::areEqual(dstH, srcRect.height()))) { in shouldFilterRect() 73 return !(isIntegerAligned(srcRect.x()) && in shouldFilterRect() 74 isIntegerAligned(srcRect.y()) && in shouldFilterRect() 114 const SkRect* srcRect, in DrawLayer() argument 143 if (srcRect && !srcRect->isEmpty()) { in DrawLayer() 144 skiaSrcRect = *srcRect; in DrawLayer() [all …]
|
D | LayerDrawable.h | 38 const SkRect* srcRect,
|
D | SkiaRecordingCanvas.cpp | 234 SkRect srcRect = SkRect::MakeLTRB(srcLeft, srcTop, srcRight, srcBottom); in drawBitmap() local 242 mRecorder.drawImageRect(image, srcRect, dstRect, p.sampling(), &p, in drawBitmap() 247 if (!bitmap.isImmutable() && image.get() && !image->unique() && !srcRect.isEmpty() && in drawBitmap()
|
/frameworks/base/libs/hwui/ |
D | Readback.cpp | 91 SkRect srcRect = inSrcRect.toSkRect(); in copySurfaceInto() local 133 if (srcRect.isEmpty()) { in copySurfaceInto() 134 srcRect = textureRect; in copySurfaceInto() 136 ALOGV("intersecting " RECT_STRING " with " RECT_STRING, SK_RECT_ARGS(srcRect), in copySurfaceInto() 138 if (!srcRect.intersect(textureRect)) { in copySurfaceInto() 196 ALOGV("Mapping from " RECT_STRING " to " RECT_STRING, SK_RECT_ARGS(srcRect), in copySurfaceInto() 198 m.postConcat(SkMatrix::MakeRectToRect(srcRect, in copySurfaceInto() 201 if (srcRect.width() != bitmap->width() || srcRect.height() != bitmap->height()) { in copySurfaceInto() 235 CopyResult Readback::copySurfaceIntoLegacy(ANativeWindow* window, const Rect& srcRect, in copySurfaceIntoLegacy() argument 271 return copyImageInto(image, srcRect, bitmap); in copySurfaceIntoLegacy() [all …]
|
D | Readback.h | 50 CopyResult copySurfaceInto(ANativeWindow* window, const Rect& srcRect, SkBitmap* bitmap); 58 CopyResult copySurfaceIntoLegacy(ANativeWindow* window, const Rect& srcRect, SkBitmap* bitmap); 59 CopyResult copyImageInto(const sk_sp<SkImage>& image, const Rect& srcRect, SkBitmap* bitmap); 61 bool copyLayerInto(Layer* layer, const SkRect* srcRect, const SkRect* dstRect,
|
D | Layer.cpp | 63 static bool shouldFilterRect(const SkMatrix& matrix, const SkRect& srcRect, const SkRect& dstRect) { in shouldFilterRect() argument 79 if (!(MathUtils::areEqual(dstW, srcRect.width()) && in shouldFilterRect() 80 MathUtils::areEqual(dstH, srcRect.height()))) { in shouldFilterRect() 85 return !(isIntegerAligned(srcRect.x()) && in shouldFilterRect() 86 isIntegerAligned(srcRect.y()) && in shouldFilterRect()
|
D | SkiaCanvas.cpp | 589 SkRect srcRect = SkRect::MakeLTRB(srcLeft, srcTop, srcRight, srcBottom); in drawBitmap() local 593 mCanvas->drawImageRect(image, srcRect, dstRect, p.sampling(), &p, in drawBitmap()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | FrameImage2D.java | 145 FrameImage2D srcImage, FrameImage2D dstImage, RectF srcRect, RectF dstRect) { in gpuImageCopy() argument 149 idShader.setSourceRect(srcRect); in gpuImageCopy() 158 FrameImage2D srcImage, FrameImage2D dstImage, RectF srcRect, RectF dstRect) { in cpuImageCopy() argument 160 Rect srcIRect = new Rect((int) srcRect.left * srcImage.getWidth(), in cpuImageCopy() 161 (int) srcRect.top * srcImage.getHeight(), in cpuImageCopy() 162 (int) srcRect.right * srcImage.getWidth(), in cpuImageCopy() 163 (int) srcRect.bottom * srcImage.getHeight()); in cpuImageCopy()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | PixelCopyWindow.java | 84 Rect srcRect = new Rect(); in takeScreenshot() local 85 decor.getGlobalVisibleRect(srcRect); in takeScreenshot() 87 (int) (srcRect.width() * .25), (int) (srcRect.height() * .25), Config.ARGB_8888); in takeScreenshot() 88 PixelCopy.request(getWindow(), srcRect, bitmap, (result) -> { in takeScreenshot() local
|
/frameworks/opt/bitmap/src/com/android/bitmap/ |
D | DecodeTask.java | 303 final Rect srcRect = new Rect(); // Not orientation corrected. True coordinates. in decode() local 329 1f, srcRect); in decode() 331 System.out.println("rect for this decode is: " + srcRect in decode() 340 srcRect); in decode() 342 bitmap = brd.decodeRegion(srcRect, mOpts); in decode() 407 if (!srcRect.isEmpty()) { in decode() 408 result.setLogicalWidth((srcRect.right - srcRect.left) / mOpts.inSampleSize); in decode() 410 (srcRect.bottom - srcRect.top) / mOpts.inSampleSize); in decode()
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | YUVImage.h | 91 const Rect& srcRect, 97 const Rect& srcRect, 104 const Rect& srcRect,
|
D | YUVCanvas.h | 54 const Rect& srcRect,
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | FocusFinderTest.java | 498 private void assertBetterCandidate(int direction, Rect srcRect, in assertBetterCandidate() argument 506 expectedBetter, expectedWorse, srcRect, directionStr); in assertBetterCandidate() 509 mFocusFinder.isBetterCandidate(direction, srcRect, in assertBetterCandidate() 516 expectedWorse, expectedBetter, srcRect, directionStr); in assertBetterCandidate() 519 mFocusFinder.isBetterCandidate(direction, srcRect, in assertBetterCandidate() 533 private void assertBeamBeats(int direction, Rect srcRect, in assertBeamBeats() argument 539 rect1, rect2, srcRect, directionStr); in assertBeamBeats() 540 assertTrue(assertMsg, mFocusFinder.beamBeats(direction, srcRect, rect1, rect2)); in assertBeamBeats()
|
/frameworks/base/core/java/android/view/ |
D | FocusFinderHelper.java | 44 public boolean isCandidate(Rect srcRect, Rect destRect, int direction) { in isCandidate() argument 45 return mFocusFinder.isCandidate(srcRect, destRect, direction); in isCandidate()
|
D | FocusFinder.java | 549 boolean isCandidate(Rect srcRect, Rect destRect, int direction) { in isCandidate() argument 552 return (srcRect.right > destRect.right || srcRect.left >= destRect.right) in isCandidate() 553 && srcRect.left > destRect.left; in isCandidate() 555 return (srcRect.left < destRect.left || srcRect.right <= destRect.left) in isCandidate() 556 && srcRect.right < destRect.right; in isCandidate() 558 return (srcRect.bottom > destRect.bottom || srcRect.top >= destRect.bottom) in isCandidate() 559 && srcRect.top > destRect.top; in isCandidate() 561 return (srcRect.top < destRect.top || srcRect.bottom <= destRect.top) in isCandidate() 562 && srcRect.bottom < destRect.bottom; in isCandidate()
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | UiObject.java | 199 Rect srcRect = getVisibleBounds(); in dragTo() local 201 return getInteractionController().swipe(srcRect.centerX(), srcRect.centerY(), in dragTo() 219 Rect srcRect = getVisibleBounds(); in dragTo() local 220 return getInteractionController().swipe(srcRect.centerX(), srcRect.centerY(), destX, destY, in dragTo()
|
/frameworks/base/graphics/java/android/graphics/ |
D | HardwareRenderer.java | 1049 public static int copySurfaceInto(Surface surface, Rect srcRect, Bitmap bitmap) { in copySurfaceInto() argument 1050 if (srcRect == null) { in copySurfaceInto() 1054 return nCopySurfaceInto(surface, srcRect.left, srcRect.top, in copySurfaceInto() 1055 srcRect.right, srcRect.bottom, bitmap.getNativeInstance()); in copySurfaceInto()
|
/frameworks/base/libs/hwui/jni/ |
D | RenderEffect.cpp | 65 SkRect srcRect = SkRect::MakeLTRB(srcLeft, srcTop, srcRight, srcBottom); in createBitmapEffect() local 68 image, srcRect, dstRect, SkSamplingOptions(SkFilterMode::kLinear)); in createBitmapEffect()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawable/ |
D | UserIconDrawable.java | 470 RectF srcRect = new RectF(iconCX - mIntrinsicRadius, iconCY - mIntrinsicRadius, in onBoundsChange() local 472 mIconMatrix.setRectToRect(srcRect, dstRect, Matrix.ScaleToFit.FILL); in onBoundsChange()
|
/frameworks/base/core/java/android/widget/ |
D | Magnifier.java | 1318 final Rect srcRect = new Rect(margin, 0, w - margin, h); in doDraw() local 1321 canvas.drawBitmap(mBitmap, srcRect, dstRect, paint); in doDraw() 1331 final Rect srcRect = new Rect(0, 0, w, h); in doDraw() local 1333 canvas.drawBitmap(mBitmap, srcRect, dstRect, paint); in doDraw()
|