Lines Matching defs:bmp
272 Bitmap bmp = null;
274 bmp = mBundle.getParcelable(key);
279 return bmp;
410 Bitmap bmp = (Bitmap) value;
411 if (bmp.getHeight() > maxBitmapSize || bmp.getWidth() > maxBitmapSize) {
412 putBitmap(key, scaleBitmap(bmp, maxBitmapSize));
519 private Bitmap scaleBitmap(Bitmap bmp, int maxSize) {
521 float widthScale = maxSizeF / bmp.getWidth();
522 float heightScale = maxSizeF / bmp.getHeight();
524 int height = (int) (bmp.getHeight() * scale);
525 int width = (int) (bmp.getWidth() * scale);
526 return Bitmap.createScaledBitmap(bmp, width, height, true);
556 Bitmap bmp = null;
558 bmp = BitmapFactory.decodeByteArray(value, 0, value.length);
559 if (bmp != null) {
560 mBundle.putParcelable(key, bmp);