Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/coretests/src/android/view/
DVelocityTest.java41 VelocityTracker vt = VelocityTracker.obtain(); in testInitialCondiditions()
53 VelocityTracker vt = VelocityTracker.obtain(); in testClear()
68 VelocityTracker vt = VelocityTracker.obtain(); in testDragAcceleration()
79 VelocityTracker vt = VelocityTracker.obtain(); in testDragDeceleration()
91 VelocityTracker vt = VelocityTracker.obtain(); in testDragLinearHorizontal()
104 VelocityTracker vt = VelocityTracker.obtain(); in testDragLinearVertical()
121 VelocityTracker vt = VelocityTracker.obtain(); in testDragWith2Points()
138 VelocityTracker vt = VelocityTracker.obtain(); in testStabilityInNbPoints()
160 VelocityTracker vt = VelocityTracker.obtain(); in testStabilityInTime()
182 VelocityTracker vt = VelocityTracker.obtain(); in testStabilityInSpace()
[all …]
/frameworks/native/libs/input/tests/
DVelocityTracker_test.cpp196 static void computeAndCheckVelocity(const VelocityTracker::Strategy strategy, in computeAndCheckVelocity()
199 VelocityTracker vt(strategy); in computeAndCheckVelocity()
223 VelocityTracker vt(VelocityTracker::Strategy::LSQ2); in computeAndCheckQuadraticEstimate()
228 VelocityTracker::Estimator estimator; in computeAndCheckQuadraticEstimate()
249 computeAndCheckVelocity(VelocityTracker::Strategy::IMPULSE, motions, AMOTION_EVENT_AXIS_X, in TEST_F()
261 computeAndCheckVelocity(VelocityTracker::Strategy::IMPULSE, motions, AMOTION_EVENT_AXIS_X, 0); in TEST_F()
262 computeAndCheckVelocity(VelocityTracker::Strategy::LSQ2, motions, AMOTION_EVENT_AXIS_X, 0); in TEST_F()
270 computeAndCheckVelocity(VelocityTracker::Strategy::IMPULSE, motions, AMOTION_EVENT_AXIS_X, 500); in TEST_F()
271 computeAndCheckVelocity(VelocityTracker::Strategy::LSQ2, motions, AMOTION_EVENT_AXIS_X, 500); in TEST_F()
301 computeAndCheckVelocity(VelocityTracker::Strategy::IMPULSE, motions, AMOTION_EVENT_AXIS_X, in TEST_F()
[all …]
/frameworks/native/include/input/
DVelocityTracker.h31 class VelocityTracker {
82 VelocityTracker(const Strategy strategy = Strategy::DEFAULT);
84 ~VelocityTracker();
152 const std::vector<VelocityTracker::Position>& positions) = 0;
153 virtual bool getEstimator(uint32_t id, VelocityTracker::Estimator* outEstimator) const = 0;
184 const std::vector<VelocityTracker::Position>& positions) override;
185 virtual bool getEstimator(uint32_t id, VelocityTracker::Estimator* outEstimator) const;
199 VelocityTracker::Position positions[MAX_POINTERS];
201 inline const VelocityTracker::Position& getPosition(uint32_t id) const { in getPosition()
227 const std::vector<VelocityTracker::Position>& positions) override;
[all …]
DVelocityControl.h101 VelocityTracker::Position mRawPosition;
102 VelocityTracker mVelocityTracker;
/frameworks/base/core/java/android/view/
DVelocityTracker.java40 public final class VelocityTracker { class
41 private static final SynchronizedPool<VelocityTracker> sPool =
42 new SynchronizedPool<VelocityTracker>(2);
219 static public VelocityTracker obtain() { in obtain()
220 VelocityTracker instance = sPool.acquire(); in obtain()
222 : new VelocityTracker(VELOCITY_TRACKER_STRATEGY_DEFAULT); in obtain()
237 public static VelocityTracker obtain(String strategy) { in obtain()
241 return new VelocityTracker(toStrategyId(strategy)); in obtain()
253 public static VelocityTracker obtain(int strategy) { in obtain()
254 return new VelocityTracker(strategy); in obtain()
[all …]
DGestureDetector.java293 private VelocityTracker mVelocityTracker;
544 mVelocityTracker = VelocityTracker.obtain(); in onTouchEvent()
755 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent()
/frameworks/base/core/jni/
Dandroid_view_VelocityTracker.cpp46 explicit VelocityTrackerState(const VelocityTracker::Strategy strategy);
52 bool getEstimator(int32_t id, VelocityTracker::Estimator* outEstimator);
59 VelocityTracker mVelocityTracker;
65 VelocityTrackerState::VelocityTrackerState(const VelocityTracker::Strategy strategy) in VelocityTrackerState()
132 bool VelocityTrackerState::getEstimator(int32_t id, VelocityTracker::Estimator* outEstimator) { in getEstimator()
137 inline static VelocityTracker::Strategy getStrategyFromInt(const int32_t strategy) { in getStrategyFromInt()
138 if (strategy < static_cast<int32_t>(VelocityTracker::Strategy::MIN) || in getStrategyFromInt()
139 strategy > static_cast<int32_t>(VelocityTracker::Strategy::MAX)) { in getStrategyFromInt()
140 return VelocityTracker::Strategy::DEFAULT; in getStrategyFromInt()
142 return static_cast<VelocityTracker::Strategy>(strategy); in getStrategyFromInt()
[all …]
/frameworks/native/libs/input/
DVelocityTracker.cpp107 VelocityTracker::VelocityTracker(const Strategy strategy) in VelocityTracker() function in android::VelocityTracker
112 if (!configureStrategy(VelocityTracker::DEFAULT_STRATEGY)) { in VelocityTracker()
120 VelocityTracker::~VelocityTracker() { in ~VelocityTracker()
123 bool VelocityTracker::configureStrategy(Strategy strategy) { in configureStrategy()
124 if (strategy == VelocityTracker::Strategy::DEFAULT) { in configureStrategy()
125 mStrategy = createStrategy(VelocityTracker::DEFAULT_STRATEGY); in configureStrategy()
132 std::unique_ptr<VelocityTrackerStrategy> VelocityTracker::createStrategy( in createStrategy()
133 VelocityTracker::Strategy strategy) { in createStrategy()
135 case VelocityTracker::Strategy::IMPULSE: in createStrategy()
138 case VelocityTracker::Strategy::LSQ1: in createStrategy()
[all …]
DAndroid.bp55 "VelocityTracker.cpp",
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/
DDividerView.java27 import android.view.VelocityTracker;
55 private VelocityTracker mVelocityTracker;
115 mVelocityTracker = VelocityTracker.obtain(); in onTouch()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DDistanceClassifier.java31 import android.view.VelocityTracker;
128 VelocityTracker velocityTracker = VelocityTracker.obtain(); in calculateDistances()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DRelativeTouchListener.kt23 import android.view.VelocityTracker
89 private val velocityTracker = VelocityTracker.obtain() in onDown()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipTouchState.java24 import android.view.VelocityTracker;
48 private VelocityTracker mVelocityTracker;
375 mVelocityTracker = VelocityTracker.obtain();
/frameworks/base/core/java/com/android/internal/widget/
DNestedScrollingChild.java20 import android.view.VelocityTracker;
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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DPulseExpansionHandler.kt28 import android.view.VelocityTracker
107 private var velocityTracker: VelocityTracker? = null
141 velocityTracker = VelocityTracker.obtain() in startExpansion()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/magnetictarget/
DMagnetizedObject.kt28 import android.view.VelocityTracker in <lambda>()
148 private val velocityTracker: VelocityTracker = VelocityTracker.obtain() in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSwipeHelper.java34 import android.view.VelocityTracker;
78 private final VelocityTracker mVelocityTracker;
126 mVelocityTracker = VelocityTracker.obtain(); in SwipeHelper()
166 private float getVelocity(VelocityTracker vt) { in getVelocity()
177 private float getPerpendicularVelocity(VelocityTracker vt) { in getPerpendicularVelocity()
DExpandHelper.java30 import android.view.VelocityTracker;
110 private VelocityTracker mVelocityTracker;
362 mVelocityTracker = VelocityTracker.obtain(); in trackVelocity()
370 mVelocityTracker = VelocityTracker.obtain(); in trackVelocity()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DUdfpsController.java55 import android.view.VelocityTracker;
135 @Nullable private VelocityTracker mVelocityTracker;
308 private static float computePointerSpeed(@NonNull VelocityTracker tracker, int pointerId) { in computePointerSpeed()
385 mVelocityTracker = VelocityTracker.obtain(); in onTouch()
439 mVelocityTracker = VelocityTracker.obtain(); in onTouch()
/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;
140 private VelocityTracker mVelocityTracker;
532 mVelocityTracker = VelocityTracker.obtain(); in initOrResetVelocityTracker()
540 mVelocityTracker = VelocityTracker.obtain(); in initVelocityTrackerIfNotExists()
788 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/gestural/
DNavigationBarEdgePanel.java41 import android.view.VelocityTracker;
175 private VelocityTracker mVelocityTracker;
460 mVelocityTracker = VelocityTracker.obtain(); in onMotionEvent()
620 mVelocityTracker = VelocityTracker.obtain(); in triggerBack()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardAffordanceHelper.java24 import android.view.VelocityTracker;
49 private VelocityTracker mVelocityTracker;
477 mVelocityTracker = VelocityTracker.obtain(); in initVelocityTracker()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSecurityContainer.java36 import android.view.VelocityTracker;
95 private final VelocityTracker mVelocityTracker = VelocityTracker.obtain();

12