Home
last modified time | relevance | path

Searched refs:DATA_CACHE_SIZE (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/app/
DAlbumDataLoader.java40 private static final int DATA_CACHE_SIZE = 1000; field in AlbumDataLoader
81 mData = new MediaItem[DATA_CACHE_SIZE]; in AlbumDataLoader()
82 mItemVersion = new long[DATA_CACHE_SIZE]; in AlbumDataLoader()
83 mSetVersion = new long[DATA_CACHE_SIZE]; in AlbumDataLoader()
144 MediaItem item = mData[i % DATA_CACHE_SIZE]; in findItem()
172 clearSlot(i % DATA_CACHE_SIZE); in setContentWindow()
176 clearSlot(i % DATA_CACHE_SIZE); in setContentWindow()
179 clearSlot(i % DATA_CACHE_SIZE); in setContentWindow()
263 int index = i % DATA_CACHE_SIZE; in call()
307 int index = i % DATA_CACHE_SIZE; in call()
DPhotoDataAdapter.java63 private static final int DATA_CACHE_SIZE = 256; field in PhotoDataAdapter
114 private final MediaItem mData[] = new MediaItem[DATA_CACHE_SIZE];
224 return mData[index % DATA_CACHE_SIZE]; in getItemInternal()
390 return mData[index % DATA_CACHE_SIZE]; in getItem()
400 MediaItem item = mData[index % DATA_CACHE_SIZE]; in updateCurrentIndex()
570 return mData[index % DATA_CACHE_SIZE]; in getMediaItem()
640 start = Utils.clamp(mCurrentIndex - DATA_CACHE_SIZE / 2, in updateSlidingWindow()
641 0, Math.max(0, mSize - DATA_CACHE_SIZE)); in updateSlidingWindow()
642 end = Math.min(mSize, start + DATA_CACHE_SIZE); in updateSlidingWindow()
647 mData[i % DATA_CACHE_SIZE] = null; in updateSlidingWindow()
[all …]
DManageCachePage.java62 private static final int DATA_CACHE_SIZE = 256; field in ManageCachePage
281 mActivity, mMediaSet, DATA_CACHE_SIZE); in initializeData()
DAlbumSetPage.java78 private static final int DATA_CACHE_SIZE = 256; field in AlbumSetPage
481 mActivity, mMediaSet, DATA_CACHE_SIZE); in initializeData()