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

123

/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.java305 * Sets the outline, defining the shape that casts a shadow, and the path to
310 public boolean setOutline(@Nullable Outline outline) { argument
311 if (outline == null) {
315 switch(outline.mMode) {
319 return nSetOutlineRoundRect(mNativeRenderNode, outline.mRect.left, outline.mRect.top,
320 outline.mRect.right, outline.mRect.bottom, outline.mRadius, outline
[all...]
/frameworks/support/design/lollipop/android/support/design/widget/
H A DCircularBorderDrawableLollipop.java27 public void getOutline(Outline outline) { argument
29 outline.setOval(mRect);
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DActionBarBackgroundDrawableV21.java29 public void getOutline(@NonNull Outline outline) { argument
32 mContainer.mSplitBackground.getOutline(outline);
37 mContainer.mBackground.getOutline(outline);
/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 DArcShape.java52 public void getOutline(Outline outline) { argument
54 // to provide an outline.
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.mMode == Outline.MODE_ROUND_RECT && outline
64 drawShadow(ViewGroup parent, Canvas canvas, View child, Outline outline) argument
92 getPathShadow(Outline outline, Canvas canvas, float elevation) argument
[all...]
H A DRectShadowPainter.java47 Rect outline = new Rect();
48 if (!viewOutline.getRect(outline)) {
72 RectF shadowRect = new RectF(outline);
74 // A rectangle with edges corresponding to the straight edges of the outline.
75 RectF inset = new RectF(outline);
84 sideShadow(canvas, edgePaint, edgeShadowRect, outline.left, inset.top, 0);
86 sideShadow(canvas, edgePaint, edgeShadowRect, outline.right, inset.bottom, 2);
89 sideShadow(canvas, edgePaint, edgeShadowRect, inset.right, outline.top, 1);
95 sideShadow(canvas, edgePaint, edgeShadowRect, inset.left, outline.bottom, 3);
/frameworks/support/v4/api21/android/support/v4/graphics/drawable/
H A DRoundedBitmapDrawable21.java32 public void getOutline(Outline outline) { argument
34 outline.setRoundRect(mDstRect, getCornerRadius());
H A DDrawableWrapperLollipop.java53 public void getOutline(Outline outline) { argument
54 mDrawable.getOutline(outline);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DExpandableOutlineView.java28 * Like {@link ExpandableView}, but setting an outline for the height and clipping.
38 public void getOutline(View view, Outline outline) {
41 outline.setRect(translation,
46 outline.setRect(mOutlineRect);
48 outline.setAlpha(mOutlineAlpha);
/frameworks/support/v17/leanback/api21/android/support/v17/leanback/widget/
H A DRoundedRectHelperApi21.java35 public void getOutline(View view, Outline outline) { argument
36 outline.setRoundRect(0, 0, view.getWidth(), view.getHeight(), mRadius);
37 outline.setAlpha(1f);
H A DShadowHelperApi21.java31 public void getOutline(View view, Outline outline) {
32 outline.setRect(0, 0, view.getWidth(), view.getHeight());
33 outline.setAlpha(1.0f);
/frameworks/support/v17/preference-leanback/api21/android/support/v17/internal/widget/
H A DOutlineOnlyWithChildrenFrameLayout.java27 * {@link FrameLayout} subclass that provides an outline only when it has children, so that it does
69 public void getOutline(View view, Outline outline) {
71 mInnerOutlineProvider.getOutline(view, outline);
73 ViewOutlineProvider.BACKGROUND.getOutline(view, outline);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
H A DFakeShadowView.java63 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 DOutline.h58 // 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 DRenderProperties.cpp166 auto& outline = mPrimitiveFields.mOutline; local
167 if (outline.getShouldClip()) {
168 if (outline.isEmpty()) {
169 ALOGD("%*s(Clip to empty outline)", level * 2, "");
170 } else if (outline.willClip()) {
171 ALOGD("%*s(Clip to outline with bounds %.2f %.2f %.2f %.2f)", level * 2, "",
172 RECT_ARGS(outline.getBounds()));
H A DSpotShadow.h37 static float projectCasterToOutline(Vector2& outline,
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DAnimateableViewBounds.java27 /* 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/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/base/packages/SystemUI/src/com/android/systemui/assist/
H A DAssistOrbView.java100 public void getOutline(View view, Outline outline) {
102 outline.setOval(mCircleRect);
104 outline.setEmpty();
106 outline.setAlpha(mOutlineAlpha);
/frameworks/base/libs/hwui/protos/
H A Dhwui.proto54 optional Outline outline = 23;

Completed in 893 milliseconds

123