Searched refs:vy (Results 1 - 9 of 9) sorted by relevance

/frameworks/base/core/jni/
H A Dandroid_view_VelocityTracker.cpp57 float vx, vy; member in struct:android::VelocityTrackerState::Velocity
87 float vx, vy; local
88 mVelocityTracker.getVelocity(id, &vx, &vy);
91 vy = vy * units / 1000;
98 if (vy > maxVelocity) {
99 vy = maxVelocity;
100 } else if (vy < -maxVelocity) {
101 vy = -maxVelocity;
106 velocity.vy
115 float vx, vy; local
189 float vy; 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.cpp903 float vy = (position.y - oldestPosition.y) * scale; local
905 accumVy = (accumVy * lastDuration + vy * duration) / (duration + lastDuration);
/frameworks/base/core/java/android/webkit/
H A DWebViewProvider.java235 public void flingScroll(int vx, int vy); argument
H A DWebView.java1889 public void flingScroll(int vx, int vy) { argument
1892 mProvider.flingScroll(vx, vy);
/frameworks/base/core/java/android/view/
H A DViewRootImpl.java4830 final float vy = mVelocityTracker.getYVelocity(mActivePointerId);
4831 if (!startFling(time, vx, vy)) {
4941 private boolean startFling(long time, float vx, float vy) { argument
4943 Log.d(LOCAL_TAG, "Considering fling: vx=" + vx + ", vy=" + vy
4951 && Math.abs(vy) < mConfigMinFlingVelocity) {
4959 && Math.abs(vy) < mConfigMinFlingVelocity) {
4966 if (-vy >= mConfigMinFlingVelocity
4968 mFlingVelocity = -vy;
4974 if (vy >
[all...]
/frameworks/webview/chromium/java/com/android/webview/chromium/
H A DWebViewChromium.java1433 public void flingScroll(final int vx, final int vy) { argument
1438 flingScroll(vx, vy);
1443 mAwContents.flingScroll(vx, vy);
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DRecyclerView.java3190 public void smoothScrollBy(int dx, int dy, int vx, int vy) { argument
3191 smoothScrollBy(dx, dy, computeScrollDuration(dx, dy, vx, vy));
3200 private int computeScrollDuration(int dx, int dy, int vx, int vy) { argument
3204 final int velocity = (int) Math.sqrt(vx * vx + vy * vy);
/frameworks/native/services/inputflinger/
H A DInputReader.cpp4825 float vx, vy;
4826 if (mPointerGesture.velocityTracker.getVelocity(id, &vx, &vy)) {
4827 float speed = hypotf(vx, vy);

Completed in 665 milliseconds