Home | History | Annotate | Download | only in launcher2

Lines Matching refs:bitmap

23 import android.graphics.Bitmap;
66 * Returns a bitmap suitable for the all apps view. Used to convert pre-ICS
70 static Bitmap createIconBitmap(Bitmap icon, Context context) {
77 return Bitmap.createBitmap(icon,
85 // Icon is too small, render to a larger bitmap
92 * Returns a bitmap suitable for the all apps view.
94 static Bitmap createIconBitmap(Drawable icon, Context context) {
108 // Ensure the bitmap has a density.
110 Bitmap bitmap = bitmapDrawable.getBitmap();
111 if (bitmap.getDensity() == Bitmap.DENSITY_NONE) {
138 final Bitmap bitmap = Bitmap.createBitmap(textureWidth, textureHeight,
139 Bitmap.Config.ARGB_8888);
141 canvas.setBitmap(bitmap);
163 return bitmap;
168 boolean pressed, Bitmap src) {
180 Bitmap mask = src.extractAlpha(sBlurPaint, xy);
192 * Returns a Bitmap representing the thumbnail of the specified Bitmap.
196 * @param bitmap The bitmap to get a thumbnail of.
199 * @return A thumbnail for the specified bitmap or the bitmap itself if the
202 static Bitmap resampleIconBitmap(Bitmap bitmap, Context context) {
208 if (bitmap.getWidth() == sIconWidth && bitmap.getHeight() == sIconHeight) {
209 return bitmap;
212 return createIconBitmap(new BitmapDrawable(resources, bitmap), context);
217 static Bitmap drawDisabledBitmap(Bitmap bitmap, Context context) {
222 final Bitmap disabled = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight(),
223 Bitmap.Config.ARGB_8888);
227 canvas.drawBitmap(bitmap, 0.0f, 0.0f, sDisabledPaint);