/frameworks/native/libs/input/ |
D | VelocityTracker.cpp | 786 return mPointerState[pointerId].vel; in getVelocity() 799 state.vel = 0; in initState() 814 float vel = (pos - state.pos) / dt; in updateState() local 816 state.vel = vel; in updateState() 821 state.vel += (vel - state.vel) * alpha; in updateState() 823 float accel = (vel - state.vel) / dt; in updateState() 830 state.vel += (state.accel * dt) * alpha; in updateState()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/animation/ |
D | StackAnimationControllerTest.java | 322 DynamicAnimation.ViewProperty property, float vel, float friction, in flingThenSpringFirstBubbleWithStackFollowing() argument 326 property, vel, friction, spring, finalPosition)); in flingThenSpringFirstBubbleWithStackFollowing() 331 SpringForce spring, float vel, float finalPosition, Runnable... after) { in springFirstBubbleWithStackFollowing() argument 334 property, spring, vel, finalPosition, after)); in springFirstBubbleWithStackFollowing()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/ |
D | PipTouchHandler.java | 882 final PointF vel = touchState.getVelocity(); in onUp() local 896 if (mEnableStash && shouldStash(vel, getPossiblyMotionBounds())) { in onUp() 897 mMotionHelper.stashToEdge(vel.x, vel.y, this::stashEndAction /* endAction */); in onUp() 905 mMotionHelper.flingToSnapTarget(vel.x, vel.y, in onUp() 988 private boolean shouldStash(PointF vel, Rect motionBounds) { 989 final boolean flingToLeft = vel.x < -mStashVelocityThreshold; 990 final boolean flingToRight = vel.x > mStashVelocityThreshold;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/ |
D | NotificationPanelViewController.java | 2118 private void fling(float vel) { in fling() argument 2120 mGestureRecorder.tag("fling " + ((vel > 0) ? "open" : "closed"), in fling() 2121 "notifications,v=" + vel); in fling() 2123 fling(vel, true, 1.0f /* collapseSpeedUpFactor */, false); in fling() 2127 void flingToHeight(float vel, boolean expand, float target, in flingToHeight() argument 2134 mShadeRepository.setCurrentFling(new FlingInfo(expand, vel)); in flingToHeight() 2146 && vel >= 0; in flingToHeight() 2154 MathUtils.saturate(vel in flingToHeight() 2162 if (expandBecauseOfFalsing && vel < 0) { in flingToHeight() 2163 vel = 0; in flingToHeight() [all …]
|
D | QuickSettingsControllerImpl.java | 1898 void flingQs(float vel, int type) { in flingQs() argument 1899 flingQs(vel, type, null /* onFinishRunnable */, false /* isClick */); in flingQs() 1910 private void flingQs(float vel, int type, final Runnable onFinishRunnable, in flingQs() argument 1943 if (vel > 0 && !expanding || vel < 0 && expanding) { in flingQs() 1944 vel = 0; in flingQs() 1955 target, vel); in flingQs() 2000 float vel = getCurrentVelocity(); in flingQsWithCurrentVelocity() local 2002 boolean expandsQs = mPanelViewControllerLazy.get().flingExpandsQs(vel); in flingQsWithCurrentVelocity() 2009 } else if (vel < 0) { in flingQsWithCurrentVelocity() 2021 flingQs(vel, flingType); in flingQsWithCurrentVelocity() [all …]
|
D | ShadeLogger.kt | 279 vel: Float, in logFlingExpands() 291 long1 = vel.toLong() in logFlingExpands()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/ |
D | PipTouchHandler.java | 891 final PointF vel = touchState.getVelocity(); in onUp() local 905 if (mEnableStash && shouldStash(vel, getPossiblyMotionBounds())) { in onUp() 915 mMotionHelper.flingToSnapTarget(vel.x, vel.y, in onUp() 998 private boolean shouldStash(PointF vel, Rect motionBounds) { 999 final boolean flingToLeft = vel.x < -mStashVelocityThreshold; 1000 final boolean flingToRight = vel.x > mStashVelocityThreshold;
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/animation/ |
D | StackAnimationController.java | 448 float vel, 473 .setStartVelocity(vel) 621 float vel, float finalPosition, @Nullable Runnable... after) { in springFirstBubbleWithStackFollowing() argument 658 .setStartVelocity(vel); in springFirstBubbleWithStackFollowing()
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | KeyboardView.java | 1551 float vel = (dist/dur) * units; // pixels/frame. in computeCurrentVelocity() local 1552 if (accumX == 0) accumX = vel; in computeCurrentVelocity() 1553 else accumX = (accumX + vel) * .5f; in computeCurrentVelocity() 1556 vel = (dist/dur) * units; // pixels/frame. in computeCurrentVelocity() 1557 if (accumY == 0) accumY = vel; in computeCurrentVelocity() 1558 else accumY = (accumY + vel) * .5f; in computeCurrentVelocity()
|
/frameworks/native/include/input/ |
D | VelocityTracker.h | 255 float pos, vel, accel; member
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | RecyclerView.java | 4824 final int vel = (int) scroller.getCurrVelocity(); in run() local 4828 velX = overscrollX < 0 ? -vel : overscrollX > 0 ? vel : 0; in run() 4833 velY = overscrollY < 0 ? -vel : overscrollY > 0 ? vel : 0; in run()
|
/frameworks/base/core/java/android/widget/ |
D | AbsListView.java | 5024 final int vel = (int) mScroller.getCurrVelocity(); 5026 mEdgeGlowTop.onAbsorb(vel); 5028 mEdgeGlowBottom.onAbsorb(vel);
|