Home
last modified time | relevance | path

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

123

/frameworks/base/core/java/android/view/
DRemoteAnimationTarget.java113 public final Rect clipRect; field in RemoteAnimationTarget
167 Rect clipRect, Rect contentInsets, int prefixOrderIndex, Point position, in RemoteAnimationTarget() argument
174 this.clipRect = new Rect(clipRect); in RemoteAnimationTarget()
190 clipRect = in.readParcelable(null); in RemoteAnimationTarget()
212 dest.writeParcelable(clipRect, 0 /* flags */); in writeToParcel()
227 pw.print(" clipRect="); clipRect.printShortString(pw); in dump()
243 clipRect.writeToProto(proto, CLIP_RECT); in writeToProto()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowSurfaceController.java175 void setCropInTransaction(Rect clipRect, boolean recoveringMemory) { in setCropInTransaction() argument
177 "CROP " + clipRect.toShortString(), null); in setCropInTransaction()
179 if (clipRect.width() > 0 && clipRect.height() > 0) { in setCropInTransaction()
180 if (!clipRect.equals(mSurfaceCrop)) { in setCropInTransaction()
181 mSurfaceControl.setWindowCrop(clipRect); in setCropInTransaction()
182 mSurfaceCrop.set(clipRect); in setCropInTransaction()
193 + " crop=" + clipRect.toShortString(), e); in setCropInTransaction()
204 Rect clipRect = new Rect(0, 0, -1, -1); in clearCropInTransaction() local
205 if (mSurfaceCrop.equals(clipRect)) { in clearCropInTransaction()
208 mSurfaceControl.setWindowCrop(clipRect); in clearCropInTransaction()
[all …]
DStrictModeFlash.java79 c.clipRect(new Rect(0, 0, dw, mThickness)); in drawIfNeeded()
84 c.clipRect(new Rect(0, 0, mThickness, dh)); in drawIfNeeded()
89 c.clipRect(new Rect(dw - mThickness, 0, dw, dh)); in drawIfNeeded()
94 c.clipRect(new Rect(0, dh - mThickness, dw, dh)); in drawIfNeeded()
DWindowStateAnimator.java761 private boolean calculateCrop(Rect clipRect) { in calculateCrop() argument
764 clipRect.setEmpty(); in calculateCrop()
797 clipRect.set(mSystemDecorRect); in calculateCrop()
798 if (DEBUG_WINDOW_CROP) Slog.d(TAG, "win=" + w + " Initial clip rect: " + clipRect); in calculateCrop()
800 w.expandForSurfaceInsets(clipRect); in calculateCrop()
804 clipRect.offset(w.mAttrs.surfaceInsets.left, w.mAttrs.surfaceInsets.top); in calculateCrop()
807 "win=" + w + " Clip rect after stack adjustment=" + clipRect); in calculateCrop()
809 w.transformClipRectFromScreenToSurfaceSpace(clipRect); in calculateCrop()
814 private void applyCrop(Rect clipRect, boolean recoveringMemory) { in applyCrop() argument
816 + " clipRect=" + clipRect); in applyCrop()
[all …]
DWindowChangeAnimationSpec.java162 final Rect clipRect = tmp.mTransformation.getClipRect(); in apply() local
163 mTmpRect.left = (int) (clipRect.left * tmp.mVecs[0] + 0.5f); in apply()
164 mTmpRect.right = (int) (clipRect.right * tmp.mVecs[0] + 0.5f); in apply()
165 mTmpRect.top = (int) (clipRect.top * tmp.mVecs[3] + 0.5f); in apply()
166 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.cpp453 const SkPath* RenderNode::getClippedOutline(const SkRect& clipRect) const { in getClippedOutline()
457 if (outlineID != mClippedOutlineCache.outlineID || clipRect != mClippedOutlineCache.clipRect) { in getClippedOutline()
460 mClippedOutlineCache.clipRect = clipRect; in getClippedOutline()
464 clipPath.addRect(clipRect); in getClippedOutline()
DRenderNode.h346 const SkPath* getClippedOutline(const SkRect& clipRect) const;
367 SkRect clipRect; member
/frameworks/base/libs/hwui/pipeline/skia/
DRenderNodeDrawable.cpp87 canvas->clipRect(*pendingClip); in clipOutline()
95 canvas->clipRect(*pendingClip); in clipOutline()
102 canvas->clipRect(rect); in clipOutline()
315 SkRect clipRect; in setViewProperties() local
320 clipRect = tmpRect.toSkRect(); in setViewProperties()
321 pendingClip = &clipRect; in setViewProperties()
332 canvas->clipRect(*pendingClip); in setViewProperties()
DSkiaPipeline.cpp389 canvas->clipRect(SkRect::MakeLTRB(content.right, backdrop.top, backdrop.right, in renderFrameImpl()
397 canvas->clipRect(SkRect::MakeLTRB(content.left, content.bottom, content.right, in renderFrameImpl()
414 canvas->clipRect(contentLocalClip); in renderFrameImpl()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DRemoteAnimationTargetCompat.java44 public final Rect clipRect; field in RemoteAnimationTargetCompat
58 clipRect = app.clipRect; in RemoteAnimationTargetCompat()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DAlphaLayersActivity.java87 canvas.clipRect(20.0f, 0.0f, 40.0f, 20.0f); in dispatchDraw()
97 canvas.clipRect(20.0f, 0.0f, 40.0f, 20.0f); in dispatchDraw()
107 canvas.clipRect(20.0f, 0.0f, 40.0f, 20.0f); in dispatchDraw()
117 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()
DQuickRejectActivity.java82 canvas.clipRect(0.0f, 0.0f, 40.0f, 40.0f); in onDraw()
/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/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/core/java/com/android/internal/widget/
DMessagingGroup.java115 Rect clipRect; in updateClipRect() local
121 clipRect = new Rect(0, top, size, size); in updateClipRect()
123 clipRect = null; in updateClipRect()
125 mMessageContainer.setClipBounds(clipRect); in updateClipRect()
/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/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/view/
DStickyHeaderRecyclerView.java113 canvas.clipRect(0, 0, drawTarget.getWidth(), drawTarget.getHeight()); in draw()

123