Home
last modified time | relevance | path

Searched refs:firstPosition (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/java/com/android/internal/widget/
DAutoScrollHelper.java900 final int firstPosition = target.getFirstVisiblePosition(); in canTargetScrollVertically() local
901 final int lastPosition = firstPosition + childCount; in canTargetScrollVertically()
913 if (firstPosition <= 0) { in canTargetScrollVertically()
/frameworks/base/core/java/android/widget/
DAbsListView.java2077 final int firstPosition = mFirstPosition; in computeVerticalScrollOffset() local
2079 if (firstPosition >= 0 && childCount > 0) { in computeVerticalScrollOffset()
2085 return Math.max(firstPosition * 100 - (top * 100) / height + in computeVerticalScrollOffset()
2091 if (firstPosition == 0) { in computeVerticalScrollOffset()
2093 } else if (firstPosition + childCount == count) { in computeVerticalScrollOffset()
2096 index = firstPosition + childCount / 2; in computeVerticalScrollOffset()
2098 return (int) (firstPosition + childCount * (index / (float) count)); in computeVerticalScrollOffset()
4661 final int firstPosition = mFirstPosition; in addTouchables() local
4670 if (adapter.isEnabled(firstPosition + i)) { in addTouchables()
5208 final int firstPosition = mFirstPosition;
[all …]
DListView.java1779 final int firstPosition = mFirstPosition; in layoutChildren() local
1783 recycleBin.addScrapView(getChildAt(i), firstPosition+i); in layoutChildren()
1786 recycleBin.fillActiveViews(childCount, firstPosition); in layoutChildren()
3052 final int firstPosition = mFirstPosition; in lookForSelectablePositionOnScreen() local
3056 firstPosition; in lookForSelectablePositionOnScreen()
3060 if (startPos < firstPosition) { in lookForSelectablePositionOnScreen()
3061 startPos = firstPosition; in lookForSelectablePositionOnScreen()
3068 && getChildAt(pos - firstPosition).getVisibility() == View.VISIBLE) { in lookForSelectablePositionOnScreen()
3073 int last = firstPosition + getChildCount() - 1; in lookForSelectablePositionOnScreen()
3076 firstPosition + getChildCount() - 1; in lookForSelectablePositionOnScreen()
[all …]
DGallery.java508 int firstPosition = mFirstPosition; in detachOffScreenChildren() local
522 mRecycler.put(firstPosition + n, child); in detachOffScreenChildren()
538 mRecycler.put(firstPosition + n, child); in detachOffScreenChildren()
DGridView.java1279 final int firstPosition = mFirstPosition; in layoutChildren() local
1284 recycleBin.addScrapView(getChildAt(i), firstPosition+i); in layoutChildren()
1287 recycleBin.fillActiveViews(childCount, firstPosition); in layoutChildren()