/packages/apps/Car/Notification/src/com/android/car/notification/ |
D | HeadsUpNotificationOnTouchListener.java | 53 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 …]
|
D | CarNotificationItemTouchListener.java | 96 private VelocityTracker mVelocityTracker; field in CarNotificationItemTouchListener 174 mVelocityTracker.addMovement(event); in onInterceptTouchEvent() 207 mVelocityTracker.addMovement(event); in onInterceptTouchEvent() 285 mVelocityTracker.addMovement(event); in onTouchEvent() 311 mVelocityTracker.computeCurrentVelocity( in onTouchEvent() 362 if (mVelocityTracker == null) { in onGestureStart() 363 mVelocityTracker = VelocityTracker.obtain(); in onGestureStart() 365 mVelocityTracker.clear(); in onGestureStart() 389 mVelocityTracker.recycle(); in onGestureEnd() 390 mVelocityTracker = null; in onGestureEnd() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
D | FlingToDeleteHelper.java | 41 private VelocityTracker mVelocityTracker; field in FlingToDeleteHelper 48 if (mVelocityTracker == null) { in recordMotionEvent() 49 mVelocityTracker = VelocityTracker.obtain(); in recordMotionEvent() 51 mVelocityTracker.addMovement(ev); in recordMotionEvent() 55 if (mVelocityTracker != null) { in releaseVelocityTracker() 56 mVelocityTracker.recycle(); in releaseVelocityTracker() 57 mVelocityTracker = null; in releaseVelocityTracker() 83 if (mVelocityTracker == null) return null; in isFlingingToDelete() 89 mVelocityTracker.computeCurrentVelocity(1000, config.getScaledMaximumFlingVelocity()); in isFlingingToDelete() 90 PointF vel = new PointF(mVelocityTracker.getXVelocity(), mVelocityTracker.getYVelocity()); in isFlingingToDelete() [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | TriggerSwipeUpTouchTracker.java | 48 private VelocityTracker mVelocityTracker; field in TriggerSwipeUpTouchTracker 69 mVelocityTracker = VelocityTracker.obtain(); in init() 83 if (mVelocityTracker == null) { in onMotionEvent() 87 mVelocityTracker.addMovement(ev); in onMotionEvent() 128 if (mVelocityTracker != null) { in endTouchTracking() 129 mVelocityTracker.recycle(); in endTouchTracking() 130 mVelocityTracker = null; in endTouchTracking() 135 mVelocityTracker.computeCurrentVelocity(PX_PER_MS); in onGestureEnd() 136 float velocityX = mVelocityTracker.getXVelocity(); in onGestureEnd() 137 float velocityY = mVelocityTracker.getYVelocity(); in onGestureEnd()
|
D | MotionPauseDetector.java | 212 private final VelocityTracker mVelocityTracker; 216 mVelocityTracker = VelocityTracker.obtain(); 225 mVelocityTracker.addMovement(ev); 226 mVelocityTracker.computeCurrentVelocity(1); // px / ms 228 ? mVelocityTracker.getXVelocity(pointer) 229 : mVelocityTracker.getYVelocity(pointer); 236 mVelocityTracker.clear();
|
/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
D | BaseSwipeDetector.java | 59 private VelocityTracker mVelocityTracker; field in BaseSwipeDetector 128 if (actionMasked == MotionEvent.ACTION_DOWN && mVelocityTracker != null) { in onTouchEvent() 129 mVelocityTracker.clear(); in onTouchEvent() 131 if (mVelocityTracker == null) { in onTouchEvent() 132 mVelocityTracker = VelocityTracker.obtain(); in onTouchEvent() 134 mVelocityTracker.addMovement(ev); in onTouchEvent() 187 mVelocityTracker.recycle(); in onTouchEvent() 188 mVelocityTracker = null; in onTouchEvent() 269 mVelocityTracker.computeCurrentVelocity(1000, mMaxVelocity); in reportDragEnd() 270 PointF velocity = new PointF(mVelocityTracker.getXVelocity() / 1000, in reportDragEnd() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/ |
D | ConversationListSwipeHelper.java | 60 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/Launcher3/quickstep/src/com/android/quickstep/interaction/ |
D | EdgeBackGesturePanel.java | 147 private VelocityTracker mVelocityTracker; field in EdgeBackGesturePanel 336 if (mVelocityTracker == null) { in onMotionEvent() 337 mVelocityTracker = VelocityTracker.obtain(); in onMotionEvent() 339 mVelocityTracker.addMovement(event); in onMotionEvent() 358 mVelocityTracker.recycle(); in onMotionEvent() 359 mVelocityTracker = null; in onMotionEvent() 363 mVelocityTracker.recycle(); in onMotionEvent() 364 mVelocityTracker = null; in onMotionEvent() 447 if (mVelocityTracker == null) { in triggerBack() 448 mVelocityTracker = VelocityTracker.obtain(); in triggerBack() [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/inputconsumers/ |
D | OtherActivityInputConsumer.java | 108 private VelocityTracker mVelocityTracker; field in OtherActivityInputConsumer 164 mVelocityTracker = VelocityTracker.obtain(); in OtherActivityInputConsumer() 202 if (mVelocityTracker == null) { in onMotionEvent() 212 mVelocityTracker.clear(); in onMotionEvent() 232 mVelocityTracker.addMovement(ev); in onMotionEvent() 234 mVelocityTracker.clear(); in onMotionEvent() 419 mVelocityTracker.computeCurrentVelocity(PX_PER_MS); 420 float velocityX = mVelocityTracker.getXVelocity(mActivePointerId); 421 float velocityY = mVelocityTracker.getYVelocity(mActivePointerId); 444 mVelocityTracker.recycle(); [all …]
|
D | AccessibilityInputConsumer.java | 46 private final VelocityTracker mVelocityTracker; field in AccessibilityInputConsumer 61 mVelocityTracker = VelocityTracker.obtain(); in AccessibilityInputConsumer() 78 mVelocityTracker.addMovement(ev); in onMotionEvent() 132 mVelocityTracker.computeCurrentVelocity(1000); in onMotionEvent() 135 || (-mVelocityTracker.getYVelocity()) > mMinFlingVelocity) { in onMotionEvent() 143 mVelocityTracker.recycle(); in onMotionEvent()
|
D | DeviceLockedInputConsumer.java | 97 private VelocityTracker mVelocityTracker; field in DeviceLockedInputConsumer 126 mVelocityTracker = VelocityTracker.obtain(); in DeviceLockedInputConsumer() 136 if (mVelocityTracker == null) { in onMotionEvent() 139 mVelocityTracker.addMovement(ev); in onMotionEvent() 184 mVelocityTracker.computeCurrentVelocity(PX_PER_MS); in finishTouchTracking() 186 float velocityY = mVelocityTracker.getYVelocity(); in finishTouchTracking() 217 mVelocityTracker.recycle(); in finishTouchTracking() 218 mVelocityTracker = null; in finishTouchTracking()
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
D | MultiShrinkScroller.java | 98 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/ |
D | GalleryThumbnailView.java | 83 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/ |
D | PagedView.java | 109 private VelocityTracker mVelocityTracker; field in PagedView 1241 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent() 1399 if (mVelocityTracker == null) { in acquireVelocityTrackerAndAddMovement() 1400 mVelocityTracker = VelocityTracker.obtain(); in acquireVelocityTrackerAndAddMovement() 1402 mVelocityTracker.addMovement(ev); in acquireVelocityTrackerAndAddMovement() 1406 if (mVelocityTracker != null) { in releaseVelocityTracker() 1407 mVelocityTracker.clear(); in releaseVelocityTracker() 1408 mVelocityTracker.recycle(); in releaseVelocityTracker() 1409 mVelocityTracker = null; in releaseVelocityTracker() 1425 if (mVelocityTracker != null) { in onSecondaryPointerUp() [all …]
|