Home | History | Annotate | Download | only in app

Lines Matching refs:bm

238                         Bitmap bm = BitmapFactory.decodeFileDescriptor(
244 if (bm != null) {
245 bm.setDensity(DisplayMetrics.DENSITY_DEVICE);
247 return bm;
255 Bitmap bm = BitmapFactory.decodeFileDescriptor(
262 return generateBitmap(context, bm, width, height);
280 Bitmap bm = BitmapFactory.decodeStream(is, null, null);
285 if (bm != null) {
286 bm.setDensity(DisplayMetrics.DENSITY_DEVICE);
288 return bm;
296 Bitmap bm = BitmapFactory.decodeStream(is, null, options);
303 return generateBitmap(context, bm, width, height);
306 return bm;
354 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, true);
355 if (bm != null) {
356 Drawable dr = new BitmapDrawable(mContext.getResources(), bm);
373 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, false);
374 if (bm != null) {
375 Drawable dr = new BitmapDrawable(mContext.getResources(), bm);
396 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, true);
397 if (bm != null) {
398 Drawable dr = new FastBitmapDrawable(bm);
412 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, false);
413 if (bm != null) {
414 Drawable dr = new FastBitmapDrawable(bm);
688 static Bitmap generateBitmap(Context context, Bitmap bm, int width, int height) {
689 if (bm == null) {
690 return bm;
692 bm.setDensity(DisplayMetrics.DENSITY_DEVICE);
704 targetRect.right = bm.getWidth();
705 targetRect.bottom = bm.getHeight();
729 c.drawBitmap(bm, null, targetRect, paint);
731 bm.recycle();