/frameworks/base/core/java/android/view/ |
D | ViewOutlineProvider.java | 35 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/ |
D | ViewGroup_Delegate.java | 58 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 …]
|
D | RectShadowPainter.java | 53 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/ |
D | NinePatch.cpp | 567 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/ |
D | OutlinePerfTest.java | 37 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/ |
D | SpotShadowVertexCalculator.java | 88 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()
|
D | HighQualityShadowPainter.java | 37 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/ |
D | AnimateableViewBounds.java | 55 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/ |
D | MyLittleTextureView.java | 58 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()
|
D | ClipOutlineActivity.java | 70 public void getOutline(View view, Outline outline) { in RegionView() 77 outline.setRoundRect(mRect, w / 2); in RegionView()
|
/frameworks/base/libs/hwui/ |
D | Outline.h | 60 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()
|
D | RenderProperties.cpp | 167 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()
|
D | RenderNode.h | 168 const Outline& outline = properties().getOutline(); in nothingToDraw() local 170 (outline.getShouldClip() && outline.isEmpty()) || properties().getScaleX() == 0 || in nothingToDraw()
|
/frameworks/base/graphics/java/android/graphics/ |
D | RenderNode.java | 677 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/ |
D | FakeShadowView.java | 63 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/ |
D | BubbleFlyoutView.java | 169 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/ |
D | OvalShape.java | 41 public void getOutline(Outline outline) { in getOutline() argument 43 outline.setOval((int) Math.ceil(rect.left), (int) Math.ceil(rect.top), in getOutline()
|
D | RectShape.java | 44 public void getOutline(Outline outline) { in getOutline() argument 46 outline.setRect((int) Math.ceil(rect.left), (int) Math.ceil(rect.top), in getOutline()
|
D | RoundRectShape.java | 88 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()
|
D | ArcShape.java | 70 public void getOutline(Outline outline) { in getOutline() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/ |
D | TriangleShape.java | 72 public void getOutline(@NonNull Outline outline) { in getOutline() argument 73 outline.setConvexPath(mTriangularPath); in getOutline()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ |
D | AssistOrbView.java | 100 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/ |
D | ExpandableOutlineView.java | 83 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/ |
D | ColorDrawable.java | 282 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/ |
D | Magnifier.java | 917 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()
|