Home
last modified time | relevance | path

Searched refs:newPosition (Results 1 – 15 of 15) 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.java86 public boolean onMove(int oldPosition, int newPosition) { in onMove() argument
87 return mCursor.moveToPosition(mPosition[newPosition]); in onMove()
/frameworks/base/core/java/android/widget/
DDayPickerPagerAdapter.java117 final int newPosition = getPositionForDay(day); in setSelectedDay() local
120 if (oldPosition != newPosition && oldPosition >= 0) { in setSelectedDay()
128 if (newPosition >= 0) { in setSelectedDay()
129 final ViewHolder newMonthView = mItems.get(newPosition, null); in setSelectedDay()
/frameworks/av/media/libmedia/
DAudioTrackShared.cpp1037 size_t newPosition = position + stepCount; in releaseBuffer() local
1039 if (!(position <= newPosition && newPosition <= mFrameCount)) { in releaseBuffer()
1040 ALOGW("%s newPosition %zu outside [%zu, %zu]", __func__, newPosition, position, in releaseBuffer()
1042 newPosition = mFrameCount; in releaseBuffer()
1043 } else if (mState.mLoopCount != 0 && newPosition == mState.mLoopEnd) { in releaseBuffer()
1044 newPosition = mState.mLoopStart; in releaseBuffer()
1051 if (newPosition == mFrameCount) { in releaseBuffer()
1054 mState.mPosition = newPosition; in releaseBuffer()
DAudioRecord.cpp973 Modulo<uint32_t> newPosition(mNewPosition); in processAudioBuffer() local
976 if (updatePeriod > 0 && position >= newPosition) { in processAudioBuffer()
977 newPosCount = ((position - newPosition).value() / updatePeriod) + 1; in processAudioBuffer()
1004 size_t temp = newPosition.value(); // FIXME size_t != uint32_t in processAudioBuffer()
1006 newPosition += updatePeriod; in processAudioBuffer()
1025 uint32_t remaining = (newPosition - position).value(); in processAudioBuffer()
DAudioTrack.cpp1853 Modulo<uint32_t> newPosition(mNewPosition); in processAudioBuffer() local
1856 if (updatePeriod > 0 && position >= newPosition) { in processAudioBuffer()
1857 newPosCount = ((position - newPosition).value() / updatePeriod) + 1; in processAudioBuffer()
1958 size_t temp = newPosition.value(); // FIXME size_t != uint32_t in processAudioBuffer()
1960 newPosition += updatePeriod; in processAudioBuffer()
1989 minFrames = min(minFrames, (newPosition - position).value()); in processAudioBuffer()
/frameworks/support/design/src/android/support/design/widget/
DTabLayout.java1076 private void animateToTab(int newPosition) {
1077 if (newPosition == Tab.INVALID_POSITION) {
1085 setScrollPosition(newPosition, 0f, true);
1090 final int targetScrollX = calculateScrollXForTab(newPosition, 0);
1110 mTabStrip.animateIndicatorToPosition(newPosition, ANIMATION_DURATION);
1137 final int newPosition = tab != null ? tab.getPosition() : Tab.INVALID_POSITION;
1138 if (newPosition != Tab.INVALID_POSITION) {
1139 setSelectedTabView(newPosition);
1142 && newPosition != Tab.INVALID_POSITION) {
1144 setScrollPosition(newPosition, 0f, true);
[all …]