Home
last modified time | relevance | path

Searched refs:mImageCache (Results 1 – 5 of 5) sorted by relevance

/packages/apps/TV/tests/unit/src/com/android/tv/util/images/
DImageCacheTest.java42 private ImageCache mImageCache; field in ImageCacheTest
46 mImageCache = ImageCache.newInstance(0.1f); in setUp()
54 mImageCache.putIfNeeded(INFO_50); in testPutIfLarger_smaller()
55 assertWithMessage("before").that(mImageCache.get(KEY)).isSameInstanceAs(INFO_50); in testPutIfLarger_smaller()
57 mImageCache.putIfNeeded(INFO_25); in testPutIfLarger_smaller()
58 assertWithMessage("after").that(mImageCache.get(KEY)).isSameInstanceAs(INFO_50); in testPutIfLarger_smaller()
63 mImageCache.putIfNeeded(INFO_50); in testPutIfLarger_larger()
64 assertWithMessage("before").that(mImageCache.get(KEY)).isSameInstanceAs(INFO_50); in testPutIfLarger_larger()
66 mImageCache.putIfNeeded(INFO_100); in testPutIfLarger_larger()
67 assertWithMessage("after").that(mImageCache.get(KEY)).isSameInstanceAs(INFO_100); in testPutIfLarger_larger()
[all …]
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DStockSource.java33 private final ArrayList<ImageData> mImageCache; field in StockSource
45 mImageCache = new ArrayList<ImageData>(PHOTOS.length); in StockSource()
59 mImageCache.add(imageData); in StockSource()
77 mImageList.addAll(mImageCache); in findImages()
101 return mImageCache.get(idx); in naturalNext()
108 return mImageCache.get(idx); in naturalPrevious()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DPhotoDataAdapter.java123 private HashMap<Path, ImageEntry> mImageCache = field in PhotoDataAdapter
296 ImageEntry entry = mImageCache.get(path); in updateScreenNail()
331 ImageEntry entry = mImageCache.get(path); in updateFullImage()
373 for (ImageEntry entry : mImageCache.values()) { in pause()
378 mImageCache.clear(); in pause()
421 ImageEntry e = mImageCache.get(item.getPath()); in uploadScreenNail()
454 ImageEntry entry = mImageCache.get(item.getPath()); in getScreenNail()
524 ImageEntry entry = mImageCache.get(getPath(mCurrentIndex + offset)); in getLoadingState()
602 ImageEntry entry = mImageCache.get(getPath(mCurrentIndex)); in updateTileProvider()
677 for (ImageEntry entry : mImageCache.values()) { in updateImageRequests()
[all …]
/packages/apps/TV/src/com/android/tv/util/images/
DImageLoader.java280 private final ImageCache mImageCache; field in ImageLoader.LoadBitmapTask
318 return mImageCache.get(mKey); in getFromCache()
333 mImageCache = imageCache; in LoadBitmapTask()
352 mImageCache.putIfNeeded(bitmapInfo); in doInBackground()
/packages/apps/Car/Radio/src/com/android/car/radio/service/
DRadioAppService.java81 private ImageMemoryCache mImageCache; field in RadioAppService
105 mImageCache = new ImageMemoryCache(mRadioManager, 1000); in onCreate()
114 mBrowseTree = new BrowseTree(this, mImageCache); in onCreate()
115 mMediaSession = new TunerSession(this, mBrowseTree, mWrapper, mImageCache); in onCreate()