Searched refs:mRawMaxShadowSize (Results 1 – 2 of 2) sorted by relevance
/frameworks/support/cardview/src/main/java/androidx/cardview/widget/ |
D | RoundRectDrawableWithShadow.java | 68 private float mRawMaxShadowSize; field in RoundRectDrawableWithShadow 158 if (mRawShadowSize == shadowSize && mRawMaxShadowSize == maxShadowSize) { in setShadowSize() 162 mRawMaxShadowSize = maxShadowSize; in setShadowSize() 170 int vOffset = (int) Math.ceil(calculateVerticalPadding(mRawMaxShadowSize, mCornerRadius, in getPadding() 172 int hOffset = (int) Math.ceil(calculateHorizontalPadding(mRawMaxShadowSize, mCornerRadius, in getPadding() 334 final float verticalOffset = mRawMaxShadowSize * SHADOW_MULTIPLIER; in buildComponents() 335 mCardBounds.set(bounds.left + mRawMaxShadowSize, bounds.top + verticalOffset, in buildComponents() 336 bounds.right - mRawMaxShadowSize, bounds.bottom - verticalOffset); in buildComponents() 349 setShadowSize(size, mRawMaxShadowSize); in setShadowSize() 361 return mRawMaxShadowSize; in getMaxShadowSize() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
D | FakeShadowDrawable.java | 64 float mRawMaxShadowSize; field in FakeShadowDrawable 126 if (mRawShadowSize == shadowSize && mRawMaxShadowSize == maxShadowSize) { in setShadowSize() 130 mRawMaxShadowSize = maxShadowSize; in setShadowSize() 139 int vOffset = (int) Math.ceil(calculateVerticalPadding(mRawMaxShadowSize, mCornerRadius, in getPadding() 141 int hOffset = (int) Math.ceil(calculateHorizontalPadding(mRawMaxShadowSize, mCornerRadius, in getPadding() 281 Math.max(mRawMaxShadowSize, mCornerRadius + mInsetShadow + mRawMaxShadowSize / 2); in getMinWidth() 282 return content + (mRawMaxShadowSize + mInsetShadow) * 2; in getMinWidth() 286 final float content = 2 * Math.max(mRawMaxShadowSize, mCornerRadius + mInsetShadow in getMinHeight() 287 + mRawMaxShadowSize * SHADOW_MULTIPLIER / 2); in getMinHeight() 288 return content + (mRawMaxShadowSize * SHADOW_MULTIPLIER + mInsetShadow) * 2; in getMinHeight()
|