Searched refs:computeVelocity (Results 1 – 2 of 2) sorted by relevance
/frameworks/native/libs/input/tests/ |
D | VelocityTracker_test.cpp | 231 static std::optional<float> computeVelocity(const VelocityTracker::Strategy strategy, in computeVelocity() function 247 return computeVelocity(strategy, events, axis, pointerId); in computePlanarVelocity() 262 checkVelocity(computeVelocity(strategy, events, AMOTION_EVENT_AXIS_SCROLL), targetVelocity); in computeAndCheckAxisScrollVelocity() 265 checkVelocity(computeVelocity(VelocityTracker::Strategy::LSQ2, events, in computeAndCheckAxisScrollVelocity() 512 checkVelocity(computeVelocity(VelocityTracker::Strategy::IMPULSE, events, AMOTION_EVENT_AXIS_X, in TEST_F() 515 checkVelocity(computeVelocity(VelocityTracker::Strategy::IMPULSE, events, AMOTION_EVENT_AXIS_Y, in TEST_F() 518 checkVelocity(computeVelocity(VelocityTracker::Strategy::LSQ2, events, AMOTION_EVENT_AXIS_X, in TEST_F() 521 checkVelocity(computeVelocity(VelocityTracker::Strategy::LSQ2, events, AMOTION_EVENT_AXIS_Y, in TEST_F() 549 checkVelocity(computeVelocity(VelocityTracker::Strategy::IMPULSE, events, AMOTION_EVENT_AXIS_X, in TEST_F() 552 checkVelocity(computeVelocity(VelocityTracker::Strategy::IMPULSE, events, AMOTION_EVENT_AXIS_Y, in TEST_F() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/touch/ |
D | SwipeDetector.java | 244 computeVelocity(mDir.getDisplacement(ev, pointerIndex, mLastPos), in onTouchEvent() 317 public float computeVelocity(float delta, long currentMillis) { in computeVelocity() method in SwipeDetector
|