Home
last modified time | relevance | path

Searched refs:vx (Results 1 – 9 of 9) 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.cpp983 float vx = (position.x - oldestPosition.x) * scale; in getEstimator() local
985 accumVx = (accumVx * lastDuration + vx * duration) / (duration + lastDuration); in getEstimator()
/frameworks/layoutlib/bridge/src/android/view/shadow/
DTriangleBuffer.java63 float vx = vert[vIndex * 2 + 0]; in drawTriangles() local
66 float fx3 = vx, fy3 = vy, fz3 = c; in drawTriangles()
69 vx = vert[vIndex * 2 + 0]; in drawTriangles()
72 float fx2 = vx, fy2 = vy, fz2 = c; in drawTriangles()
75 vx = vert[vIndex * 2 + 0]; in drawTriangles()
78 float fx1 = vx, fy1 = vy, fz1 = c; in drawTriangles()
/frameworks/base/core/java/android/webkit/
DWebViewProvider.java271 public void flingScroll(int vx, int vy); in flingScroll() argument
DWebView.java2117 public void flingScroll(int vx, int vy) { in flingScroll() argument
2119 mProvider.flingScroll(vx, vy); in flingScroll()
/frameworks/base/core/java/android/view/
DViewRootImpl.java6538 final float vx = mVelocityTracker.getXVelocity(mActivePointerId);
6540 if (!startFling(time, vx, vy)) {
6650 private boolean startFling(long time, float vx, float vy) {
6652 Log.d(LOCAL_TAG, "Considering fling: vx=" + vx + ", vy=" + vy
6659 if (-vx >= mConfigMinFlingVelocity
6661 mFlingVelocity = -vx;
6667 if (vx >= mConfigMinFlingVelocity
6669 mFlingVelocity = vx;
6676 && Math.abs(vx) < mConfigMinFlingVelocity) {
6684 && Math.abs(vx) < mConfigMinFlingVelocity) {
/frameworks/base/core/java/com/android/internal/widget/
DRecyclerView.java4795 public void smoothScrollBy(int dx, int dy, int vx, int vy) { in smoothScrollBy() argument
4796 smoothScrollBy(dx, dy, computeScrollDuration(dx, dy, vx, vy)); in smoothScrollBy()
4805 private int computeScrollDuration(int dx, int dy, int vx, int vy) { in computeScrollDuration() argument
4809 final int velocity = (int) Math.sqrt(vx * vx + vy * vy); in computeScrollDuration()
/frameworks/native/services/inputflinger/reader/mapper/
DTouchInputMapper.cpp2746 float vx, vy; in preparePointerGestures() local
2747 if (mPointerGesture.velocityTracker.getVelocity(id, &vx, &vy)) { in preparePointerGestures()
2748 float speed = hypotf(vx, vy); in preparePointerGestures()