Searched refs:ShadowGenerator (Results 1 – 4 of 4) sorted by relevance
34 public class ShadowGenerator { class48 private static ShadowGenerator sShadowGenerator;56 private ShadowGenerator(Context context) { in ShadowGenerator() method in ShadowGenerator126 public static ShadowGenerator getInstance(Context context) { in getInstance()130 sShadowGenerator = new ShadowGenerator(context); in getInstance()
125 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()
33 import com.android.launcher3.graphics.ShadowGenerator;110 backgroundWithShadow = ShadowGenerator.createPillWithShadow(Color.WHITE, width, mSize); in draw()
38 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()