Home
last modified time | relevance | path

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

/packages/apps/TV/src/com/android/tv/data/
DWatchedHistoryManager.java58 private long mLastIndex; field in WatchedHistoryManager
70 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 …]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DSlideshowPage.java246 private int mLastIndex = -1; field in SlideshowPage.ShuffleSource
262 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()
/packages/apps/Settings/src/com/android/settings/applications/manageapplications/
DManageApplications.java1019 private int mLastIndex = -1; field in ManageApplications.ApplicationsAdapter
1069 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()