Home
last modified time | relevance | path

Searched refs:ScaledBitmapInfo (Results 1 – 7 of 7) sorted by relevance

/aosp12/packages/apps/TV/src/com/android/tv/util/images/
H A DImageCache.java23 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()
H A DImageLoader.java37 import com.android.tv.util.images.BitmapUtils.ScaledBitmapInfo;
208 ScaledBitmapInfo bitmapInfo = imageCache.get(uriString); in doLoadBitmap()
241 ScaledBitmapInfo bitmapInfo = loadBitmapTask.getFromCache(); in doLoadBitmap()
288 ScaledBitmapInfo bitmapInfo = getFromCache(); in isReloadNeeded()
317 public final ScaledBitmapInfo getFromCache() { in getFromCache()
341 public abstract ScaledBitmapInfo doGetBitmapInBackground(); in doGetBitmapInBackground()
345 public final ScaledBitmapInfo doInBackground(Void... params) { in doInBackground()
346 ScaledBitmapInfo bitmapInfo = getFromCache(); in doInBackground()
396 public final ScaledBitmapInfo doGetBitmapInBackground() { in doGetBitmapInBackground()
420 public ScaledBitmapInfo doGetBitmapInBackground() { in doGetBitmapInBackground()
[all …]
H A DBitmapUtils.java86 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()
/aosp12/packages/apps/TV/tests/unit/src/com/android/tv/util/images/
H A DScaledBitmapInfoTest.java23 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()
H A DImageCacheTest.java25 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);
/aosp12/packages/apps/TV/src/com/android/tv/data/
H A DChannelLogoFetcher.java35 import com.android.tv.util.images.BitmapUtils.ScaledBitmapInfo;
136 ScaledBitmapInfo bitmapInfo = in doInBackground()
/aosp12/packages/apps/TV/src/com/android/tv/recommendation/
H A DNotificationService.java55 import com.android.tv.util.images.BitmapUtils.ScaledBitmapInfo;
397 ScaledBitmapInfo posterArtBitmapInfo = in sendNotification()