Searched refs:mLastIndex (Results 1 – 3 of 3) sorted by relevance
58 private long mLastIndex; field in WatchedHistoryManager70 if (lastIndex <= mLastIndex) {78 for (long i = mLastIndex + 1; i <= lastIndex; ++i) {90 mLastIndex = lastIndex;144 mLastIndex = mSharedPreferences.getLong(PREF_KEY_LAST_INDEX, -1); in loadWatchedHistory()145 if (mLastIndex >= 0 && mLastIndex < mMaxHistorySize) { in loadWatchedHistory()146 for (int i = 0; i <= mLastIndex; ++i) { in loadWatchedHistory()153 } else if (mLastIndex >= mMaxHistorySize) { in loadWatchedHistory()154 for (long i = mLastIndex - mMaxHistorySize + 1; i <= mLastIndex; ++i) { in loadWatchedHistory()167 Log.d(TAG, "Loaded: size=" + mWatchedHistory.size() + " index=" + mLastIndex); in onLoadFinished()[all …]
246 private int mLastIndex = -1; field in SlideshowPage.ShuffleSource262 mLastIndex = mOrder[index % mOrder.length]; in getMediaItem()263 MediaItem item = findMediaItem(mMediaSet, mLastIndex); in getMediaItem()265 Log.w(TAG, "fail to find image: " + mLastIndex); in getMediaItem()266 mLastIndex = mRandom.nextInt(mOrder.length); in getMediaItem()267 item = findMediaItem(mMediaSet, mLastIndex); in getMediaItem()293 if (mOrder[0] == mLastIndex && totalCount > 1) { in generateOrderArray()
1019 private int mLastIndex = -1; field in ManageApplications.ApplicationsAdapter1069 mLastIndex = savedInstanceState.getInt(STATE_LAST_SCROLL_INDEX); in ApplicationsAdapter()1308 if (mLastIndex != -1 && getItemCount() > mLastIndex) { in onRebuildComplete()1309 mManageApplications.mRecyclerView.getLayoutManager().scrollToPosition(mLastIndex); in onRebuildComplete()1310 mLastIndex = -1; in onRebuildComplete()