Searched defs:newPosition (Results 1 - 7 of 7) sorted by relevance

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DReorderingCursorWrapper.java52 public boolean onMove(int oldPosition, int newPosition) { argument
53 return mCursor.moveToPosition(mPositionMap[newPosition]);
/packages/apps/Music/src/com/android/music/
H A DSortCursor.java104 public boolean onMove(int oldPosition, int newPosition) argument
106 if (oldPosition == newPosition)
117 int cache_entry = newPosition % ROWCACHESIZE;
119 if (mRowNumCache[cache_entry] == newPosition) {
141 if (newPosition < oldPosition || oldPosition == -1) {
154 for(int i = oldPosition; i <= newPosition; i++) {
167 if (i == newPosition) break;
173 mRowNumCache[cache_entry] = newPosition;
H A DTrackBrowserActivity.java1167 public boolean onMove(int oldPosition, int newPosition) argument
1169 if (oldPosition == newPosition)
1172 if (mNowPlaying == null || mCursorIdxs == null || newPosition >= mNowPlaying.length) {
1180 long newid = mNowPlaying[newPosition];
1183 mCurPos = newPosition;
/packages/apps/Gallery3D/src/com/cooliris/media/
H A DSortCursor.java127 public boolean onMove(int oldPosition, int newPosition) { argument
128 if (oldPosition == newPosition)
139 int cache_entry = newPosition % ROWCACHESIZE;
141 if (mRowNumCache[cache_entry] == newPosition) {
165 if (newPosition < oldPosition || oldPosition == -1) {
180 for (int i = oldPosition; i <= newPosition; i++) {
193 if (i == newPosition) {
201 for (int i = oldPosition; i <= newPosition; i++) {
215 if (i == newPosition) {
225 mRowNumCache[cache_entry] = newPosition;
[all...]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DDownloadProvider.java785 public boolean onMove(int oldPosition, int newPosition) { argument
786 return mCursor.onMove(oldPosition, newPosition);
/packages/apps/Browser/src/com/android/browser/
H A DBrowserProvider.java444 public boolean onMove(int oldPosition, int newPosition) { argument
449 if (mHistoryCount == 0 && newPosition == 0) {
452 if (newPosition == 0) {
455 } else if (newPosition == 1) {
459 newPosition--;
461 if (mHistoryCount > newPosition) {
462 mHistoryCursor.moveToPosition(newPosition);
464 mSuggestCursor.moveToPosition(newPosition - mHistoryCount);
/packages/apps/Mms/src/com/android/mms/
H A DSuggestionsProvider.java214 public boolean onMove(int oldPosition, int newPosition) { argument
215 return ((CrossProcessCursor)mDatabaseCursor).onMove(oldPosition, newPosition);

Completed in 64 milliseconds