Searched refs:outline (Results 1 - 25 of 49) sorted by relevance

12

/frameworks/base/core/java/android/view/
H A DViewOutlineProvider.java27 * 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 DRenderNode.java345 * Sets the outline, defining the shape that casts a shadow, and the path to
350 public boolean setOutline(Outline outline) { argument
351 if (outline == null) {
353 } else if (outline.isEmpty()) {
355 } else if (outline.mRect != null) {
356 return nSetOutlineRoundRect(mNativeRenderNode, outline.mRect.left, outline.mRect.top,
357 outline.mRect.right, outline.mRect.bottom, outline
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
H A DActionBarBackgroundDrawableV21.java14 public void getOutline(@NonNull Outline outline) { argument
17 mContainer.mSplitBackground.getOutline(outline);
22 mContainer.mBackground.getOutline(outline);
/frameworks/support/v17/leanback/api21/android/support/v17/leanback/widget/
H A DRoundedRectHelperApi21.java29 public void getOutline(View view, Outline outline) {
34 outline.setRoundRect(0, 0, view.getWidth(), view.getHeight(), sCornerRadius);
35 outline.setAlpha(1f);
H A DShadowHelperApi21.java36 public void getOutline(View view, Outline outline) {
37 outline.setRect(0, 0, view.getWidth(), view.getHeight());
38 outline.setAlpha(1.0f);
/frameworks/base/graphics/java/android/graphics/drawable/shapes/
H A DOvalShape.java40 public void getOutline(Outline outline) { argument
42 outline.setOval((int) Math.ceil(rect.left), (int) Math.ceil(rect.top),
H A DRectShape.java41 public void getOutline(Outline outline) { argument
43 outline.setRect((int) Math.ceil(rect.left), (int) Math.ceil(rect.top),
H A DRoundRectShape.java83 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),
H A DShape.java98 * 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
/frameworks/base/tools/layoutlib/bridge/src/android/view/
H A DViewGroup_Delegate.java50 // the outline obtained is correct.
53 Outline outline = child.mAttachInfo.mTmpOutline;
54 outlineProvider.getOutline(child, outline);
55 if (outline.mPath != null || (outline.mRect != null && !outline.mRect.isEmpty())) {
57 drawShadow(thisVG, canvas, child, outline);
65 Outline outline) {
67 if(outline.mRect != null) {
68 RectShadowPainter.paintShadow(outline, elevatio
64 drawShadow(ViewGroup parent, Canvas canvas, View child, Outline outline) argument
92 getPathShadow(Outline outline, Canvas canvas, float elevation) argument
[all...]
H A DRectShadowPainter.java57 Rect outline = viewOutline.mRect;
68 RectF shadowRect = new RectF(outline);
70 // A rectangle with edges corresponding to the straight edges of the outline.
71 RectF inset = new RectF(outline);
80 sideShadow(canvas, edgePaint, edgeShadowRect, outline.left, inset.top, 0);
82 sideShadow(canvas, edgePaint, edgeShadowRect, outline.right, inset.bottom, 2);
85 sideShadow(canvas, edgePaint, edgeShadowRect, inset.right, outline.top, 1);
91 sideShadow(canvas, edgePaint, edgeShadowRect, inset.left, outline.bottom, 3);
/frameworks/support/v4/api21/android/support/v4/graphics/drawable/
H A DDrawableWrapperLollipop.java41 public void getOutline(Outline outline) { argument
42 mDrawable.getOutline(outline);
H A DRoundedBitmapDrawable21.java32 public void getOutline(Outline outline) { argument
34 outline.setRoundRect(mDstRect, getCornerRadius());
/frameworks/base/libs/hwui/
H A DOutline.h45 void setConvexPath(const SkPath* outline, float alpha) { argument
46 if (!outline) {
51 mPath = *outline;
52 mBounds.set(outline->getBounds());
H A DSpotShadow.h37 static float projectCasterToOutline(Vector2& outline,
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DExpandableOutlineView.java30 * Like {@link ExpandableView}, but setting an outline for the height and clipping.
45 public void getOutline(View view, Outline outline) {
47 outline.setRect(0,
52 outline.setRoundRect(mOutlineRect, mRoundedRectCornerRadius);
54 outline.setAlpha(mOutlineAlpha);
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DAnimateableViewBounds.java25 /* 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/support/design/lollipop/android/support/design/widget/
H A DCircularBorderDrawableLollipop.java68 public void getOutline(Outline outline) { argument
70 outline.setOval(mRect);
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DClipOutlineActivity.java70 public void getOutline(View view, Outline outline) {
77 outline.setRoundRect(mRect, w / 2);
/frameworks/support/v7/cardview/api21/android/support/v7/widget/
H A DRoundRectDrawable.java32 * reports proper outline for L.
96 public void getOutline(Outline outline) { argument
97 outline.setRoundRect(mBoundsI, mRadius);
/frameworks/base/core/java/com/android/internal/app/
H A DPlatLogoActivity.java82 public void getOutline(View view, Outline outline) {
84 outline.setOval(pad, pad, view.getWidth() - pad, view.getHeight() - pad);
120 public void getOutline(View view, Outline outline) {
121 outline.setOval(0, 0, view.getWidth(), view.getHeight());
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/
H A DAssistOrbView.java102 public void getOutline(View view, Outline outline) {
104 outline.setOval(mCircleRect);
106 outline.setEmpty();
108 outline.setAlpha(mOutlineAlpha);
/frameworks/base/graphics/java/android/graphics/drawable/
H A DColorDrawable.java225 public void getOutline(@NonNull Outline outline) { argument
226 outline.setRect(getBounds());
227 outline.setAlpha(getAlpha() / 255.0f);
H A DDrawableWrapper.java311 public void getOutline(@NonNull Outline outline) { argument
313 mDrawable.getOutline(outline);
315 super.getOutline(outline);
H A DInsetDrawable.java240 public void getOutline(@NonNull Outline outline) { argument
241 getDrawable().getOutline(outline);

Completed in 8309 milliseconds

12