Home
last modified time | relevance | path

Searched refs:newPosition (Results 1 – 17 of 17) 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/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/media/
DMediaPlayerGlue.java210 int newPosition = getCurrentPosition() + FAST_FORWARD_REWIND_STEP; in onKey() local
212 newPosition = getCurrentPosition() - FAST_FORWARD_REWIND_STEP; in onKey()
215 if (newPosition < 0) newPosition = 0; in onKey()
216 if (newPosition > getMediaDuration()) newPosition = getMediaDuration(); in onKey()
217 seekTo(newPosition); in onKey()
284 protected void seekTo(int newPosition) { in seekTo() argument
285 mPlayer.seekTo(newPosition); in seekTo()
/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/support/v7/recyclerview/tests/src/android/support/v7/widget/
DGridLayoutManagerNoOpUpdateTest.java81 Rect newPosition = after.get(entry.getKey()); in assertSnapshotsEqual() local
82 assertNotNull("cannot find " + entry.getKey() + " in after map", newPosition); in assertSnapshotsEqual()
83 assertEquals("position should be the same", entry.getValue(), newPosition); in assertSnapshotsEqual()
/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.cpp976 Modulo<uint32_t> newPosition(mNewPosition); in processAudioBuffer() local
979 if (updatePeriod > 0 && position >= newPosition) { in processAudioBuffer()
980 newPosCount = ((position - newPosition).value() / updatePeriod) + 1; in processAudioBuffer()
1007 size_t temp = newPosition.value(); // FIXME size_t != uint32_t in processAudioBuffer()
1009 newPosition += updatePeriod; in processAudioBuffer()
1028 uint32_t remaining = (newPosition - position).value(); in processAudioBuffer()
DAudioTrack.cpp1847 Modulo<uint32_t> newPosition(mNewPosition); in processAudioBuffer() local
1850 if (updatePeriod > 0 && position >= newPosition) { in processAudioBuffer()
1851 newPosCount = ((position - newPosition).value() / updatePeriod) + 1; in processAudioBuffer()
1952 size_t temp = newPosition.value(); // FIXME size_t != uint32_t in processAudioBuffer()
1954 newPosition += updatePeriod; in processAudioBuffer()
1983 minFrames = min(minFrames, (newPosition - position).value()); in processAudioBuffer()
/frameworks/support/design/src/android/support/design/widget/
DTabLayout.java1065 private void animateToTab(int newPosition) {
1066 if (newPosition == Tab.INVALID_POSITION) {
1074 setScrollPosition(newPosition, 0f, true);
1079 final int targetScrollX = calculateScrollXForTab(newPosition, 0);
1099 mTabStrip.animateIndicatorToPosition(newPosition, ANIMATION_DURATION);
1125 final int newPosition = tab != null ? tab.getPosition() : Tab.INVALID_POSITION;
1128 && newPosition != Tab.INVALID_POSITION) {
1130 setScrollPosition(newPosition, 0f, true);
1132 animateToTab(newPosition);
1134 if (newPosition != Tab.INVALID_POSITION) {
[all …]