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/packages/SystemUI/src/com/android/systemui/qs/
DPageIndicator.java76 int lastPosition = mPosition; in setLocation() local
78 lastPosition = mQueuedPositions.get(mQueuedPositions.size() - 1); in setLocation()
80 if (position == lastPosition) return; in setLocation()
/frameworks/base/core/java/android/widget/
DGridView.java464 private View fillFromBottom(int lastPosition, int nextBottom) { in fillFromBottom() argument
465 lastPosition = Math.max(lastPosition, mSelectedPosition); in fillFromBottom()
466 lastPosition = Math.min(lastPosition, mItemCount - 1); in fillFromBottom()
468 final int invertedPosition = mItemCount - 1 - lastPosition; in fillFromBottom()
469 lastPosition = mItemCount - 1 - (invertedPosition - (invertedPosition % mNumColumns)); in fillFromBottom()
471 return fillUp(lastPosition, nextBottom); in fillFromBottom()
634 final int lastPosition = mFirstPosition + childCount - 1; in correctTooHigh() local
635 if (lastPosition == mItemCount - 1 && childCount > 0) { in correctTooHigh()
692 final int lastPosition = mFirstPosition + childCount - 1; in correctTooLow() local
696 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.java5153 final int lastPosition = firstPosition + childCount;
5154 return lastPosition < mItemCount || lastBottom > getHeight() - listPadding.bottom;
/frameworks/base/core/java/com/android/internal/widget/
DAutoScrollHelper.java901 final int lastPosition = firstPosition + childCount; in canTargetScrollVertically() local
905 if (lastPosition >= itemCount) { in canTargetScrollVertically()