/frameworks/layoutlib/bridge/src/android/view/ |
D | RectShadowPainter.java | 58 float shadowSize = elevationToShadow(elevation); in paintShadow() local 59 int saved = modifyCanvas(canvas, shadowSize); in paintShadow() 75 float outerArcRadius = radius + shadowSize; in paintShadow() 79 edgePaint.setShader(new LinearGradient(0, 0, -shadowSize, 0, START_COLOR, END_COLOR, in paintShadow() 85 shadowRect.inset(-shadowSize, -shadowSize); in paintShadow() 94 edgeShadowRect.set(-shadowSize, 0f, 0f, inset.height()); in paintShadow() 100 edgeShadowRect.set(-shadowSize, 0, 0, inset.width()); in paintShadow() 104 edgeShadowRect.set(-shadowSize, 0, shadowSize / 2f, inset.width()); in paintShadow() 128 private static int modifyCanvas(Canvas canvas, float shadowSize) { in modifyCanvas() argument 146 canvas.translate(0, shadowSize / 2f); in modifyCanvas()
|
D | ShadowPainter.java | 48 public static BufferedImage createDropShadow(BufferedImage source, int shadowSize) { in createDropShadow() argument 49 …shadowSize /= 2; // make shadow size have the same meaning as in the other shadow paint methods in… in createDropShadow() 51 return createDropShadow(source, shadowSize, 0.7f, 0); in createDropShadow() 70 public static BufferedImage createDropShadow(BufferedImage source, int shadowSize, in createDropShadow() argument 72 if (shadowSize <= 0) { in createDropShadow() 86 g2.drawImage(image, shadowSize, shadowSize, null); in createDropShadow() 91 int left = (shadowSize - 1) >> 1; in createDropShadow() 92 int right = shadowSize - left; in createDropShadow() 100 int[] aHistory = new int[shadowSize]; in createDropShadow() 107 float sumDivider = shadowOpacity / shadowSize; in createDropShadow() [all …]
|
/frameworks/base/core/java/android/util/ |
D | LauncherIcons.java | 62 int shadowSize = Math.max(mIconSize, d.getIntrinsicHeight()); in getShadowBitmap() local 64 Bitmap shadow = mShadowCache.get(shadowSize); in getShadowBitmap() 70 d.setBounds(0, 0, shadowSize, shadowSize); in getShadowBitmap() 72 float blur = ICON_SIZE_BLUR_FACTOR * shadowSize; in getShadowBitmap() 73 float keyShadowDistance = ICON_SIZE_KEY_SHADOW_DELTA_FACTOR * shadowSize; in getShadowBitmap() 75 int bitmapSize = (int) (shadowSize + 2 * blur + keyShadowDistance); in getShadowBitmap() 95 mShadowCache.put(shadowSize, shadow); in getShadowBitmap()
|
/frameworks/support/v7/cardview/src/android/support/v7/widget/ |
D | RoundRectDrawableWithShadow.java | 91 float shadowSize, float maxShadowSize) { in RoundRectDrawableWithShadow() argument 103 setShadowSize(shadowSize, maxShadowSize); in RoundRectDrawableWithShadow() 140 private void setShadowSize(float shadowSize, float maxShadowSize) { in setShadowSize() argument 141 if (shadowSize < 0f) { in setShadowSize() 142 throw new IllegalArgumentException("Invalid shadow size " + shadowSize in setShadowSize() 149 shadowSize = toEven(shadowSize); in setShadowSize() 151 if (shadowSize > maxShadowSize) { in setShadowSize() 152 shadowSize = maxShadowSize; in setShadowSize() 157 if (mRawShadowSize == shadowSize && mRawMaxShadowSize == maxShadowSize) { in setShadowSize() 160 mRawShadowSize = shadowSize; in setShadowSize() [all …]
|
/frameworks/support/design/base/android/support/design/widget/ |
D | ShadowDrawableWrapper.java | 83 float shadowSize, float maxShadowSize) { in ShadowDrawableWrapper() argument 96 setShadowSize(shadowSize, maxShadowSize); in ShadowDrawableWrapper() 124 void setShadowSize(float shadowSize, float maxShadowSize) { in setShadowSize() argument 125 if (shadowSize < 0 || maxShadowSize < 0) { in setShadowSize() 128 shadowSize = toEven(shadowSize); in setShadowSize() 130 if (shadowSize > maxShadowSize) { in setShadowSize() 131 shadowSize = maxShadowSize; in setShadowSize() 136 if (mRawShadowSize == shadowSize && mRawMaxShadowSize == maxShadowSize) { in setShadowSize() 139 mRawShadowSize = shadowSize; in setShadowSize() 141 mShadowSize = Math.round(shadowSize * SHADOW_MULTIPLIER); in setShadowSize()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
D | FakeShadowDrawable.java | 114 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/base/core/java/android/view/ |
D | View.java | 22915 Point shadowSize = new Point(); 22917 shadowBuilder.onProvideShadowMetrics(shadowSize, shadowTouchPoint); 22919 if ((shadowSize.x < 0) || (shadowSize.y < 0) || 22925 Log.d(VIEW_LOG_TAG, "drag shadow: width=" + shadowSize.x + " height=" + shadowSize.y 22934 flags, shadowSize.x, shadowSize.y, mAttachInfo.mDragSurface); 22952 root.getLastTouchPoint(shadowSize); 22955 root.getLastTouchSource(), shadowSize.x, shadowSize.y,
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
D | RecipientEditTextView.java | 3397 public void onProvideShadowMetrics(@NonNull Point shadowSize, in onProvideShadowMetrics() argument 3400 shadowSize.set(rect.width(), rect.height()); in onProvideShadowMetrics()
|