Searched refs:lastPosition (Results 1 – 9 of 9) sorted by relevance
71 final int lastPosition = mListView.getCount() - 1; in testPanDownAcrossUnselectableChildrenToBottom() local73 …for(int count = 0; count < maxDowns && mListView.getLastVisiblePosition() <= lastPosition; count++… in testPanDownAcrossUnselectableChildrenToBottom()77 + "after " + maxDowns + " downs", lastPosition, mListView.getLastVisiblePosition()); in testPanDownAcrossUnselectableChildrenToBottom()
56 final int lastPosition = firstPosition + childCount; in canTargetScrollVertically() local60 if (lastPosition >= itemCount) { in canTargetScrollVertically()
87 final int lastPosition = recyclerView.getAdapter().getItemCount() - 1; in testResizeDuringMeasurements() local88 smoothScrollToPosition(lastPosition); in testResizeDuringMeasurements()89 assertThat("test sanity", recyclerView.findViewHolderForAdapterPosition(lastPosition), in testResizeDuringMeasurements()
68 int lastPosition = mPosition; in setLocation() local70 lastPosition = mQueuedPositions.get(mQueuedPositions.size() - 1); in setLocation()72 if (position == lastPosition) return; in setLocation()
445 private View fillFromBottom(int lastPosition, int nextBottom) { in fillFromBottom() argument446 lastPosition = Math.max(lastPosition, mSelectedPosition); in fillFromBottom()447 lastPosition = Math.min(lastPosition, mItemCount - 1); in fillFromBottom()449 final int invertedPosition = mItemCount - 1 - lastPosition; in fillFromBottom()450 lastPosition = mItemCount - 1 - (invertedPosition - (invertedPosition % mNumColumns)); in fillFromBottom()452 return fillUp(lastPosition, nextBottom); in fillFromBottom()615 final int lastPosition = mFirstPosition + childCount - 1; in correctTooHigh() local616 if (lastPosition == mItemCount - 1 && childCount > 0) { in correctTooHigh()673 final int lastPosition = mFirstPosition + childCount - 1; in correctTooLow() local677 if (topOffset > 0 && (lastPosition < mItemCount - 1 || lastBottom > end)) { in correctTooLow()[all …]
1447 int lastPosition = mFirstPosition + childCount - 1; in correctTooHigh() local1448 if (lastPosition == mItemCount - 1 && childCount > 0) { in correctTooHigh()1515 int lastPosition = mFirstPosition + childCount - 1; in correctTooLow() local1520 if (lastPosition < mItemCount - 1 || lastBottom > end) { in correctTooLow()1521 if (lastPosition == mItemCount - 1) { in correctTooLow()1527 if (lastPosition < mItemCount - 1) { in correctTooLow()1530 fillDown(lastPosition + 1, lastChild.getBottom() + mDividerHeight); in correctTooLow()1534 } else if (lastPosition == mItemCount - 1) { in correctTooLow()
5034 final int lastPosition = firstPosition + childCount;5035 return lastPosition < mItemCount || lastBottom > getHeight() - listPadding.bottom;
323 int lastPosition = getLastVisiblePosition(); in run() local324 boolean scroll = firstPosition != 0 && lastPosition != getCount() - 1; in run()
901 final int lastPosition = firstPosition + childCount; in canTargetScrollVertically() local905 if (lastPosition >= itemCount) { in canTargetScrollVertically()