Searched refs:maxShadowSize (Results 1 – 1 of 1) sorted by relevance
114 void setShadowSize(float shadowSize, float maxShadowSize) { in setShadowSize() argument115 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()130 mRawMaxShadowSize = maxShadowSize; in setShadowSize()132 mMaxShadowSize = maxShadowSize + mInsetShadow; in setShadowSize()147 static float calculateVerticalPadding(float maxShadowSize, float cornerRadius, in calculateVerticalPadding() argument150 return (float) (maxShadowSize * SHADOW_MULTIPLIER + (1 - COS_45) * cornerRadius); in calculateVerticalPadding()152 return maxShadowSize * SHADOW_MULTIPLIER; in calculateVerticalPadding()[all …]