/frameworks/base/core/java/android/view/ |
H A D | ViewOutlineProvider.java | 27 * Default outline provider for Views, which queries the Outline from the View's background, 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); 47 * Maintains the outline of the View to match its rectangular bounds, 54 public void getOutline(View view, Outline outline) { 55 outline.setRect(0, 0, view.getWidth(), view.getHeight()); 60 * Maintains the outline of the View to match its rectangular padded bounds, 67 public void getOutline(View view, Outline outline) { 87 getOutline(View view, Outline outline) argument [all...] |
H A D | RenderNode.java | 328 * Sets the outline, defining the shape that casts a shadow, and the path to 333 public boolean setOutline(@Nullable Outline outline) { argument 334 if (outline == null) { 338 switch(outline.mMode) { 342 return nSetOutlineRoundRect(mNativeRenderNode, outline.mRect.left, outline.mRect.top, 343 outline.mRect.right, outline.mRect.bottom, outline.mRadius, outline [all...] |
/frameworks/support/design/lollipop/android/support/design/widget/ |
H A D | CircularBorderDrawableLollipop.java | 29 public void getOutline(Outline outline) { argument 31 outline.setOval(mRect);
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | ActionBarBackgroundDrawableV21.java | 31 public void getOutline(@NonNull Outline outline) { argument 34 mContainer.mSplitBackground.getOutline(outline); 39 mContainer.mBackground.getOutline(outline);
|
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/ |
H A D | OutlinePerfTest.java | 37 Outline outline = new Outline(); 39 outline.setEmpty(); 46 Outline outline = new Outline(); 48 outline.setRoundRect(50, 50, 150, 150, 5);
|
/frameworks/layoutlib/bridge/src/android/view/ |
H A D | ViewGroup_Delegate.java | 50 // the outline obtained is correct. 54 Outline outline = child.mAttachInfo.mTmpOutline; 55 outlineProvider.getOutline(child, outline); 56 if (outline.mPath != null || (outline.mRect != null && !outline.mRect.isEmpty())) { 58 drawShadow(thisVG, canvas, child, outline); 67 Outline outline) { 69 if(outline.mMode == Outline.MODE_ROUND_RECT && outline 66 drawShadow(ViewGroup parent, Canvas canvas, View child, Outline outline) argument 94 getPathShadow(Outline outline, Canvas canvas, float elevation) argument [all...] |
H A D | RectShadowPainter.java | 50 Rect outline = new Rect(); 51 if (!viewOutline.getRect(outline)) { 84 RectF shadowRect = new RectF(outline); 86 // A rectangle with edges corresponding to the straight edges of the outline. 87 RectF inset = new RectF(outline); 96 sideShadow(canvas, edgePaint, edgeShadowRect, outline.left, inset.top, 0); 98 sideShadow(canvas, edgePaint, edgeShadowRect, outline.right, inset.bottom, 2); 101 sideShadow(canvas, edgePaint, edgeShadowRect, inset.right, outline.top, 1); 107 sideShadow(canvas, edgePaint, edgeShadowRect, inset.left, outline.bottom, 3);
|
/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
H A D | OvalShape.java | 41 public void getOutline(Outline outline) { argument 43 outline.setOval((int) Math.ceil(rect.left), (int) Math.ceil(rect.top),
|
H A D | RectShape.java | 42 public void getOutline(Outline outline) { argument 44 outline.setRect((int) Math.ceil(rect.left), (int) Math.ceil(rect.top),
|
H A D | ArcShape.java | 68 public void getOutline(Outline outline) { argument 70 // to provide an outline.
|
H A D | RoundRectShape.java | 85 public void getOutline(Outline outline) { argument 86 if (mInnerRect != null) return; // have a hole, can't produce valid outline 94 outline.setConvexPath(mPath); 101 outline.setRoundRect((int) Math.ceil(rect.left), (int) Math.ceil(rect.top),
|
H A D | Shape.java | 106 * parameter. The default implementation does nothing and {@code outline} 109 * @param outline the Outline to be populated with the result. Must be 112 public void getOutline(@NonNull Outline outline) {} argument
|
/frameworks/support/core-utils/api21/android/support/v4/graphics/drawable/ |
H A D | RoundedBitmapDrawable21.java | 34 public void getOutline(Outline outline) { argument 36 outline.setRoundRect(mDstRect, getCornerRadius());
|
/frameworks/support/v17/leanback/api21/android/support/v17/leanback/widget/ |
H A D | RoundedRectHelperApi21.java | 37 public void getOutline(View view, Outline outline) { argument 38 outline.setRoundRect(0, 0, view.getWidth(), view.getHeight(), mRadius); 39 outline.setAlpha(1f);
|
H A D | ShadowHelperApi21.java | 32 public void getOutline(View view, Outline outline) { 33 outline.setRect(0, 0, view.getWidth(), view.getHeight()); 34 outline.setAlpha(1.0f);
|
/frameworks/support/v17/preference-leanback/api21/android/support/v17/internal/widget/ |
H A D | OutlineOnlyWithChildrenFrameLayout.java | 31 * {@link FrameLayout} subclass that provides an outline only when it has children, so that it does 75 public void getOutline(View view, Outline outline) { 77 mInnerOutlineProvider.getOutline(view, outline); 79 ViewOutlineProvider.BACKGROUND.getOutline(view, outline);
|
/frameworks/base/tools/aapt2/compile/ |
H A D | NinePatch.cpp | 563 // Compute the outline based on opacity. 567 FindOutlineInsets(&mid_row, &nine_patch->outline.left, 568 &nine_patch->outline.right); 572 FindOutlineInsets(&mid_col, &nine_patch->outline.top, 573 &nine_patch->outline.bottom); 576 (width - 2) - nine_patch->outline.left - nine_patch->outline.right; 578 (height - 2) - nine_patch->outline.top - nine_patch->outline.bottom; 580 // Find the largest alpha value within the outline are [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
H A D | FakeShadowView.java | 63 public void getOutline(View view, Outline outline) { 64 outline.setRect(0, 0, getWidth(), mFakeShadow.getHeight()); 65 outline.setAlpha(mOutlineAlpha);
|
/frameworks/base/libs/hwui/ |
H A D | Outline.h | 58 // update mPath to reflect new outline 68 void setConvexPath(const SkPath* outline, float alpha) { argument 69 if (!outline) { 74 mPath = *outline; 75 mBounds.set(outline->getBounds());
|
H A D | RenderProperties.cpp | 176 auto& outline = mPrimitiveFields.mOutline; local 177 if (outline.getShouldClip()) { 178 if (outline.isEmpty()) { 179 output << indent << "(Clip to empty outline)"; 180 } else if (outline.willClip()) { 181 const Rect& bounds = outline.getBounds(); 182 output << indent << "(Clip to outline with bounds "
|
H A D | RenderNode.cpp | 136 const Outline& outline = properties().getOutline(); local 137 if (outline.getType() != Outline::Type::None) { 140 if (outline.getType() == Outline::Type::Empty) { 142 } else if (outline.getType() == Outline::Type::ConvexPath) { 144 if (const SkPath* path = outline.getPath()) { 147 } else if (outline.getType() == Outline::Type::RoundRect) { 150 ALOGW("Uknown outline type! %d", static_cast<int>(outline.getType())); 153 poutline->set_should_clip(outline.getShouldClip()); 154 poutline->set_alpha(outline [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | AnimateableViewBounds.java | 27 /* An outline provider that has a clip and outline that can be animated. */ 59 public void getOutline(View view, Outline outline) { argument 60 outline.setAlpha(Utilities.mapRange(mAlpha, MIN_ALPHA, MAX_ALPHA)); 62 outline.setRoundRect(mClipRect.left, mClipRect.top, 67 outline.setRect(mClipRect.left, mClipRect.top, 74 * Sets the view outline alpha. 85 * @return the outline alpha.
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | ExpandableOutlineView.java | 30 * Like {@link ExpandableView}, but setting an outline for the height and clipping. 47 public void getOutline(View view, Outline outline) { 50 outline.setRoundRect(translation, 56 outline.setRoundRect(mOutlineRect, mOutlineRadius); 58 outline.setAlpha(mOutlineAlpha); 135 * @return Whether the view currently needs an outline. This is usually {@code false} in case
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | ClipOutlineActivity.java | 70 public void getOutline(View view, Outline outline) { 77 outline.setRoundRect(mRect, w / 2);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ |
H A D | AssistOrbView.java | 100 public void getOutline(View view, Outline outline) { 102 outline.setOval(mCircleRect); 104 outline.setEmpty(); 106 outline.setAlpha(mOutlineAlpha);
|