Searched defs:DATA_CACHE_SIZE (Results 1 - 4 of 4) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DManageCachePage.java65 private static final int DATA_CACHE_SIZE = 256; field in class:ManageCachePage
282 mActivity, mMediaSet, DATA_CACHE_SIZE);
H A DAlbumDataAdapter.java40 private static final int DATA_CACHE_SIZE = 1000; field in class:AlbumDataAdapter
74 mData = new MediaItem[DATA_CACHE_SIZE];
75 mItemVersion = new long[DATA_CACHE_SIZE];
76 mSetVersion = new long[DATA_CACHE_SIZE];
154 clearSlot(i % DATA_CACHE_SIZE);
158 clearSlot(i % DATA_CACHE_SIZE);
161 clearSlot(i % DATA_CACHE_SIZE);
239 int index = i % DATA_CACHE_SIZE;
276 int index = i % DATA_CACHE_SIZE;
H A DAlbumSetPage.java70 private static final int DATA_CACHE_SIZE = 256; field in class:AlbumSetPage
363 mActivity, mMediaSet, DATA_CACHE_SIZE);
H A DPhotoDataAdapter.java59 private static final int DATA_CACHE_SIZE = 32; field in class:PhotoDataAdapter
102 // The MediaItems are stored in the mData array, which has DATA_CACHE_SIZE
104 // mContentEnd - mContentStart <= DATA_CACHE_SIZE, so we can use
105 // (i % DATA_CACHE_SIZE) as index to the array.
108 // smaller than DATA_CACHE_SIZE because we only update the window and reload
111 private final MediaItem mData[] = new MediaItem[DATA_CACHE_SIZE];
197 MediaItem item = mData[index % DATA_CACHE_SIZE];
320 MediaItem item = mData[index % DATA_CACHE_SIZE];
385 return mData[mCurrentIndex % DATA_CACHE_SIZE];
443 start = Utils.clamp(mCurrentIndex - DATA_CACHE_SIZE /
[all...]

Completed in 69 milliseconds