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

/frameworks/base/tools/layoutlib/bridge/src/android/view/
H A DShadowPainter.java39 * @param shadowSize the size of the shadow, normally {@link #SHADOW_SIZE or {@link
45 public static BufferedImage createDropShadow(BufferedImage source, int shadowSize) { argument
46 shadowSize /= 2; // make shadow size have the same meaning as in the other shadow paint methods in this class
48 return createDropShadow(source, shadowSize, 0.7f, 0);
59 * @param shadowSize the size of the shadow in pixels
66 public static BufferedImage createDropShadow(BufferedImage source, int shadowSize, argument
79 g2.drawImage(image, shadowSize, shadowSize, null);
84 int left = (shadowSize - 1) >> 1;
85 int right = shadowSize
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DFakeShadowDrawable.java110 void setShadowSize(float shadowSize, float maxShadowSize) { argument
111 if (shadowSize < 0 || maxShadowSize < 0) {
114 if (shadowSize > maxShadowSize) {
115 shadowSize = maxShadowSize;
122 if (mRawShadowSize == shadowSize && mRawMaxShadowSize == maxShadowSize) {
125 mRawShadowSize = shadowSize;
127 mShadowSize = shadowSize * SHADOW_MULTIPLIER + mInsetShadow;
256 // we offset the content shadowSize/2 pixels up to make it more realistic.
/frameworks/support/v7/cardview/eclair-mr1/android/support/v7/widget/
H A DRoundRectDrawableWithShadow.java89 float shadowSize, float maxShadowSize) {
101 setShadowSize(shadowSize, maxShadowSize);
133 void setShadowSize(float shadowSize, float maxShadowSize) { argument
134 if (shadowSize < 0 || maxShadowSize < 0) {
137 shadowSize = toEven(shadowSize);
139 if (shadowSize > maxShadowSize) {
140 shadowSize = maxShadowSize;
145 if (mRawShadowSize == shadowSize && mRawMaxShadowSize == maxShadowSize) {
148 mRawShadowSize = shadowSize;
88 RoundRectDrawableWithShadow(Resources resources, int backgroundColor, float radius, float shadowSize, float maxShadowSize) argument
[all...]
/frameworks/opt/chips/src/com/android/ex/chips/
H A DRecipientEditTextView.java2990 public void onProvideShadowMetrics(Point shadowSize, Point shadowTouchPoint) { argument
2992 shadowSize.set(rect.width(), rect.height());
/frameworks/base/core/java/android/view/
H A DView.java18255 * @param shadowSize A {@link android.graphics.Point} containing the width and height
18265 public void onProvideShadowMetrics(Point shadowSize, Point shadowTouchPoint) { argument
18268 shadowSize.set(view.getWidth(), view.getHeight());
18269 shadowTouchPoint.set(shadowSize.x / 2, shadowSize.y / 2);
18338 Point shadowSize = new Point();
18340 shadowBuilder.onProvideShadowMetrics(shadowSize, shadowTouchPoint);
18342 if ((shadowSize.x < 0) || (shadowSize.y < 0) ||
18348 Log.d(VIEW_LOG_TAG, "drag shadow: width=" + shadowSize
[all...]

Completed in 160 milliseconds