Searched refs:srcRect (Results 1 - 25 of 26) sorted by relevance

12

/frameworks/base/libs/hwui/
H A DOpenGLReadback.cpp34 CopyResult OpenGLReadback::copySurfaceInto(Surface& surface, const Rect& srcRect, argument
62 return copyGraphicBufferInto(sourceBuffer.get(), texTransform, srcRect, bitmap);
66 Matrix4& texTransform, const Rect& srcRect, SkBitmap* bitmap) {
93 srcRect, bitmap);
104 Rect srcRect; local
108 return copyGraphicBufferInto(graphicBuffer, transform, srcRect, bitmap);
124 Texture& sourceTexture, const Matrix4& texTransform, const Rect& srcRect,
202 if (!srcRect.isEmpty()) {
203 // We flipV to convert to 0,0 top-left for the srcRect
207 croppedTexTransform.translate(srcRect
65 copyGraphicBufferInto(GraphicBuffer* graphicBuffer, Matrix4& texTransform, const Rect& srcRect, SkBitmap* bitmap) argument
123 copyTextureInto(Caches& caches, RenderState& renderState, Texture& sourceTexture, const Matrix4& texTransform, const Rect& srcRect, SkBitmap* bitmap) argument
243 copyImageInto(EGLImageKHR eglImage, const Matrix4& imgTransform, int imgWidth, int imgHeight, const Rect& srcRect, SkBitmap* bitmap) argument
[all...]
H A DOpenGLReadback.h29 virtual CopyResult copySurfaceInto(Surface& surface, const Rect& srcRect,
39 int imgWidth, int imgHeight, const Rect& srcRect, SkBitmap* bitmap) = 0;
42 const Rect& srcRect, SkBitmap* bitmap);
57 int imgWidth, int imgHeight, const Rect& srcRect, SkBitmap* bitmap) override;
H A DReadback.h44 virtual CopyResult copySurfaceInto(Surface& surface, const Rect& srcRect,
H A DSkiaCanvas.cpp560 SkRect srcRect = SkRect::MakeLTRB(srcLeft, srcTop, srcRight, srcBottom); local
562 mCanvas->drawBitmapRect(bitmap, srcRect, dstRect, paint);
/frameworks/base/graphics/java/android/view/
H A DPixelCopy.java120 * @param srcRect The area of the source to copy from. If this is null
129 public static void request(@NonNull SurfaceView source, @Nullable Rect srcRect, argument
132 request(source.getHolder().getSurface(), srcRect,
167 * @param srcRect The area of the source to copy from. If this is null
176 public static void request(@NonNull Surface source, @Nullable Rect srcRect, argument
183 if (srcRect != null && srcRect.isEmpty()) {
187 int result = ThreadedRenderer.copySurfaceInto(source, srcRect, dest);
245 * @param srcRect The area of the source to copy from. If this is null
254 public static void request(@NonNull Window source, @Nullable Rect srcRect, argument
[all...]
/frameworks/base/libs/hwui/pipeline/skia/
H A DSkiaOpenGLReadback.h30 int imgWidth, int imgHeight, const Rect& srcRect, SkBitmap* bitmap) override;
H A DSkiaOpenGLReadback.cpp35 int imgWidth, int imgHeight, const Rect& srcRect, SkBitmap* bitmap) {
70 SkRect skiaSrcRect = srcRect.toSkRect();
74 // remove the y-flip applied to the matrix so that we can scale the srcRect.
34 copyImageInto(EGLImageKHR eglImage, const Matrix4& imgTransform, int imgWidth, int imgHeight, const Rect& srcRect, SkBitmap* bitmap) argument
H A DSkiaRecordingCanvas.cpp201 SkRect srcRect = SkRect::MakeLTRB(srcLeft, srcTop, srcRight, srcBottom); local
208 mRecorder.drawImageRect(image, srcRect, dstRect, nonAAPaint(paint, &tmpPaint));
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DFrameImage2D.java145 FrameImage2D srcImage, FrameImage2D dstImage, RectF srcRect, RectF dstRect) {
149 idShader.setSourceRect(srcRect);
158 FrameImage2D srcImage, FrameImage2D dstImage, RectF srcRect, RectF dstRect) {
160 Rect srcIRect = new Rect((int) srcRect.left * srcImage.getWidth(),
161 (int) srcRect.top * srcImage.getHeight(),
162 (int) srcRect.right * srcImage.getWidth(),
163 (int) srcRect.bottom * srcImage.getHeight());
144 gpuImageCopy( FrameImage2D srcImage, FrameImage2D dstImage, RectF srcRect, RectF dstRect) argument
157 cpuImageCopy( FrameImage2D srcImage, FrameImage2D dstImage, RectF srcRect, RectF dstRect) argument
/frameworks/base/core/java/android/view/
H A DFocusFinderHelper.java44 public boolean isCandidate(Rect srcRect, Rect destRect, int direction) { argument
45 return mFocusFinder.isCandidate(srcRect, destRect, direction);
H A DFocusFinder.java536 boolean isCandidate(Rect srcRect, Rect destRect, int direction) { argument
539 return (srcRect.right > destRect.right || srcRect.left >= destRect.right)
540 && srcRect.left > destRect.left;
542 return (srcRect.left < destRect.left || srcRect.right <= destRect.left)
543 && srcRect.right < destRect.right;
545 return (srcRect.bottom > destRect.bottom || srcRect.top >= destRect.bottom)
546 && srcRect
[all...]
H A DThreadedRenderer.java872 public static int copySurfaceInto(Surface surface, Rect srcRect, Bitmap bitmap) { argument
873 if (srcRect == null) {
877 return nCopySurfaceInto(surface, srcRect.left, srcRect.top,
878 srcRect.right, srcRect.bottom, bitmap);
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DPixelCopyWindow.java84 Rect srcRect = new Rect();
85 decor.getGlobalVisibleRect(srcRect);
87 (int) (srcRect.width() * .25), (int) (srcRect.height() * .25), Config.ARGB_8888);
88 PixelCopy.request(getWindow(), srcRect, bitmap, (result) -> {
/frameworks/support/core-ui/java/android/support/v4/widget/
H A DFocusStrategy.java295 private static boolean isCandidate(@NonNull Rect srcRect, @NonNull Rect destRect, argument
299 return (srcRect.right > destRect.right || srcRect.left >= destRect.right)
300 && srcRect.left > destRect.left;
302 return (srcRect.left < destRect.left || srcRect.right <= destRect.left)
303 && srcRect.right < destRect.right;
305 return (srcRect.bottom > destRect.bottom || srcRect.top >= destRect.bottom)
306 && srcRect
[all...]
/frameworks/av/include/media/stagefright/
H A DYUVImage.h91 const Rect& srcRect,
97 const Rect& srcRect,
104 const Rect& srcRect,
H A DYUVCanvas.h54 const Rect& srcRect,
/frameworks/av/media/libstagefright/foundation/include/
H A DYUVImage.h91 const Rect& srcRect,
97 const Rect& srcRect,
104 const Rect& srcRect,
H A DYUVCanvas.h54 const Rect& srcRect,
/frameworks/av/media/libstagefright/include/
H A DYUVImage.h91 const Rect& srcRect,
97 const Rect& srcRect,
104 const Rect& srcRect,
H A DYUVCanvas.h54 const Rect& srcRect,
/frameworks/opt/bitmap/src/com/android/bitmap/
H A DDecodeTask.java303 final Rect srcRect = new Rect(); // Not orientation corrected. True coordinates.
329 1f, srcRect);
331 System.out.println("rect for this decode is: " + srcRect
340 srcRect);
342 bitmap = brd.decodeRegion(srcRect, mOpts);
406 // srcRect is non-empty when using the cropping BitmapRegionDecoder codepath
407 if (!srcRect.isEmpty()) {
408 result.setLogicalWidth((srcRect.right - srcRect.left) / mOpts.inSampleSize);
410 (srcRect
[all...]
/frameworks/base/core/tests/coretests/src/android/view/
H A DFocusFinderTest.java493 * @param srcRect The src rectangle.
497 private void assertBetterCandidate(int direction, Rect srcRect, argument
505 expectedBetter, expectedWorse, srcRect, directionStr);
508 mFocusFinder.isBetterCandidate(direction, srcRect,
515 expectedWorse, expectedBetter, srcRect, directionStr);
518 mFocusFinder.isBetterCandidate(direction, srcRect,
532 private void assertBeamBeats(int direction, Rect srcRect, argument
538 rect1, rect2, srcRect, directionStr);
539 assertTrue(assertMsg, mFocusFinder.beamBeats(direction, srcRect, rect1, rect2));
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DUiObject.java199 Rect srcRect = getVisibleBounds();
201 return getInteractionController().swipe(srcRect.centerX(), srcRect.centerY(),
219 Rect srcRect = getVisibleBounds();
220 return getInteractionController().swipe(srcRect.centerX(), srcRect.centerY(), destX, destY,
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawable/
H A DUserIconDrawable.java386 RectF srcRect = new RectF(iconCX - mIntrinsicRadius, iconCY - mIntrinsicRadius,
388 mIconMatrix.setRectToRect(srcRect, dstRect, Matrix.ScaleToFit.FILL);
/frameworks/base/libs/hwui/renderthread/
H A DRenderProxy.cpp618 Surface* surface, Rect srcRect, SkBitmap* bitmap) {
620 args->srcRect, args->bitmap);
629 args->srcRect.set(left, top, right, bottom);
617 CREATE_BRIDGE4(copySurfaceInto, RenderThread* thread, Surface* surface, Rect srcRect, SkBitmap* bitmap) argument

Completed in 1498 milliseconds

12