Home
last modified time | relevance | path

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

1234

/frameworks/base/core/tests/coretests/src/android/view/
DVelocityTest.java38 VelocityTracker vt = VelocityTracker.obtain(); in testInitialCondiditions()
50 VelocityTracker vt = VelocityTracker.obtain(); in testClear()
65 VelocityTracker vt = VelocityTracker.obtain(); in testDragAcceleration()
76 VelocityTracker vt = VelocityTracker.obtain(); in testDragDeceleration()
88 VelocityTracker vt = VelocityTracker.obtain(); in testDragLinearHorizontal()
101 VelocityTracker vt = VelocityTracker.obtain(); in testDragLinearVertical()
118 VelocityTracker vt = VelocityTracker.obtain(); in testDragWith2Points()
135 VelocityTracker vt = VelocityTracker.obtain(); in testStabilityInNbPoints()
157 VelocityTracker vt = VelocityTracker.obtain(); in testStabilityInTime()
179 VelocityTracker vt = VelocityTracker.obtain(); in testStabilityInSpace()
[all …]
/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()
648 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent()
/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()
DNavigationBarGestureHelper.java29 import android.view.VelocityTracker;
75 private VelocityTracker mVelocityTracker;
183 mVelocityTracker = VelocityTracker.obtain(); in handleDragActionDownEvent()
/frameworks/support/compat/src/main/java/androidx/core/view/
DVelocityTrackerCompat.java19 import android.view.VelocityTracker;
36 public static float getXVelocity(VelocityTracker tracker, int pointerId) { in getXVelocity()
48 public static float getYVelocity(VelocityTracker tracker, int pointerId) { in getYVelocity()
DGestureDetectorCompat.java27 import android.view.VelocityTracker;
100 private VelocityTracker mVelocityTracker;
231 mVelocityTracker = VelocityTracker.obtain(); in onTouchEvent()
376 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent()
DNestedScrollingChild.java21 import android.view.VelocityTracker;
DNestedScrollingParent.java21 import android.view.VelocityTracker;
/frameworks/native/libs/input/
DVelocityTracker.cpp110 const char* VelocityTracker::DEFAULT_STRATEGY = "lsq2";
112 VelocityTracker::VelocityTracker(const char* strategy) : in VelocityTracker() function in android::VelocityTracker
136 VelocityTracker::~VelocityTracker() { in ~VelocityTracker()
140 bool VelocityTracker::configureStrategy(const char* strategy) { in configureStrategy()
145 VelocityTrackerStrategy* VelocityTracker::createStrategy(const char* strategy) { in createStrategy()
210 void VelocityTracker::clear() { in clear()
217 void VelocityTracker::clearPointers(BitSet32 idBits) { in clearPointers()
228 void VelocityTracker::addMovement(nsecs_t eventTime, BitSet32 idBits, const Position* positions) { in addMovement()
272 void VelocityTracker::addMovement(const MotionEvent* event) { in addMovement()
343 bool VelocityTracker::getVelocity(uint32_t id, float* outVx, float* outVy) const { in getVelocity()
[all …]
DAndroid.bp48 "VelocityTracker.cpp",
/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/support/wear/src/main/java/androidx/wear/widget/
DScrollManager.java20 import android.view.VelocityTracker;
74 VelocityTracker mVelocityTracker;
82 mVelocityTracker = VelocityTracker.obtain(); in setRecyclerView()
DSwipeDismissLayout.java24 import android.view.VelocityTracker;
125 private VelocityTracker mVelocityTracker;
233 mVelocityTracker = VelocityTracker.obtain(); in onInterceptTouchEvent()
/frameworks/support/samples/SupportAnimationDemos/src/main/java/com/example/android/support/animation/
DSpringActivity.java22 import android.view.VelocityTracker;
61 public VelocityTracker vt; in onCreate()
78 vt = VelocityTracker.obtain(); in onCreate()
DMainActivity.java22 import android.view.VelocityTracker;
73 public VelocityTracker tracker; in onCreate()
94 tracker = VelocityTracker.obtain(); in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipTouchState.java24 import android.view.VelocityTracker;
45 private VelocityTracker mVelocityTracker;
322 mVelocityTracker = VelocityTracker.obtain();
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java32 import android.view.VelocityTracker;
76 private VelocityTracker.Estimator mEstimator = new VelocityTracker.Estimator();
77 private VelocityTracker.Estimator mAltEstimator = new VelocityTracker.Estimator();
130 private final VelocityTracker mVelocity;
131 private final VelocityTracker mAltVelocity;
178 mVelocity = VelocityTracker.obtain(); in PointerLocationView()
183 mAltVelocity = VelocityTracker.obtain(altStrategy); in PointerLocationView()
DNestedScrollingChild.java20 import android.view.VelocityTracker;
DSwipeDismissLayout.java34 import android.view.VelocityTracker;
82 private VelocityTracker mVelocityTracker;
187 mVelocityTracker = VelocityTracker.obtain("int1"); in onInterceptTouchEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSwipeHelper.java32 import android.view.VelocityTracker;
73 private final VelocityTracker mVelocityTracker;
104 mVelocityTracker = VelocityTracker.obtain(); in SwipeHelper()
142 private float getVelocity(VelocityTracker vt) { in getVelocity()
153 private float getPerpendicularVelocity(VelocityTracker vt) { in getPerpendicularVelocity()
DExpandHelper.java30 import android.view.VelocityTracker;
109 private VelocityTracker mVelocityTracker;
352 mVelocityTracker = VelocityTracker.obtain(); in trackVelocity()
360 mVelocityTracker = VelocityTracker.obtain(); in trackVelocity()
/frameworks/base/core/java/android/widget/
DSlidingDrawer.java29 import android.view.VelocityTracker;
110 private VelocityTracker mVelocityTracker;
430 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent()
560 mVelocityTracker = VelocityTracker.obtain(); in prepareTracking()

1234