Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
DListWithScreenOfNoSelectablesTest.java70 final int lastPosition = mListView.getCount() - 1; in testPanDownAcrossUnselectableChildrenToBottom() local
72 …for(int count = 0; count < maxDowns && mListView.getLastVisiblePosition() <= lastPosition; count++… in testPanDownAcrossUnselectableChildrenToBottom()
76 + "after " + maxDowns + " downs", lastPosition, mListView.getLastVisiblePosition()); in testPanDownAcrossUnselectableChildrenToBottom()
/frameworks/support/v4/java/android/support/v4/widget/
DListViewAutoScrollHelper.java68 final int lastPosition = firstPosition + childCount; in canTargetScrollVertically() local
72 if (lastPosition >= itemCount) { in canTargetScrollVertically()
/frameworks/base/core/java/android/widget/
DGridView.java440 private View fillFromBottom(int lastPosition, int nextBottom) { in fillFromBottom() argument
441 lastPosition = Math.max(lastPosition, mSelectedPosition); in fillFromBottom()
442 lastPosition = Math.min(lastPosition, mItemCount - 1); in fillFromBottom()
444 final int invertedPosition = mItemCount - 1 - lastPosition; in fillFromBottom()
445 lastPosition = mItemCount - 1 - (invertedPosition - (invertedPosition % mNumColumns)); in fillFromBottom()
447 return fillUp(lastPosition, nextBottom); in fillFromBottom()
610 final int lastPosition = mFirstPosition + childCount - 1; in correctTooHigh() local
611 if (lastPosition == mItemCount - 1 && childCount > 0) { in correctTooHigh()
668 final int lastPosition = mFirstPosition + childCount - 1; in correctTooLow() local
672 if (topOffset > 0 && (lastPosition < mItemCount - 1 || lastBottom > end)) { in correctTooLow()
[all …]
DDayPickerView.java319 int lastPosition = getLastVisiblePosition(); in run() local
320 boolean scroll = firstPosition != 0 && lastPosition != getCount() - 1; in run()
DListView.java1391 int lastPosition = mFirstPosition + childCount - 1; in correctTooHigh() local
1392 if (lastPosition == mItemCount - 1 && childCount > 0) { in correctTooHigh()
1459 int lastPosition = mFirstPosition + childCount - 1; in correctTooLow() local
1464 if (lastPosition < mItemCount - 1 || lastBottom > end) { in correctTooLow()
1465 if (lastPosition == mItemCount - 1) { in correctTooLow()
1471 if (lastPosition < mItemCount - 1) { in correctTooLow()
1474 fillDown(lastPosition + 1, lastChild.getBottom() + mDividerHeight); in correctTooLow()
1478 } else if (lastPosition == mItemCount - 1) { in correctTooLow()
DAbsListView.java4807 final int lastPosition = firstPosition + childCount;
4808 return lastPosition < mItemCount || lastBottom > getHeight() - listPadding.bottom;
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
DDayPickerView.java323 int lastPosition = getLastVisiblePosition(); in run() local
324 boolean scroll = firstPosition != 0 && lastPosition != getCount() - 1; in run()
/frameworks/base/core/java/com/android/internal/widget/
DAutoScrollHelper.java901 final int lastPosition = firstPosition + childCount; in canTargetScrollVertically() local
905 if (lastPosition >= itemCount) { in canTargetScrollVertically()