Home
last modified time | relevance | path

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

/packages/apps/Car/Notification/src/com/android/car/notification/
DHeadsUpNotificationOnTouchListener.java53 private VelocityTracker mVelocityTracker; field in HeadsUpNotificationOnTouchListener
82 mVelocityTracker = VelocityTracker.obtain(); in onTouch()
83 mVelocityTracker.addMovement(motionEvent); in onTouch()
88 if (mVelocityTracker == null) { in onTouch()
93 mVelocityTracker.addMovement(motionEvent); in onTouch()
94 mVelocityTracker.computeCurrentVelocity(VELOCITY_UNITS); in onTouch()
95 float velocityX = mVelocityTracker.getXVelocity(); in onTouch()
97 float absVelocityY = Math.abs(mVelocityTracker.getYVelocity()); in onTouch()
110 dismissRight = mVelocityTracker.getXVelocity() > 0; in onTouch()
132 if (mVelocityTracker == null) { in onTouch()
[all …]
DCarNotificationItemTouchListener.java95 private VelocityTracker mVelocityTracker; field in CarNotificationItemTouchListener
192 mVelocityTracker.addMovement(event); in onInterceptTouchEvent()
224 mVelocityTracker.addMovement(event); in onInterceptTouchEvent()
301 mVelocityTracker.addMovement(event); in onTouchEvent()
327 mVelocityTracker.computeCurrentVelocity( in onTouchEvent()
382 if (mVelocityTracker == null) { in onGestureStart()
383 mVelocityTracker = VelocityTracker.obtain(); in onGestureStart()
385 mVelocityTracker.clear(); in onGestureStart()
413 mVelocityTracker.recycle(); in onGestureEnd()
414 mVelocityTracker = null; in onGestureEnd()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DFlingToDeleteHelper.java43 private VelocityTracker mVelocityTracker; field in FlingToDeleteHelper
52 if (mVelocityTracker == null) { in recordMotionEvent()
53 mVelocityTracker = VelocityTracker.obtain(); in recordMotionEvent()
55 mVelocityTracker.addMovement(ev); in recordMotionEvent()
84 if (mVelocityTracker != null) { in releaseVelocityTracker()
85 mVelocityTracker.recycle(); in releaseVelocityTracker()
86 mVelocityTracker = null; in releaseVelocityTracker()
114 mVelocityTracker.computeCurrentVelocity(1000, config.getScaledMaximumFlingVelocity()); in isFlingingToDelete()
115 PointF vel = new PointF(mVelocityTracker.getXVelocity(), mVelocityTracker.getYVelocity()); in isFlingingToDelete()
117 if (mVelocityTracker.getYVelocity() < mFlingToDeleteThresholdVelocity) { in isFlingingToDelete()
[all …]
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/inputconsumers/
DOverviewWithoutFocusInputConsumer.java49 private VelocityTracker mVelocityTracker; field in OverviewWithoutFocusInputConsumer
60 mVelocityTracker = VelocityTracker.obtain(); in OverviewWithoutFocusInputConsumer()
74 if (mVelocityTracker != null) { in endTouchTracking()
75 mVelocityTracker.recycle(); in endTouchTracking()
76 mVelocityTracker = null; in endTouchTracking()
82 if (mVelocityTracker == null) { in onMotionEvent()
86 mVelocityTracker.addMovement(ev); in onMotionEvent()
127 mVelocityTracker.computeCurrentVelocity(100); in finishTouchTracking()
128 float velocityX = mVelocityTracker.getXVelocity(); in finishTouchTracking()
129 float velocityY = mVelocityTracker.getYVelocity(); in finishTouchTracking()
DDeviceLockedInputConsumer.java86 private VelocityTracker mVelocityTracker; field in DeviceLockedInputConsumer
113 mVelocityTracker = VelocityTracker.obtain(); in DeviceLockedInputConsumer()
123 if (mVelocityTracker == null) { in onMotionEvent()
126 mVelocityTracker.addMovement(ev); in onMotionEvent()
176 mVelocityTracker.computeCurrentVelocity(1000, in finishTouchTracking()
179 float velocityY = mVelocityTracker.getYVelocity(); in finishTouchTracking()
197 mVelocityTracker.recycle(); in finishTouchTracking()
198 mVelocityTracker = null; in finishTouchTracking()
DOtherActivityInputConsumer.java101 private VelocityTracker mVelocityTracker; field in OtherActivityInputConsumer
150 mVelocityTracker = VelocityTracker.obtain(); in OtherActivityInputConsumer()
184 if (mVelocityTracker == null) { in onMotionEvent()
199 mVelocityTracker.addMovement(ev); in onMotionEvent()
201 mVelocityTracker.clear(); in onMotionEvent()
373 mVelocityTracker.computeCurrentVelocity(1000, in finishTouchTracking()
375 float velocityX = mVelocityTracker.getXVelocity(mActivePointerId); in finishTouchTracking()
376 float velocityY = mVelocityTracker.getYVelocity(mActivePointerId); in finishTouchTracking()
398 mVelocityTracker.recycle(); in finishTouchTracking()
399 mVelocityTracker = null; in finishTouchTracking()
DAccessibilityInputConsumer.java47 private final VelocityTracker mVelocityTracker; field in AccessibilityInputConsumer
64 mVelocityTracker = VelocityTracker.obtain(); in AccessibilityInputConsumer()
82 mVelocityTracker.addMovement(ev); in onMotionEvent()
137 mVelocityTracker.computeCurrentVelocity(1000); in onMotionEvent()
140 || (-mVelocityTracker.getYVelocity()) > mMinFlingVelocity) { in onMotionEvent()
151 mVelocityTracker.recycle(); in onMotionEvent()
DFallbackNoButtonInputConsumer.java94 private VelocityTracker mVelocityTracker; field in FallbackNoButtonInputConsumer
122 mVelocityTracker = VelocityTracker.obtain(); in FallbackNoButtonInputConsumer()
143 if (mVelocityTracker == null) { in onMotionEvent()
147 mVelocityTracker.addMovement(ev); in onMotionEvent()
149 mVelocityTracker.clear(); in onMotionEvent()
258 mVelocityTracker.computeCurrentVelocity(1000, in finishTouchTracking()
260 float velocityX = mVelocityTracker.getXVelocity(mActivePointerId); in finishTouchTracking()
261 float velocityY = mVelocityTracker.getYVelocity(mActivePointerId); in finishTouchTracking()
/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/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/Launcher3/src/com/android/launcher3/touch/
DSwipeDetector.java228 private VelocityTracker mVelocityTracker; field in SwipeDetector
288 if (actionMasked == MotionEvent.ACTION_DOWN && mVelocityTracker != null) { in onTouchEvent()
289 mVelocityTracker.clear(); in onTouchEvent()
291 if (mVelocityTracker == null) { in onTouchEvent()
292 mVelocityTracker = VelocityTracker.obtain(); in onTouchEvent()
294 mVelocityTracker.addMovement(ev); in onTouchEvent()
349 mVelocityTracker.recycle(); in onTouchEvent()
350 mVelocityTracker = null; in onTouchEvent()
404 mVelocityTracker.computeCurrentVelocity(1000, mMaxVelocity); in reportDragEnd()
405 float velocity = mDir.getVelocity(mVelocityTracker, mIsRtl) / 1000; in reportDragEnd()
/packages/apps/Contacts/src/com/android/contacts/widget/
DMultiShrinkScroller.java98 private VelocityTracker mVelocityTracker; field in MultiShrinkScroller
459 if (mVelocityTracker == null) { in onInterceptTouchEvent()
460 mVelocityTracker = VelocityTracker.obtain(); in onInterceptTouchEvent()
462 mVelocityTracker.addMovement(event); in onInterceptTouchEvent()
510 if (mVelocityTracker == null) { in onTouchEvent()
511 mVelocityTracker = VelocityTracker.obtain(); in onTouchEvent()
513 mVelocityTracker.addMovement(event); in onTouchEvent()
609 if (mVelocityTracker != null) { in stopDrag()
610 mVelocityTracker.recycle(); in stopDrag()
611 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/Launcher3/src/com/android/launcher3/
DPagedView.java106 private VelocityTracker mVelocityTracker; field in PagedView
1159 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent()
1318 if (mVelocityTracker == null) { in acquireVelocityTrackerAndAddMovement()
1319 mVelocityTracker = VelocityTracker.obtain(); in acquireVelocityTrackerAndAddMovement()
1321 mVelocityTracker.addMovement(ev); in acquireVelocityTrackerAndAddMovement()
1325 if (mVelocityTracker != null) { in releaseVelocityTracker()
1326 mVelocityTracker.clear(); in releaseVelocityTracker()
1327 mVelocityTracker.recycle(); in releaseVelocityTracker()
1328 mVelocityTracker = null; in releaseVelocityTracker()
1344 if (mVelocityTracker != null) { in onSecondaryPointerUp()
[all …]
/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()