Searched refs:lastPosition (Results 1 – 12 of 12) 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()
79 final int lastPosition = firstPosition + childCount; in canScrollList() local80 return lastPosition < listView.getCount() in canScrollList()
76 int lastPosition = mPosition; in setLocation() local78 lastPosition = mQueuedPositions.get(mQueuedPositions.size() - 1); in setLocation()80 if (position == lastPosition) return; in setLocation()
104 final int lastPosition = recyclerView.getAdapter().getItemCount() - 1; in testResizeDuringMeasurements() local105 smoothScrollToPosition(lastPosition); in testResizeDuringMeasurements()106 assertThat("test sanity", recyclerView.findViewHolderForAdapterPosition(lastPosition), in testResizeDuringMeasurements()
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 …]
1529 int lastPosition = mFirstPosition + childCount - 1; in correctTooHigh() local1530 if (lastPosition == mItemCount - 1 && childCount > 0) { in correctTooHigh()1597 int lastPosition = mFirstPosition + childCount - 1; in correctTooLow() local1602 if (lastPosition < mItemCount - 1 || lastBottom > end) { in correctTooLow()1603 if (lastPosition == mItemCount - 1) { in correctTooLow()1609 if (lastPosition < mItemCount - 1) { in correctTooLow()1612 fillDown(lastPosition + 1, lastChild.getBottom() + mDividerHeight); in correctTooLow()1616 } else if (lastPosition == mItemCount - 1) { in correctTooLow()
5075 final int lastPosition = firstPosition + childCount;5076 return lastPosition < mItemCount || lastBottom > getHeight() - listPadding.bottom;
227 double lastPosition = mSpring.getFinalPosition(); in updateValueAndVelocity() local
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()
489 int lastPosition = lastParams.getViewLayoutPosition(); in onLayoutChildren() local505 (position - lastPosition); in onLayoutChildren()