/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 | 56 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 …]
|
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/base/libs/hwui/ |
D | Outline.h | 60 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()
|
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 | 170 const Outline& outline = properties().getOutline(); in nothingToDraw() local 172 (outline.getShouldClip() && outline.isEmpty()) || properties().getScaleX() == 0 || in nothingToDraw()
|
/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/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/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 nSetOutlinePath(mNativeRenderNode, outline.mPath.mNativePath, in setOutline() 692 outline.mAlpha); in setOutline()
|
/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.setPath(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/bubbles/ |
D | BubbleFlyoutView.java | 185 public void getOutline(View view, Outline outline) { in BubbleFlyoutView() 186 BubbleFlyoutView.this.getOutline(outline); in BubbleFlyoutView() 435 private void getOutline(Outline outline) { in getOutline() argument 442 outline.setPath(rectPath); in getOutline() 446 outline.mPath.addPath(mTriangleOutline.mPath); in getOutline() 468 outline.mPath.transform(outlineMatrix); in getOutline()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/ |
D | TriangleShape.java | 72 public void getOutline(@NonNull Outline outline) { in getOutline() argument 73 outline.setPath(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/layoutlib/bridge/src/android/view/shadow/ |
D | HighQualityShadowPainter.java | 39 public static void paintRectShadow(ViewGroup parent, Outline outline, float elevation, in paintRectShadow() argument 51 if (!outline.getRect(rectScaled) || alpha < MIN_ALPHA) { in paintRectShadow() 56 outline.getRect(rectOriginal); in paintRectShadow() 62 float radius = outline.getRadius() / SCALE_DOWN; in paintRectShadow() 71 boolean isOpaque = outline.getAlpha() * alpha == 1.0f; in paintRectShadow()
|
/frameworks/base/core/java/android/widget/ |
D | Magnifier.java | 1070 final Outline outline = new Outline(); in updateContentFactors() local 1071 outline.setRoundRect(0, 0, mContentWidth, contentHeight, 0); in updateContentFactors() 1072 outline.setAlpha(1.0f); in updateContentFactors() 1076 mBitmapRenderNode.setOutline(outline); in updateContentFactors() 1080 mOverlayRenderNode.setOutline(outline); in updateContentFactors() 1141 final Outline outline = new Outline(); in createRenderNodeForBitmap() local 1142 outline.setRoundRect(0, 0, mContentWidth, mContentHeight, cornerRadius); in createRenderNodeForBitmap() 1143 outline.setAlpha(1.0f); in createRenderNodeForBitmap() 1144 bitmapRenderNode.setOutline(outline); in createRenderNodeForBitmap() 1167 final Outline outline = new Outline(); in createRenderNodeForOverlay() local [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | ExpandableOutlineView.java | 84 public void getOutline(View view, Outline outline) { 93 outline.setRect(left, top, right, bottom); 97 outline.setPath(clipPath); 100 outline.setAlpha(mOutlineAlpha);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
D | AuthPanelController.java | 53 public void getOutline(View view, Outline outline) { in getOutline() argument 66 outline.setRoundRect(left, top, right, bottom, mCornerRadius); in getOutline()
|
/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/packages/SystemUI/src/com/android/systemui/media/ |
D | IlluminationDrawable.kt | 77 override fun getOutline(outline: Outline) { in getOutline() 78 outline.setRoundRect(bounds, cornerRadius) in getOutline()
|