Home
last modified time | relevance | path

Searched refs:velocityTracker (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/brightline/
DDistanceClassifier.java112 VelocityTracker velocityTracker = VelocityTracker.obtain(); in calculateDistances() local
121 velocityTracker.addMovement(motionEvent); in calculateDistances()
123 velocityTracker.computeCurrentVelocity(1); in calculateDistances()
125 float vX = velocityTracker.getXVelocity(); in calculateDistances()
126 float vY = velocityTracker.getYVelocity(); in calculateDistances()
128 velocityTracker.recycle(); in calculateDistances()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DPulseExpansionHandler.kt109 private var velocityTracker: VelocityTracker? = null in <lambda>() variable
134 if (velocityTracker == null) { in <lambda>()
135 velocityTracker = VelocityTracker.obtain() in <lambda>()
137 velocityTracker!!.addMovement(event) in <lambda>()
177 velocityTracker?.recycle() in <lambda>()
178 velocityTracker = null in <lambda>()
185 velocityTracker!!.addMovement(event) in <lambda>()
192 velocityTracker!!.computeCurrentVelocity(1000 /* units */) in <lambda>()
193 val canExpand = moveDistance > 0 && velocityTracker!!.getYVelocity() > -1000 && in <lambda>()
/frameworks/base/core/java/android/view/
DGestureDetector.java737 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent() local
739 velocityTracker.computeCurrentVelocity(1000, mMaximumFlingVelocity); in onTouchEvent()
740 final float velocityY = velocityTracker.getYVelocity(pointerId); in onTouchEvent()
741 final float velocityX = velocityTracker.getXVelocity(pointerId); in onTouchEvent()
/frameworks/base/core/java/android/widget/
DSlidingDrawer.java437 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent() local
438 velocityTracker.computeCurrentVelocity(mVelocityUnits); in onTouchEvent()
440 float yVelocity = velocityTracker.getYVelocity(); in onTouchEvent()
441 float xVelocity = velocityTracker.getXVelocity(); in onTouchEvent()
DHorizontalScrollView.java762 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent() local
763 velocityTracker.computeCurrentVelocity(1000, mMaximumVelocity); in onTouchEvent()
764 int initialVelocity = (int) velocityTracker.getXVelocity(mActivePointerId); in onTouchEvent()
DScrollView.java834 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent() local
835 velocityTracker.computeCurrentVelocity(1000, mMaximumVelocity); in onTouchEvent()
836 int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId); in onTouchEvent()
DNumberPicker.java979 VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent() local
980 velocityTracker.computeCurrentVelocity(1000, mMaximumFlingVelocity); in onTouchEvent()
981 int initialVelocity = (int) velocityTracker.getYVelocity(); in onTouchEvent()
DAbsListView.java4148 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchUp()
4149 velocityTracker.computeCurrentVelocity(1000, mMaximumVelocity); in onTouchUp()
4152 (velocityTracker.getYVelocity(mActivePointerId) * mVelocityScale); in onTouchUp()
4198 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchUp() local
4199 velocityTracker.computeCurrentVelocity(1000, mMaximumVelocity); in onTouchUp()
4200 final int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId); in onTouchUp()
/frameworks/native/services/inputflinger/reader/mapper/
DTouchInputMapper.h707 VelocityTracker velocityTracker; member
718 velocityTracker.clear(); in reset()
DTouchInputMapper.cpp2636 mPointerGesture.velocityTracker.addMovement(when, mCurrentCookedState.fingerIdBits, in preparePointerGestures()
2747 if (mPointerGesture.velocityTracker.getVelocity(id, &vx, &vy)) { in preparePointerGestures()
/frameworks/base/core/java/com/android/internal/widget/
DViewPager.java2017 final VelocityTracker velocityTracker = mVelocityTracker;
2018 velocityTracker.computeCurrentVelocity(1000, mMaximumVelocity);
2019 … final int initialVelocity = (int) velocityTracker.getXVelocity(mActivePointerId);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationStackScrollLayout.java3859 final VelocityTracker velocityTracker = mVelocityTracker;
3860 velocityTracker.computeCurrentVelocity(1000, mMaximumVelocity);
3861 int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId);