Home
last modified time | relevance | path

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

123

/frameworks/base/core/java/android/view/
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
/frameworks/layoutlib/bridge/src/android/view/
DViewGroup_Delegate.java58 Outline outline = child.mAttachInfo.mTmpOutline; in drawChild() local
59 outlineProvider.getOutline(child, outline); in drawChild()
60 if (outline.mPath != null || (outline.mRect != null && !outline.mRect.isEmpty())) { in drawChild()
62 drawShadow(thisVG, canvas, child, outline); in drawChild()
71 Outline outline) { in drawShadow() argument
87 if(outline.mMode == Outline.MODE_ROUND_RECT && outline.mRect != null) { in drawShadow()
91 parent, outline, elevation, canvas, child.getAlpha(), densityDpi); in drawShadow()
93 RectShadowPainter.paintShadow(outline, elevation, canvas, child.getAlpha()); in drawShadow()
99 if (outline.mPath != null) { in drawShadow()
100 shadow = getPathShadow(outline, canvas, elevation, child.getAlpha()); in drawShadow()
[all …]
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()
/frameworks/base/tools/aapt2/compile/
DNinePatch.cpp567 FindOutlineInsets(&mid_row, &nine_patch->outline.left, in Create()
568 &nine_patch->outline.right); in Create()
572 FindOutlineInsets(&mid_col, &nine_patch->outline.top, in Create()
573 &nine_patch->outline.bottom); in Create()
576 (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()
583 1 + nine_patch->outline.top + (outline_height / 2), outline_width); in Create()
585 rows, 1 + nine_patch->outline.left + (outline_width / 2), in Create()
586 1 + nine_patch->outline.top, outline_height); in Create()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/
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()
/frameworks/layoutlib/bridge/src/android/view/shadow/
DSpotShadowVertexCalculator.java88 float[] outline = new float[polyLength * 2]; in calculateShadow() local
106 outline[m * 2] = x; in calculateShadow()
107 outline[m * 2 + 1] = y; in calculateShadow()
115 umbra[i] = outline[i]; in calculateShadow()
119 umbraLength = Math3DHelper.intersection(outline, polyLength, umbra, umbraLength); in calculateShadow()
DHighQualityShadowPainter.java37 public static void paintRectShadow(ViewGroup parent, Outline outline, float elevation, in paintRectShadow() argument
49 if (!outline.getRect(rectScaled) || alpha < MIN_ALPHA) { in paintRectShadow()
54 outline.getRect(rectOriginal); in paintRectShadow()
60 float radius = outline.getRadius() / SCALE_DOWN; in paintRectShadow()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/
DAnimateableViewBounds.java55 public void getOutline(View view, Outline outline) { in getOutline() argument
56 outline.setAlpha(Utilities.mapRange(mAlpha, MIN_ALPHA, MAX_ALPHA)); in getOutline()
58 outline.setRoundRect(mClipRect.left, mClipRect.top, in getOutline()
63 outline.setRect(mClipRect.left, mClipRect.top, in getOutline()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
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()
DClipOutlineActivity.java70 public void getOutline(View view, Outline outline) { in RegionView()
77 outline.setRoundRect(mRect, w / 2); in RegionView()
/frameworks/base/libs/hwui/
DOutline.h60 void setConvexPath(const SkPath* outline, float alpha) { in setConvexPath() argument
61 if (!outline) { in setConvexPath()
66 mPath = *outline; in setConvexPath()
67 mBounds.set(outline->getBounds()); in setConvexPath()
DRenderProperties.cpp167 auto& outline = mPrimitiveFields.mOutline; in debugOutputProperties() local
168 if (outline.getShouldClip()) { in debugOutputProperties()
169 if (outline.isEmpty()) { in debugOutputProperties()
171 } else if (outline.willClip()) { in debugOutputProperties()
172 const Rect& bounds = outline.getBounds(); in debugOutputProperties()
DRenderNode.h168 const Outline& outline = properties().getOutline(); in nothingToDraw() local
170 (outline.getShouldClip() && outline.isEmpty()) || properties().getScaleX() == 0 || in nothingToDraw()
/frameworks/base/graphics/java/android/graphics/
DRenderNode.java677 public boolean setOutline(@Nullable Outline outline) { in setOutline() argument
678 if (outline == null) { in setOutline()
682 switch (outline.mMode) { in setOutline()
687 outline.mRect.left, outline.mRect.top, in setOutline()
688 outline.mRect.right, outline.mRect.bottom, in setOutline()
689 outline.mRadius, outline.mAlpha); in setOutline()
691 return nSetOutlineConvexPath(mNativeRenderNode, outline.mPath.mNativePath, in setOutline()
692 outline.mAlpha); in setOutline()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleFlyoutView.java169 public void getOutline(View view, Outline outline) { in BubbleFlyoutView()
170 BubbleFlyoutView.this.getOutline(outline); in BubbleFlyoutView()
378 private void getOutline(Outline outline) { in getOutline() argument
383 outline.setConvexPath(rectPath); in getOutline()
387 outline.mPath.addPath(mTriangleOutline.mPath); in getOutline()
409 outline.mPath.transform(outlineMatrix); in getOutline()
/frameworks/base/graphics/java/android/graphics/drawable/shapes/
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()
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()
DRoundRectShape.java88 public void getOutline(Outline outline) { in getOutline() argument
97 outline.setConvexPath(mPath); in getOutline()
104 outline.setRoundRect((int) Math.ceil(rect.left), (int) Math.ceil(rect.top), in getOutline()
DArcShape.java70 public void getOutline(Outline outline) { in getOutline() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
DTriangleShape.java72 public void getOutline(@NonNull Outline outline) { in getOutline() argument
73 outline.setConvexPath(mTriangularPath); in getOutline()
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/
DAssistOrbView.java100 public void getOutline(View view, Outline outline) { in AssistOrbView()
102 outline.setOval(mCircleRect); in AssistOrbView()
104 outline.setEmpty(); in AssistOrbView()
106 outline.setAlpha(mOutlineAlpha); in AssistOrbView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DExpandableOutlineView.java83 public void getOutline(View view, Outline outline) {
92 outline.setRect(left, top, right, bottom);
98 outline.setConvexPath(clipPath);
101 outline.setAlpha(mOutlineAlpha);
/frameworks/base/graphics/java/android/graphics/drawable/
DColorDrawable.java282 public void getOutline(@NonNull Outline outline) { in getOutline() argument
283 outline.setRect(getBounds()); in getOutline()
284 outline.setAlpha(getAlpha() / 255.0f); in getOutline()
/frameworks/base/core/java/android/widget/
DMagnifier.java917 final Outline outline = new Outline(); in createRenderNodeForBitmap() local
918 outline.setRoundRect(0, 0, mContentWidth, mContentHeight, cornerRadius); in createRenderNodeForBitmap()
919 outline.setAlpha(1.0f); in createRenderNodeForBitmap()
920 bitmapRenderNode.setOutline(outline); in createRenderNodeForBitmap()
943 final Outline outline = new Outline(); in createRenderNodeForOverlay() local
944 outline.setRoundRect(0, 0, mContentWidth, mContentHeight, cornerRadius); in createRenderNodeForOverlay()
945 outline.setAlpha(1.0f); in createRenderNodeForOverlay()
946 overlayRenderNode.setOutline(outline); in createRenderNodeForOverlay()

123