Searched refs:maxVelocity (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/core/jni/ |
D | android_view_VelocityTracker.cpp | 51 void computeCurrentVelocity(int32_t units, float maxVelocity); 80 void VelocityTrackerState::computeCurrentVelocity(int32_t units, float maxVelocity) { in computeCurrentVelocity() argument 93 if (vx > maxVelocity) { in computeCurrentVelocity() 94 vx = maxVelocity; in computeCurrentVelocity() 95 } else if (vx < -maxVelocity) { in computeCurrentVelocity() 96 vx = -maxVelocity; in computeCurrentVelocity() 98 if (vy > maxVelocity) { in computeCurrentVelocity() 99 vy = maxVelocity; in computeCurrentVelocity() 100 } else if (vy < -maxVelocity) { in computeCurrentVelocity() 101 vy = -maxVelocity; in computeCurrentVelocity() [all …]
|
/frameworks/base/core/java/android/view/ |
D | VelocityTracker.java | 44 private static native void nativeComputeCurrentVelocity(long ptr, int units, float maxVelocity); in nativeComputeCurrentVelocity() argument 152 public void computeCurrentVelocity(int units, float maxVelocity) { in computeCurrentVelocity() argument 153 nativeComputeCurrentVelocity(mPtr, units, maxVelocity); in computeCurrentVelocity()
|
/frameworks/support/v4/java/android/support/v4/widget/ |
D | AutoScrollHelper.java | 213 final int maxVelocity = (int) (DEFAULT_MAXIMUM_VELOCITY_DIPS * metrics.density + 0.5f); in AutoScrollHelper() local 215 setMaximumVelocity(maxVelocity, maxVelocity); in AutoScrollHelper()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | AutoScrollHelper.java | 212 final int maxVelocity = (int) (DEFAULT_MAXIMUM_VELOCITY_DIPS * metrics.density + 0.5f); in AutoScrollHelper() local 214 setMaximumVelocity(maxVelocity, maxVelocity); in AutoScrollHelper()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | SwipeHelper.java | 440 float maxVelocity = MAX_DISMISS_VELOCITY * mDensityScale; in onTouchEvent() local 441 mVelocityTracker.computeCurrentVelocity(1000 /* px/sec */, maxVelocity); in onTouchEvent()
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | KeyboardView.java | 1521 public void computeCurrentVelocity(int units, float maxVelocity) { in computeCurrentVelocity() argument 1552 mXVelocity = accumX < 0.0f ? Math.max(accumX, -maxVelocity) in computeCurrentVelocity() 1553 : Math.min(accumX, maxVelocity); in computeCurrentVelocity() 1554 mYVelocity = accumY < 0.0f ? Math.max(accumY, -maxVelocity) in computeCurrentVelocity() 1555 : Math.min(accumY, maxVelocity); in computeCurrentVelocity()
|