Searched refs:shadowSize (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/tools/layoutlib/bridge/src/android/view/ |
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 | 22842 Point shadowSize = new Point(); 22844 shadowBuilder.onProvideShadowMetrics(shadowSize, shadowTouchPoint); 22846 if ((shadowSize.x < 0) || (shadowSize.y < 0) || 22852 Log.d(VIEW_LOG_TAG, "drag shadow: width=" + shadowSize.x + " height=" + shadowSize.y 22861 flags, shadowSize.x, shadowSize.y, mAttachInfo.mDragSurface); 22879 root.getLastTouchPoint(shadowSize); 22882 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()
|