Home
last modified time | relevance | path

Searched refs:scrollCenter (Results 1 – 2 of 2) sorted by relevance

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DScrollAdapterView.java571 private int findViewIndexContainingScrollCenter(int scrollCenter, int scrollCenterOffAxis,
584 if (hasScrollPosition(centerMain, getSize(view), scrollCenter)
588 if (mScroll.isMainAxisMovingForward() && centerMain < scrollCenter) {
592 } else if (!mScroll.isMainAxisMovingForward() && centerMain > scrollCenter) {
1043 int scrollCenter = getScrollCenter(child);
1044 mScroll.mainAxis().updateScrollMin(scrollCenter, getScrollLow(scrollCenter, child));
1051 int scrollCenter = getScrollCenter(child);
1052 mScroll.mainAxis().updateScrollMax(scrollCenter, getScrollHigh(scrollCenter, child));
1482 int scrollCenter = getScrollCenter(child);
1484 while (scrollCenter < finalLocation) {
[all …]
DScrollController.java479 final public int getSystemScrollPos(int scrollCenter) { in getSystemScrollPos() argument
480 scrollCenter += mAlignExtraOffset; in getSystemScrollPos()
485 return scrollCenter - mScrollCenterOffset + compensate; in getSystemScrollPos()
487 return scrollCenter - (mSize - mScrollCenterOffset) + compensate; in getSystemScrollPos()
489 return (int) (scrollCenter - mScrollCenterOffset - mSize in getSystemScrollPos()
531 if (scrollCenter - mMinEdge + extraSpaceLow <= middlePosition) { in getSystemScrollPos()
539 if (mMaxEdge - scrollCenter + spaceAfterScrollCenter <= afterMiddlePosition) { in getSystemScrollPos()
546 return scrollCenter - middlePosition - mPaddingLow + extraSpaceLow; in getSystemScrollPos()
569 if (scrollCenter + shift - mMinEdge <= middlePosition) { in getSystemScrollPos()
576 if (mMaxEdge - scrollCenter - shift + mExpandedSize <= afterMiddlePosition) { in getSystemScrollPos()
[all …]