Searched refs:vx (Results 1 - 10 of 10) sorted by relevance

/frameworks/base/core/jni/
H A Dandroid_view_VelocityTracker.cpp58 float vx, vy; member in struct:android::VelocityTrackerState::Velocity
88 float vx, vy; local
89 mVelocityTracker.getVelocity(id, &vx, &vy);
91 vx = vx * units / 1000;
94 if (vx > maxVelocity) {
95 vx = maxVelocity;
96 } else if (vx < -maxVelocity) {
97 vx = -maxVelocity;
106 velocity.vx
116 float vx, vy; local
182 float vx; local
[all...]
/frameworks/native/libs/input/
H A DVelocityControl.cpp71 float vx, vy; local
73 if (mVelocityTracker.getVelocity(0, &vx, &vy)) {
74 float speed = hypotf(vx, vy) * scale;
88 "vx=%0.3f, vy=%0.3f, speed=%0.3f, accel=%0.3f",
91 vx, vy, speed, scale / mParameters.scale);
H A DVelocityTracker.cpp905 float vx = (position.x - oldestPosition.x) * scale; local
907 accumVx = (accumVx * lastDuration + vx * duration) / (duration + lastDuration);
/frameworks/base/packages/EasterEgg/src/com/android/egg/octo/
H A DOctopusDrawable.java97 private float vx, vy;
118 vx = clamp(vx + dt_sec * ax, -MAX_VX, MAX_VX);
128 point.x = clamp(point.x + dt_sec * vx, 0, scaledBounds[0]);
/frameworks/base/core/java/android/webkit/
H A DWebViewProvider.java259 public void flingScroll(int vx, int vy); argument
H A DWebView.java2052 public void flingScroll(int vx, int vy) { argument
2054 mProvider.flingScroll(vx, vy);
/frameworks/base/core/java/android/view/
H A DViewRootImpl.java5569 final float vx = mVelocityTracker.getXVelocity(mActivePointerId);
5571 if (!startFling(time, vx, vy)) {
5681 private boolean startFling(long time, float vx, float vy) { argument
5683 Log.d(LOCAL_TAG, "Considering fling: vx=" + vx + ", vy=" + vy
5690 if (-vx >= mConfigMinFlingVelocity
5692 mFlingVelocity = -vx;
5698 if (vx >= mConfigMinFlingVelocity
5700 mFlingVelocity = vx;
5707 && Math.abs(vx) < mConfigMinFlingVelocit
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DRecyclerView.java4796 public void smoothScrollBy(int dx, int dy, int vx, int vy) { argument
4797 smoothScrollBy(dx, dy, computeScrollDuration(dx, dy, vx, vy));
4806 private int computeScrollDuration(int dx, int dy, int vx, int vy) { argument
4810 final int velocity = (int) Math.sqrt(vx * vx + vy * vy);
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DRecyclerView.java4963 public void smoothScrollBy(int dx, int dy, int vx, int vy) { argument
4964 smoothScrollBy(dx, dy, computeScrollDuration(dx, dy, vx, vy));
4973 private int computeScrollDuration(int dx, int dy, int vx, int vy) { argument
4977 final int velocity = (int) Math.sqrt(vx * vx + vy * vy);
/frameworks/native/services/inputflinger/
H A DInputReader.cpp5485 float vx, vy;
5486 if (mPointerGesture.velocityTracker.getVelocity(id, &vx, &vy)) {
5487 float speed = hypotf(vx, vy);

Completed in 866 milliseconds