Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/policy/
DPipSnapAlgorithm.java122 public Point getEdgeIntersect(Rect stackBounds, Rect movementBounds, float velX, float velY, in getEdgeIntersect() argument
129 final float slope = velY / velX; // slope = rise / run in getEdgeIntersect()
143 horizPoint.y = velY > 0 ? movementBounds.bottom : movementBounds.top; in getEdgeIntersect()
155 maxDistance = velY > 0 in getEdgeIntersect()
168 int distance = (int) (0 - Math.pow(isLandscape ? velX : velY, 2)) in getEdgeIntersect()
175 horizPoint.y = stackBounds.top + (velY > 0 ? distance : -distance); in getEdgeIntersect()
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipMotionHelper.java463 private Point getDismissEndPoint(Rect pipBounds, float velX, float velY, boolean isFling) { in getDismissEndPoint() argument
467 if (isFling && velX != 0 && velY != 0) { in getDismissEndPoint()
470 final float slope = velY / velX; in getDismissEndPoint()
487 public boolean isGestureToDismissArea(Rect pipBounds, float velX, float velY, in isGestureToDismissArea() argument
489 Point endpoint = getDismissEndPoint(pipBounds, velX, velY, isFling); in isGestureToDismissArea()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DTaskStackViewScroller.java159 public void fling(float downScrollP, int downY, int y, int velY, int minY, int maxY, in fling() argument
163 ", velY: " + velY + ", minY: " + minY + ", maxY: " + maxY); in fling()
167 mScroller.fling(0, y, 0, velY, 0, 0, minY, maxY, 0, overscroll); in fling()
/frameworks/base/core/java/com/android/internal/widget/
DRecyclerView.java4709 int velY = 0; in run() local
4711 velY = overscrollY < 0 ? -vel : overscrollY > 0 ? vel : 0; in run()
4715 absorbGlows(velX, velY); in run()
4718 && (velY != 0 || overscrollY == y || scroller.getFinalY() == 0)) { in run()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DRecyclerView.java4903 int velY = 0; in run() local
4905 velY = overscrollY < 0 ? -vel : overscrollY > 0 ? vel : 0; in run()
4909 absorbGlows(velX, velY); in run()
4912 && (velY != 0 || overscrollY == y || scroller.getFinalY() == 0)) { in run()