Home
last modified time | relevance | path

Searched refs:vx (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/core/jni/
Dandroid_view_VelocityTracker.cpp57 float vx, vy; member
87 float vx, vy; in computeCurrentVelocity() local
88 mVelocityTracker.getVelocity(id, &vx, &vy); in computeCurrentVelocity()
90 vx = vx * units / 1000; in computeCurrentVelocity()
93 if (vx > maxVelocity) { in computeCurrentVelocity()
94 vx = maxVelocity; in computeCurrentVelocity()
95 } else if (vx < -maxVelocity) { in computeCurrentVelocity()
96 vx = -maxVelocity; in computeCurrentVelocity()
105 velocity.vx = vx; in computeCurrentVelocity()
115 float vx, vy; in getVelocity() local
[all …]
/frameworks/base/libs/androidfw/
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.cpp903 float vx = (position.x - oldestPosition.x) * scale; in getEstimator() local
905 accumVx = (accumVx * lastDuration + vx * duration) / (duration + lastDuration); in getEstimator()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DBeanBag.java147 public float vx, vy; field in BeanBag.Board.Bean
207 vx = randfrange(-40,40) * z; in reset()
213 x=(vx < 0 ? boardw+2*r : -r*4f); in reset()
217 x=(randfrange(0, boardw-3*r)*0.5f + ((vx < 0)?boardw*0.5f:0)); in reset()
224 vx = (vx * 0.75f) + ((grabx - x) / dt) * 0.25f; in update()
229 x = (x + vx * dt); in update()
258 float a = randsign() * clamp(mag(vx, vy) * 0.33f, 0, 1080f); in onTouchEvent()
/frameworks/base/core/java/android/webkit/
DWebViewProvider.java226 public void flingScroll(int vx, int vy); in flingScroll() argument
DWebViewClassic.java4042 int vx = contentToViewX(cx); in contentScrollTo() local
4044 pinScrollTo(vx, vy, animate, 0); in contentScrollTo()
6777 public void flingScroll(int vx, int vy) {
6778 mScroller.fling(getScrollX(), getScrollY(), vx, vy, 0, computeMaxScrollX(), 0,
6791 int vx = (int) mVelocityTracker.getXVelocity();
6820 vx = 0;
6823 if ((maxX == 0 && vy == 0) || (maxY == 0 && vx == 0)) {
6834 float velocity = (float) Math.hypot(vx, vy);
6838 - Math.atan2(vy, vx)));
6841 vx += currentVelocity * mLastVelX / mLastVelocity;
[all …]
DWebView.java1631 public void flingScroll(int vx, int vy) { in flingScroll() argument
1633 mProvider.flingScroll(vx, vy); in flingScroll()
/frameworks/base/core/java/android/view/
DViewRootImpl.java4592 final float vx = mVelocityTracker.getXVelocity(mActivePointerId); in process() local
4594 if (!startFling(time, vx, vy)) { in process()
4704 private boolean startFling(long time, float vx, float vy) { in startFling() argument
4706 Log.d(LOCAL_TAG, "Considering fling: vx=" + vx + ", vy=" + vy in startFling()
4713 if (-vx >= mConfigMinFlingVelocity in startFling()
4715 mFlingVelocity = -vx; in startFling()
4721 if (vx >= mConfigMinFlingVelocity in startFling()
4723 mFlingVelocity = vx; in startFling()
4730 && Math.abs(vx) < mConfigMinFlingVelocity) { in startFling()
4738 && Math.abs(vx) < mConfigMinFlingVelocity) { in startFling()
/frameworks/base/services/input/
DInputReader.cpp4750 float vx, vy; in preparePointerGestures() local
4751 if (mPointerGesture.velocityTracker.getVelocity(id, &vx, &vy)) { in preparePointerGestures()
4752 float speed = hypotf(vx, vy); in preparePointerGestures()