Home
last modified time | relevance | path

Searched refs:outline (Results 1 – 25 of 96) sorted by relevance

1234

/aosp12/frameworks/base/core/java/android/view/
H A DViewOutlineProvider.java35 public void getOutline(View view, Outline outline) {
38 background.getOutline(outline);
40 outline.setRect(0, 0, view.getWidth(), view.getHeight());
41 outline.setAlpha(0.0f);
54 public void getOutline(View view, Outline outline) {
55 outline.setRect(0, 0, view.getWidth(), view.getHeight());
67 public void getOutline(View view, Outline outline) {
68 outline.setRect(view.getPaddingLeft(),
87 public abstract void getOutline(View view, Outline outline); in getOutline() argument
/aosp12/frameworks/layoutlib/bridge/src/android/view/
H A DViewGroup_Delegate.java56 Outline outline = child.mAttachInfo.mTmpOutline; in drawChild() local
57 outlineProvider.getOutline(child, outline); in drawChild()
58 if (outline.mPath != null || (outline.mRect != null && !outline.mRect.isEmpty())) { in drawChild()
60 drawShadow(thisVG, canvas, child, outline); in drawChild()
69 Outline outline) { in drawShadow() argument
83 if(outline.mMode == Outline.MODE_ROUND_RECT && outline.mRect != null) { in drawShadow()
87 parent, outline, elevation, canvas, child.getAlpha(), densityDpi); in drawShadow()
89 RectShadowPainter.paintShadow(outline, elevation, canvas, child.getAlpha()); in drawShadow()
95 if (outline.mPath != null) { in drawShadow()
96 shadow = getPathShadow(outline, canvas, elevation, child.getAlpha()); in drawShadow()
[all …]
H A DRectShadowPainter.java53 Rect outline = new Rect(); in paintShadow() local
54 if (!viewOutline.getRect(outline)) { in paintShadow()
94 RectF shadowRect = new RectF(outline); in paintShadow()
97 RectF inset = new RectF(outline); in paintShadow()
106 sideShadow(canvas, edgePaint, edgeShadowRect, outline.left, inset.top, 0); in paintShadow()
108 sideShadow(canvas, edgePaint, edgeShadowRect, outline.right, inset.bottom, 2); in paintShadow()
111 sideShadow(canvas, edgePaint, edgeShadowRect, inset.right, outline.top, 1); in paintShadow()
117 sideShadow(canvas, edgePaint, edgeShadowRect, inset.left, outline.bottom, 3); in paintShadow()
/aosp12/frameworks/base/tools/aapt2/compile/
H A DNinePatch.cpp576 (width - 2) - nine_patch->outline.left - nine_patch->outline.right; in Create()
578 (height - 2) - nine_patch->outline.top - nine_patch->outline.bottom; in Create()
582 rows, 1 + nine_patch->outline.left, in Create()
658 memcpy(cursor, &outline.left, sizeof(outline.left)); in SerializeRoundedRectOutline()
659 cursor += sizeof(outline.left); in SerializeRoundedRectOutline()
661 memcpy(cursor, &outline.top, sizeof(outline.top)); in SerializeRoundedRectOutline()
662 cursor += sizeof(outline.top); in SerializeRoundedRectOutline()
664 memcpy(cursor, &outline.right, sizeof(outline.right)); in SerializeRoundedRectOutline()
665 cursor += sizeof(outline.right); in SerializeRoundedRectOutline()
667 memcpy(cursor, &outline.bottom, sizeof(outline.bottom)); in SerializeRoundedRectOutline()
[all …]
/aosp12/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/
H A DOutlinePerfTest.java37 Outline outline = new Outline(); in testSetEmpty() local
39 outline.setEmpty(); in testSetEmpty()
46 Outline outline = new Outline(); in testSetRoundRect() local
48 outline.setRoundRect(50, 50, 150, 150, 5); in testSetRoundRect()
/aosp12/packages/apps/Contacts/src/com/android/contacts/util/
H A DViewUtil.java65 public void getOutline(View view, Outline outline) {
66 outline.setOval(0, 0, view.getWidth(), view.getHeight());
79 public void getOutline(View view, Outline outline) {
80 outline.setRect(0, 0, view.getWidth(), view.getHeight());
/aosp12/frameworks/base/libs/hwui/
H A DOutline.h60 void setPath(const SkPath* outline, float alpha) { in setPath() argument
61 if (!outline) { in setPath()
66 mPath = *outline; in setPath()
67 mBounds.set(outline->getBounds()); in setPath()
H A DRenderProperties.cpp175 auto& outline = mPrimitiveFields.mOutline; in debugOutputProperties() local
176 if (outline.getShouldClip()) { in debugOutputProperties()
177 if (outline.isEmpty()) { in debugOutputProperties()
179 } else if (outline.willClip()) { in debugOutputProperties()
180 const Rect& bounds = outline.getBounds(); in debugOutputProperties()
/aosp12/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DMyLittleTextureView.java58 Outline outline = new Outline(); in onCreate() local
59 outline.setRect(new Rect(0, 0, childRect.width(), childRect.height())); in onCreate()
60 outline.setAlpha(1f); in onCreate()
61 childNode.setOutline(outline); in onCreate()
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
H A DViewOutlineProviderCompatUtilsLXX.java61 public void getOutline(final View view, final Outline outline) { in getOutline() argument
64 ViewOutlineProvider.BACKGROUND.getOutline(view, outline); in getOutline()
68 outline.setRect( in getOutline()
/aosp12/frameworks/base/graphics/java/android/graphics/
H A DRenderNode.java700 public boolean setOutline(@Nullable Outline outline) { in setOutline() argument
701 if (outline == null) { in setOutline()
705 switch (outline.mMode) { in setOutline()
710 outline.mRect.left, outline.mRect.top, in setOutline()
711 outline.mRect.right, outline.mRect.bottom, in setOutline()
712 outline.mRadius, outline.mAlpha); in setOutline()
714 return nSetOutlinePath(mNativeRenderNode, outline.mPath.mNativePath, in setOutline()
715 outline.mAlpha); in setOutline()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/widget/
H A DBaseLauncherAppWidgetHostView.java43 public void getOutline(View view, Outline outline) {
45 outline.setEmpty();
47 outline.setRoundRect(mEnforcedRectangle, mEnforcedCornerRadius);
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
H A DFakeShadowView.java63 public void getOutline(View view, Outline outline) { in FakeShadowView()
64 outline.setRect(0, 0, getWidth(), mFakeShadow.getHeight()); in FakeShadowView()
65 outline.setAlpha(mOutlineAlpha); in FakeShadowView()
/aosp12/frameworks/base/graphics/java/android/graphics/drawable/shapes/
H A DOvalShape.java41 public void getOutline(Outline outline) { in getOutline() argument
43 outline.setOval((int) Math.ceil(rect.left), (int) Math.ceil(rect.top), in getOutline()
H A DRoundRectShape.java88 public void getOutline(Outline outline) { in getOutline() argument
97 outline.setPath(mPath); in getOutline()
104 outline.setRoundRect((int) Math.ceil(rect.left), (int) Math.ceil(rect.top), in getOutline()
H A DRectShape.java44 public void getOutline(Outline outline) { in getOutline() argument
46 outline.setRect((int) Math.ceil(rect.left), (int) Math.ceil(rect.top), in getOutline()
/aosp12/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/view/
H A DContactAvatarOutputlineProvider.java39 public void getOutline(View view, Outline outline) { in getOutline() argument
43 outline.setRoundRect(0, 0, view.getWidth(), view.getHeight(), radius); in getOutline()
/aosp12/packages/apps/Car/Messenger/src/com/android/car/messenger/core/ui/shared/
H A DCircularOutputlineProvider.java42 public void getOutline(View view, Outline outline) { in getOutline() argument
48 outline.setRoundRect(0, 0, view.getWidth(), view.getHeight(), radius); in getOutline()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/graphics/
H A DTriangleShape.java54 public void getOutline(@NonNull Outline outline) { in getOutline() argument
55 outline.setConvexPath(mTriangularPath); in getOutline()
/aosp12/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
H A DSimIconView.java40 public void getOutline(View v, Outline outline) { in SimIconView()
41 outline.setOval(0, 0, v.getWidth(), v.getHeight()); in SimIconView()
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
H A DBubbleFlyoutView.java193 public void getOutline(View view, Outline outline) { in BubbleFlyoutView()
194 BubbleFlyoutView.this.getOutline(outline); in BubbleFlyoutView()
498 private void getOutline(Outline outline) { in getOutline() argument
505 outline.setPath(rectPath); in getOutline()
509 outline.mPath.addPath(mTriangleOutline.mPath); in getOutline()
531 outline.mPath.transform(outlineMatrix); in getOutline()
H A DBadgedImageView.java113 public void getOutline(View view, Outline outline) { in BadgedImageView()
114 BadgedImageView.this.getOutline(outline); in BadgedImageView()
119 private void getOutline(Outline outline) { in getOutline() argument
123 outline.setOval(inset, inset, inset + normalizedSize, inset + normalizedSize); in getOutline()
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
H A DTriangleShape.java74 public void getOutline(@NonNull Outline outline) { in getOutline() argument
75 outline.setPath(mTriangularPath); in getOutline()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
H A DTriangleShape.java72 public void getOutline(@NonNull Outline outline) { in getOutline() argument
73 outline.setPath(mTriangularPath); in getOutline()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/anim/
H A DRevealOutlineAnimation.java86 public void getOutline(View v, Outline outline) { in getOutline() argument
87 outline.setRoundRect(mOutline, mOutlineRadius); in getOutline()

1234