Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/database/
DBulkCursorToCursorAdaptor.java74 public boolean onMove(int oldPosition, int newPosition) { in onMove() argument
80 || newPosition < mWindow.getStartPosition() in onMove()
81 || newPosition >= mWindow.getStartPosition() + mWindow.getNumRows()) { in onMove()
82 setWindow(mBulkCursor.getWindow(newPosition)); in onMove()
84 mBulkCursor.onMove(newPosition); in onMove()
DCrossProcessCursorWrapper.java67 public boolean onMove(int oldPosition, int newPosition) { in onMove() argument
70 return crossProcessCursor.onMove(oldPosition, newPosition); in onMove()
DMergeCursor.java68 public boolean onMove(int oldPosition, int newPosition) in onMove() argument
79 if (newPosition < (cursorStartPos + mCursors[i].getCount())) { in onMove()
89 boolean ret = mCursor.moveToPosition(newPosition - cursorStartPos); in onMove()
DCrossProcessCursor.java77 boolean onMove(int oldPosition, int newPosition); in onMove() argument
DAbstractCursor.java183 public boolean onMove(int oldPosition, int newPosition) { in onMove() argument
/frameworks/base/core/java/com/android/internal/database/
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()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/libcore/io/
DBridgeBufferIterator.java44 int newPosition = mByteBuffer.position() + byteCount; in skip() local
45 assert newPosition <= mSize; in skip() local
46 mByteBuffer.position(newPosition); in skip()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteCursor.java119 public boolean onMove(int oldPosition, int newPosition) { in onMove() argument
121 if (mWindow == null || newPosition < mWindow.getStartPosition() || in onMove()
122 newPosition >= (mWindow.getStartPosition() + mWindow.getNumRows())) { in onMove()
123 fillWindow(newPosition); in onMove()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DRootCursorWrapper.java78 public boolean onMove(int oldPosition, int newPosition) { in onMove() argument
79 return mCursor.moveToPosition(newPosition); in onMove()
DFilteringCursorWrapper.java83 public boolean onMove(int oldPosition, int newPosition) { in onMove() argument
84 return mCursor.moveToPosition(mPosition[newPosition]); in onMove()
DSortingCursorWrapper.java113 public boolean onMove(int oldPosition, int newPosition) { in onMove() argument
114 return mCursor.moveToPosition(mPosition[newPosition]); in onMove()
/frameworks/base/core/java/android/widget/
DDayPickerPagerAdapter.java118 final int newPosition = getPositionForDay(day); in setSelectedDay() local
121 if (oldPosition != newPosition && oldPosition >= 0) { in setSelectedDay()
129 if (newPosition >= 0) { in setSelectedDay()
130 final ViewHolder newMonthView = mItems.get(newPosition, null); in setSelectedDay()
/frameworks/av/media/libmedia/
DAudioTrackShared.cpp991 size_t newPosition = position + stepCount; in releaseBuffer() local
993 if (!(position <= newPosition && newPosition <= mFrameCount)) { in releaseBuffer()
994 ALOGW("%s newPosition %zu outside [%zu, %zu]", __func__, newPosition, position, in releaseBuffer()
996 newPosition = mFrameCount; in releaseBuffer()
997 } else if (mState.mLoopCount != 0 && newPosition == mState.mLoopEnd) { in releaseBuffer()
998 newPosition = mState.mLoopStart; in releaseBuffer()
1005 if (newPosition == mFrameCount) { in releaseBuffer()
1008 mState.mPosition = newPosition; in releaseBuffer()
DAudioRecord.cpp900 size_t newPosition = mNewPosition; in processAudioBuffer() local
903 if (updatePeriod > 0 && position >= newPosition) { in processAudioBuffer()
904 newPosCount = ((position - newPosition) / updatePeriod) + 1; in processAudioBuffer()
931 size_t temp = newPosition; in processAudioBuffer()
933 newPosition += updatePeriod; in processAudioBuffer()
952 uint32_t remaining = newPosition - position; in processAudioBuffer()
DAudioTrack.cpp1780 size_t newPosition = mNewPosition; in processAudioBuffer() local
1783 if (updatePeriod > 0 && position >= newPosition) { in processAudioBuffer()
1784 newPosCount = ((position - newPosition) / updatePeriod) + 1; in processAudioBuffer()
1881 size_t temp = newPosition; in processAudioBuffer()
1883 newPosition += updatePeriod; in processAudioBuffer()
1912 minFrames = min(minFrames, uint32_t(newPosition - position)); in processAudioBuffer()
/frameworks/support/design/src/android/support/design/widget/
DTabLayout.java761 private void animateToTab(int newPosition) { in animateToTab() argument
762 if (newPosition == Tab.INVALID_POSITION) { in animateToTab()
770 setScrollPosition(newPosition, 0f, true); in animateToTab()
775 final int targetScrollX = calculateScrollXForTab(newPosition, 0); in animateToTab()
795 mTabStrip.animateIndicatorToPosition(newPosition, ANIMATION_DURATION); in animateToTab()
821 final int newPosition = tab != null ? tab.getPosition() : Tab.INVALID_POSITION; in selectTab() local
822 setSelectedTabView(newPosition); in selectTab()
825 && newPosition != Tab.INVALID_POSITION) { in selectTab()
827 setScrollPosition(newPosition, 0f, true); in selectTab()
829 animateToTab(newPosition); in selectTab()