Home
last modified time | relevance | path

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

/packages/apps/Gallery3D/src/com/cooliris/media/
DSortCursor.java127 public boolean onMove(int oldPosition, int newPosition) { in onMove() argument
128 if (oldPosition == newPosition) in onMove()
139 int cache_entry = newPosition % ROWCACHESIZE; in onMove()
141 if (mRowNumCache[cache_entry] == newPosition) { in onMove()
165 if (newPosition < oldPosition || oldPosition == -1) { in onMove()
180 for (int i = oldPosition; i <= newPosition; i++) { in onMove()
193 if (i == newPosition) { in onMove()
201 for (int i = oldPosition; i <= newPosition; i++) { in onMove()
215 if (i == newPosition) { in onMove()
225 mRowNumCache[cache_entry] = newPosition; in onMove()
/packages/apps/Music/src/com/android/music/
DSortCursor.java104 public boolean onMove(int oldPosition, int newPosition) in onMove() argument
106 if (oldPosition == newPosition) in onMove()
117 int cache_entry = newPosition % ROWCACHESIZE; in onMove()
119 if (mRowNumCache[cache_entry] == newPosition) { in onMove()
141 if (newPosition < oldPosition || oldPosition == -1) { in onMove()
154 for(int i = oldPosition; i <= newPosition; i++) { in onMove()
167 if (i == newPosition) break; in onMove()
173 mRowNumCache[cache_entry] = newPosition; in onMove()
DTrackBrowserActivity.java1178 public boolean onMove(int oldPosition, int newPosition)
1180 if (oldPosition == newPosition)
1183 if (mNowPlaying == null || mCursorIdxs == null || newPosition >= mNowPlaying.length) {
1191 long newid = mNowPlaying[newPosition];
1194 mCurPos = newPosition;
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DReorderingCursorWrapper.java52 public boolean onMove(int oldPosition, int newPosition) { in onMove() argument
53 return mCursor.moveToPosition(mPositionMap[newPosition]); in onMove()
/packages/apps/Browser/src/com/android/browser/
DBrowserProvider.java444 public boolean onMove(int oldPosition, int newPosition) { in onMove() argument
449 if (mHistoryCount == 0 && newPosition == 0) { in onMove()
452 if (newPosition == 0) { in onMove()
455 } else if (newPosition == 1) { in onMove()
459 newPosition--; in onMove()
461 if (mHistoryCount > newPosition) { in onMove()
462 mHistoryCursor.moveToPosition(newPosition); in onMove()
464 mSuggestCursor.moveToPosition(newPosition - mHistoryCount); in onMove()
/packages/apps/Mms/src/com/android/mms/
DSuggestionsProvider.java214 public boolean onMove(int oldPosition, int newPosition) { in onMove() argument
215 return ((CrossProcessCursor)mDatabaseCursor).onMove(oldPosition, newPosition); in onMove()
/packages/apps/Calendar/src/com/android/calendar/
DAgendaWindowAdapter.java691 int newPosition = findDayPositionNearestTime(goToTime); in onQueryComplete() local
692 if (newPosition >= 0) { in onQueryComplete()
693 mAgendaListView.setSelection(newPosition + OFF_BY_ONE_BUG); in onQueryComplete()
697 "findDayPositionNearestTime: " + (newPosition + OFF_BY_ONE_BUG)); in onQueryComplete()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadProvider.java1154 public boolean onMove(int oldPosition, int newPosition) { in onMove() argument
1155 return mCursor.onMove(oldPosition, newPosition); in onMove()