/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 | 350 * Sets the outline, defining the shape that casts a shadow, and the path to 355 public boolean setOutline(Outline outline) { argument 356 if (outline == null) { 358 } else if (outline.isEmpty()) { 360 } else if (outline.mRect != null) { 361 return nSetOutlineRoundRect(mNativeRenderNode, outline.mRect.left, outline.mRect.top, 362 outline.mRect.right, outline.mRect.bottom, outline [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
H A D | OvalShape.java | 40 public void getOutline(Outline outline) { argument 42 outline.setOval((int) Math.ceil(rect.left), (int) Math.ceil(rect.top),
|
H A D | RectShape.java | 41 public void getOutline(Outline outline) { argument 43 outline.setRect((int) Math.ceil(rect.left), (int) Math.ceil(rect.top),
|
H A D | Shape.java | 98 * parameter. The default implementation does nothing and {@code outline} is not changed. 100 * @param outline The Outline to be populated with the result. Should not be null. 102 public void getOutline(@NonNull Outline outline) {} argument
|
H A D | RoundRectShape.java | 83 public void getOutline(Outline outline) { argument 84 if (mInnerRect != null) return; // have a hole, can't produce valid outline 92 outline.setConvexPath(mPath); 99 outline.setRoundRect((int) Math.ceil(rect.left), (int) Math.ceil(rect.top),
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
H A D | ActionBarBackgroundDrawableV21.java | 14 public void getOutline(@NonNull Outline outline) { argument 17 mContainer.mSplitBackground.getOutline(outline); 22 mContainer.mBackground.getOutline(outline);
|
/frameworks/support/v4/api21/android/support/v4/graphics/drawable/ |
H A D | RoundedBitmapDrawable21.java | 32 public void getOutline(Outline outline) { argument 34 outline.setRoundRect(mDstRect, getCornerRadius());
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | AnimateableViewBounds.java | 25 /* An outline provider that has a clip and outline that can be animated. */ 45 public void getOutline(View view, Outline outline) { argument 46 outline.setAlpha(mMinAlpha + mAlpha / (1f - mMinAlpha)); 47 outline.setRoundRect(mClipRect.left, mClipRect.top, 53 /** Sets the view outline alpha. */
|
/frameworks/base/tools/layoutlib/bridge/src/android/view/ |
H A D | ViewGroup_Delegate.java | 56 Outline outline = new Outline(); 57 outlineProvider.getOutline(child, outline); 59 if (outline.mPath != null || (outline.mRect != null && !outline.mRect.isEmpty())) { 61 drawShadow(thisVG, canvas, child, outline); 69 Outline outline) { 72 if (outline.mRect != null) { 73 Shadow s = getRectShadow(parent, canvas, child, outline); 76 } else if (outline 68 drawShadow(ViewGroup parent, Canvas canvas, View child, Outline outline) argument 92 getRectShadow(ViewGroup parent, Canvas canvas, View child, Outline outline) argument 133 getPathShadow(View child, Outline outline, Canvas canvas) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | Outline.h | 44 void setConvexPath(const SkPath* outline, float alpha) { argument 45 if (!outline) { 50 mPath = *outline; 51 mBounds.set(outline->getBounds());
|
H A D | StatefulBaseRenderer.cpp | 197 void StatefulBaseRenderer::setClippingOutline(LinearAllocator& allocator, const Outline* outline) { argument 200 if (!outline->getAsRoundRect(&bounds, &radius)) return; // only RR supported
|
H A D | RenderNode.cpp | 688 // intersect the outline with the reveal clip, if present 696 // intersect the outline with the clipBounds, if present 811 // If the projection reciever has an outline, we mask each of the projected rendernodes to it 816 // mask to the rect outline simply with clipRect 822 // wrap the projected RenderNodes with a SaveLayer that will mask to the outline 879 const Outline& outline = properties().getOutline(); local 880 if (properties().getAlpha() <= 0 || (outline.getShouldClip() && outline.isEmpty())) {
|
/frameworks/support/v7/cardview/api21/android/support/v7/widget/ |
H A D | RoundRectDrawable.java | 32 * reports proper outline for L. 96 public void getOutline(Outline outline) { argument 97 outline.setRoundRect(mBoundsI, mRadius);
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ActionBarContainer.java | 372 public void getOutline(@NonNull Outline outline) { argument 375 mSplitBackground.getOutline(outline); 380 mBackground.getOutline(outline);
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | ColorDrawable.java | 223 public void getOutline(@NonNull Outline outline) { argument 224 outline.setRect(getBounds()); 225 outline.setAlpha(getAlpha() / 255.0f);
|
H A D | AnimatedVectorDrawable.java | 267 public void getOutline(@NonNull Outline outline) { argument 268 mAnimatedVectorState.mVectorDrawable.getOutline(outline);
|
H A D | InsetDrawable.java | 377 public void getOutline(@NonNull Outline outline) { argument 378 mState.mDrawable.getOutline(outline);
|
H A D | NinePatchDrawable.java | 288 public void getOutline(@NonNull Outline outline) { argument 296 outline.setRoundRect(bounds.left + outlineInsets.left, 301 outline.setAlpha(insets.outlineAlpha * (getAlpha() / 255.0f)); 305 super.getOutline(outline);
|
H A D | ShapeDrawable.java | 474 public void getOutline(Outline outline) { argument 476 mShapeState.mShape.getOutline(outline); 477 outline.setAlpha(getAlpha() / 255.0f);
|
H A D | BitmapDrawable.java | 600 public void getOutline(@NonNull Outline outline) { argument 602 outline.setRect(mDstRect); 608 outline.setAlpha(opaqueOverShape ? getAlpha() / 255.0f : 0.0f);
|
H A D | Drawable.java | 890 * the outline of the View. 892 * The default behavior defines the outline to be the bounding rectangle of 0 alpha. 897 public void getOutline(@NonNull Outline outline) { argument 898 outline.setRect(getBounds()); 899 outline.setAlpha(0);
|
H A D | LayerDrawable.java | 578 * Populates <code>outline</code> with the first available (non-empty) layer outline. 580 * @param outline Outline in which to place the first available layer outline 583 public void getOutline(@NonNull Outline outline) { argument 588 children[i].mDrawable.getOutline(outline); 589 if (!outline.isEmpty()) {
|
H A D | RippleDrawable.java | 606 * Populates <code>outline</code> with the first available layer outline, 609 * @param outline Outline in which to place the first available layer outline 612 public void getOutline(@NonNull Outline outline) { argument 618 children[i].mDrawable.getOutline(outline); 619 if (!outline.isEmpty()) return;
|
H A D | DrawableContainer.java | 133 public void getOutline(@NonNull Outline outline) { argument 135 mCurrDrawable.getOutline(outline);
|