Home
last modified time | relevance | path

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

/frameworks/base/core/jni/
Dandroid_view_VelocityTracker.cpp50 void computeCurrentVelocity(int32_t units, float maxVelocity);
78 void VelocityTrackerState::computeCurrentVelocity(int32_t units, float maxVelocity) { in computeCurrentVelocity() argument
91 if (vx > maxVelocity) { in computeCurrentVelocity()
92 vx = maxVelocity; in computeCurrentVelocity()
93 } else if (vx < -maxVelocity) { in computeCurrentVelocity()
94 vx = -maxVelocity; in computeCurrentVelocity()
96 if (vy > maxVelocity) { in computeCurrentVelocity()
97 vy = maxVelocity; in computeCurrentVelocity()
98 } else if (vy < -maxVelocity) { in computeCurrentVelocity()
99 vy = -maxVelocity; in computeCurrentVelocity()
[all …]
/frameworks/base/core/java/android/view/
DVelocityTracker.java182 private static native void nativeComputeCurrentVelocity(long ptr, int units, float maxVelocity); in nativeComputeCurrentVelocity() argument
354 public void computeCurrentVelocity(int units, float maxVelocity) { in computeCurrentVelocity() argument
355 nativeComputeCurrentVelocity(mPtr, units, maxVelocity); in computeCurrentVelocity()
/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.java1527 public void computeCurrentVelocity(int units, float maxVelocity) { in computeCurrentVelocity() argument
1558 mXVelocity = accumX < 0.0f ? Math.max(accumX, -maxVelocity) in computeCurrentVelocity()
1559 : Math.min(accumX, maxVelocity); in computeCurrentVelocity()
1560 mYVelocity = accumY < 0.0f ? Math.max(accumY, -maxVelocity) in computeCurrentVelocity()
1561 : Math.min(accumY, maxVelocity); in computeCurrentVelocity()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/animation/
DStackAnimationController.java1065 final float maxVelocity = Settings.Secure.getFloat(contentResolver, in getMagnetizedStack() local
1073 mMagnetizedStack.setStickToTargetMaxXVelocity(maxVelocity); in getMagnetizedStack()