Searched refs:vy (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);
92 vy = vy * units / 1000;
99 if (vy > maxVelocity) {
100 vy = maxVelocity;
101 } else if (vy < -maxVelocity) {
102 vy = -maxVelocity;
107 velocity.vy
116 float vx, vy; local
190 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.cpp958 float vy = (position.y - oldestPosition.y) * scale; local
960 accumVy = (accumVy * lastDuration + vy * duration) / (duration + lastDuration);
/frameworks/base/packages/EasterEgg/src/com/android/egg/octo/
H A DOctopusDrawable.java97 private float vx, vy;
105 vy = JUMP_VY;
119 vy = clamp(vy + dt_sec * ay, -100*MAX_VY, MAX_VY);
123 vy = JUMP_VY;
125 vy = MAX_VY;
129 point.y = point.y + dt_sec * vy;
/frameworks/base/core/java/android/webkit/
H A DWebViewProvider.java260 public void flingScroll(int vx, int vy); argument
H A DWebView.java2250 public void flingScroll(int vx, int vy) { argument
2252 mProvider.flingScroll(vx, vy);
/frameworks/base/core/java/android/view/
H A DViewRootImpl.java5988 final float vy = mVelocityTracker.getYVelocity(mActivePointerId);
5989 if (!startFling(time, vx, vy)) {
6099 private boolean startFling(long time, float vx, float vy) { argument
6101 Log.d(LOCAL_TAG, "Considering fling: vx=" + vx + ", vy=" + vy
6109 && Math.abs(vy) < mConfigMinFlingVelocity) {
6117 && Math.abs(vy) < mConfigMinFlingVelocity) {
6124 if (-vy >= mConfigMinFlingVelocity
6126 mFlingVelocity = -vy;
6132 if (vy >
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DRecyclerView.java4794 public void smoothScrollBy(int dx, int dy, int vx, int vy) { argument
4795 smoothScrollBy(dx, dy, computeScrollDuration(dx, dy, vx, vy));
4804 private int computeScrollDuration(int dx, int dy, int vx, int vy) { argument
4808 final int velocity = (int) Math.sqrt(vx * vx + vy * vy);
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
H A DRecyclerView.java5145 public void smoothScrollBy(int dx, int dy, int vx, int vy) { argument
5146 smoothScrollBy(dx, dy, computeScrollDuration(dx, dy, vx, vy));
5155 private int computeScrollDuration(int dx, int dy, int vx, int vy) { argument
5159 final int velocity = (int) Math.sqrt(vx * vx + vy * vy);
/frameworks/native/services/inputflinger/
H A DInputReader.cpp5627 float vx, vy;
5628 if (mPointerGesture.velocityTracker.getVelocity(id, &vx, &vy)) {
5629 float speed = hypotf(vx, vy);

Completed in 115 milliseconds