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

/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DAlbumDataLoader.java40 private static final int DATA_CACHE_SIZE = 1000; field in class:AlbumDataLoader
81 mData = new MediaItem[DATA_CACHE_SIZE];
82 mItemVersion = new long[DATA_CACHE_SIZE];
83 mSetVersion = new long[DATA_CACHE_SIZE];
144 MediaItem item = mData[i % DATA_CACHE_SIZE];
172 clearSlot(i % DATA_CACHE_SIZE);
176 clearSlot(i % DATA_CACHE_SIZE);
179 clearSlot(i % DATA_CACHE_SIZE);
263 int index = i % DATA_CACHE_SIZE;
307 int index = i % DATA_CACHE_SIZE;
[all...]
H A DManageCachePage.java62 private static final int DATA_CACHE_SIZE = 256; field in class:ManageCachePage
281 mActivity, mMediaSet, DATA_CACHE_SIZE);
H A DAlbumSetPage.java78 private static final int DATA_CACHE_SIZE = 256; field in class:AlbumSetPage
481 mActivity, mMediaSet, DATA_CACHE_SIZE);
H A DPhotoDataAdapter.java63 private static final int DATA_CACHE_SIZE = 256; field in class:PhotoDataAdapter
105 // The MediaItems are stored in the mData array, which has DATA_CACHE_SIZE
107 // mContentEnd - mContentStart <= DATA_CACHE_SIZE, so we can use
108 // (i % DATA_CACHE_SIZE) as index to the array.
111 // smaller than DATA_CACHE_SIZE because we only update the window and reload
114 private final MediaItem mData[] = new MediaItem[DATA_CACHE_SIZE];
224 return mData[index % DATA_CACHE_SIZE];
390 return mData[index % DATA_CACHE_SIZE];
400 MediaItem item = mData[index % DATA_CACHE_SIZE];
570 return mData[index % DATA_CACHE_SIZE];
[all...]

Completed in 64 milliseconds