/aosp14/frameworks/base/libs/hwui/pipeline/skia/ |
H A 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 …]
|
H A D | LayerDrawable.h | 38 const SkRect* srcRect,
|
H A D | SkiaRecordingCanvas.cpp | 262 SkRect srcRect = SkRect::MakeLTRB(srcLeft, srcTop, srcRight, srcBottom); in drawBitmap() local 270 mRecorder.drawImageRect(DrawImagePayload(payload), srcRect, dstRect, p.sampling(), in drawBitmap()
|
/aosp14/frameworks/base/libs/hwui/ |
H A D | Readback.cpp | 119 SkRect srcRect = request->srcRect.toSkRect(); in copySurfaceInto() local 161 if (srcRect.isEmpty()) { in copySurfaceInto() 162 srcRect = textureRect; in copySurfaceInto() 166 if (!srcRect.intersect(textureRect)) { in copySurfaceInto() 171 SkBitmap skBitmap = request->getDestinationBitmap(srcRect.width(), srcRect.height()); in copySurfaceInto() 229 m.postConcat(SkMatrix::MakeRectToRect(srcRect, in copySurfaceInto() 232 if (srcRect.width() != bitmap->width() || srcRect.height() != bitmap->height()) { in copySurfaceInto() 273 Rect srcRect; in copyHWBitmapInto() local 298 Rect srcRect; in copyImageInto() local 299 return copyImageInto(image, srcRect, bitmap); in copyImageInto() [all …]
|
H A D | CopyRequest.h | 35 Rect srcRect; member 36 CopyRequest(Rect srcRect) : srcRect(srcRect) {} in CopyRequest()
|
H A 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()
|
H A 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,
|
H A D | SkiaCanvas.cpp | 618 SkRect srcRect = SkRect::MakeLTRB(srcLeft, srcTop, srcRight, srcBottom); in drawBitmap() local 626 gainmapShader = gainmapShader->makeWithLocalMatrix(SkMatrix::RectToRect(srcRect, dstRect)); in drawBitmap() 632 mCanvas->drawImageRect(image, srcRect, dstRect, p.sampling(), &p, in drawBitmap()
|
/aosp14/frameworks/base/graphics/java/android/view/ |
H A 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() 256 public static void request(@NonNull Window source, @Nullable Rect srcRect, in request() argument 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() 309 return srcRect; in adjustSourceRectForInsets() 472 public @NonNull Builder setSourceRect(@Nullable Rect srcRect) { in setSourceRect() argument [all …]
|
/aosp14/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A 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()
|
/aosp14/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A 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
|
/aosp14/frameworks/base/core/tests/coretests/src/android/view/ |
H A 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()
|
/aosp14/frameworks/base/core/java/android/view/ |
H A 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()
|
H A 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()
|
/aosp14/frameworks/base/graphics/java/android/graphics/ |
H A D | HardwareRenderer.java | 1105 protected CopyRequest(Rect srcRect, Bitmap destinationBitmap) { in CopyRequest() argument 1107 if (srcRect != null) { in CopyRequest() 1108 mSrcRect = srcRect; in CopyRequest() 1131 final Rect srcRect = copyRequest.mSrcRect; in copySurfaceInto() local 1132 nCopySurfaceInto(surface, srcRect.left, srcRect.top, srcRect.right, srcRect.bottom, in copySurfaceInto()
|
/aosp14/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
H A 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()
|
/aosp14/frameworks/base/libs/hwui/jni/ |
H A D | RenderEffect.cpp | 66 SkRect srcRect = SkRect::MakeLTRB(srcLeft, srcTop, srcRight, srcBottom); in createBitmapEffect() local 69 image, srcRect, dstRect, SkSamplingOptions(SkFilterMode::kLinear)); in createBitmapEffect()
|
H A D | android_graphics_HardwareRenderer.cpp | 664 CopyRequestAdapter(JavaVM* vm, jobject jCopyRequest, Rect srcRect) in CopyRequestAdapter() argument 665 : CopyRequest(srcRect), mRefHolder(vm, jCopyRequest) {} in CopyRequestAdapter()
|
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawable/ |
H A 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()
|
/aosp14/frameworks/base/core/java/android/widget/ |
H A 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()
|
/aosp14/frameworks/base/tools/aapt2/integration-tests/CommandTests/ |
H A D | android-33.jar | AndroidManifest.xml
META-INF/
META-INF/MANIFEST.MF
NOTICES/
NOTICES/libcore ... |