/frameworks/base/core/jni/ |
D | android_view_VelocityTracker.cpp | 58 float vx, vy; member 88 float vx, vy; in computeCurrentVelocity() local 89 mVelocityTracker.getVelocity(id, &vx, &vy); in computeCurrentVelocity() 91 vx = vx * units / 1000; in computeCurrentVelocity() 94 if (vx > maxVelocity) { in computeCurrentVelocity() 95 vx = maxVelocity; in computeCurrentVelocity() 96 } else if (vx < -maxVelocity) { in computeCurrentVelocity() 97 vx = -maxVelocity; in computeCurrentVelocity() 106 velocity.vx = vx; in computeCurrentVelocity() 116 float vx, vy; in getVelocity() local [all …]
|
/frameworks/native/libs/input/ |
D | VelocityControl.cpp | 71 float vx, vy; in move() local 73 if (mVelocityTracker.getVelocity(0, &vx, &vy)) { in move() 74 float speed = hypotf(vx, vy) * scale; in move() 91 vx, vy, speed, scale / mParameters.scale); in move()
|
D | VelocityTracker.cpp | 904 float vx = (position.x - oldestPosition.x) * scale; in getEstimator() local 906 accumVx = (accumVx * lastDuration + vx * duration) / (duration + lastDuration); in getEstimator()
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/octo/ |
D | OctopusDrawable.java | 97 private float vx, vy; in startDrift() 118 vx = clamp(vx + dt_sec * ax, -MAX_VX, MAX_VX); in startDrift() 128 point.x = clamp(point.x + dt_sec * vx, 0, scaledBounds[0]); in startDrift()
|
/frameworks/base/core/java/android/webkit/ |
D | WebViewProvider.java | 259 public void flingScroll(int vx, int vy); in flingScroll() argument
|
D | WebView.java | 2117 public void flingScroll(int vx, int vy) { in flingScroll() argument 2119 mProvider.flingScroll(vx, vy); in flingScroll()
|
/frameworks/base/core/java/android/view/ |
D | ViewRootImpl.java | 5588 final float vx = mVelocityTracker.getXVelocity(mActivePointerId); in process() local 5590 if (!startFling(time, vx, vy)) { in process() 5700 private boolean startFling(long time, float vx, float vy) { in startFling() argument 5702 Log.d(LOCAL_TAG, "Considering fling: vx=" + vx + ", vy=" + vy in startFling() 5709 if (-vx >= mConfigMinFlingVelocity in startFling() 5711 mFlingVelocity = -vx; in startFling() 5717 if (vx >= mConfigMinFlingVelocity in startFling() 5719 mFlingVelocity = vx; in startFling() 5726 && Math.abs(vx) < mConfigMinFlingVelocity) { in startFling() 5734 && Math.abs(vx) < mConfigMinFlingVelocity) { in startFling()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | RecyclerView.java | 4794 public void smoothScrollBy(int dx, int dy, int vx, int vy) { in smoothScrollBy() argument 4795 smoothScrollBy(dx, dy, computeScrollDuration(dx, dy, vx, vy)); in smoothScrollBy() 4804 private int computeScrollDuration(int dx, int dy, int vx, int vy) { in computeScrollDuration() argument 4808 final int velocity = (int) Math.sqrt(vx * vx + vy * vy); in computeScrollDuration()
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | RecyclerView.java | 4991 public void smoothScrollBy(int dx, int dy, int vx, int vy) { in smoothScrollBy() argument 4992 smoothScrollBy(dx, dy, computeScrollDuration(dx, dy, vx, vy)); in smoothScrollBy() 5001 private int computeScrollDuration(int dx, int dy, int vx, int vy) { in computeScrollDuration() argument 5005 final int velocity = (int) Math.sqrt(vx * vx + vy * vy); in computeScrollDuration()
|
/frameworks/native/services/inputflinger/ |
D | InputReader.cpp | 5608 float vx, vy; in preparePointerGestures() local 5609 if (mPointerGesture.velocityTracker.getVelocity(id, &vx, &vy)) { in preparePointerGestures() 5610 float speed = hypotf(vx, vy); in preparePointerGestures()
|