Searched refs:maxVelocity (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/core/jni/ |
D | android_view_VelocityTracker.cpp | 52 void computeCurrentVelocity(int32_t units, float maxVelocity); 81 void VelocityTrackerState::computeCurrentVelocity(int32_t units, float maxVelocity) { in computeCurrentVelocity() argument 94 if (vx > maxVelocity) { in computeCurrentVelocity() 95 vx = maxVelocity; in computeCurrentVelocity() 96 } else if (vx < -maxVelocity) { in computeCurrentVelocity() 97 vx = -maxVelocity; in computeCurrentVelocity() 99 if (vy > maxVelocity) { in computeCurrentVelocity() 100 vy = maxVelocity; in computeCurrentVelocity() 101 } else if (vy < -maxVelocity) { in computeCurrentVelocity() 102 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/core/java/android/inputmethodservice/ |
D | KeyboardView.java | 1532 public void computeCurrentVelocity(int units, float maxVelocity) { in computeCurrentVelocity() argument 1563 mXVelocity = accumX < 0.0f ? Math.max(accumX, -maxVelocity) in computeCurrentVelocity() 1564 : Math.min(accumX, maxVelocity); in computeCurrentVelocity() 1565 mYVelocity = accumY < 0.0f ? Math.max(accumY, -maxVelocity) in computeCurrentVelocity() 1566 : Math.min(accumY, maxVelocity); in computeCurrentVelocity()
|