diff options
| author | Jeff Brown <jeffbrown@google.com> | 2012-05-13 15:30:42 -0700 |
|---|---|---|
| committer | Jeff Brown <jeffbrown@google.com> | 2012-05-13 16:10:57 -0700 |
| commit | 85bd0d62830a098c1bdc720dfdcf4fe1b18b657c (patch) | |
| tree | 7b1d7b8335caabd8d2f641e5b56a31ff58d6d2b7 /core/java/android | |
| parent | 0d607fbe546ac943de38dad33ae681b09efec6ea (diff) | |
| download | frameworks_base-85bd0d62830a098c1bdc720dfdcf4fe1b18b657c.zip frameworks_base-85bd0d62830a098c1bdc720dfdcf4fe1b18b657c.tar.gz frameworks_base-85bd0d62830a098c1bdc720dfdcf4fe1b18b657c.tar.bz2 | |
More VelocityTracker refactoring.
Bug: 6413587
Change-Id: Ida1152e7a34d5fe5caab5e6b5e1bc79f6c7a25e6
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/view/VelocityTracker.java | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/core/java/android/view/VelocityTracker.java b/core/java/android/view/VelocityTracker.java index f703e34..f5870e1 100644 --- a/core/java/android/view/VelocityTracker.java +++ b/core/java/android/view/VelocityTracker.java @@ -60,8 +60,7 @@ public final class VelocityTracker implements Poolable<VelocityTracker> { private static native void nativeComputeCurrentVelocity(int ptr, int units, float maxVelocity); private static native float nativeGetXVelocity(int ptr, int id); private static native float nativeGetYVelocity(int ptr, int id); - private static native boolean nativeGetEstimator(int ptr, int id, - int degree, int horizonMillis, Estimator outEstimator); + private static native boolean nativeGetEstimator(int ptr, int id, Estimator outEstimator); /** * Retrieve a new VelocityTracker object to watch the velocity of a @@ -227,21 +226,17 @@ public final class VelocityTracker implements Poolable<VelocityTracker> { * this method. * * @param id Which pointer's velocity to return. - * @param degree The desired polynomial degree. The actual estimator may have - * a lower degree than what is requested here. If -1, uses the default degree. - * @param horizonMillis The maximum age of the oldest sample to consider, in milliseconds. - * If -1, uses the default horizon. * @param outEstimator The estimator to populate. * @return True if an estimator was obtained, false if there is no information * available about the pointer. * * @hide For internal use only. Not a final API. */ - public boolean getEstimator(int id, int degree, int horizonMillis, Estimator outEstimator) { + public boolean getEstimator(int id, Estimator outEstimator) { if (outEstimator == null) { throw new IllegalArgumentException("outEstimator must not be null"); } - return nativeGetEstimator(mPtr, id, degree, horizonMillis, outEstimator); + return nativeGetEstimator(mPtr, id, outEstimator); } /** |
