Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/widget/
DLinearSmoothScroller.java232 PointF scrollVector = computeScrollVectorForPosition(getTargetPosition()); in updateActionForInterimTarget() local
233 if (scrollVector == null || (scrollVector.x == 0 && scrollVector.y == 0)) { in updateActionForInterimTarget()
239 normalize(scrollVector); in updateActionForInterimTarget()
240 mTargetVector = scrollVector; in updateActionForInterimTarget()
242 mInterimTargetDx = (int) (TARGET_SEEK_SCROLL_DISTANCE_PX * scrollVector.x); in updateActionForInterimTarget()
243 mInterimTargetDy = (int) (TARGET_SEEK_SCROLL_DISTANCE_PX * scrollVector.y); in updateActionForInterimTarget()
DRecyclerView.java10907 protected void normalize(PointF scrollVector) { in normalize() argument
10908 final double magnitude = Math.sqrt(scrollVector.x * scrollVector.x + scrollVector.y in normalize()
10909 * scrollVector.y); in normalize()
10910 scrollVector.x /= magnitude; in normalize()
10911 scrollVector.y /= magnitude; in normalize()