Home
last modified time | relevance | path

Searched refs:ShadowGenerator (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DShadowGenerator.java34 public class ShadowGenerator { class
48 private static ShadowGenerator sShadowGenerator;
56 private ShadowGenerator(Context context) { in ShadowGenerator() method in ShadowGenerator
126 public static ShadowGenerator getInstance(Context context) { in getInstance()
130 sShadowGenerator = new ShadowGenerator(context); in getInstance()
DLauncherIcons.java125 bitmap = ShadowGenerator.getInstance(context).recreateIcon(bitmap); in createBadgedIconBitmap()
177 scale = Math.min(scale, ShadowGenerator.getScaleForBounds(iconBounds)); in createScaledBitmapWithoutShadow()
186 return ShadowGenerator.getInstance(context).recreateIcon(icon); in addShadowToIcon()
212 scale = ShadowGenerator.getScaleForBounds(new RectF(0, 0, 0, 0)); in createIconBitmap()
217 bitmap = ShadowGenerator.getInstance(context).recreateIcon(bitmap); in createIconBitmap()
269 int offset = Math.max((int)(ShadowGenerator.BLUR_FACTOR * iconBitmapSize), in createIconBitmap()
/packages/apps/Launcher3/src/com/android/launcher3/badge/
DBadgeRenderer.java33 import com.android.launcher3.graphics.ShadowGenerator;
110 backgroundWithShadow = ShadowGenerator.createPillWithShadow(Color.WHITE, width, mSize); in draw()
/packages/apps/Launcher3/src/com/android/launcher3/
DWidgetPreviewLoader.java38 import com.android.launcher3.graphics.ShadowGenerator;
446 ShadowGenerator.KEY_SHADOW_ALPHA << 24); in drawBoxWithShadow()
451 ColorUtils.setAlphaComponent(Color.BLACK, ShadowGenerator.AMBIENT_SHADOW_ALPHA)); in drawBoxWithShadow()