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.java120 public final Rect clipRect; field in RemoteAnimationTarget
206 Rect clipRect, Rect contentInsets, int prefixOrderIndex, Point position, in RemoteAnimationTarget() argument
210 this(taskId, mode, leash, isTranslucent, clipRect, contentInsets, prefixOrderIndex, in RemoteAnimationTarget()
216 Rect clipRect, Rect contentInsets, int prefixOrderIndex, Point position, in RemoteAnimationTarget() argument
226 this.clipRect = new Rect(clipRect); in RemoteAnimationTarget()
246 clipRect = in.readTypedObject(Rect.CREATOR); in RemoteAnimationTarget()
272 dest.writeTypedObject(clipRect, 0 /* flags */); in writeToParcel()
291 pw.print(" clipRect="); clipRect.printShortString(pw); in dump()
311 clipRect.dumpDebug(proto, CLIP_RECT); in dumpDebug()
/frameworks/base/libs/hwui/
DRenderProperties.cpp162 Rect clipRect; in debugOutputProperties() local
163 getClippingRectForFlags(clipFlags, &clipRect); in debugOutputProperties()
164 output << indent << "(ClipRect " << (int)clipRect.left << ", " << (int)clipRect.top << ", " in debugOutputProperties()
165 << (int)clipRect.right << ", " << (int)clipRect.bottom << ")" << std::endl; in debugOutputProperties()
DRenderNode.cpp539 const SkPath* RenderNode::getClippedOutline(const SkRect& clipRect) const { in getClippedOutline()
543 if (outlineID != mClippedOutlineCache.outlineID || clipRect != mClippedOutlineCache.clipRect) { in getClippedOutline()
546 mClippedOutlineCache.clipRect = clipRect; in getClippedOutline()
550 clipPath.addRect(clipRect); in getClippedOutline()
DRenderNode.h377 const SkPath* getClippedOutline(const SkRect& clipRect) const;
414 SkRect clipRect; member
/frameworks/base/services/core/java/com/android/server/wm/
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()
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/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/libs/hwui/pipeline/skia/
DRenderNodeDrawable.cpp89 canvas->clipRect(*pendingClip); in clipOutline()
97 canvas->clipRect(*pendingClip); in clipOutline()
104 canvas->clipRect(rect); in clipOutline()
406 SkRect clipRect; in setViewProperties() local
411 clipRect = tmpRect.toSkRect(); in setViewProperties()
412 pendingClip = &clipRect; in setViewProperties()
423 canvas->clipRect(*pendingClip); in setViewProperties()
/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/navigationbar/buttons/
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/shared/src/com/android/systemui/shared/system/
DRemoteAnimationTargetCompat.java62 public final Rect clipRect; field in RemoteAnimationTargetCompat
81 clipRect = app.clipRect; in RemoteAnimationTargetCompat()
200 clipRect = null; in RemoteAnimationTargetCompat()
/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/graphics/java/android/graphics/drawable/
DPictureDrawable.java67 canvas.clipRect(bounds); in draw()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardPreviewContainer.java38 canvas.clipRect(0, getHeight() - getPaddingBottom(), getWidth(), getHeight());
/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/graphics/java/android/graphics/
DCanvas.java843 public boolean clipRect(@NonNull RectF rect, @NonNull Region.Op op) { in clipRect() method in Canvas
867 public boolean clipRect(@NonNull Rect rect, @NonNull Region.Op op) { in clipRect() method in Canvas
891 public boolean clipRect(@NonNull RectF rect) { in clipRect() method in Canvas
915 public boolean clipRect(@NonNull Rect rect) { in clipRect() method in Canvas
958 public boolean clipRect(float left, float top, float right, float bottom, in clipRect() method in Canvas
977 public boolean clipRect(float left, float top, float right, float bottom) { in clipRect() method in Canvas
1010 public boolean clipRect(int left, int top, int right, int bottom) { in clipRect() method in Canvas
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DImageTile.java73 canvas.clipRect(0, 0, mLocation.width(), mLocation.height()); in getDisplayList()
DTiledImageDrawable.java83 canvas.clipRect(0, 0, bounds.width(), bounds.height()); in draw()
/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.java169 Rect clipRect; in updateClipRect() local
180 clipRect = new Rect(-size, top, size, size); in updateClipRect()
182 clipRect = null; in updateClipRect()
184 mMessageContainer.setClipBounds(clipRect); in updateClipRect()

1234