Home
last modified time | relevance | path

Searched refs:shadowSize (Results 1 – 5 of 5) sorted by relevance

/frameworks/layoutlib/bridge/src/android/view/
DRectShadowPainter.java61 float shadowSize = elevationToShadow(elevation); in paintShadow() local
62 int saved = modifyCanvas(canvas, shadowSize); in paintShadow()
78 float outerArcRadius = radius + shadowSize; in paintShadow()
89 edgePaint.setShader(new LinearGradient(0, 0, -shadowSize, 0, colors[0], colors[2], in paintShadow()
95 shadowRect.inset(-shadowSize, -shadowSize); in paintShadow()
104 edgeShadowRect.set(-shadowSize, 0f, 0f, inset.height()); in paintShadow()
110 edgeShadowRect.set(-shadowSize, 0, 0, inset.width()); in paintShadow()
114 edgeShadowRect.set(-shadowSize, 0, shadowSize / 2f, inset.width()); in paintShadow()
138 private static int modifyCanvas(Canvas canvas, float shadowSize) { in modifyCanvas() argument
156 canvas.translate(0, shadowSize / 2f); in modifyCanvas()
DShadowPainter.java49 public static BufferedImage createDropShadow(BufferedImage source, int shadowSize, float in createDropShadow() argument
51shadowSize /= 2; // make shadow size have the same meaning as in the other shadow paint methods in… in createDropShadow()
53 return createDropShadow(source, shadowSize, 0.7f * alpha, 0); in createDropShadow()
72 public static BufferedImage createDropShadow(BufferedImage source, int shadowSize, in createDropShadow() argument
74 if (shadowSize <= 0) { in createDropShadow()
88 g2.drawImage(image, shadowSize, shadowSize, null); in createDropShadow()
93 int left = (shadowSize - 1) >> 1; in createDropShadow()
94 int right = shadowSize - left; in createDropShadow()
102 int[] aHistory = new int[shadowSize]; in createDropShadow()
109 float sumDivider = shadowOpacity / shadowSize; in createDropShadow()
[all …]
/frameworks/base/core/java/android/util/
DLauncherIcons.java63 int shadowSize = Math.max(mIconSize, d.getIntrinsicHeight()); in getShadowBitmap() local
65 Bitmap shadow = mShadowCache.get(shadowSize); in getShadowBitmap()
71 d.setBounds(0, 0, shadowSize, shadowSize); in getShadowBitmap()
73 float blur = ICON_SIZE_BLUR_FACTOR * shadowSize; in getShadowBitmap()
74 float keyShadowDistance = ICON_SIZE_KEY_SHADOW_DELTA_FACTOR * shadowSize; in getShadowBitmap()
76 int bitmapSize = (int) (shadowSize + 2 * blur + keyShadowDistance); in getShadowBitmap()
96 mShadowCache.put(shadowSize, shadow); in getShadowBitmap()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/
DFakeShadowDrawable.java114 void setShadowSize(float shadowSize, float maxShadowSize) { in setShadowSize() argument
115 if (shadowSize < 0 || maxShadowSize < 0) { in setShadowSize()
118 if (shadowSize > maxShadowSize) { in setShadowSize()
119 shadowSize = maxShadowSize; in setShadowSize()
126 if (mRawShadowSize == shadowSize && mRawMaxShadowSize == maxShadowSize) { in setShadowSize()
129 mRawShadowSize = shadowSize; in setShadowSize()
131 mShadowSize = shadowSize * SHADOW_MULTIPLIER + mInsetShadow; in setShadowSize()
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java3397 public void onProvideShadowMetrics(@NonNull Point shadowSize, in onProvideShadowMetrics() argument
3400 shadowSize.set(rect.width(), rect.height()); in onProvideShadowMetrics()