Searched defs:maxShadowSize (Results 1 - 3 of 3) sorted by relevance
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | FakeShadowDrawable.java | 111 void setShadowSize(float shadowSize, float maxShadowSize) { argument 112 if (shadowSize < 0 || maxShadowSize < 0) { 115 if (shadowSize > maxShadowSize) { 116 shadowSize = maxShadowSize; 123 if (mRawShadowSize == shadowSize && mRawMaxShadowSize == maxShadowSize) { 127 mRawMaxShadowSize = maxShadowSize; 129 mMaxShadowSize = maxShadowSize + mInsetShadow; 144 static float calculateVerticalPadding(float maxShadowSize, float cornerRadius, argument 147 return (float) (maxShadowSize * SHADOW_MULTIPLIER + (1 - COS_45) * cornerRadius); 149 return maxShadowSize * SHADOW_MULTIPLIE 153 calculateHorizontalPadding(float maxShadowSize, float cornerRadius, boolean addPaddingForCorners) argument [all...] |
/frameworks/support/design/base/android/support/design/widget/ |
H A D | ShadowDrawableWrapper.java | 82 float shadowSize, float maxShadowSize) { 95 setShadowSize(shadowSize, maxShadowSize); 123 void setShadowSize(float shadowSize, float maxShadowSize) { argument 124 if (shadowSize < 0 || maxShadowSize < 0) { 128 maxShadowSize = toEven(maxShadowSize); 129 if (shadowSize > maxShadowSize) { 130 shadowSize = maxShadowSize; 135 if (mRawShadowSize == shadowSize && mRawMaxShadowSize == maxShadowSize) { 139 mRawMaxShadowSize = maxShadowSize; 81 ShadowDrawableWrapper(Resources resources, Drawable content, float radius, float shadowSize, float maxShadowSize) argument 156 calculateVerticalPadding(float maxShadowSize, float cornerRadius, boolean addPaddingForCorners) argument 165 calculateHorizontalPadding(float maxShadowSize, float cornerRadius, boolean addPaddingForCorners) argument [all...] |
/frameworks/support/v7/cardview/eclair-mr1/android/support/v7/widget/ |
H A D | RoundRectDrawableWithShadow.java | 94 float shadowSize, float maxShadowSize) { 106 setShadowSize(shadowSize, maxShadowSize); 143 void setShadowSize(float shadowSize, float maxShadowSize) { argument 148 if (maxShadowSize < 0f) { 149 throw new IllegalArgumentException("Invalid max shadow size " + maxShadowSize + 153 maxShadowSize = toEven(maxShadowSize); 154 if (shadowSize > maxShadowSize) { 155 shadowSize = maxShadowSize; 160 if (mRawShadowSize == shadowSize && mRawMaxShadowSize == maxShadowSize) { 93 RoundRectDrawableWithShadow(Resources resources, ColorStateList backgroundColor, float radius, float shadowSize, float maxShadowSize) argument 181 calculateVerticalPadding(float maxShadowSize, float cornerRadius, boolean addPaddingForCorners) argument 190 calculateHorizontalPadding(float maxShadowSize, float cornerRadius, boolean addPaddingForCorners) argument [all...] |
Completed in 79 milliseconds