Lines Matching refs:artUrl
70 public Bitmap getBigImage(String artUrl) { in getBigImage() argument
71 Bitmap[] result = mCache.get(artUrl); in getBigImage()
75 public Bitmap getIconImage(String artUrl) { in getIconImage() argument
76 Bitmap[] result = mCache.get(artUrl); in getIconImage()
80 public void fetch(final String artUrl, final FetchListener listener) { in fetch() argument
85 Bitmap[] bitmap = mCache.get(artUrl); in fetch()
87 LogHelper.d(TAG, "getOrFetch: album art is in cache, using it", artUrl); in fetch()
88 listener.onFetched(artUrl, bitmap[BIG_BITMAP_INDEX], bitmap[ICON_BITMAP_INDEX]); in fetch()
91 LogHelper.d(TAG, "getOrFetch: starting asynctask to fetch ", artUrl); in fetch()
98 Bitmap bitmap = BitmapHelper.fetchAndRescaleBitmap(artUrl, in fetch()
103 mCache.put(artUrl, bitmaps); in fetch()
115 listener.onError(artUrl, new IllegalArgumentException("got null bitmaps")); in fetch()
117 listener.onFetched(artUrl, in fetch()
125 public abstract void onFetched(String artUrl, Bitmap bigImage, Bitmap iconImage); in onFetched() argument
126 public void onError(String artUrl, Exception e) { in onError() argument
127 LogHelper.e(TAG, e, "AlbumArtFetchListener: error while downloading " + artUrl); in onError()