Lines Matching defs:bmp
455 Bitmap bmp = null;
457 bmp = mBundle.getParcelable(key);
462 return bmp;
693 Bitmap bmp = (Bitmap) value;
694 if (bmp.getHeight() > maxBitmapSize || bmp.getWidth() > maxBitmapSize) {
695 putBitmap(key, scaleBitmap(bmp, maxBitmapSize));
873 private Bitmap scaleBitmap(Bitmap bmp, int maxSize) {
875 float widthScale = maxSizeF / bmp.getWidth();
876 float heightScale = maxSizeF / bmp.getHeight();
878 int height = (int) (bmp.getHeight() * scale);
879 int width = (int) (bmp.getWidth() * scale);
880 return Bitmap.createScaledBitmap(bmp, width, height, true);