Home
last modified time | relevance | path

Searched refs:maxVelocity (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/jni/
Dandroid_view_VelocityTracker.cpp52 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/
DVelocityTracker.java44 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/core-ui/java/android/support/v4/widget/
DAutoScrollHelper.java212 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/com/android/internal/widget/
DAutoScrollHelper.java212 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/
DKeyboardView.java1514 public void computeCurrentVelocity(int units, float maxVelocity) { in computeCurrentVelocity() argument
1545 mXVelocity = accumX < 0.0f ? Math.max(accumX, -maxVelocity) in computeCurrentVelocity()
1546 : Math.min(accumX, maxVelocity); in computeCurrentVelocity()
1547 mYVelocity = accumY < 0.0f ? Math.max(accumY, -maxVelocity) in computeCurrentVelocity()
1548 : Math.min(accumY, maxVelocity); in computeCurrentVelocity()