Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
DListWithScreenOfNoSelectablesTest.java71 final int lastPosition = mListView.getCount() - 1; in testPanDownAcrossUnselectableChildrenToBottom() local
73 …for(int count = 0; count < maxDowns && mListView.getLastVisiblePosition() <= lastPosition; count++… in testPanDownAcrossUnselectableChildrenToBottom()
77 + "after " + maxDowns + " downs", lastPosition, mListView.getLastVisiblePosition()); in testPanDownAcrossUnselectableChildrenToBottom()
/frameworks/support/core-ui/java/android/support/v4/widget/
DListViewAutoScrollHelper.java56 final int lastPosition = firstPosition + childCount; in canTargetScrollVertically() local
60 if (lastPosition >= itemCount) { in canTargetScrollVertically()
/frameworks/support/compat/java/android/support/v4/widget/
DListViewCompat.java79 final int lastPosition = firstPosition + childCount; in canScrollList() local
80 return lastPosition < listView.getCount() in canScrollList()
/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/support/v7/recyclerview/tests/src/android/support/v7/widget/
DTestResizingRelayoutWithAutoMeasure.java104 final int lastPosition = recyclerView.getAdapter().getItemCount() - 1; in testResizeDuringMeasurements() local
105 smoothScrollToPosition(lastPosition); in testResizeDuringMeasurements()
106 assertThat("test sanity", recyclerView.findViewHolderForAdapterPosition(lastPosition), in testResizeDuringMeasurements()
/frameworks/base/core/java/android/widget/
DGridView.java445 private View fillFromBottom(int lastPosition, int nextBottom) { in fillFromBottom() argument
446 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() local
616 if (lastPosition == mItemCount - 1 && childCount > 0) { in correctTooHigh()
673 final int lastPosition = mFirstPosition + childCount - 1; in correctTooLow() local
677 if (topOffset > 0 && (lastPosition < mItemCount - 1 || lastBottom > end)) { in correctTooLow()
[all …]
DListView.java1529 int lastPosition = mFirstPosition + childCount - 1; in correctTooHigh() local
1530 if (lastPosition == mItemCount - 1 && childCount > 0) { in correctTooHigh()
1597 int lastPosition = mFirstPosition + childCount - 1; in correctTooLow() local
1602 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()
DAbsListView.java5075 final int lastPosition = firstPosition + childCount;
5076 return lastPosition < mItemCount || lastBottom > getHeight() - listPadding.bottom;
/frameworks/support/dynamic-animation/src/android/support/animation/
DSpringAnimation.java227 double lastPosition = mSpring.getFinalPosition(); in updateValueAndVelocity() local
/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()
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/
DAnimatedRecyclerView.java489 int lastPosition = lastParams.getViewLayoutPosition(); in onLayoutChildren() local
505 (position - lastPosition); in onLayoutChildren()