Home
last modified time | relevance | path

Searched refs:shadowSize (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/tools/layoutlib/bridge/src/android/view/
DRectShadowPainter.java52 float shadowSize = elevationToShadow(elevation); in paintShadow() local
53 int saved = modifyCanvas(canvas, shadowSize); in paintShadow()
63 float outerArcRadius = radius + shadowSize; in paintShadow()
67 edgePaint.setShader(new LinearGradient(0, 0, -shadowSize, 0, START_COLOR, END_COLOR, in paintShadow()
73 shadowRect.inset(-shadowSize, -shadowSize); in paintShadow()
82 edgeShadowRect.set(-shadowSize, 0f, 0f, inset.height()); in paintShadow()
88 edgeShadowRect.set(-shadowSize, 0, 0, inset.width()); in paintShadow()
92 edgeShadowRect.set(-shadowSize, 0, shadowSize / 2f, inset.width()); in paintShadow()
116 private static int modifyCanvas(Canvas canvas, float shadowSize) { in modifyCanvas() argument
127 canvas.translate(0, shadowSize / 2f); in modifyCanvas()
DShadowPainter.java48 public static BufferedImage createDropShadow(BufferedImage source, int shadowSize) { in createDropShadow() argument
49shadowSize /= 2; // make shadow size have the same meaning as in the other shadow paint methods in… in createDropShadow()
51 return createDropShadow(source, shadowSize, 0.7f, 0); in createDropShadow()
70 public static BufferedImage createDropShadow(BufferedImage source, int shadowSize, in createDropShadow() argument
72 if (shadowSize <= 0) { in createDropShadow()
86 g2.drawImage(image, shadowSize, shadowSize, null); in createDropShadow()
91 int left = (shadowSize - 1) >> 1; in createDropShadow()
92 int right = shadowSize - left; in createDropShadow()
100 int[] aHistory = new int[shadowSize]; in createDropShadow()
107 float sumDivider = shadowOpacity / shadowSize; in createDropShadow()
[all …]
/frameworks/support/v7/cardview/gingerbread/android/support/v7/widget/
DRoundRectDrawableWithShadow.java94 float shadowSize, float maxShadowSize) { in RoundRectDrawableWithShadow() argument
106 setShadowSize(shadowSize, maxShadowSize); in RoundRectDrawableWithShadow()
143 void setShadowSize(float shadowSize, float maxShadowSize) { in setShadowSize() argument
144 if (shadowSize < 0f) { in setShadowSize()
145 throw new IllegalArgumentException("Invalid shadow size " + shadowSize + in setShadowSize()
152 shadowSize = toEven(shadowSize); in setShadowSize()
154 if (shadowSize > maxShadowSize) { in setShadowSize()
155 shadowSize = maxShadowSize; in setShadowSize()
160 if (mRawShadowSize == shadowSize && mRawMaxShadowSize == maxShadowSize) { in setShadowSize()
163 mRawShadowSize = shadowSize; in setShadowSize()
[all …]
/frameworks/support/design/base/android/support/design/widget/
DShadowDrawableWrapper.java82 float shadowSize, float maxShadowSize) { in ShadowDrawableWrapper() argument
95 setShadowSize(shadowSize, maxShadowSize); in ShadowDrawableWrapper()
123 void setShadowSize(float shadowSize, float maxShadowSize) { in setShadowSize() argument
124 if (shadowSize < 0 || maxShadowSize < 0) { in setShadowSize()
127 shadowSize = toEven(shadowSize); in setShadowSize()
129 if (shadowSize > maxShadowSize) { in setShadowSize()
130 shadowSize = maxShadowSize; in setShadowSize()
135 if (mRawShadowSize == shadowSize && mRawMaxShadowSize == maxShadowSize) { in setShadowSize()
138 mRawShadowSize = shadowSize; in setShadowSize()
140 mShadowSize = Math.round(shadowSize * SHADOW_MULTIPLIER); in setShadowSize()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DFakeShadowDrawable.java111 void setShadowSize(float shadowSize, float maxShadowSize) { in setShadowSize() argument
112 if (shadowSize < 0 || maxShadowSize < 0) { in setShadowSize()
115 if (shadowSize > maxShadowSize) { in setShadowSize()
116 shadowSize = maxShadowSize; in setShadowSize()
123 if (mRawShadowSize == shadowSize && mRawMaxShadowSize == maxShadowSize) { in setShadowSize()
126 mRawShadowSize = shadowSize; in setShadowSize()
128 mShadowSize = shadowSize * SHADOW_MULTIPLIER + mInsetShadow; in setShadowSize()
/frameworks/base/core/java/android/view/
DView.java20684 Point shadowSize = new Point(); in startDragAndDrop() local
20686 shadowBuilder.onProvideShadowMetrics(shadowSize, shadowTouchPoint); in startDragAndDrop()
20688 if ((shadowSize.x < 0) || (shadowSize.y < 0) || in startDragAndDrop()
20694 Log.d(VIEW_LOG_TAG, "drag shadow: width=" + shadowSize.x + " height=" + shadowSize.y in startDragAndDrop()
20703 flags, shadowSize.x, shadowSize.y, mAttachInfo.mDragSurface); in startDragAndDrop()
20721 root.getLastTouchPoint(shadowSize); in startDragAndDrop()
20724 root.getLastTouchSource(), shadowSize.x, shadowSize.y, in startDragAndDrop()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/
DDirectoryFragment.java1407 Point shadowSize, Point shadowTouchPoint) { in onProvideShadowMetrics() argument
1408 shadowSize.set(mWidth, mHeight); in onProvideShadowMetrics()
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java3175 public void onProvideShadowMetrics(@NonNull Point shadowSize, in onProvideShadowMetrics() argument
3178 shadowSize.set(rect.width(), rect.height()); in onProvideShadowMetrics()