/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | PanelView.java | 472 float vel = mVelocityTracker.getYVelocity(); in endMotionEvent() local 476 boolean expand = flingExpands(vel, vectorVel, x, y) in endMotionEvent() 486 int velocityDp = (int) Math.abs(vel / displayDensity); in endMotionEvent() 491 fling(vel, expand, isFalseTouch(x, y)); in endMotionEvent() 495 mUpdateFlingVelocity = vel; in endMotionEvent() 678 protected boolean flingExpands(float vel, float vectorVel, float x, float y) { in flingExpands() argument 689 return vel > 0; in flingExpands() 718 protected void fling(float vel, boolean expand) { in fling() argument 719 fling(vel, expand, 1.0f /* collapseSpeedUpFactor */, false); in fling() 722 protected void fling(float vel, boolean expand, boolean expandBecauseOfFalsing) { in fling() argument [all …]
|
D | KeyguardAffordanceHelper.java | 314 float vel = getCurrentVelocity(lastX, lastY); in flingWithCurrentVelocity() local 324 boolean velIsInWrongDirection = vel * mTranslation < 0; in flingWithCurrentVelocity() 325 snapBack |= Math.abs(vel) > mMinFlingVelocity && velIsInWrongDirection; in flingWithCurrentVelocity() 326 vel = snapBack ^ velIsInWrongDirection ? 0 : vel; in flingWithCurrentVelocity() 327 fling(vel, snapBack || forceSnapBack, mTranslation < 0); in flingWithCurrentVelocity() 339 private void fling(float vel, final boolean snapBack, boolean right) { in fling() argument 345 mFlingAnimationUtils.apply(animator, mTranslation, target, vel); in fling() 354 startFinishingCircleAnimation(vel * 0.375f, mAnimationEndRunnable, right); in fling() 355 mCallback.onAnimationToSideStarted(right, mTranslation, vel); in fling() 553 void onAnimationToSideStarted(boolean rightPage, float translation, float vel); in onAnimationToSideStarted() argument
|
D | NotificationPanelView.java | 1004 public void fling(float vel, boolean expand) { in fling() argument 1007 gr.tag("fling " + ((vel > 0) ? "open" : "closed"), "notifications,v=" + vel); in fling() 1009 super.fling(vel, expand); in fling() 1013 protected void flingToHeight(float vel, boolean expand, float target, in flingToHeight() argument 1017 super.flingToHeight(vel, expand, target, collapseSpeedUpFactor, expandBecauseOfFalsing); in flingToHeight() 1158 float vel = getCurrentQSVelocity(); in flingQsWithCurrentVelocity() local 1159 final boolean expandsQs = flingExpandsQs(vel); in flingQsWithCurrentVelocity() 1163 flingSettings(vel, expandsQs && !isCancelMotionEvent ? FLING_EXPAND : FLING_COLLAPSE); in flingQsWithCurrentVelocity() 1167 float vel = getCurrentQSVelocity(); in logQsSwipeDown() local 1173 (int) (vel / mStatusBar.getDisplayDensity())); in logQsSwipeDown() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/ |
D | PipTouchHandler.java | 687 final PointF vel = touchState.getVelocity(); 688 final boolean isHorizontal = Math.abs(vel.x) > Math.abs(vel.y); 689 final float velocity = PointF.length(vel.x, vel.y); 693 && mMotionHelper.isGestureToDismissArea(mMotionHelper.getBounds(), vel.x, 694 vel.y, isFling); 695 final boolean isFlingToBot = isFling && vel.y > 0 && !isHorizontal 702 mMotionHelper.animateDismiss(mMotionHelper.getBounds(), vel.x, 703 vel.y, mUpdateScrimListener); 710 && (mStartedOnLeft ? vel.x < 0 : vel.x > 0); 750 mMotionHelper.flingToSnapTarget(velocity, vel.x, vel.y, mMovementBounds,
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bubbles/animation/ |
D | StackAnimationControllerTest.java | 333 DynamicAnimation.ViewProperty property, float vel, float friction, in flingThenSpringFirstBubbleWithStackFollowing() argument 337 property, vel, friction, spring, finalPosition)); in flingThenSpringFirstBubbleWithStackFollowing() 342 SpringForce spring, float vel, float finalPosition, Runnable... after) { in springFirstBubbleWithStackFollowing() argument 345 property, spring, vel, finalPosition, after)); in springFirstBubbleWithStackFollowing()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/animation/ |
D | StackAnimationController.java | 333 float vel, 354 .setStartVelocity(vel) 580 float vel, float finalPosition, @Nullable Runnable... after) { 601 .setStartVelocity(vel);
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | KeyboardView.java | 1549 float vel = (dist/dur) * units; // pixels/frame. in computeCurrentVelocity() local 1550 if (accumX == 0) accumX = vel; in computeCurrentVelocity() 1551 else accumX = (accumX + vel) * .5f; in computeCurrentVelocity() 1554 vel = (dist/dur) * units; // pixels/frame. in computeCurrentVelocity() 1555 if (accumY == 0) accumY = vel; in computeCurrentVelocity() 1556 else accumY = (accumY + vel) * .5f; in computeCurrentVelocity()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | RecyclerView.java | 4703 final int vel = (int) scroller.getCurrVelocity(); in run() local 4707 velX = overscrollX < 0 ? -vel : overscrollX > 0 ? vel : 0; in run() 4712 velY = overscrollY < 0 ? -vel : overscrollY > 0 ? vel : 0; in run()
|
/frameworks/base/core/java/android/widget/ |
D | AbsListView.java | 4743 final int vel = (int) mScroller.getCurrVelocity(); 4745 mEdgeGlowTop.onAbsorb(vel); 4747 mEdgeGlowBottom.onAbsorb(vel);
|