Searched refs:ScaledBitmapInfo (Results 1 – 7 of 7) sorted by relevance
/packages/apps/TV/src/com/android/tv/util/images/ |
D | ImageCache.java | 23 import com.android.tv.util.images.BitmapUtils.ScaledBitmapInfo; 34 private final LruCache<String, ScaledBitmapInfo> mMemoryCache; 49 new LruCache<String, ScaledBitmapInfo>(memCacheSize) { in ImageCache() 55 protected int sizeOf(String key, ScaledBitmapInfo bitmapInfo) { in ImageCache() 101 public void putIfNeeded(ScaledBitmapInfo bitmapInfo) { in putIfNeeded() 108 ScaledBitmapInfo old = mMemoryCache.put(key, bitmapInfo); in putIfNeeded() 142 public ScaledBitmapInfo get(String key) { in get() 143 ScaledBitmapInfo memBitmapInfo = mMemoryCache.get(key); in get() 161 public ScaledBitmapInfo remove(String key) { in remove()
|
D | ImageLoader.java | 34 import com.android.tv.util.images.BitmapUtils.ScaledBitmapInfo; 204 ScaledBitmapInfo bitmapInfo = imageCache.get(uriString); in doLoadBitmap() 236 ScaledBitmapInfo bitmapInfo = loadBitmapTask.getFromCache(); in doLoadBitmap() 270 public abstract static class LoadBitmapTask extends AsyncTask<Void, Void, ScaledBitmapInfo> { 283 ScaledBitmapInfo bitmapInfo = getFromCache(); in isReloadNeeded() 312 public final ScaledBitmapInfo getFromCache() { in getFromCache() 336 public abstract ScaledBitmapInfo doGetBitmapInBackground(); in doGetBitmapInBackground() 340 public final ScaledBitmapInfo doInBackground(Void... params) { in doInBackground() 341 ScaledBitmapInfo bitmapInfo = getFromCache(); in doInBackground() 353 public final void onPostExecute(ScaledBitmapInfo scaledBitmapInfo) { in onPostExecute() [all …]
|
D | BitmapUtils.java | 86 public static ScaledBitmapInfo createScaledBitmapInfo( in createScaledBitmapInfo() 88 return new ScaledBitmapInfo( in createScaledBitmapInfo() 108 public static ScaledBitmapInfo decodeSampledBitmapFromUriString( in decodeSampledBitmapFromUriString() 161 return new ScaledBitmapInfo(uriString, bitmap, options.inSampleSize); in decodeSampledBitmapFromUriString() 218 public static class ScaledBitmapInfo { class in BitmapUtils 239 public ScaledBitmapInfo(@NonNull String id, @NonNull Bitmap bitmap, int inSampleSize) { in ScaledBitmapInfo() method in BitmapUtils.ScaledBitmapInfo 278 public boolean needToReload(ScaledBitmapInfo other) { in needToReload()
|
/packages/apps/TV/tests/unit/src/com/android/tv/util/images/ |
D | ScaledBitmapInfoTest.java | 23 import com.android.tv.util.images.BitmapUtils.ScaledBitmapInfo; 36 ScaledBitmapInfo actual = BitmapUtils.createScaledBitmapInfo("B80x100", B80x100, 50, 50); in testSize_B100x100to50x50() 42 ScaledBitmapInfo actual = BitmapUtils.createScaledBitmapInfo("B80x100", B80x100, 50, 50); in testNeedsToReload_B100x100to50x50() 53 ScaledBitmapInfo actual = in testBug20488453() 60 boolean expected, ScaledBitmapInfo scaledBitmap, int reqWidth, int reqHeight) { in assertNeedsToReload() 70 ScaledBitmapInfo actual) { in assertScaledBitmapSize()
|
D | ImageCacheTest.java | 25 import com.android.tv.util.images.BitmapUtils.ScaledBitmapInfo; 37 private static final ScaledBitmapInfo INFO_200 = createScaledBitmapInfo(KEY, ORIG, 200, 200); 38 private static final ScaledBitmapInfo INFO_100 = createScaledBitmapInfo(KEY, ORIG, 100, 100); 39 private static final ScaledBitmapInfo INFO_50 = createScaledBitmapInfo(KEY, ORIG, 50, 50); 40 private static final ScaledBitmapInfo INFO_25 = createScaledBitmapInfo(KEY, ORIG, 25, 25);
|
/packages/apps/TV/src/com/android/tv/data/ |
D | ChannelLogoFetcher.java | 35 import com.android.tv.util.images.BitmapUtils.ScaledBitmapInfo; 136 ScaledBitmapInfo bitmapInfo = in doInBackground()
|
/packages/apps/TV/src/com/android/tv/recommendation/ |
D | NotificationService.java | 54 import com.android.tv.util.images.BitmapUtils.ScaledBitmapInfo; 395 ScaledBitmapInfo posterArtBitmapInfo = in sendNotification()
|