Home
last modified time | relevance | path

Searched refs:clipRect (Results 1 – 25 of 76) sorted by relevance

1234

/frameworks/base/libs/hwui/apex/
Dandroid_canvas.cpp88 void ACanvas_clipRect(ACanvas* canvas, const ARect* clipRect, bool /*doAA*/) { in ACanvas_clipRect() argument
90 TypeCast::toCanvas(canvas)->clipRect(clipRect->left, clipRect->top, clipRect->right, in ACanvas_clipRect()
91 clipRect->bottom, SkClipOp::kIntersect); in ACanvas_clipRect()
94 void ACanvas_clipOutRect(ACanvas* canvas, const ARect* clipRect, bool /*doAA*/) { in ACanvas_clipOutRect() argument
96 TypeCast::toCanvas(canvas)->clipRect(clipRect->left, clipRect->top, clipRect->right, in ACanvas_clipOutRect()
97 clipRect->bottom, SkClipOp::kDifference); in ACanvas_clipOutRect()
/frameworks/base/libs/hwui/apex/include/android/graphics/
Dcanvas.h72 ANDROID_API void ACanvas_clipRect(ACanvas* canvas, const ARect* clipRect, bool doAntiAlias = false);
79 ANDROID_API void ACanvas_clipOutRect(ACanvas* canvas, const ARect* clipRect, bool doAntiAlias = fal…
122 void clipRect(const ARect& clipRect, bool doAntiAlias = false) {
123 ACanvas_clipRect(mCanvas, &clipRect, doAntiAlias);
/frameworks/base/core/java/android/view/
DRemoteAnimationTarget.java115 public final Rect clipRect; field in RemoteAnimationTarget
188 Rect clipRect, Rect contentInsets, int prefixOrderIndex, Point position, in RemoteAnimationTarget() argument
196 this.clipRect = new Rect(clipRect); in RemoteAnimationTarget()
214 clipRect = in.readParcelable(null); in RemoteAnimationTarget()
238 dest.writeParcelable(clipRect, 0 /* flags */); in writeToParcel()
255 pw.print(" clipRect="); clipRect.printShortString(pw); in dump()
273 clipRect.dumpDebug(proto, CLIP_RECT); in dumpDebug()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowSurfaceController.java198 void setCropInTransaction(Rect clipRect, boolean recoveringMemory) { in setCropInTransaction() argument
199 ProtoLog.i(WM_SHOW_TRANSACTIONS, "SURFACE CROP %s: %s", clipRect.toShortString(), title); in setCropInTransaction()
201 if (clipRect.width() > 0 && clipRect.height() > 0) { in setCropInTransaction()
202 if (!clipRect.equals(mSurfaceCrop)) { in setCropInTransaction()
203 mSurfaceControl.setWindowCrop(clipRect); in setCropInTransaction()
204 mSurfaceCrop.set(clipRect); in setCropInTransaction()
215 + " crop=" + clipRect.toShortString(), e); in setCropInTransaction()
225 Rect clipRect = new Rect(0, 0, -1, -1); in clearCropInTransaction() local
226 if (mSurfaceCrop.equals(clipRect)) { in clearCropInTransaction()
229 mSurfaceControl.setWindowCrop(clipRect); in clearCropInTransaction()
[all …]
DStrictModeFlash.java90 c.clipRect(new Rect(0, 0, dw, mThickness)); in drawIfNeeded()
95 c.clipRect(new Rect(0, 0, mThickness, dh)); in drawIfNeeded()
100 c.clipRect(new Rect(dw - mThickness, 0, dw, dh)); in drawIfNeeded()
105 c.clipRect(new Rect(0, dh - mThickness, dw, dh)); in drawIfNeeded()
DWindowStateAnimator.java778 private boolean calculateCrop(Rect clipRect) { in calculateCrop() argument
781 clipRect.setEmpty(); in calculateCrop()
815 clipRect.set(mSystemDecorRect); in calculateCrop()
816 if (DEBUG_WINDOW_CROP) Slog.d(TAG, "win=" + w + " Initial clip rect: " + clipRect); in calculateCrop()
818 w.expandForSurfaceInsets(clipRect); in calculateCrop()
822 clipRect.offset(w.mAttrs.surfaceInsets.left, w.mAttrs.surfaceInsets.top); in calculateCrop()
825 "win=" + w + " Clip rect after stack adjustment=" + clipRect); in calculateCrop()
827 w.transformClipRectFromScreenToSurfaceSpace(clipRect); in calculateCrop()
832 private void applyCrop(Rect clipRect, boolean recoveringMemory) { in applyCrop() argument
834 + " clipRect=" + clipRect); in applyCrop()
[all …]
DWindowChangeAnimationSpec.java157 final Rect clipRect = tmp.mTransformation.getClipRect(); in apply() local
158 mTmpRect.left = (int) (clipRect.left * tmp.mVecs[0] + 0.5f); in apply()
159 mTmpRect.right = (int) (clipRect.right * tmp.mVecs[0] + 0.5f); in apply()
160 mTmpRect.top = (int) (clipRect.top * tmp.mVecs[3] + 0.5f); in apply()
161 mTmpRect.bottom = (int) (clipRect.bottom * tmp.mVecs[3] + 0.5f); in apply()
/frameworks/base/libs/hwui/
DRenderProperties.cpp154 Rect clipRect; in debugOutputProperties() local
155 getClippingRectForFlags(clipFlags, &clipRect); in debugOutputProperties()
156 output << indent << "(ClipRect " << (int)clipRect.left << ", " << (int)clipRect.top << ", " in debugOutputProperties()
157 << (int)clipRect.right << ", " << (int)clipRect.bottom << ")" << std::endl; in debugOutputProperties()
DRenderNode.cpp472 const SkPath* RenderNode::getClippedOutline(const SkRect& clipRect) const { in getClippedOutline()
476 if (outlineID != mClippedOutlineCache.outlineID || clipRect != mClippedOutlineCache.clipRect) { in getClippedOutline()
479 mClippedOutlineCache.clipRect = clipRect; in getClippedOutline()
483 clipPath.addRect(clipRect); in getClippedOutline()
DRenderNode.h348 const SkPath* getClippedOutline(const SkRect& clipRect) const;
369 SkRect clipRect; member
/frameworks/base/libs/hwui/pipeline/skia/
DRenderNodeDrawable.cpp86 canvas->clipRect(*pendingClip); in clipOutline()
94 canvas->clipRect(*pendingClip); in clipOutline()
101 canvas->clipRect(rect); in clipOutline()
317 SkRect clipRect; in setViewProperties() local
322 clipRect = tmpRect.toSkRect(); in setViewProperties()
323 pendingClip = &clipRect; in setViewProperties()
334 canvas->clipRect(*pendingClip); in setViewProperties()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DAlphaLayersActivity.java87 canvas.clipRect(20.0f, 0.0f, 40.0f, 20.0f); in dispatchDraw()
95 canvas.clipRect(20.0f, 0.0f, 40.0f, 20.0f); in dispatchDraw()
103 canvas.clipRect(20.0f, 0.0f, 40.0f, 20.0f); in dispatchDraw()
111 canvas.clipRect(20.0f, 0.0f, 40.0f, 20.0f); in dispatchDraw()
DBitmapMeshActivity.java77 canvas.clipRect(0.0f, 0.0f, 80.0f, 80.0f); in onDraw()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DRemoteAnimationTargetCompat.java44 public final Rect clipRect; field in RemoteAnimationTargetCompat
60 clipRect = app.clipRect; in RemoteAnimationTargetCompat()
/frameworks/base/libs/hwui/tests/common/scenes/
DClippingAnimation.cpp35 canvas.clipRect(0, 0, 200, 200, SkClipOp::kIntersect); in createContent()
39 canvas.clipRect(0, 0, 200, 200, SkClipOp::kIntersect); in createContent()
DSaveLayerAnimation.cpp38 canvas.clipRect(50, 50, 350, 350, SkClipOp::kIntersect); in createContent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DDeadZone.java189 can.clipRect(can.getWidth() - size, 0, can.getWidth(), can.getHeight());
191 can.clipRect(0, 0, size, can.getHeight());
194 can.clipRect(0, 0, can.getWidth(), size);
/frameworks/base/tests/MirrorSurfaceTest/src/com/google/android/test/mirrorsurface/
DMirrorSurfaceActivity.java343 c.clipRect(new Rect(0, 0, width, borderSize)); in drawBorder()
348 c.clipRect(new Rect(0, 0, borderSize, height)); in drawBorder()
353 c.clipRect(new Rect(width - borderSize, 0, width, height)); in drawBorder()
358 c.clipRect(new Rect(0, height - borderSize, width, height)); in drawBorder()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardPreviewContainer.java38 canvas.clipRect(0, getHeight() - getPaddingBottom(), getWidth(), getHeight());
/frameworks/base/graphics/java/android/graphics/drawable/
DPictureDrawable.java67 canvas.clipRect(bounds); in draw()
/frameworks/base/graphics/java/android/graphics/
DCanvas.java875 public boolean clipRect(@NonNull RectF rect, @NonNull Region.Op op) { in clipRect() method in Canvas
899 public boolean clipRect(@NonNull Rect rect, @NonNull Region.Op op) { in clipRect() method in Canvas
923 public boolean clipRect(@NonNull RectF rect) { in clipRect() method in Canvas
947 public boolean clipRect(@NonNull Rect rect) { in clipRect() method in Canvas
990 public boolean clipRect(float left, float top, float right, float bottom, in clipRect() method in Canvas
1009 public boolean clipRect(float left, float top, float right, float bottom) { in clipRect() method in Canvas
1042 public boolean clipRect(int left, int top, int right, int bottom) { in clipRect() method in Canvas
/frameworks/layoutlib/bridge/src/android/view/
DRectShadowPainter.java151 canvas.clipRect(originalClip.x, originalClip.y, originalClip.x + originalClip.width, in modifyCanvas()
153 canvas.clipRect(-canvas.getWidth(), -canvas.getHeight(), canvas.getWidth(), in modifyCanvas()
/frameworks/base/core/java/com/android/internal/transition/
DEpicenterTranslateClipReveal.java203 final Rect clipRect = (Rect) values.values.get(PROPNAME_CLIP); in getBestRect() local
204 if (clipRect == null) { in getBestRect()
207 return clipRect; in getBestRect()
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/
DCanvasPerfTest.java56 canvas.clipRect(1, 1, 199, 199); in testBasicViewGroupDraw()
/frameworks/base/core/java/com/android/internal/widget/
DMessagingGroup.java160 Rect clipRect; in updateClipRect() local
171 clipRect = new Rect(-size, top, size, size); in updateClipRect()
173 clipRect = null; in updateClipRect()
175 mMessageContainer.setClipBounds(clipRect); in updateClipRect()

1234