Lines Matching refs:shadow
31 * Utility class to handle icon treatments (e.g., shadow generation) for the Launcher icons.
57 Bitmap shadow = getShadowBitmap((AdaptiveIconDrawable) drawable);
58 return new ShadowDrawable(shadow, drawable);
64 Bitmap shadow = mShadowCache.get(shadowSize);
65 if (shadow != null) {
66 return shadow;
76 Bitmap shadow = Bitmap.createBitmap(bitmapSize, bitmapSize, Bitmap.Config.ARGB_8888);
78 Canvas canvas = new Canvas(shadow);
84 // Draw ambient shadow
88 // Draw key shadow
95 mShadowCache.put(shadowSize, shadow);
97 return shadow;
124 * A drawable which draws a shadow bitmap behind a drawable
130 public ShadowDrawable(Bitmap shadow, Drawable dr) {
132 mState = new MyConstantState(shadow, dr.getConstantState());
150 // Ratio of child drawable size to shadow bitmap size
168 MyConstantState(Bitmap shadow, ConstantState childState) {
169 mShadow = shadow;