Home
last modified time | relevance | path

Searched refs:vx (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()
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/
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.cpp902 float vx = (position.x - oldestPosition.x) * scale; in getEstimator() local
904 accumVx = (accumVx * lastDuration + vx * duration) / (duration + lastDuration); in getEstimator()
/frameworks/base/core/java/android/webkit/
DWebViewProvider.java247 public void flingScroll(int vx, int vy); in flingScroll() argument
DWebView.java1973 public void flingScroll(int vx, int vy) { in flingScroll() argument
1975 mProvider.flingScroll(vx, vy); in flingScroll()
/frameworks/base/core/java/android/view/
DViewRootImpl.java4936 final float vx = mVelocityTracker.getXVelocity(mActivePointerId); in process() local
4938 if (!startFling(time, vx, vy)) { in process()
5048 private boolean startFling(long time, float vx, float vy) { in startFling() argument
5050 Log.d(LOCAL_TAG, "Considering fling: vx=" + vx + ", vy=" + vy in startFling()
5057 if (-vx >= mConfigMinFlingVelocity in startFling()
5059 mFlingVelocity = -vx; in startFling()
5065 if (vx >= mConfigMinFlingVelocity in startFling()
5067 mFlingVelocity = vx; in startFling()
5074 && Math.abs(vx) < mConfigMinFlingVelocity) { in startFling()
5082 && Math.abs(vx) < mConfigMinFlingVelocity) { in startFling()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DRecyclerView.java4046 public void smoothScrollBy(int dx, int dy, int vx, int vy) { in smoothScrollBy() argument
4047 smoothScrollBy(dx, dy, computeScrollDuration(dx, dy, vx, vy)); in smoothScrollBy()
4056 private int computeScrollDuration(int dx, int dy, int vx, int vy) { in computeScrollDuration() argument
4060 final int velocity = (int) Math.sqrt(vx * vx + vy * vy); in computeScrollDuration()
/frameworks/native/services/inputflinger/
DInputReader.cpp5212 float vx, vy; in preparePointerGestures() local
5213 if (mPointerGesture.velocityTracker.getVelocity(id, &vx, &vy)) { in preparePointerGestures()
5214 float speed = hypotf(vx, vy); in preparePointerGestures()