Home
last modified time | relevance | path

Searched refs:outline (Results 1 – 25 of 56) 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
DRenderNode.java355 public boolean setOutline(Outline outline) { in setOutline() argument
356 if (outline == null) { in setOutline()
358 } else if (outline.isEmpty()) { in setOutline()
360 } else if (outline.mRect != null) { in setOutline()
361 return nSetOutlineRoundRect(mNativeRenderNode, outline.mRect.left, outline.mRect.top, in setOutline()
362 outline.mRect.right, outline.mRect.bottom, outline.mRadius, outline.mAlpha); in setOutline()
363 } else if (outline.mPath != null) { in setOutline()
364 return nSetOutlineConvexPath(mNativeRenderNode, outline.mPath.mNativePath, in setOutline()
365 outline.mAlpha); in setOutline()
/frameworks/base/tools/layoutlib/bridge/src/android/view/
DViewGroup_Delegate.java56 Outline outline = new Outline(); in drawChild() local
57 outlineProvider.getOutline(child, outline); in drawChild()
59 if (outline.mPath != null || (outline.mRect != null && !outline.mRect.isEmpty())) { in drawChild()
61 drawShadow(thisVG, canvas, child, outline); in drawChild()
69 Outline outline) { in drawShadow() argument
72 if (outline.mRect != null) { in drawShadow()
73 Shadow s = getRectShadow(parent, canvas, child, outline); in drawShadow()
76 } else if (outline.mPath != null) { in drawShadow()
77 shadow = getPathShadow(child, outline, canvas); in drawShadow()
93 Outline outline) { in getRectShadow() argument
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DActionBarBackgroundDrawableV21.java14 public void getOutline(@NonNull Outline outline) { in getOutline() argument
17 mContainer.mSplitBackground.getOutline(outline); in getOutline()
22 mContainer.mBackground.getOutline(outline); in getOutline()
/frameworks/base/libs/hwui/
DOutline.h44 void setConvexPath(const SkPath* outline, float alpha) { in setConvexPath() argument
45 if (!outline) { in setConvexPath()
50 mPath = *outline; in setConvexPath()
51 mBounds.set(outline->getBounds()); in setConvexPath()
DStatefulBaseRenderer.cpp197 void StatefulBaseRenderer::setClippingOutline(LinearAllocator& allocator, const Outline* outline) { in setClippingOutline() argument
200 if (!outline->getAsRoundRect(&bounds, &radius)) return; // only RR supported in setClippingOutline()
/frameworks/support/v17/leanback/api21/android/support/v17/leanback/widget/
DRoundedRectHelperApi21.java29 public void getOutline(View view, Outline outline) {
34 outline.setRoundRect(0, 0, view.getWidth(), view.getHeight(), sCornerRadius);
35 outline.setAlpha(1f);
DShadowHelperApi21.java32 public void getOutline(View view, Outline outline) {
33 outline.setRect(0, 0, view.getWidth(), view.getHeight());
34 outline.setAlpha(1.0f);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DExpandableOutlineView.java39 public void getOutline(View view, Outline outline) { in ExpandableOutlineView()
41 outline.setRect(0, in ExpandableOutlineView()
46 outline.setRect(mOutlineRect); in ExpandableOutlineView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DAnimateableViewBounds.java45 public void getOutline(View view, Outline outline) { in getOutline() argument
46 outline.setAlpha(mMinAlpha + mAlpha / (1f - mMinAlpha)); in getOutline()
47 outline.setRoundRect(mClipRect.left, mClipRect.top, in getOutline()
/frameworks/base/graphics/java/android/graphics/drawable/shapes/
DOvalShape.java40 public void getOutline(Outline outline) { in getOutline() argument
42 outline.setOval((int) Math.ceil(rect.left), (int) Math.ceil(rect.top), in getOutline()
DRoundRectShape.java83 public void getOutline(Outline outline) { in getOutline() argument
92 outline.setConvexPath(mPath); in getOutline()
99 outline.setRoundRect((int) Math.ceil(rect.left), (int) Math.ceil(rect.top), in getOutline()
DRectShape.java41 public void getOutline(Outline outline) { in getOutline() argument
43 outline.setRect((int) Math.ceil(rect.left), (int) Math.ceil(rect.top), in getOutline()
DShape.java102 public void getOutline(@NonNull Outline outline) {} in getOutline() argument
/frameworks/support/v4/api21/android/support/v4/graphics/drawable/
DRoundedBitmapDrawable21.java32 public void getOutline(Outline outline) { in getOutline() argument
34 outline.setRoundRect(mDstRect, getCornerRadius()); in getOutline()
/frameworks/base/docs/html/training/material/
Dshadows-clipping.jd103 view's outline. Providing a custom outline overrides the default shape of a view's shadow.</p>
105 <p>To define a custom outline for a view in your code:<p>
110 <li>Assign the new outline provider to your view with the {@link
115 {@link android.graphics.Outline} class. The default outline provider for views obtains the outline
116 from the view's background. To prevent a view from casting a shadow, set its outline provider
124 You can clip a view to its outline area using the {@link android.view.View#setClipToOutline
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DClipOutlineActivity.java70 public void getOutline(View view, Outline outline) { in RegionView()
77 outline.setRoundRect(mRect, w / 2); in RegionView()
/frameworks/support/v7/cardview/api21/android/support/v7/widget/
DRoundRectDrawable.java96 public void getOutline(Outline outline) { in getOutline() argument
97 outline.setRoundRect(mBoundsI, mRadius); in getOutline()
/frameworks/base/graphics/java/android/graphics/drawable/
DColorDrawable.java223 public void getOutline(@NonNull Outline outline) { in getOutline() argument
224 outline.setRect(getBounds()); in getOutline()
225 outline.setAlpha(getAlpha() / 255.0f); in getOutline()
DNinePatchDrawable.java288 public void getOutline(@NonNull Outline outline) { in getOutline() argument
296 outline.setRoundRect(bounds.left + outlineInsets.left, in getOutline()
301 outline.setAlpha(insets.outlineAlpha * (getAlpha() / 255.0f)); in getOutline()
305 super.getOutline(outline); in getOutline()
DShapeDrawable.java474 public void getOutline(Outline outline) { in getOutline() argument
476 mShapeState.mShape.getOutline(outline); in getOutline()
477 outline.setAlpha(getAlpha() / 255.0f); in getOutline()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSearchPanelCircleView.java110 public void getOutline(View view, Outline outline) { in SearchPanelCircleView()
112 outline.setOval(mCircleRect); in SearchPanelCircleView()
114 outline.setEmpty(); in SearchPanelCircleView()
116 outline.setAlpha(mOutlineAlpha); in SearchPanelCircleView()
/frameworks/base/core/java/com/android/internal/widget/
DActionBarContainer.java372 public void getOutline(@NonNull Outline outline) { in getOutline() argument
375 mSplitBackground.getOutline(outline); in getOutline()
380 mBackground.getOutline(outline); in getOutline()
/frameworks/base/docs/html/reference/renderscript/
Dtabs.css39 outline: none;
/frameworks/base/core/java/com/android/internal/app/
DPlatLogoActivity.java100 public void getOutline(View view, Outline outline) { in onAttachedToWindow()
101 outline.setRect(0, getHeight() / 2, getWidth(), getHeight()); in onAttachedToWindow()

123