Home
last modified time | relevance | path

Searched refs:lastPosition (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
DListWithScreenOfNoSelectablesTest.java72 final int lastPosition = mListView.getCount() - 1; in testPanDownAcrossUnselectableChildrenToBottom() local
74 …for(int count = 0; count < maxDowns && mListView.getLastVisiblePosition() <= lastPosition; count++… in testPanDownAcrossUnselectableChildrenToBottom()
78 + "after " + maxDowns + " downs", lastPosition, mListView.getLastVisiblePosition()); in testPanDownAcrossUnselectableChildrenToBottom()
/frameworks/base/core/java/android/widget/
DGridView.java465 private View fillFromBottom(int lastPosition, int nextBottom) { in fillFromBottom() argument
466 lastPosition = Math.max(lastPosition, mSelectedPosition); in fillFromBottom()
467 lastPosition = Math.min(lastPosition, mItemCount - 1); in fillFromBottom()
469 final int invertedPosition = mItemCount - 1 - lastPosition; in fillFromBottom()
470 lastPosition = mItemCount - 1 - (invertedPosition - (invertedPosition % mNumColumns)); in fillFromBottom()
472 return fillUp(lastPosition, nextBottom); in fillFromBottom()
635 final int lastPosition = mFirstPosition + childCount - 1; in correctTooHigh() local
636 if (lastPosition == mItemCount - 1 && childCount > 0) { in correctTooHigh()
693 final int lastPosition = mFirstPosition + childCount - 1; in correctTooLow() local
697 if (topOffset > 0 && (lastPosition < mItemCount - 1 || lastBottom > end)) { in correctTooLow()
[all …]
DListView.java1540 int lastPosition = mFirstPosition + childCount - 1; in correctTooHigh() local
1541 if (lastPosition == mItemCount - 1 && childCount > 0) { in correctTooHigh()
1609 int lastPosition = mFirstPosition + childCount - 1; in correctTooLow() local
1614 if (lastPosition < mItemCount - 1 || lastBottom > end) { in correctTooLow()
1615 if (lastPosition == mItemCount - 1) { in correctTooLow()
1621 if (lastPosition < mItemCount - 1) { in correctTooLow()
1624 fillDown(lastPosition + 1, lastChild.getBottom() + mDividerHeight); in correctTooLow()
1628 } else if (lastPosition == mItemCount - 1) { in correctTooLow()
DAbsListView.java5212 final int lastPosition = firstPosition + childCount;
5213 return lastPosition < mItemCount || lastBottom > getHeight() - listPadding.bottom;
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DPageIndicator.java139 int lastPosition = mPosition; in setLocation() local
141 lastPosition = mQueuedPositions.get(mQueuedPositions.size() - 1); in setLocation()
143 if (position == lastPosition) return; in setLocation()
/frameworks/base/core/java/com/android/internal/widget/
DAutoScrollHelper.java901 final int lastPosition = firstPosition + childCount; in canTargetScrollVertically() local
905 if (lastPosition >= itemCount) { in canTargetScrollVertically()