Home
last modified time | relevance | path

Searched refs:newPosition (Results 1 – 18 of 18) 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.java196 public boolean onMove(int oldPosition, int newPosition) { in onMove() argument
/frameworks/base/core/java/com/android/internal/database/
DSortCursor.java108 public boolean onMove(int oldPosition, int newPosition) in onMove() argument
110 if (oldPosition == newPosition) in onMove()
121 int cache_entry = newPosition % ROWCACHESIZE; in onMove()
123 if (mRowNumCache[cache_entry] == newPosition) { in onMove()
145 if (newPosition < oldPosition || oldPosition == -1) { in onMove()
158 for(int i = oldPosition; i <= newPosition; i++) { in onMove()
171 if (i == newPosition) break; in onMove()
177 mRowNumCache[cache_entry] = newPosition; in onMove()
/frameworks/base/core/jni/android/graphics/
DByteBufferStreamAdaptor.cpp137 long newPosition = mPosition + offset; in move() local
138 if (newPosition < 0) { in move()
141 return this->seek(static_cast<size_t>(newPosition)); in move()
167 bool setPosition(size_t newPosition) { in setPosition() argument
170 newPosition + mInitialPosition); in setPosition()
178 mPosition = newPosition; in setPosition()
259 long newPosition = mPosition + offset; in move() local
260 if (newPosition < 0) { in move()
263 return this->seek(static_cast<size_t>(newPosition)); in move()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/libcore/io/
DBridgeBufferIterator.java49 int newPosition = mByteBuffer.position() + byteCount; in skip() local
50 assert newPosition <= mSize; in skip() local
51 mByteBuffer.position(newPosition); in skip()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteCursor.java127 public boolean onMove(int oldPosition, int newPosition) { in onMove() argument
129 if (mWindow == null || newPosition < mWindow.getStartPosition() || in onMove()
130 newPosition >= (mWindow.getStartPosition() + mWindow.getNumRows())) { in onMove()
131 fillWindow(newPosition); in onMove()
/frameworks/base/core/java/android/widget/
DDayPickerPagerAdapter.java129 final int newPosition = getPositionForDay(day); in setSelectedDay() local
132 if (oldPosition != newPosition && oldPosition >= 0) { in setSelectedDay()
140 if (newPosition >= 0) { in setSelectedDay()
141 final ViewHolder newMonthView = mItems.get(newPosition, null); in setSelectedDay()
/frameworks/av/media/libaudioclient/
DAudioTrackShared.cpp1177 size_t newPosition = position + stepCount; in releaseBuffer() local
1179 if (!(position <= newPosition && newPosition <= mFrameCount)) { in releaseBuffer()
1180 ALOGW("%s newPosition %zu outside [%zu, %zu]", __func__, newPosition, position, in releaseBuffer()
1182 newPosition = mFrameCount; in releaseBuffer()
1183 } else if (mState.mLoopCount != 0 && newPosition == mState.mLoopEnd) { in releaseBuffer()
1184 newPosition = mState.mLoopStart; in releaseBuffer()
1191 if (newPosition == mFrameCount) { in releaseBuffer()
1194 mState.mPosition = newPosition; in releaseBuffer()
DAudioRecord.cpp1126 Modulo<uint32_t> newPosition(mNewPosition); in processAudioBuffer() local
1129 if (updatePeriod > 0 && position >= newPosition) { in processAudioBuffer()
1130 newPosCount = ((position - newPosition).value() / updatePeriod) + 1; in processAudioBuffer()
1157 size_t temp = newPosition.value(); // FIXME size_t != uint32_t in processAudioBuffer()
1159 newPosition += updatePeriod; in processAudioBuffer()
1178 uint32_t remaining = (newPosition - position).value(); in processAudioBuffer()
DAudioTrack.cpp1934 Modulo<uint32_t> newPosition(mNewPosition); in processAudioBuffer() local
1937 if (updatePeriod > 0 && position >= newPosition) { in processAudioBuffer()
1938 newPosCount = ((position - newPosition).value() / updatePeriod) + 1; in processAudioBuffer()
2039 size_t temp = newPosition.value(); // FIXME size_t != uint32_t in processAudioBuffer()
2041 newPosition += updatePeriod; in processAudioBuffer()
2070 minFrames = min(minFrames, (newPosition - position).value()); in processAudioBuffer()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DMessagingLayoutTransformState.java121 float newPosition = ownGroup.getTop() + currentTranslation; in transformViewInternal() local
126 groupTransformationAmount = (newPosition - fadeStart) in transformViewInternal()
132 groupTransformationAmount = (newPosition - fadeStart) in transformViewInternal()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSmartReplyView.java661 final int newPosition = in estimateOptimalSqueezedButtonTextWidth() local
663 if (newPosition == BreakIterator.DONE) { in estimateOptimalSqueezedButtonTextWidth()
667 final float newLeftTextWidth = Layout.getDesiredWidth(text, 0, newPosition, paint); in estimateOptimalSqueezedButtonTextWidth()
669 Layout.getDesiredWidth(text, newPosition, length, paint); in estimateOptimalSqueezedButtonTextWidth()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowState.java4797 final Point newPosition = new Point(); in startMoveAnimation() local
4800 transformFrameToSurfacePosition(left, top, newPosition); in startMoveAnimation()
4802 new MoveAnimationSpec(oldPosition.x, oldPosition.y, newPosition.x, newPosition.y), in startMoveAnimation()
/frameworks/av/services/audioflinger/
DThreads.cpp3433 const int64_t newPosition = in threadLoop() local
3438 newPosition, in threadLoop()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt111659 Ljava/util/StringTokenizer;->newPosition:I