Searched refs:maxVelocity (Results 1 - 7 of 7) sorted by relevance
/frameworks/base/core/jni/ |
H A D | android_view_VelocityTracker.cpp | 51 void computeCurrentVelocity(int32_t units, float maxVelocity); 80 void VelocityTrackerState::computeCurrentVelocity(int32_t units, float maxVelocity) { argument 93 if (vx > maxVelocity) { 94 vx = maxVelocity; 95 } else if (vx < -maxVelocity) { 96 vx = -maxVelocity; 98 if (vy > maxVelocity) { 99 vy = maxVelocity; 100 } else if (vy < -maxVelocity) { 101 vy = -maxVelocity; 172 android_view_VelocityTracker_nativeComputeCurrentVelocity(JNIEnv* env, jclass clazz, jlong ptr, jint units, jfloat maxVelocity) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | VelocityTracker.java | 44 private static native void nativeComputeCurrentVelocity(long ptr, int units, float maxVelocity); argument 148 * @param maxVelocity The maximum velocity that can be computed by this method. 152 public void computeCurrentVelocity(int units, float maxVelocity) { argument 153 nativeComputeCurrentVelocity(mPtr, units, maxVelocity);
|
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | AutoScrollHelper.java | 213 final int maxVelocity = (int) (DEFAULT_MAXIMUM_VELOCITY_DIPS * metrics.density + 0.5f); 215 setMaximumVelocity(maxVelocity, maxVelocity);
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | AutoScrollHelper.java | 212 final int maxVelocity = (int) (DEFAULT_MAXIMUM_VELOCITY_DIPS * metrics.density + 0.5f); 214 setMaximumVelocity(maxVelocity, maxVelocity);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | SwipeHelper.java | 353 float maxVelocity = MAX_DISMISS_VELOCITY * mDensityScale; 354 velocityTracker.computeCurrentVelocity(1000 /* px/sec */, maxVelocity);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | SwipeHelper.java | 437 float maxVelocity = MAX_DISMISS_VELOCITY * mDensityScale; 438 mVelocityTracker.computeCurrentVelocity(1000 /* px/sec */, maxVelocity);
|
/frameworks/base/core/java/android/inputmethodservice/ |
H A D | KeyboardView.java | 1519 public void computeCurrentVelocity(int units, float maxVelocity) { argument 1550 mXVelocity = accumX < 0.0f ? Math.max(accumX, -maxVelocity) 1551 : Math.min(accumX, maxVelocity); 1552 mYVelocity = accumY < 0.0f ? Math.max(accumY, -maxVelocity) 1553 : Math.min(accumY, maxVelocity);
|
Completed in 161 milliseconds