Home
last modified time | relevance | path

Searched refs:outline (Results 1 – 25 of 75) 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
/frameworks/base/libs/androidfw/
DNinePatch.cpp552 FindOutlineInsets(&mid_row, &nine_patch->outline.left, &nine_patch->outline.right); in Create()
556 FindOutlineInsets(&mid_col, &nine_patch->outline.top, &nine_patch->outline.bottom); in Create()
558 const int32_t outline_width = (width - 2) - nine_patch->outline.left - nine_patch->outline.right; in Create()
560 (height - 2) - nine_patch->outline.top - nine_patch->outline.bottom; in Create()
563 HorizontalImageLine outline_mid_row(rows, 1 + nine_patch->outline.left, in Create()
564 1 + nine_patch->outline.top + (outline_height / 2), in Create()
566 VerticalImageLine outline_mid_col(rows, 1 + nine_patch->outline.left + (outline_width / 2), in Create()
567 1 + nine_patch->outline.top, outline_height); in Create()
573 DiagonalImageLine diagonal(rows, 1 + nine_patch->outline.left, 1 + nine_patch->outline.top, 1, 1, in Create()
635 memcpy(cursor, &outline.left, sizeof(outline.left)); in SerializeRoundedRectOutline()
[all …]
/frameworks/libs/systemui/weathereffects/graphics/assets/shaders/
Doutline.agsl21 * Returns whether the current fragcoord lies on the outline, return range [0, 1].
22 * 0 = no outline, 1 = outline
24 * outline with finite differencing.
32 half outline = smoothstep(0.1, 1.8, dY * 5.0);
36 return vec4(outline, 0., 0., 1.);
Drain_shower_layer.agsl39 * Draws splashes around the outline of the given image.
61 float outline = step(0.1, outlineBuffer.eval(uvTextureFgd).r);
62 if (outline < 0.1) {
63 // Simply return the given color when it's not considered as an outline.
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/
DOutlinePerfTest.java37 Outline outline = new Outline(); in testSetEmpty() local
39 outline.setEmpty(); in testSetEmpty()
46 Outline outline = new Outline(); in testSetRoundRect() local
48 outline.setRoundRect(50, 50, 150, 150, 5); in testSetRoundRect()
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/
DMyLittleTextureView.java58 Outline outline = new Outline(); in onCreate() local
59 outline.setRect(new Rect(0, 0, childRect.width(), childRect.height())); in onCreate()
60 outline.setAlpha(1f); in onCreate()
61 childNode.setOutline(outline); in onCreate()
DClipOutlineActivity.java70 public void getOutline(View view, Outline outline) { in RegionView()
77 outline.setRoundRect(mRect, w / 2); in RegionView()
DBackdropBlurActivity.java83 public void getOutline(View v, Outline outline) { in BackdropBlurView()
84 outline.setOval(0, 0, v.getWidth(), v.getHeight()); in BackdropBlurView()
/frameworks/base/libs/hwui/
DOutline.h60 void setPath(const SkPath* outline, float alpha) { in setPath() argument
61 if (!outline) { in setPath()
66 mPath = *outline; in setPath()
67 mBounds.set(outline->getBounds()); in setPath()
DRenderProperties.cpp182 auto& outline = mPrimitiveFields.mOutline; in debugOutputProperties() local
183 if (outline.getShouldClip()) { in debugOutputProperties()
184 if (outline.isEmpty()) { in debugOutputProperties()
186 } else if (outline.willClip()) { in debugOutputProperties()
187 const Rect& bounds = outline.getBounds(); in debugOutputProperties()
DRenderNode.h170 const Outline& outline = properties().getOutline(); in nothingToDraw() local
172 (outline.getShouldClip() && outline.isEmpty()) || properties().getScaleX() == 0 || in nothingToDraw()
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/widgets/
DCommunalAppWidgetHostView.kt61 override fun getOutline(view: View?, outline: Outline) { in getOutline()
63 outline.setEmpty() in getOutline()
65 outline.setRoundRect(enforcedRectangle, enforcedCornerRadius) in getOutline()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DFakeShadowView.java63 public void getOutline(View view, Outline outline) { in FakeShadowView()
64 outline.setRect(0, 0, getWidth(), mFakeShadow.getHeight()); in FakeShadowView()
65 outline.setAlpha(mOutlineAlpha); in FakeShadowView()
/frameworks/base/graphics/java/android/graphics/drawable/shapes/
DOvalShape.java41 public void getOutline(Outline outline) { in getOutline() argument
43 outline.setOval((int) Math.ceil(rect.left), (int) Math.ceil(rect.top), in getOutline()
DRectShape.java44 public void getOutline(Outline outline) { in getOutline() argument
46 outline.setRect((int) Math.ceil(rect.left), (int) Math.ceil(rect.top), in getOutline()
DRoundRectShape.java88 public void getOutline(Outline outline) { in getOutline() argument
97 outline.setPath(mPath); in getOutline()
104 outline.setRoundRect((int) Math.ceil(rect.left), (int) Math.ceil(rect.top), in getOutline()
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/modifiers/
DFadingBackground.kt90 val outline = in drawOutline() constant
96 drawOutline(outline, brush = brush, alpha = alpha()) in drawOutline()
97 lastOutline = outline in drawOutline()
/frameworks/base/graphics/java/android/graphics/
DRenderNode.java788 public boolean setOutline(@Nullable Outline outline) { in setOutline() argument
789 if (outline == null) { in setOutline()
793 switch (outline.mMode) { in setOutline()
798 outline.mRect.left, outline.mRect.top, in setOutline()
799 outline.mRect.right, outline.mRect.bottom, in setOutline()
800 outline.mRadius, outline.mAlpha); in setOutline()
802 return nSetOutlinePath(mNativeRenderNode, outline.mPath.mNativePath, in setOutline()
803 outline.mAlpha); in setOutline()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
DTriangleShape.java72 public void getOutline(@NonNull Outline outline) { in getOutline() argument
73 outline.setPath(mTriangularPath); in getOutline()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DTriangleShape.java74 public void getOutline(@NonNull Outline outline) { in getOutline() argument
75 outline.setPath(mTriangularPath); in getOutline()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBadgedImageView.java127 public void getOutline(View view, Outline outline) { in BadgedImageView()
128 BadgedImageView.this.getOutline(outline); in BadgedImageView()
133 private void getOutline(Outline outline) { in getOutline() argument
137 outline.setOval(inset, inset, inset + normalizedSize, inset + normalizedSize); in getOutline()
DBubbleFlyoutView.java194 public void getOutline(View view, Outline outline) { in BubbleFlyoutView()
195 BubbleFlyoutView.this.getOutline(outline); in BubbleFlyoutView()
540 private void getOutline(Outline outline) { in getOutline() argument
547 outline.setPath(rectPath); in getOutline()
551 outline.mPath.addPath(mTriangleOutline.mPath); in getOutline()
573 outline.mPath.transform(outlineMatrix); in getOutline()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DExpandableOutlineView.java62 public void getOutline(View view, Outline outline) {
70 outline.setRect(left, top, right, bottom);
74 outline.setPath(clipPath);
77 outline.setAlpha(mOutlineAlpha);
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/
DBubbleBarHandleView.java72 public void getOutline(View view, Outline outline) { in BubbleBarHandleView()
80 outline.setPath(mPath); in BubbleBarHandleView()
/frameworks/base/core/java/android/widget/
DMagnifier.java1089 final Outline outline = new Outline(); in updateContentFactors() local
1090 outline.setRoundRect(0, 0, mContentWidth, contentHeight, 0); in updateContentFactors()
1091 outline.setAlpha(1.0f); in updateContentFactors()
1095 mBitmapRenderNode.setOutline(outline); in updateContentFactors()
1099 mOverlayRenderNode.setOutline(outline); in updateContentFactors()
1160 final Outline outline = new Outline(); in createRenderNodeForBitmap() local
1161 outline.setRoundRect(0, 0, mContentWidth, mContentHeight, cornerRadius); in createRenderNodeForBitmap()
1162 outline.setAlpha(1.0f); in createRenderNodeForBitmap()
1163 bitmapRenderNode.setOutline(outline); in createRenderNodeForBitmap()
1186 final Outline outline = new Outline(); in createRenderNodeForOverlay() local
[all …]

123