Home
last modified time | relevance | path

Searched refs:srcRect (Results 1 – 24 of 24) sorted by relevance

/frameworks/base/libs/hwui/pipeline/skia/
DLayerDrawable.cpp41 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 …]
DLayerDrawable.h38 const SkRect* srcRect,
DSkiaRecordingCanvas.cpp282 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/
DReadback.cpp122 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 …]
DCopyRequest.h35 Rect srcRect; member
36 CopyRequest(Rect srcRect) : srcRect(srcRect) {} in CopyRequest()
DLayer.cpp65 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()
DReadback.h53 CopyResult copyImageInto(const sk_sp<SkImage>& image, const Rect& srcRect, SkBitmap* bitmap);
55 bool copyLayerInto(Layer* layer, const SkRect* srcRect, const SkRect* dstRect,
DSkiaCanvas.cpp664 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/
DPixelCopy.java133 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/
DFrameImage2D.java145 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/
DPixelCopyWindow.java84 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/
DDecodeTask.java303 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/
DYUVImage.h91 const Rect& srcRect,
97 const Rect& srcRect,
104 const Rect& srcRect,
DYUVCanvas.h54 const Rect& srcRect,
/frameworks/base/libs/hwui/platform/host/
DReadback.cpp39 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/
DFocusFinderTest.java498 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/
DFocusFinderHelper.java44 public boolean isCandidate(Rect srcRect, Rect destRect, int direction) { in isCandidate() argument
45 return mFocusFinder.isCandidate(srcRect, destRect, direction); in isCandidate()
DFocusFinder.java560 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/
DHardwareRenderer.java1107 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/
DUiObject.java199 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/
DRenderEffect.cpp66 SkRect srcRect = SkRect::MakeLTRB(srcLeft, srcTop, srcRight, srcBottom); in createBitmapEffect() local
69 image, srcRect, dstRect, SkSamplingOptions(SkFilterMode::kLinear)); in createBitmapEffect()
Dandroid_graphics_HardwareRenderer.cpp684 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/
DUserIconDrawable.java470 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/
DMagnifier.java1318 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()