Home
last modified time | relevance | path

Searched refs:VelocityTracker (Results 1 – 25 of 59) sorted by relevance

123

/frameworks/base/core/tests/coretests/src/android/view/
DVelocityTest.java37 VelocityTracker vt = VelocityTracker.obtain(); in testInitialCondiditions()
49 VelocityTracker vt = VelocityTracker.obtain(); in testClear()
64 VelocityTracker vt = VelocityTracker.obtain(); in testDragAcceleration()
75 VelocityTracker vt = VelocityTracker.obtain(); in testDragDeceleration()
86 VelocityTracker vt = VelocityTracker.obtain(); in testDragLinearHorizontal()
98 VelocityTracker vt = VelocityTracker.obtain(); in testDragLinearVertical()
114 VelocityTracker vt = VelocityTracker.obtain(); in testDragWith2Points()
130 VelocityTracker vt = VelocityTracker.obtain(); in testStabilityInNbPoints()
152 VelocityTracker vt = VelocityTracker.obtain(); in testStabilityInTime()
174 VelocityTracker vt = VelocityTracker.obtain(); in testStabilityInSpace()
[all …]
/frameworks/support/v4/java/android/support/v4/view/
DVelocityTrackerCompat.java19 import android.view.VelocityTracker;
30 public float getXVelocity(VelocityTracker tracker, int pointerId); in getXVelocity()
31 public float getYVelocity(VelocityTracker tracker, int pointerId); in getYVelocity()
39 public float getXVelocity(VelocityTracker tracker, int pointerId) { in getXVelocity()
43 public float getYVelocity(VelocityTracker tracker, int pointerId) { in getYVelocity()
53 public float getXVelocity(VelocityTracker tracker, int pointerId) { in getXVelocity()
57 public float getYVelocity(VelocityTracker tracker, int pointerId) { in getYVelocity()
81 public static float getXVelocity(VelocityTracker tracker, int pointerId) { in getXVelocity()
90 public static float getYVelocity(VelocityTracker tracker, int pointerId) { in getYVelocity()
DGestureDetectorCompat.java27 import android.view.VelocityTracker;
100 private VelocityTracker mVelocityTracker;
227 mVelocityTracker = VelocityTracker.obtain(); in onTouchEvent()
370 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent()
DNestedScrollingChild.java21 import android.view.VelocityTracker;
DNestedScrollingParent.java21 import android.view.VelocityTracker;
/frameworks/native/include/input/
DVelocityTracker.h31 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 { in getPosition()
206 const VelocityTracker::Position* positions);
[all …]
DVelocityControl.h101 VelocityTracker::Position mRawPosition;
102 VelocityTracker mVelocityTracker;
/frameworks/base/core/java/android/view/
DVelocityTracker.java31 public final class VelocityTracker { class
32 private static final SynchronizedPool<VelocityTracker> sPool =
33 new SynchronizedPool<VelocityTracker>(2);
57 static public VelocityTracker obtain() { in obtain()
58 VelocityTracker instance = sPool.acquire(); in obtain()
59 return (instance != null) ? instance : new VelocityTracker(null); in obtain()
71 public static VelocityTracker obtain(String strategy) { in obtain()
75 return new VelocityTracker(strategy); in obtain()
89 private VelocityTracker(String strategy) { in VelocityTracker() method in VelocityTracker
DGestureDetector.java267 private VelocityTracker mVelocityTracker;
498 mVelocityTracker = VelocityTracker.obtain(); in onTouchEvent()
642 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent()
/frameworks/native/libs/input/
DVelocityTracker.cpp107 const char* VelocityTracker::DEFAULT_STRATEGY = "lsq2";
109 VelocityTracker::VelocityTracker(const char* strategy) : in VelocityTracker() function in android::VelocityTracker
133 VelocityTracker::~VelocityTracker() { in ~VelocityTracker()
137 bool VelocityTracker::configureStrategy(const char* strategy) { in configureStrategy()
142 VelocityTrackerStrategy* VelocityTracker::createStrategy(const char* strategy) { in createStrategy()
202 void VelocityTracker::clear() { in clear()
209 void VelocityTracker::clearPointers(BitSet32 idBits) { in clearPointers()
220 void VelocityTracker::addMovement(nsecs_t eventTime, BitSet32 idBits, const Position* positions) { in addMovement()
264 void VelocityTracker::addMovement(const MotionEvent* event) { in addMovement()
335 bool VelocityTracker::getVelocity(uint32_t id, float* outVx, float* outVy) const { in getVelocity()
[all …]
DAndroid.mk33 VelocityTracker.cpp
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPlatformVelocityTracker.java21 import android.view.VelocityTracker;
32 private VelocityTracker mTracker;
39 tracker.setTracker(VelocityTracker.obtain()); in obtain()
43 public void setTracker(VelocityTracker tracker) { in setTracker()
DKeyguardAffordanceHelper.java24 import android.view.VelocityTracker;
49 private VelocityTracker mVelocityTracker;
470 mVelocityTracker = VelocityTracker.obtain(); in initVelocityTracker()
/frameworks/support/v4/honeycomb/android/support/v4/view/
DVelocityTrackerCompatHoneycomb.java19 import android.view.VelocityTracker;
25 public static float getXVelocity(VelocityTracker tracker, int pointerId) { in getXVelocity()
28 public static float getYVelocity(VelocityTracker tracker, int pointerId) { in getYVelocity()
/frameworks/base/core/jni/
Dandroid_view_VelocityTracker.cpp54 bool getEstimator(int32_t id, VelocityTracker::Estimator* outEstimator);
61 VelocityTracker mVelocityTracker;
135 bool VelocityTrackerState::getEstimator(int32_t id, VelocityTracker::Estimator* outEstimator) { in getEstimator()
198 VelocityTracker::Estimator estimator; in android_view_VelocityTracker_nativeGetEstimator()
206 env->SetFloatArrayRegion(xCoeffObj, 0, VelocityTracker::Estimator::MAX_DEGREE + 1, in android_view_VelocityTracker_nativeGetEstimator()
208 env->SetFloatArrayRegion(yCoeffObj, 0, VelocityTracker::Estimator::MAX_DEGREE + 1, in android_view_VelocityTracker_nativeGetEstimator()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DSwipeHelper.java28 import android.view.VelocityTracker;
64 private VelocityTracker mVelocityTracker;
81 mVelocityTracker = VelocityTracker.obtain(); in SwipeHelper()
118 private float getVelocity(VelocityTracker vt) { in getVelocity()
129 private float getPerpendicularVelocity(VelocityTracker vt) { in getPerpendicularVelocity()
351 private void endSwipe(VelocityTracker velocityTracker) { in endSwipe()
DTaskStackViewTouchHandler.java22 import android.view.VelocityTracker;
40 VelocityTracker mVelocityTracker;
84 mVelocityTracker = VelocityTracker.obtain(); in initOrResetVelocityTracker()
91 mVelocityTracker = VelocityTracker.obtain(); in initVelocityTrackerIfNotExists()
/frameworks/base/docs/html/training/gestures/
Dmovement.jd92 provides the {@link android.view.VelocityTracker} class and the
96 android.view.VelocityTracker} helps you track the velocity of touch events. This
102 {@link android.view.VelocityTracker} API:</p>
107 private VelocityTracker mVelocityTracker = null;
117 // Retrieve a new VelocityTracker object to watch the velocity of a motion.
118 mVelocityTracker = VelocityTracker.obtain();
144 // Return a VelocityTracker object back to be re-used by others.
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSwipeHelper.java29 import android.view.VelocityTracker;
69 private VelocityTracker mVelocityTracker;
91 mVelocityTracker = VelocityTracker.obtain(); in SwipeHelper()
122 private float getVelocity(VelocityTracker vt) { in getVelocity()
133 private float getPerpendicularVelocity(VelocityTracker vt) { in getPerpendicularVelocity()
DExpandHelper.java32 import android.view.VelocityTracker;
107 private VelocityTracker mVelocityTracker;
339 mVelocityTracker = VelocityTracker.obtain(); in trackVelocity()
347 mVelocityTracker = VelocityTracker.obtain(); in trackVelocity()
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java31 import android.view.VelocityTracker;
75 private VelocityTracker.Estimator mEstimator = new VelocityTracker.Estimator();
76 private VelocityTracker.Estimator mAltEstimator = new VelocityTracker.Estimator();
129 private final VelocityTracker mVelocity;
130 private final VelocityTracker mAltVelocity;
177 mVelocity = VelocityTracker.obtain(); in PointerLocationView()
182 mAltVelocity = VelocityTracker.obtain(altStrategy); in PointerLocationView()
DSwipeDismissLayout.java28 import android.view.VelocityTracker;
73 private VelocityTracker mVelocityTracker;
171 mVelocityTracker = VelocityTracker.obtain(); in onInterceptTouchEvent()
DRotarySelector.java35 import android.view.VelocityTracker;
153 private VelocityTracker mVelocityTracker;
504 mVelocityTracker = VelocityTracker.obtain(); in onTouchEvent()
546 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent()
566 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent()
/frameworks/base/core/java/android/widget/
DSlidingDrawer.java31 import android.view.VelocityTracker;
113 private VelocityTracker mVelocityTracker;
434 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent()
563 mVelocityTracker = VelocityTracker.obtain(); in prepareTracking()
DHorizontalScrollView.java34 import android.view.VelocityTracker;
110 private VelocityTracker mVelocityTracker;
412 mVelocityTracker = VelocityTracker.obtain(); in initOrResetVelocityTracker()
420 mVelocityTracker = VelocityTracker.obtain(); in initVelocityTrackerIfNotExists()
644 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent()

123