Lines Matching refs:Bitmap
32 import android.graphics.Bitmap;
840 private Bitmap mBitmap;
841 public FastBitmapDrawable(Bitmap b) {
861 private static Bitmap mCachedBit = null;
872 sBitmapOptionsCache.inPreferredConfig = Bitmap.Config.RGB_565;
875 sBitmapOptions.inPreferredConfig = Bitmap.Config.RGB_565;
904 final Bitmap icon = defaultArtwork.getBitmap();
907 Bitmap b = MusicUtils.getArtworkQuick(context, artIndex, w, h);
927 private static Bitmap getArtworkQuick(Context context, long album_id, int w, int h) {
956 Bitmap b = BitmapFactory.decodeFileDescriptor(
962 Bitmap tmp = Bitmap.createScaledBitmap(b, w, h, true);
963 // Bitmap.createScaledBitmap() can return the same bitmap
986 public static Bitmap getArtwork(Context context, long song_id, long album_id) {
993 public static Bitmap getArtwork(Context context, long song_id, long album_id,
1000 Bitmap bm = getArtworkFromFile(context, song_id, -1);
1021 Bitmap bm = getArtworkFromFile(context, song_id, album_id);
1024 bm = bm.copy(Bitmap.Config.RGB_565, false);
1048 private static Bitmap getArtworkFromFile(Context context, long songid, long albumid) {
1049 Bitmap bm = null;
1082 private static Bitmap getDefaultArtwork(Context context) {
1084 opts.inPreferredConfig = Bitmap.Config.ARGB_8888;
1270 static void setBackground(View v, Bitmap bm) {
1285 Bitmap.Config config = Bitmap.Config.ARGB_8888;
1286 Bitmap bg = Bitmap.createBitmap(vwidth, vheight, config);
1299 matrix.setTranslate(-bwidth/2, -bheight/2); // move bitmap center to origin
1302 matrix.postTranslate(vwidth/2, vheight/2); // Move bitmap center to view center