Home
last modified time | relevance | path

Searched refs:vel (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPanelView.java432 float vel = 0f; in endMotionEvent() local
436 vel = mVelocityTracker.getYVelocity(); in endMotionEvent()
440 boolean expand = flingExpands(vel, vectorVel, x, y) in endMotionEvent()
450 int velocityDp = (int) Math.abs(vel / displayDensity); in endMotionEvent()
455 fling(vel, expand, isFalseTouch(x, y)); in endMotionEvent()
459 mUpdateFlingVelocity = vel; in endMotionEvent()
661 protected boolean flingExpands(float vel, float vectorVel, float x, float y) { in flingExpands() argument
668 return vel > 0; in flingExpands()
693 protected void fling(float vel, boolean expand) { in fling() argument
694 fling(vel, expand, 1.0f /* collapseSpeedUpFactor */, false); in fling()
[all …]
DKeyguardAffordanceHelper.java319 float vel = getCurrentVelocity(lastX, lastY); in flingWithCurrentVelocity() local
329 boolean velIsInWrongDirection = vel * mTranslation < 0; in flingWithCurrentVelocity()
330 snapBack |= Math.abs(vel) > mMinFlingVelocity && velIsInWrongDirection; in flingWithCurrentVelocity()
331 vel = snapBack ^ velIsInWrongDirection ? 0 : vel; in flingWithCurrentVelocity()
332 fling(vel, snapBack || forceSnapBack, mTranslation < 0); in flingWithCurrentVelocity()
344 private void fling(float vel, final boolean snapBack, boolean right) { in fling() argument
350 mFlingAnimationUtils.apply(animator, mTranslation, target, vel); in fling()
359 startFinishingCircleAnimation(vel * 0.375f, mAnimationEndRunnable, right); in fling()
360 mCallback.onAnimationToSideStarted(right, mTranslation, vel); in fling()
565 void onAnimationToSideStarted(boolean rightPage, float translation, float vel); in onAnimationToSideStarted() argument
DNotificationPanelView.java580 public void fling(float vel, boolean expand) { in fling() argument
583 gr.tag("fling " + ((vel > 0) ? "open" : "closed"), "notifications,v=" + vel); in fling()
585 super.fling(vel, expand); in fling()
589 protected void flingToHeight(float vel, boolean expand, float target, in flingToHeight() argument
593 super.flingToHeight(vel, expand, target, collapseSpeedUpFactor, expandBecauseOfFalsing); in flingToHeight()
722 float vel = getCurrentQSVelocity(); in flingQsWithCurrentVelocity() local
723 final boolean expandsQs = flingExpandsQs(vel); in flingQsWithCurrentVelocity()
727 flingSettings(vel, expandsQs && !isCancelMotionEvent); in flingQsWithCurrentVelocity()
731 float vel = getCurrentQSVelocity(); in logQsSwipeDown() local
737 (int) (vel / mStatusBar.getDisplayDensity())); in logQsSwipeDown()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipTouchHandler.java629 final PointF vel = touchState.getVelocity();
630 final boolean isHorizontal = Math.abs(vel.x) > Math.abs(vel.y);
631 final float velocity = PointF.length(vel.x, vel.y);
635 && mMotionHelper.isGestureToDismissArea(mMotionHelper.getBounds(), vel.x,
636 vel.y, isFling);
637 final boolean isFlingToBot = isFling && vel.y > 0 && !isHorizontal
642 mMotionHelper.animateDismiss(mMotionHelper.getBounds(), vel.x,
643 vel.y, mUpdateScrimListener);
653 && (mStartedOnLeft ? vel.x < 0 : vel.x > 0);
693 mMotionHelper.flingToSnapTarget(velocity, vel.x, vel.y, mMovementBounds,
/frameworks/base/core/java/android/inputmethodservice/
DKeyboardView.java1536 float vel = (dist/dur) * units; // pixels/frame. in computeCurrentVelocity() local
1537 if (accumX == 0) accumX = vel; in computeCurrentVelocity()
1538 else accumX = (accumX + vel) * .5f; in computeCurrentVelocity()
1541 vel = (dist/dur) * units; // pixels/frame. in computeCurrentVelocity()
1542 if (accumY == 0) accumY = vel; in computeCurrentVelocity()
1543 else accumY = (accumY + vel) * .5f; in computeCurrentVelocity()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DRecyclerView.java4868 final int vel = (int) scroller.getCurrVelocity(); in run() local
4872 velX = overscrollX < 0 ? -vel : overscrollX > 0 ? vel : 0; in run()
4877 velY = overscrollY < 0 ? -vel : overscrollY > 0 ? vel : 0; in run()
/frameworks/base/core/java/android/widget/
DAbsListView.java4668 final int vel = (int) mScroller.getCurrVelocity();
4670 mEdgeGlowTop.onAbsorb(vel);
4672 mEdgeGlowBottom.onAbsorb(vel);