Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/coretests/src/android/view/
DVelocityTest.java39 VelocityTracker vt = VelocityTracker.obtain(); in testInitialCondiditions()
51 VelocityTracker vt = VelocityTracker.obtain(); in testClear()
66 VelocityTracker vt = VelocityTracker.obtain(); in testDragAcceleration()
77 VelocityTracker vt = VelocityTracker.obtain(); in testDragDeceleration()
89 VelocityTracker vt = VelocityTracker.obtain(); in testDragLinearHorizontal()
102 VelocityTracker vt = VelocityTracker.obtain(); in testDragLinearVertical()
119 VelocityTracker vt = VelocityTracker.obtain(); in testDragWith2Points()
136 VelocityTracker vt = VelocityTracker.obtain(); in testStabilityInNbPoints()
158 VelocityTracker vt = VelocityTracker.obtain(); in testStabilityInTime()
180 VelocityTracker vt = VelocityTracker.obtain(); in testStabilityInSpace()
[all …]
/frameworks/native/include/input/
DVelocityTracker.h31 class VelocityTracker {
66 VelocityTracker(const char* strategy = nullptr);
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.java32 public final class VelocityTracker { class
33 private static final SynchronizedPool<VelocityTracker> sPool =
34 new SynchronizedPool<VelocityTracker>(2);
58 static public VelocityTracker obtain() { in obtain()
59 VelocityTracker instance = sPool.acquire(); in obtain()
60 return (instance != null) ? instance : new VelocityTracker(null); in obtain()
73 public static VelocityTracker obtain(String strategy) { in obtain()
77 return new VelocityTracker(strategy); in obtain()
91 private VelocityTracker(String strategy) { in VelocityTracker() method in VelocityTracker
DGestureDetector.java287 private VelocityTracker mVelocityTracker;
526 mVelocityTracker = VelocityTracker.obtain(); in onTouchEvent()
737 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent()
/frameworks/native/libs/input/
DVelocityTracker.cpp112 const char* VelocityTracker::DEFAULT_STRATEGY = "lsq2";
114 VelocityTracker::VelocityTracker(const char* strategy) : in VelocityTracker() function in android::VelocityTracker
138 VelocityTracker::~VelocityTracker() { in ~VelocityTracker()
142 bool VelocityTracker::configureStrategy(const char* strategy) { in configureStrategy()
147 VelocityTrackerStrategy* VelocityTracker::createStrategy(const char* strategy) { in createStrategy()
212 void VelocityTracker::clear() { in clear()
219 void VelocityTracker::clearPointers(BitSet32 idBits) { in clearPointers()
230 void VelocityTracker::addMovement(nsecs_t eventTime, BitSet32 idBits, const Position* positions) { in addMovement()
274 void VelocityTracker::addMovement(const MotionEvent* event) { in addMovement()
345 bool VelocityTracker::getVelocity(uint32_t id, float* outVx, float* outVy) const { in getVelocity()
[all …]
DAndroid.bp55 "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/base/packages/SystemUI/src/com/android/systemui/classifier/brightline/
DDistanceClassifier.java28 import android.view.VelocityTracker;
112 VelocityTracker velocityTracker = VelocityTracker.obtain(); in calculateDistances()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleTouchHandler.java22 import android.view.VelocityTracker;
65 private VelocityTracker mVelocityTracker;
274 mVelocityTracker = VelocityTracker.obtain(); in trackMovement()
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipTouchState.java23 import android.view.VelocityTracker;
44 private VelocityTracker mVelocityTracker;
323 mVelocityTracker = VelocityTracker.obtain();
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java39 import android.view.VelocityTracker;
91 private VelocityTracker.Estimator mEstimator = new VelocityTracker.Estimator();
92 private VelocityTracker.Estimator mAltEstimator = new VelocityTracker.Estimator();
156 private final VelocityTracker mVelocity;
157 private final VelocityTracker mAltVelocity;
213 mVelocity = VelocityTracker.obtain(); in PointerLocationView()
218 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/statusbar/
DPulseExpansionHandler.kt28 import android.view.VelocityTracker in <lambda>()
109 private var velocityTracker: VelocityTracker? = null in <lambda>()
135 velocityTracker = VelocityTracker.obtain() in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSwipeHelper.java32 import android.view.VelocityTracker;
74 private final VelocityTracker mVelocityTracker;
106 mVelocityTracker = VelocityTracker.obtain(); in SwipeHelper()
144 private float getVelocity(VelocityTracker vt) { in getVelocity()
155 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.java30 import android.view.VelocityTracker;
113 private VelocityTracker mVelocityTracker;
437 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent()
568 mVelocityTracker = VelocityTracker.obtain(); in prepareTracking()
DHorizontalScrollView.java37 import android.view.VelocityTracker;
135 private VelocityTracker mVelocityTracker;
525 mVelocityTracker = VelocityTracker.obtain(); in initOrResetVelocityTracker()
533 mVelocityTracker = VelocityTracker.obtain(); in initVelocityTrackerIfNotExists()
762 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent()
DScrollView.java39 import android.view.VelocityTracker;
145 private VelocityTracker mVelocityTracker;
558 mVelocityTracker = VelocityTracker.obtain(); in initOrResetVelocityTracker()
566 mVelocityTracker = VelocityTracker.obtain(); in initVelocityTrackerIfNotExists()
834 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardAffordanceHelper.java24 import android.view.VelocityTracker;
48 private VelocityTracker mVelocityTracker;
473 mVelocityTracker = VelocityTracker.obtain(); in initVelocityTracker()
DNavigationBarEdgePanel.java32 import android.view.VelocityTracker;
151 private VelocityTracker mVelocityTracker;
385 mVelocityTracker = VelocityTracker.obtain(); in handleTouch()
/frameworks/native/libs/input/tests/
DVelocityTracker_test.cpp194 VelocityTracker vt(strategy); in computeAndCheckVelocity()
218 VelocityTracker vt("lsq2"); in computeAndCheckQuadraticEstimate()
223 VelocityTracker::Estimator estimator; in computeAndCheckQuadraticEstimate()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSecurityContainer.java33 import android.view.VelocityTracker;
94 private final VelocityTracker mVelocityTracker = VelocityTracker.obtain();
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/
DTaskStackViewTouchHandler.java28 import android.view.VelocityTracker;
77 VelocityTracker mVelocityTracker;
156 mVelocityTracker = VelocityTracker.obtain(); in initOrResetVelocityTracker()

12