Home
last modified time | relevance | path

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

/packages/apps/TV/src/com/android/tv/util/
DImageCache.java24 import com.android.tv.util.BitmapUtils.ScaledBitmapInfo;
37 private final LruCache<String, ScaledBitmapInfo> mMemoryCache;
51 mMemoryCache = new LruCache<String, ScaledBitmapInfo>(memCacheSize) { in ImageCache()
57 protected int sizeOf(String key, ScaledBitmapInfo bitmapInfo) { in ImageCache()
104 public void putIfNeeded(ScaledBitmapInfo bitmapInfo) { in putIfNeeded()
111 ScaledBitmapInfo old = mMemoryCache.put(key, bitmapInfo); in putIfNeeded()
134 public ScaledBitmapInfo get(String key) { in get()
135 ScaledBitmapInfo memBitmapInfo = mMemoryCache.get(key); in get()
DImageLoader.java35 import com.android.tv.util.BitmapUtils.ScaledBitmapInfo;
197 ScaledBitmapInfo bitmapInfo = imageCache.get(uriString); in doLoadBitmap()
229 ScaledBitmapInfo bitmapInfo = loadBitmapTask.getFromCache(); in doLoadBitmap()
263 public static abstract class LoadBitmapTask extends AsyncTask<Void, Void, ScaledBitmapInfo> {
276 ScaledBitmapInfo bitmapInfo = getFromCache(); in isReloadNeeded()
300 public final ScaledBitmapInfo getFromCache() { in getFromCache()
323 public abstract ScaledBitmapInfo doGetBitmapInBackground(); in doGetBitmapInBackground()
327 public final ScaledBitmapInfo doInBackground(Void... params) { in doInBackground()
328 ScaledBitmapInfo bitmapInfo = getFromCache(); in doInBackground()
340 public final void onPostExecute(ScaledBitmapInfo scaledBitmapInfo) { in onPostExecute()
[all …]
DBitmapUtils.java72 public static ScaledBitmapInfo createScaledBitmapInfo(String id, Bitmap bm, int maxWidth, in createScaledBitmapInfo()
74 return new ScaledBitmapInfo(id, scaleBitmap(bm, maxWidth, maxHeight), in createScaledBitmapInfo()
81 public static ScaledBitmapInfo decodeSampledBitmapFromUriString(Context context, in decodeSampledBitmapFromUriString()
118 return new ScaledBitmapInfo(uriString, bitmap, options.inSampleSize); in decodeSampledBitmapFromUriString()
180 public static class ScaledBitmapInfo { class in BitmapUtils
207 public ScaledBitmapInfo(@NonNull String id, @NonNull Bitmap bitmap, int inSampleSize) { in ScaledBitmapInfo() method in BitmapUtils.ScaledBitmapInfo
239 public boolean needToReload(ScaledBitmapInfo other){ in needToReload()
/packages/apps/TV/tests/unit/src/com/android/tv/util/
DScaledBitmapInfoTest.java7 import com.android.tv.util.BitmapUtils.ScaledBitmapInfo;
18 ScaledBitmapInfo actual = BitmapUtils.createScaledBitmapInfo("B80x100", B80x100, 50, 50); in testSize_B100x100to50x50()
23 ScaledBitmapInfo actual = BitmapUtils.createScaledBitmapInfo("B80x100", B80x100, 50, 50); in testNeedsToReload_B100x100to50x50()
35 ScaledBitmapInfo actual = BitmapUtils in testBug20488453()
41 private static void assertNeedsToReload(boolean expected, ScaledBitmapInfo scaledBitmap, in assertNeedsToReload()
48 int expectedHeight, ScaledBitmapInfo actual) { in assertScaledBitmapSize()
DImageCacheTest.java24 import com.android.tv.util.BitmapUtils.ScaledBitmapInfo;
36 private static final ScaledBitmapInfo INFO_200 = createScaledBitmapInfo(KEY, ORIG, 200, 200);
37 private static final ScaledBitmapInfo INFO_100 = createScaledBitmapInfo(KEY, ORIG, 100, 100);
38 private static final ScaledBitmapInfo INFO_50 = createScaledBitmapInfo(KEY, ORIG, 50, 50);
39 private static final ScaledBitmapInfo INFO_25 = createScaledBitmapInfo(KEY, ORIG, 25, 25);
/packages/apps/TV/src/com/android/tv/data/
DChannelLogoFetcher.java32 import com.android.tv.util.BitmapUtils.ScaledBitmapInfo;
254 ScaledBitmapInfo bitmapInfo = BitmapUtils.decodeSampledBitmapFromUriString( in doInBackground()
/packages/apps/TV/src/com/android/tv/recommendation/
DNotificationService.java53 import com.android.tv.util.BitmapUtils.ScaledBitmapInfo;
393 ScaledBitmapInfo posterArtBitmapInfo = BitmapUtils.decodeSampledBitmapFromUriString(this, in sendNotification()