Home
last modified time | relevance | path

Searched refs:vy (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/core/jni/
Dandroid_view_VelocityTracker.cpp58 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/
DVelocityControl.cpp71 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()
DVelocityTracker.cpp906 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/
DWebViewProvider.java250 public void flingScroll(int vx, int vy); in flingScroll() argument
DWebView.java2017 public void flingScroll(int vx, int vy) { in flingScroll() argument
2019 mProvider.flingScroll(vx, vy); in flingScroll()
/frameworks/base/core/java/android/view/
DViewRootImpl.java5200 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/
DRecyclerView.java4474 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/
DInputReader.cpp5363 float vx, vy; in preparePointerGestures() local
5364 if (mPointerGesture.velocityTracker.getVelocity(id, &vx, &vy)) { in preparePointerGestures()
5365 float speed = hypotf(vx, vy); in preparePointerGestures()