Home
last modified time | relevance | path

Searched refs:velX (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleTouchHandler.java158 final float velX = mVelocityTracker.getXVelocity(); in onTouch() local
164 mTouchedView, mInDismissTarget, viewX, viewY, velX, velY); in onTouch()
176 final float velX = mVelocityTracker.getXVelocity(); in onTouch() local
182 || isFastFlingTowardsDismissTarget(rawX, rawY, velX, velY) in onTouch()
187 mStack.onFlyoutDragFinished(rawX - mTouchDown.x /* deltaX */, velX); in onTouch()
191 mStack.magnetToStackIfNeededThenAnimateDismissal(mTouchedView, velX, velY, in onTouch()
207 mStack.onDragFinish(viewX, viewY, velX, velY); in onTouch()
209 mStack.onBubbleDragFinish(mTouchedView, viewX, viewY, velX, velY); in onTouch()
233 float rawX, float rawY, float velX, float velY) { in isFastFlingTowardsDismissTarget() argument
242 if (velX != 0) { in isFastFlingTowardsDismissTarget()
[all …]
DBubbleStackView.java1062 View bubble, float x, float y, float velX, float velY) { in onBubbleDragFinish() argument
1071 mExpandedAnimationController.snapBubbleBack(bubble, velX, velY); in onBubbleDragFinish()
1099 void onDragFinish(float x, float y, float velX, float velY) { in onDragFinish() argument
1108 final float newStackX = mStackAnimationController.flingStackThenSpringToEdge(x, velX, velY); in onDragFinish()
1174 void onFlyoutDragFinished(float deltaX, float velX) { in onFlyoutDragFinished() argument
1177 onLeft ? velX < -FLYOUT_DISMISS_VELOCITY : velX > FLYOUT_DISMISS_VELOCITY; in onFlyoutDragFinished()
1182 final boolean isCancelFling = onLeft ? velX > 0 : velX < 0; in onFlyoutDragFinished()
1186 animateFlyoutCollapsed(shouldDismiss, velX); in onFlyoutDragFinished()
1241 View magnetView, boolean toTarget, float x, float y, float velX, float velY) {
1258 mStackAnimationController.magnetToDismiss(velX, velY, destY, afterMagnet);
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/animation/
DStackAnimationController.java229 public float flingStackThenSpringToEdge(float x, float velX, float velY) { in flingStackThenSpringToEdge() argument
233 ? velX < ESCAPE_VELOCITY in flingStackThenSpringToEdge()
234 : velX < -ESCAPE_VELOCITY; in flingStackThenSpringToEdge()
259 ? Math.min(minimumVelocityToReachEdge, velX) in flingStackThenSpringToEdge()
260 : Math.max(minimumVelocityToReachEdge, velX); in flingStackThenSpringToEdge()
513 public void demagnetizeFromDismissToPoint(float x, float y, float velX, float velY) {
522 velX, x);
536 public void magnetToDismiss(float velX, float velY, float destY, Runnable after) {
545 velX, mLayout.getWidth() / 2f - mBubbleIconBitmapSize / 2f);
DExpandedAnimationController.java297 View bubbleView, float velX, float velY, float destY, Runnable after) {
303 .withPositionStartVelocities(velX, velY)
313 public void demagnetizeBubbleTo(float x, float y, float velX, float velY) {
320 .withPositionStartVelocities(velX, velY)
329 public void snapBubbleBack(View bubbleView, float velX, float velY) {
334 .withPositionStartVelocities(velX, velY)
DPhysicsAnimationLayout.java838 public PhysicsPropertyAnimator withPositionStartVelocities(float velX, float velY) {
839 mPositionStartVelocities.put(DynamicAnimation.TRANSLATION_X, velX);
/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()
138 vertPoint.x = velX > 0 ? movementBounds.right : movementBounds.left; in getEdgeIntersect()
151 maxDistance = velX > 0 in getEdgeIntersect()
168 int distance = (int) (0 - Math.pow(isLandscape ? velX : velY, 2)) in getEdgeIntersect()
173 horizPoint.x = stackBounds.left + (velX > 0 ? distance : -distance); in getEdgeIntersect()
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipMotionHelper.java476 private Point getDismissEndPoint(Rect pipBounds, float velX, float velY, boolean isFling) { in getDismissEndPoint() argument
480 if (isFling && velX != 0 && velY != 0) { in getDismissEndPoint()
483 final float slope = velY / velX; in getDismissEndPoint()
500 public boolean isGestureToDismissArea(Rect pipBounds, float velX, float velY, in isGestureToDismissArea() argument
502 Point endpoint = getDismissEndPoint(pipBounds, velX, velY, isFling); in isGestureToDismissArea()
/frameworks/base/core/java/com/android/internal/widget/
DRecyclerView.java4705 int velX = 0; in run() local
4707 velX = overscrollX < 0 ? -vel : overscrollX > 0 ? vel : 0; in run()
4716 absorbGlows(velX, velY); in run()
4718 if ((velX != 0 || overscrollX == x || scroller.getFinalX() == 0) in run()