Home
last modified time | relevance | path

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

/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
DMediaSetSource.java131 private int mCacheStart; field in MediaSetSource.CheckedMediaSetSource
148 if (index >= mCacheStart && index < mCacheEnd) return; in ensureCacheRange()
152 mCacheStart = index; in ensureCacheRange()
153 ArrayList<MediaItem> items = mSource.getMediaItem(mCacheStart, CACHE_SIZE); in ensureCacheRange()
154 mCacheEnd = mCacheStart + items.size(); in ensureCacheRange()
164 if (index < mCacheStart || index >= mCacheEnd) return null; in getContentUri()
165 return mCache[index - mCacheStart].getContentUri(); in getContentUri()
171 if (index < mCacheStart || index >= mCacheEnd) return null; in getImage()
172 return WidgetUtils.createWidgetBitmap(mCache[index - mCacheStart]); in getImage()
180 mCacheStart = 0; in reload()