Searched refs:vy (Results 1 – 8 of 8) sorted by relevance
/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() 92 vy = vy * units / 1000; in computeCurrentVelocity() 99 if (vy > maxVelocity) { in computeCurrentVelocity() 100 vy = maxVelocity; in computeCurrentVelocity() 101 } else if (vy < -maxVelocity) { in computeCurrentVelocity() 102 vy = -maxVelocity; in computeCurrentVelocity() 107 velocity.vy = vy; 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 | 906 float vy = (position.y - oldestPosition.y) * scale; in getEstimator() local 908 accumVy = (accumVy * lastDuration + vy * duration) / (duration + lastDuration); in getEstimator()
|
/frameworks/base/core/java/android/webkit/ |
D | WebViewProvider.java | 250 public void flingScroll(int vx, int vy); in flingScroll() argument
|
D | WebView.java | 2017 public void flingScroll(int vx, int vy) { in flingScroll() argument 2019 mProvider.flingScroll(vx, vy); in flingScroll()
|
/frameworks/base/core/java/android/view/ |
D | ViewRootImpl.java | 5200 final float vy = mVelocityTracker.getYVelocity(mActivePointerId); in process() local 5201 if (!startFling(time, vx, vy)) { in process() 5311 private boolean startFling(long time, float vx, float vy) { in startFling() argument 5313 Log.d(LOCAL_TAG, "Considering fling: vx=" + vx + ", vy=" + vy in startFling() 5321 && Math.abs(vy) < mConfigMinFlingVelocity) { in startFling() 5329 && Math.abs(vy) < mConfigMinFlingVelocity) { in startFling() 5336 if (-vy >= mConfigMinFlingVelocity in startFling() 5338 mFlingVelocity = -vy; in startFling() 5344 if (vy >= mConfigMinFlingVelocity in startFling() 5346 mFlingVelocity = vy; in startFling()
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | RecyclerView.java | 4474 public void smoothScrollBy(int dx, int dy, int vx, int vy) { in smoothScrollBy() argument 4475 smoothScrollBy(dx, dy, computeScrollDuration(dx, dy, vx, vy)); in smoothScrollBy() 4484 private int computeScrollDuration(int dx, int dy, int vx, int vy) { in computeScrollDuration() argument 4488 final int velocity = (int) Math.sqrt(vx * vx + vy * vy); in computeScrollDuration()
|
/frameworks/native/services/inputflinger/ |
D | InputReader.cpp | 5363 float vx, vy; in preparePointerGestures() local 5364 if (mPointerGesture.velocityTracker.getVelocity(id, &vx, &vy)) { in preparePointerGestures() 5365 float speed = hypotf(vx, vy); in preparePointerGestures()
|