Searched refs:maxVelocity (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/core/jni/ |
D | android_view_VelocityTracker.cpp | 50 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/ |
D | VelocityTracker.java | 182 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/ |
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 | 1527 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/ |
D | StackAnimationController.java | 1065 final float maxVelocity = Settings.Secure.getFloat(contentResolver, in getMagnetizedStack() local 1073 mMagnetizedStack.setStickToTargetMaxXVelocity(maxVelocity); in getMagnetizedStack()
|