Searched defs:shadowSize (Results 1 - 6 of 6) sorted by relevance

/frameworks/layoutlib/bridge/src/android/view/
H A DRectShadowPainter.java58 float shadowSize = elevationToShadow(elevation);
59 int saved = modifyCanvas(canvas, shadowSize);
75 float outerArcRadius = radius + shadowSize;
79 edgePaint.setShader(new LinearGradient(0, 0, -shadowSize, 0, START_COLOR, END_COLOR,
85 shadowRect.inset(-shadowSize, -shadowSize);
94 edgeShadowRect.set(-shadowSize, 0f, 0f, inset.height());
100 edgeShadowRect.set(-shadowSize, 0, 0, inset.width());
104 edgeShadowRect.set(-shadowSize, 0, shadowSize /
128 modifyCanvas(Canvas canvas, float shadowSize) argument
[all...]
H A DShadowPainter.java38 * If shadowSize is less or equals to 1, no shadow will be painted and the source image will be
42 * @param shadowSize the size of the shadow, normally {@link #SHADOW_SIZE or {@link
45 * @return an image with the shadow painted in or the source image if shadowSize <= 1
48 public static BufferedImage createDropShadow(BufferedImage source, int shadowSize) { argument
49 shadowSize /= 2; // make shadow size have the same meaning as in the other shadow paint methods in this class
51 return createDropShadow(source, shadowSize, 0.7f, 0);
62 * @param shadowSize the size of the shadow in pixels
66 * @return a new image with the source image on top of its shadow when shadowSize > 0 or the
70 public static BufferedImage createDropShadow(BufferedImage source, int shadowSize, argument
72 if (shadowSize <
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DFakeShadowDrawable.java114 void setShadowSize(float shadowSize, float maxShadowSize) { argument
115 if (shadowSize < 0 || maxShadowSize < 0) {
118 if (shadowSize > maxShadowSize) {
119 shadowSize = maxShadowSize;
126 if (mRawShadowSize == shadowSize && mRawMaxShadowSize == maxShadowSize) {
129 mRawShadowSize = shadowSize;
131 mShadowSize = shadowSize * SHADOW_MULTIPLIER + mInsetShadow;
260 // we offset the content shadowSize/2 pixels up to make it more realistic.
/frameworks/support/design/base/android/support/design/widget/
H A DShadowDrawableWrapper.java83 float shadowSize, float maxShadowSize) {
96 setShadowSize(shadowSize, maxShadowSize);
124 void setShadowSize(float shadowSize, float maxShadowSize) { argument
125 if (shadowSize < 0 || maxShadowSize < 0) {
128 shadowSize = toEven(shadowSize);
130 if (shadowSize > maxShadowSize) {
131 shadowSize = maxShadowSize;
136 if (mRawShadowSize == shadowSize && mRawMaxShadowSize == maxShadowSize) {
139 mRawShadowSize = shadowSize;
82 ShadowDrawableWrapper(Context context, Drawable content, float radius, float shadowSize, float maxShadowSize) argument
[all...]
/frameworks/support/v7/cardview/src/android/support/v7/widget/
H A DRoundRectDrawableWithShadow.java91 float shadowSize, float maxShadowSize) {
103 setShadowSize(shadowSize, maxShadowSize);
140 private void setShadowSize(float shadowSize, float maxShadowSize) { argument
141 if (shadowSize < 0f) {
142 throw new IllegalArgumentException("Invalid shadow size " + shadowSize
149 shadowSize = toEven(shadowSize);
151 if (shadowSize > maxShadowSize) {
152 shadowSize = maxShadowSize;
157 if (mRawShadowSize == shadowSize
90 RoundRectDrawableWithShadow(Resources resources, ColorStateList backgroundColor, float radius, float shadowSize, float maxShadowSize) argument
[all...]
/frameworks/opt/chips/src/com/android/ex/chips/
H A DRecipientEditTextView.java3397 public void onProvideShadowMetrics(@NonNull Point shadowSize, argument
3400 shadowSize.set(rect.width(), rect.height());

Completed in 252 milliseconds