Home
last modified time | relevance | path

Searched refs:mVelocityTracker (Results 1 – 14 of 14) sorted by relevance

/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
DConversationListSwipeHelper.java60 private VelocityTracker mVelocityTracker; field in ConversationListSwipeHelper
98 mVelocityTracker.addMovement(event); in onInterceptTouchEvent()
118 mVelocityTracker.addMovement(event); in onInterceptTouchEvent()
177 mVelocityTracker.addMovement(event); in onTouchEvent()
190 mVelocityTracker.computeCurrentVelocity(UNIT_SECONDS, maxVelocity); in onTouchEvent()
248 if (mVelocityTracker == null) { in onGestureStart()
249 mVelocityTracker = VelocityTracker.obtain(); in onGestureStart()
251 mVelocityTracker.clear(); in onGestureStart()
286 mVelocityTracker.recycle(); in onGestureEnd()
287 mVelocityTracker = null; in onGestureEnd()
[all …]
/packages/apps/Browser/src/com/android/browser/view/
DScrollerView.java103 private VelocityTracker mVelocityTracker; field in ScrollerView
465 if (mVelocityTracker == null) { in initOrResetVelocityTracker()
466 mVelocityTracker = VelocityTracker.obtain(); in initOrResetVelocityTracker()
468 mVelocityTracker.clear(); in initOrResetVelocityTracker()
473 if (mVelocityTracker == null) { in initVelocityTrackerIfNotExists()
474 mVelocityTracker = VelocityTracker.obtain(); in initVelocityTrackerIfNotExists()
479 if (mVelocityTracker != null) { in recycleVelocityTracker()
480 mVelocityTracker.recycle(); in recycleVelocityTracker()
481 mVelocityTracker = null; in recycleVelocityTracker()
539 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent()
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DDragController.java120 private VelocityTracker mVelocityTracker; field in DragController
153 mVelocityTracker = VelocityTracker.obtain(); in DragController()
627 mVelocityTracker.computeCurrentVelocity(1000, config.getScaledMaximumFlingVelocity());
629 if (mVelocityTracker.getYVelocity() < mFlingToDeleteThresholdVelocity) {
631 PointF vel = new PointF(mVelocityTracker.getXVelocity(),
632 mVelocityTracker.getYVelocity());
768 if (mVelocityTracker == null) {
769 mVelocityTracker = VelocityTracker.obtain();
771 mVelocityTracker.addMovement(ev);
775 if (mVelocityTracker != null) {
[all …]
DPagedView.java95 private VelocityTracker mVelocityTracker; field in PagedView
1287 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent()
1405 if (mVelocityTracker == null) { in acquireVelocityTrackerAndAddMovement()
1406 mVelocityTracker = VelocityTracker.obtain(); in acquireVelocityTrackerAndAddMovement()
1408 mVelocityTracker.addMovement(ev); in acquireVelocityTrackerAndAddMovement()
1412 if (mVelocityTracker != null) { in releaseVelocityTracker()
1413 mVelocityTracker.recycle(); in releaseVelocityTracker()
1414 mVelocityTracker = null; in releaseVelocityTracker()
1431 if (mVelocityTracker != null) { in onSecondaryPointerUp()
1432 mVelocityTracker.clear(); in onSecondaryPointerUp()
/packages/apps/Launcher3/src/com/android/launcher3/
DDragController.java124 private VelocityTracker mVelocityTracker; field in DragController
156 mVelocityTracker = VelocityTracker.obtain(); in DragController()
677 mVelocityTracker.computeCurrentVelocity(1000, config.getScaledMaximumFlingVelocity());
679 if (mVelocityTracker.getYVelocity() < mFlingToDeleteThresholdVelocity) {
681 PointF vel = new PointF(mVelocityTracker.getXVelocity(),
682 mVelocityTracker.getYVelocity());
808 if (mVelocityTracker == null) {
809 mVelocityTracker = VelocityTracker.obtain();
811 mVelocityTracker.addMovement(ev);
815 if (mVelocityTracker != null) {
[all …]
DPagedView.java111 private VelocityTracker mVelocityTracker; field in PagedView
1752 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent()
1922 if (mVelocityTracker == null) { in acquireVelocityTrackerAndAddMovement()
1923 mVelocityTracker = VelocityTracker.obtain(); in acquireVelocityTrackerAndAddMovement()
1925 mVelocityTracker.addMovement(ev); in acquireVelocityTrackerAndAddMovement()
1929 if (mVelocityTracker != null) { in releaseVelocityTracker()
1930 mVelocityTracker.clear(); in releaseVelocityTracker()
1931 mVelocityTracker.recycle(); in releaseVelocityTracker()
1932 mVelocityTracker = null; in releaseVelocityTracker()
1949 if (mVelocityTracker != null) { in onSecondaryPointerUp()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DGmailDragHelper.java67 private VelocityTracker mVelocityTracker; field in GmailDragHelper
105 if (mVelocityTracker == null) { in processTouchEvent()
106 mVelocityTracker = VelocityTracker.obtain(); in processTouchEvent()
108 mVelocityTracker.addMovement(ev); in processTouchEvent()
167 mVelocityTracker.computeCurrentVelocity(1000); in setDragging()
169 final float xVelocity = mVelocityTracker.getXVelocity(); in setDragging()
172 mVelocityTracker.clear(); in setDragging()
DSwipeHelper.java72 private final VelocityTracker mVelocityTracker; field in SwipeHelper
88 mVelocityTracker = VelocityTracker.obtain(); in SwipeHelper()
212 mVelocityTracker.clear(); in onInterceptTouchEvent()
216 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent()
237 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent()
356 mVelocityTracker.addMovement(ev); in onTouchEvent()
404 mVelocityTracker.computeCurrentVelocity(1000 /* px/sec */, maxVelocity); in onTouchEvent()
406 float velocity = getVelocity(mVelocityTracker); in onTouchEvent()
407 float perpendicularVelocity = getPerpendicularVelocity(mVelocityTracker); in onTouchEvent()
/packages/apps/Contacts/src/com/android/contacts/widget/
DMultiShrinkScroller.java95 private VelocityTracker mVelocityTracker; field in MultiShrinkScroller
398 if (mVelocityTracker == null) { in onInterceptTouchEvent()
399 mVelocityTracker = VelocityTracker.obtain(); in onInterceptTouchEvent()
401 mVelocityTracker.addMovement(event); in onInterceptTouchEvent()
449 if (mVelocityTracker == null) { in onTouchEvent()
450 mVelocityTracker = VelocityTracker.obtain(); in onTouchEvent()
452 mVelocityTracker.addMovement(event); in onTouchEvent()
545 if (mVelocityTracker != null) { in stopDrag()
546 mVelocityTracker.recycle(); in stopDrag()
547 mVelocityTracker = null; in stopDrag()
[all …]
/packages/apps/Gallery2/src/com/android/photos/views/
DGalleryThumbnailView.java83 private final VelocityTracker mVelocityTracker = VelocityTracker.obtain(); field in GalleryThumbnailView
281 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent()
285 mVelocityTracker.clear(); in onInterceptTouchEvent()
322 mVelocityTracker.addMovement(ev); in onTouchEvent()
326 mVelocityTracker.clear(); in onTouchEvent()
355 mVelocityTracker.clear(); in onTouchEvent()
365 mVelocityTracker.computeCurrentVelocity(1000, mMaximumVelocity); in onTouchEvent()
366 final float velocity = VelocityTrackerCompat.getXVelocity(mVelocityTracker, in onTouchEvent()
/packages/apps/FMRadio/src/com/android/fmradio/views/
DFmScroller.java87 private VelocityTracker mVelocityTracker; field in FmScroller
352 if (mVelocityTracker == null) { in onTouchEvent()
353 mVelocityTracker = VelocityTracker.obtain(); in onTouchEvent()
355 mVelocityTracker.addMovement(event); in onTouchEvent()
446 if (mVelocityTracker != null) { in stopDrag()
447 mVelocityTracker.recycle(); in stopDrag()
448 mVelocityTracker = null; in stopDrag()
587 if (mVelocityTracker == null) { in getCurrentVelocity()
590 mVelocityTracker.computeCurrentVelocity(PIXELS_PER_SECOND, mMaximumVelocity); in getCurrentVelocity()
591 return mVelocityTracker.getYVelocity(); in getCurrentVelocity()
/packages/apps/Camera/src/com/android/camera/ui/
DSwitch.java73 private VelocityTracker mVelocityTracker = VelocityTracker.obtain(); field in Switch
224 mVelocityTracker.addMovement(ev); in onTouchEvent()
281 mVelocityTracker.clear(); in onTouchEvent()
310 mVelocityTracker.computeCurrentVelocity(1000); in stopDrag()
311 float xvel = mVelocityTracker.getXVelocity(); in stopDrag()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DConversationContainer.java166 private final InputSmoother mVelocityTracker; field in ConversationContainer
239 mVelocityTracker = new InputSmoother(c); in ConversationContainer()
444 mVelocityTracker.onInput(y); in onNotifierScroll()
940 final Float v = mVelocityTracker.getSmoothedVelocity(); in positionSnapHeader()
/packages/apps/DeskClock/src/com/android/deskclock/widget/sgv/
DStaggeredGridView.java209 private final VelocityTracker mVelocityTracker = VelocityTracker.obtain(); field in StaggeredGridView
896 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent()
909 mVelocityTracker.clear(); in onInterceptTouchEvent()
946 mVelocityTracker.addMovement(ev); in onTouchEvent()
951 mVelocityTracker.clear(); in onTouchEvent()
980 mVelocityTracker.clear(); in onTouchEvent()
992 mVelocityTracker.computeCurrentVelocity(1000, mMaximumVelocity); in onTouchEvent()
993 final float velocity = VelocityTrackerCompat.getYVelocity(mVelocityTracker, in onTouchEvent()