/frameworks/support/v4/java/android/support/v4/view/ |
VelocityTrackerCompat.java | 19 import android.view.VelocityTracker; 22 * Helper for accessing features in {@link VelocityTracker} 30 public float getXVelocity(VelocityTracker tracker, int pointerId); 31 public float getYVelocity(VelocityTracker tracker, int pointerId); 39 public float getXVelocity(VelocityTracker tracker, int pointerId) { 43 public float getYVelocity(VelocityTracker tracker, int pointerId) { 53 public float getXVelocity(VelocityTracker tracker, int pointerId) { 57 public float getYVelocity(VelocityTracker tracker, int pointerId) { 77 * Call {@link VelocityTracker#getXVelocity(int)}. 79 * returns {@link VelocityTracker#getXVelocity()} [all...] |
GestureDetectorCompat.java | 27 import android.view.VelocityTracker; 100 private VelocityTracker mVelocityTracker; 227 mVelocityTracker = VelocityTracker.obtain(); 370 final VelocityTracker velocityTracker = mVelocityTracker; 372 velocityTracker.computeCurrentVelocity(1000, mMaximumFlingVelocity); 374 velocityTracker, pointerId); 376 velocityTracker, pointerId);
|
/frameworks/support/v4/honeycomb/android/support/v4/view/ |
VelocityTrackerCompatHoneycomb.java | 19 import android.view.VelocityTracker; 25 public static float getXVelocity(VelocityTracker tracker, int pointerId) { 28 public static float getYVelocity(VelocityTracker tracker, int pointerId) {
|
/frameworks/native/include/input/ |
VelocityTracker.h | 31 class VelocityTracker { 66 VelocityTracker(const char* strategy = NULL); 68 ~VelocityTracker(); 131 const VelocityTracker::Position* positions) = 0; 132 virtual bool getEstimator(uint32_t id, VelocityTracker::Estimator* outEstimator) const = 0; 163 const VelocityTracker::Position* positions); 164 virtual bool getEstimator(uint32_t id, VelocityTracker::Estimator* outEstimator) const; 178 VelocityTracker::Position positions[MAX_POINTERS]; 180 inline const VelocityTracker::Position& getPosition(uint32_t id) const { 206 const VelocityTracker::Position* positions) [all...] |
VelocityControl.h | 21 #include <input/VelocityTracker.h> 101 VelocityTracker::Position mRawPosition; 102 VelocityTracker mVelocityTracker;
|
/frameworks/base/core/tests/coretests/src/android/view/ |
VelocityTest.java | 24 import android.view.VelocityTracker; 31 * Exercises {@link android.view.VelocityTracker} to compute correct velocity.<br> 39 VelocityTracker vt = VelocityTracker.obtain(); 45 * Test that {@link android.view.VelocityTracker}.clear() clears 51 VelocityTracker vt = VelocityTracker.obtain(); 66 VelocityTracker vt = VelocityTracker.obtain(); 77 VelocityTracker vt = VelocityTracker.obtain() [all...] |
/frameworks/base/core/java/android/view/ |
VelocityTracker.java | 31 public final class VelocityTracker { 32 private static final SynchronizedPool<VelocityTracker> sPool = 33 new SynchronizedPool<VelocityTracker>(2); 50 * Retrieve a new VelocityTracker object to watch the velocity of a 53 * so that the VelocityTracker can be re-used elsewhere. 55 * @return Returns a new VelocityTracker. 57 static public VelocityTracker obtain() { 58 VelocityTracker instance = sPool.acquire(); 59 return (instance != null) ? instance : new VelocityTracker(null); 71 public static VelocityTracker obtain(String strategy) [all...] |
GestureDetector.java | 240 private VelocityTracker mVelocityTracker; 458 mVelocityTracker = VelocityTracker.obtain(); 602 final VelocityTracker velocityTracker = mVelocityTracker; 604 velocityTracker.computeCurrentVelocity(1000, mMaximumFlingVelocity); 605 final float velocityY = velocityTracker.getYVelocity(pointerId); 606 final float velocityX = velocityTracker.getXVelocity(pointerId);
|
/frameworks/base/core/jni/ |
android_view_VelocityTracker.cpp | 17 #define LOG_TAG "VelocityTracker-JNI" 24 #include <input/VelocityTracker.h> 53 bool getEstimator(int32_t id, VelocityTracker::Estimator* outEstimator); 60 VelocityTracker mVelocityTracker; 134 bool VelocityTrackerState::getEstimator(int32_t id, VelocityTracker::Estimator* outEstimator) { 197 VelocityTracker::Estimator estimator; 205 env->SetFloatArrayRegion(xCoeffObj, 0, VelocityTracker::Estimator::MAX_DEGREE + 1, 207 env->SetFloatArrayRegion(yCoeffObj, 0, VelocityTracker::Estimator::MAX_DEGREE + 1, 241 "(IILandroid/view/VelocityTracker$Estimator;)Z", 254 int res = jniRegisterNativeMethods(env, "android/view/VelocityTracker", [all...] |
/frameworks/native/libs/input/ |
VelocityTracker.cpp | 17 #define LOG_TAG "VelocityTracker" 30 #include <input/VelocityTracker.h> 100 // --- VelocityTracker --- 107 const char* VelocityTracker::DEFAULT_STRATEGY = "lsq2"; 109 VelocityTracker::VelocityTracker(const char* strategy) : 115 int length = property_get("debug.velocitytracker.strategy", value, NULL); 133 VelocityTracker::~VelocityTracker() { 137 bool VelocityTracker::configureStrategy(const char* strategy) [all...] |
Android.mk | 32 VelocityTracker.cpp
|
/cts/tests/tests/view/src/android/view/cts/ |
VelocityTrackerTest.java | 21 import android.view.VelocityTracker; 25 * Test {@link VelocityTracker}. 35 private VelocityTracker mVelocityTracker; 47 mVelocityTracker = VelocityTracker.obtain();
|
/packages/apps/Calendar/src/com/android/calendar/month/ |
MonthListView.java | 25 import android.view.VelocityTracker; 34 VelocityTracker mTracker; 82 mTracker = VelocityTracker.obtain();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
SwipeHelper.java | 28 import android.view.VelocityTracker; 64 private VelocityTracker mVelocityTracker; 83 mVelocityTracker = VelocityTracker.obtain(); 110 private float getVelocity(VelocityTracker vt) { 121 private float getPerpendicularVelocity(VelocityTracker vt) {
|
/packages/apps/Dialer/src/com/android/dialer/list/ |
SwipeHelper.java | 30 import android.view.VelocityTracker; 78 private final VelocityTracker mVelocityTracker; 99 mVelocityTracker = VelocityTracker.obtain(); 132 private float getVelocity(VelocityTracker vt) { 150 private float getPerpendicularVelocity(VelocityTracker vt) {
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
SwipeHelper.java | 29 import android.view.VelocityTracker; 72 private final VelocityTracker mVelocityTracker; 88 mVelocityTracker = VelocityTracker.obtain(); 110 private float getVelocity(VelocityTracker vt) { 128 private float getPerpendicularVelocity(VelocityTracker vt) {
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/third_party/ |
GestureDetector.java | 24 import android.view.VelocityTracker; 252 private VelocityTracker mVelocityTracker; 479 mVelocityTracker = VelocityTracker.obtain(); 623 final VelocityTracker velocityTracker = mVelocityTracker; 625 velocityTracker.computeCurrentVelocity(1000, mMaximumFlingVelocity); 626 final float velocityY = velocityTracker.getYVelocity(pointerId); 627 final float velocityX = velocityTracker.getXVelocity(pointerId);
|
/frameworks/base/core/java/com/android/internal/widget/ |
PointerLocationView.java | 31 import android.view.VelocityTracker; 43 private static final String ALT_STRATEGY_PROPERY_KEY = "debug.velocitytracker.alt"; 73 private VelocityTracker.Estimator mEstimator = new VelocityTracker.Estimator(); 74 private VelocityTracker.Estimator mAltEstimator = new VelocityTracker.Estimator(); 127 private final VelocityTracker mVelocity; 128 private final VelocityTracker mAltVelocity; 175 mVelocity = VelocityTracker.obtain(); 180 mAltVelocity = VelocityTracker.obtain(altStrategy) [all...] |
RotarySelector.java | 35 import android.view.VelocityTracker; 146 private VelocityTracker mVelocityTracker; 497 mVelocityTracker = VelocityTracker.obtain(); 539 final VelocityTracker velocityTracker = mVelocityTracker; 540 velocityTracker.computeCurrentVelocity(1000, mMaximumVelocity); 542 (int) velocityTracker.getXVelocity(): 543 -(int) velocityTracker.getYVelocity(); 559 final VelocityTracker velocityTracker = mVelocityTracker [all...] |
/packages/apps/Camera/src/com/android/camera/ui/ |
Switch.java | 39 import android.view.VelocityTracker; 73 private VelocityTracker mVelocityTracker = VelocityTracker.obtain();
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
Switch.java | 36 import android.view.VelocityTracker; 67 private VelocityTracker mVelocityTracker = VelocityTracker.obtain();
|
/frameworks/base/core/java/android/widget/ |
SlidingDrawer.java | 31 import android.view.VelocityTracker; 114 private VelocityTracker mVelocityTracker; 414 final VelocityTracker velocityTracker = mVelocityTracker; 415 velocityTracker.computeCurrentVelocity(mVelocityUnits); 417 float yVelocity = velocityTracker.getYVelocity(); 418 float xVelocity = velocityTracker.getXVelocity(); 543 mVelocityTracker = VelocityTracker.obtain(); [all...] |
Switch.java | 37 import android.view.VelocityTracker; 90 private VelocityTracker mVelocityTracker = VelocityTracker.obtain();
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
DragController.java | 31 import android.view.VelocityTracker; 120 private VelocityTracker mVelocityTracker; 153 mVelocityTracker = VelocityTracker.obtain(); 769 mVelocityTracker = VelocityTracker.obtain();
|
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/ |
HorizontalScrollView.java | 29 import android.view.VelocityTracker; 109 private VelocityTracker mVelocityTracker; 392 mVelocityTracker = VelocityTracker.obtain(); 400 mVelocityTracker = VelocityTracker.obtain(); 620 final VelocityTracker velocityTracker = mVelocityTracker; 622 velocityTracker.computeCurrentVelocity(1000, mMaximumVelocity); 623 int initialVelocity = (int) velocityTracker.getXVelocity(pointerId); [all...] |