Home
last modified time | relevance | path

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

/packages/apps/Gallery2/src/com/android/gallery3d/app/
DSlideshowPage.java235 private int mOrder[] = new int[0]; field in SlideshowPage.ShuffleSource
250 if (!mRepeat && index >= mOrder.length) return null; in getMediaItem()
251 if (mOrder.length == 0) return null; in getMediaItem()
252 mLastIndex = mOrder[index % mOrder.length]; in getMediaItem()
256 mLastIndex = mRandom.nextInt(mOrder.length); in getMediaItem()
267 if (count != mOrder.length) generateOrderArray(count); in reload()
273 if (mOrder.length != totalCount) { in generateOrderArray()
274 mOrder = new int[totalCount]; in generateOrderArray()
276 mOrder[i] = i; in generateOrderArray()
280 Utils.swap(mOrder, i, mRandom.nextInt(i + 1)); in generateOrderArray()
[all …]