/frameworks/base/libs/hwui/pipeline/skia/ |
D | LayerDrawable.cpp | 41 SkRect srcRect = layer->getCurrentCropRect(); in onDraw() local 42 DrawLayer(canvas->recordingContext(), canvas, layer, &srcRect, nullptr, true); in onDraw() 52 static bool shouldFilterRect(const SkMatrix& matrix, const SkRect& srcRect, const SkRect& dstRect) { in shouldFilterRect() argument 68 if (!(MathUtils::areEqual(dstW, srcRect.width()) && in shouldFilterRect() 69 MathUtils::areEqual(dstH, srcRect.height()))) { in shouldFilterRect() 74 return !(isIntegerAligned(srcRect.x()) && in shouldFilterRect() 75 isIntegerAligned(srcRect.y()) && in shouldFilterRect() 110 const SkRect* srcRect, in DrawLayer() argument 139 if (srcRect && !srcRect->isEmpty()) { in DrawLayer() 140 skiaSrcRect = *srcRect; in DrawLayer() [all …]
|
D | LayerDrawable.h | 38 const SkRect* srcRect,
|
D | SkiaRecordingCanvas.cpp | 282 SkRect srcRect = SkRect::MakeLTRB(srcLeft, srcTop, srcRight, srcBottom); in drawBitmap() local 290 mRecorder.drawImageRect(DrawImagePayload(payload), srcRect, dstRect, p.sampling(), in drawBitmap()
|
/frameworks/base/libs/hwui/ |
D | Readback.cpp | 122 SkRect srcRect = request->srcRect.toSkRect(); in copySurfaceInto() local 164 if (srcRect.isEmpty()) { in copySurfaceInto() 165 srcRect = textureRect; in copySurfaceInto() 167 ALOGV("intersecting " RECT_STRING " with " RECT_STRING, SK_RECT_ARGS(srcRect), in copySurfaceInto() 169 if (!srcRect.intersect(textureRect)) { in copySurfaceInto() 174 SkBitmap skBitmap = request->getDestinationBitmap(srcRect.width(), srcRect.height()); in copySurfaceInto() 230 ALOGV("Mapping from " RECT_STRING " to " RECT_STRING, SK_RECT_ARGS(srcRect), in copySurfaceInto() 232 m.postConcat(SkMatrix::MakeRectToRect(srcRect, in copySurfaceInto() 235 if (srcRect.width() != bitmap->width() || srcRect.height() != bitmap->height()) { in copySurfaceInto() 276 Rect srcRect; in copyHWBitmapInto() local [all …]
|
D | CopyRequest.h | 35 Rect srcRect; member 36 CopyRequest(Rect srcRect) : srcRect(srcRect) {} in CopyRequest()
|
D | Layer.cpp | 65 static bool shouldFilterRect(const SkMatrix& matrix, const SkRect& srcRect, const SkRect& dstRect) { in shouldFilterRect() argument 81 if (!(MathUtils::areEqual(dstW, srcRect.width()) && in shouldFilterRect() 82 MathUtils::areEqual(dstH, srcRect.height()))) { in shouldFilterRect() 87 return !(isIntegerAligned(srcRect.x()) && in shouldFilterRect() 88 isIntegerAligned(srcRect.y()) && in shouldFilterRect()
|
D | Readback.h | 53 CopyResult copyImageInto(const sk_sp<SkImage>& image, const Rect& srcRect, SkBitmap* bitmap); 55 bool copyLayerInto(Layer* layer, const SkRect* srcRect, const SkRect* dstRect,
|
D | SkiaCanvas.cpp | 664 SkRect srcRect = SkRect::MakeLTRB(srcLeft, srcTop, srcRight, srcBottom); in drawBitmap() local 672 gainmapShader = gainmapShader->makeWithLocalMatrix(SkMatrix::RectToRect(srcRect, dstRect)); in drawBitmap() 678 mCanvas->drawImageRect(image, srcRect, dstRect, p.sampling(), &p, in drawBitmap()
|
/frameworks/base/graphics/java/android/view/ |
D | PixelCopy.java | 133 public static void request(@NonNull SurfaceView source, @Nullable Rect srcRect, in request() argument 136 request(source.getHolder().getSurface(), srcRect, in request() local 180 public static void request(@NonNull Surface source, @Nullable Rect srcRect, in request() argument 187 if (srcRect != null && srcRect.isEmpty()) { in request() 190 HardwareRenderer.copySurfaceInto(source, new HardwareRenderer.CopyRequest(srcRect, dest) { in request() 256 public static void request(@NonNull Window source, @Nullable Rect srcRect, in request() argument 262 request(surface, adjustSourceRectForInsets(insets, srcRect), dest, listener, in request() 302 private static Rect adjustSourceRectForInsets(Rect insets, Rect srcRect) { in adjustSourceRectForInsets() argument 303 if (srcRect == null) { in adjustSourceRectForInsets() 307 srcRect.offset(insets.left, insets.top); in adjustSourceRectForInsets() [all …]
|
/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/graphics/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/libs/hwui/platform/host/ |
D | Readback.cpp | 39 CopyResult Readback::copyImageInto(const sk_sp<SkImage>& image, const Rect& srcRect, in copyImageInto() argument 44 bool Readback::copyLayerInto(Layer* layer, const SkRect* srcRect, const SkRect* dstRect, in copyLayerInto() argument
|
/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 | 560 boolean isCandidate(Rect srcRect, Rect destRect, int direction) { in isCandidate() argument 563 return (srcRect.right > destRect.right || srcRect.left >= destRect.right) in isCandidate() 564 && srcRect.left > destRect.left; in isCandidate() 566 return (srcRect.left < destRect.left || srcRect.right <= destRect.left) in isCandidate() 567 && srcRect.right < destRect.right; in isCandidate() 569 return (srcRect.bottom > destRect.bottom || srcRect.top >= destRect.bottom) in isCandidate() 570 && srcRect.top > destRect.top; in isCandidate() 572 return (srcRect.top < destRect.top || srcRect.bottom <= destRect.top) in isCandidate() 573 && srcRect.bottom < destRect.bottom; in isCandidate()
|
/frameworks/base/graphics/java/android/graphics/ |
D | HardwareRenderer.java | 1107 protected CopyRequest(Rect srcRect, Bitmap destinationBitmap) { in CopyRequest() argument 1109 if (srcRect != null) { in CopyRequest() 1110 mSrcRect = srcRect; in CopyRequest() 1133 final Rect srcRect = copyRequest.mSrcRect; in copySurfaceInto() local 1134 nCopySurfaceInto(surface, srcRect.left, srcRect.top, srcRect.right, srcRect.bottom, in copySurfaceInto()
|
/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/libs/hwui/jni/ |
D | RenderEffect.cpp | 66 SkRect srcRect = SkRect::MakeLTRB(srcLeft, srcTop, srcRight, srcBottom); in createBitmapEffect() local 69 image, srcRect, dstRect, SkSamplingOptions(SkFilterMode::kLinear)); in createBitmapEffect()
|
D | android_graphics_HardwareRenderer.cpp | 684 CopyRequestAdapter(JavaVM* vm, jobject jCopyRequest, Rect srcRect) in CopyRequestAdapter() argument 685 : CopyRequest(srcRect), mRefHolder(vm, jCopyRequest) {} in CopyRequestAdapter()
|
/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()
|