Home
last modified time | relevance | path

Searched refs:COS_45 (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DFakeShadowDrawable.java44 final static double COS_45 = Math.cos(Math.toRadians(45)); field in FakeShadowDrawable
150 return (float) (maxShadowSize * SHADOW_MULTIPLIER + (1 - COS_45) * cornerRadius); in calculateVerticalPadding()
159 return (float) (maxShadowSize + (1 - COS_45) * cornerRadius); in calculateHorizontalPadding()
/frameworks/support/cardview/src/main/java/androidx/cardview/widget/
DRoundRectDrawableWithShadow.java41 private static final double COS_45 = Math.cos(Math.toRadians(45)); field in RoundRectDrawableWithShadow
181 return (float) (maxShadowSize * SHADOW_MULTIPLIER + (1 - COS_45) * cornerRadius); in calculateVerticalPadding()
190 return (float) (maxShadowSize + (1 - COS_45) * cornerRadius); in calculateHorizontalPadding()