Home
last modified time | relevance | path

Searched refs:orientationHelper (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/recyclerview/
DDefaultScrollBar.java114 OrientationHelper orientationHelper = in initialize() local
118 int layoutTop = orientationHelper.getStartAfterPadding() + mPaddingStart; in initialize()
129 int downBottom = orientationHelper.getEndAfterPadding() - mPaddingEnd; in initialize()
391 OrientationHelper orientationHelper = in pageUp() local
393 int screenSize = orientationHelper.getTotalSpace(); in pageUp()
405 if (orientationHelper.getDecoratedEnd(child) < screenSize) { in pageUp()
407 scrollDistance = screenSize - orientationHelper.getDecoratedEnd(child); in pageUp()
408 } else if (-screenSize < orientationHelper.getDecoratedStart(child) in pageUp()
409 && orientationHelper.getDecoratedStart(child) < 0) { in pageUp()
412 scrollDistance = Math.abs(orientationHelper.getDecoratedStart(child)); in pageUp()
[all …]
DCarUiSnapHelper.java203 OrientationHelper orientationHelper = getOrientationHelper(layoutManager); in findSnapView() local
208 return isValidSnapView(firstChild, orientationHelper) ? firstChild : null; in findSnapView()
222 && orientationHelper.getDecoratedStart(firstChild) < 0 in findSnapView()
224 && orientationHelper.getDecoratedEnd(firstChild) > ( in findSnapView()
237 ? getPercentageVisible(lastVisibleChild, orientationHelper) : 0; in findSnapView()
246 int startOffset = orientationHelper.getDecoratedStart(child); in findSnapView()
249 float percentageVisible = getPercentageVisible(child, orientationHelper); in findSnapView()
273 return isValidSnapView(childToReturn, orientationHelper) ? childToReturn : null; in findSnapView()
421 OrientationHelper orientationHelper = getOrientationHelper(layoutManager); in calculateScrollDistance() local
423 float percentageVisible = getPercentageVisible(lastChild, orientationHelper); in calculateScrollDistance()
[all …]
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/widget/
DCarScrollBar.java142 OrientationHelper orientationHelper = in initialize() local
146 int layoutTop = orientationHelper.getStartAfterPadding() + mPaddingStart; in initialize()
157 int downBottom = orientationHelper.getEndAfterPadding() - mPaddingEnd; in initialize()
550 OrientationHelper orientationHelper = in pageUp() local
552 int screenSize = orientationHelper.getTotalSpace(); in pageUp()
565 if (orientationHelper.getDecoratedEnd(child) < screenSize) { in pageUp()
567 scrollDistance = screenSize - orientationHelper.getDecoratedEnd(child); in pageUp()
568 } else if (-screenSize < orientationHelper.getDecoratedStart(child) in pageUp()
569 && orientationHelper.getDecoratedStart(child) < 0) { in pageUp()
572 scrollDistance = Math.abs(orientationHelper.getDecoratedStart(child)); in pageUp()
[all …]
DPagedSnapHelper.java74 OrientationHelper orientationHelper = getOrientationHelper(layoutManager); in findSnapView() local
77 <= orientationHelper.getTotalSpace() in findSnapView()
214 OrientationHelper orientationHelper = getOrientationHelper(layoutManager); in calculateScrollDistance() local
216 float percentageVisible = getPercentageVisible(lastChild, orientationHelper); in calculateScrollDistance()
242 OrientationHelper orientationHelper = layoutManager.canScrollVertically() in isAtStart() local
247 return orientationHelper.getDecoratedStart(firstChild) in isAtStart()
248 >= orientationHelper.getStartAfterPadding() in isAtStart()
259 OrientationHelper orientationHelper = layoutManager.canScrollVertically() in isAtEnd() local
269 <= orientationHelper.getEndAfterPadding(); in isAtEnd()