/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 | 95 private VelocityTracker mVelocityTracker; field in CarNotificationItemTouchListener 173 mVelocityTracker.addMovement(event); in onInterceptTouchEvent() 205 mVelocityTracker.addMovement(event); in onInterceptTouchEvent() 283 mVelocityTracker.addMovement(event); in onTouchEvent() 309 mVelocityTracker.computeCurrentVelocity( in onTouchEvent() 360 if (mVelocityTracker == null) { in onGestureStart() 361 mVelocityTracker = VelocityTracker.obtain(); in onGestureStart() 363 mVelocityTracker.clear(); in onGestureStart() 387 mVelocityTracker.recycle(); in onGestureEnd() 388 mVelocityTracker = null; in onGestureEnd() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
D | FlingToDeleteHelper.java | 41 private VelocityTracker mVelocityTracker; field in FlingToDeleteHelper 50 if (mVelocityTracker == null) { in recordMotionEvent() 51 mVelocityTracker = VelocityTracker.obtain(); in recordMotionEvent() 53 mVelocityTracker.addMovement(ev); in recordMotionEvent() 57 if (mVelocityTracker != null) { in releaseVelocityTracker() 58 mVelocityTracker.recycle(); in releaseVelocityTracker() 59 mVelocityTracker = null; in releaseVelocityTracker() 82 if (mVelocityTracker == null) return null; in isFlingingToDelete() 88 mVelocityTracker.computeCurrentVelocity(1000, config.getScaledMaximumFlingVelocity()); in isFlingingToDelete() 89 PointF vel = new PointF(mVelocityTracker.getXVelocity(), mVelocityTracker.getYVelocity()); in isFlingingToDelete() [all …]
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/util/ |
D | TriggerSwipeUpTouchTracker.java | 47 private VelocityTracker mVelocityTracker; field in TriggerSwipeUpTouchTracker 67 mVelocityTracker = VelocityTracker.obtain(); in init() 81 if (mVelocityTracker == null) { in onMotionEvent() 85 mVelocityTracker.addMovement(ev); in onMotionEvent() 126 if (mVelocityTracker != null) { in endTouchTracking() 127 mVelocityTracker.recycle(); in endTouchTracking() 128 mVelocityTracker = null; in endTouchTracking() 133 mVelocityTracker.computeCurrentVelocity(1000); in onGestureEnd() 134 float velocityX = mVelocityTracker.getXVelocity(); in onGestureEnd() 135 float velocityY = mVelocityTracker.getYVelocity(); in onGestureEnd()
|
/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
D | BaseSwipeDetector.java | 61 private VelocityTracker mVelocityTracker; field in BaseSwipeDetector 130 if (actionMasked == MotionEvent.ACTION_DOWN && mVelocityTracker != null) { in onTouchEvent() 131 mVelocityTracker.clear(); in onTouchEvent() 133 if (mVelocityTracker == null) { in onTouchEvent() 134 mVelocityTracker = VelocityTracker.obtain(); in onTouchEvent() 136 mVelocityTracker.addMovement(ev); in onTouchEvent() 192 mVelocityTracker.recycle(); in onTouchEvent() 193 mVelocityTracker = null; in onTouchEvent() 274 mVelocityTracker.computeCurrentVelocity(1000, mMaxVelocity); in reportDragEnd() 275 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/recents_ui_overrides/src/com/android/quickstep/inputconsumers/ |
D | DeviceLockedInputConsumer.java | 96 private VelocityTracker mVelocityTracker; field in DeviceLockedInputConsumer 125 mVelocityTracker = VelocityTracker.obtain(); in DeviceLockedInputConsumer() 135 if (mVelocityTracker == null) { in onMotionEvent() 138 mVelocityTracker.addMovement(ev); in onMotionEvent() 183 mVelocityTracker.computeCurrentVelocity(1000, in finishTouchTracking() 186 float velocityY = mVelocityTracker.getYVelocity(); in finishTouchTracking() 219 mVelocityTracker.recycle(); in finishTouchTracking() 220 mVelocityTracker = null; in finishTouchTracking()
|
D | OtherActivityInputConsumer.java | 100 private VelocityTracker mVelocityTracker; field in OtherActivityInputConsumer 152 mVelocityTracker = VelocityTracker.obtain(); in OtherActivityInputConsumer() 187 if (mVelocityTracker == null) { in onMotionEvent() 206 mVelocityTracker.addMovement(ev); in onMotionEvent() 208 mVelocityTracker.clear(); in onMotionEvent() 393 mVelocityTracker.computeCurrentVelocity(1000, 395 float velocityX = mVelocityTracker.getXVelocity(mActivePointerId); 396 float velocityY = mVelocityTracker.getYVelocity(mActivePointerId); 419 mVelocityTracker.recycle(); 420 mVelocityTracker = null;
|
D | AccessibilityInputConsumer.java | 46 private final VelocityTracker mVelocityTracker; field in AccessibilityInputConsumer 61 mVelocityTracker = VelocityTracker.obtain(); in AccessibilityInputConsumer() 78 mVelocityTracker.addMovement(ev); in onMotionEvent() 131 mVelocityTracker.computeCurrentVelocity(1000); in onMotionEvent() 134 || (-mVelocityTracker.getYVelocity()) > mMinFlingVelocity) { in onMotionEvent() 142 mVelocityTracker.recycle(); in onMotionEvent()
|
/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 | 116 private VelocityTracker mVelocityTracker; field in PagedView 1217 final VelocityTracker velocityTracker = mVelocityTracker; 1399 if (mVelocityTracker == null) { 1400 mVelocityTracker = VelocityTracker.obtain(); 1402 mVelocityTracker.addMovement(ev); 1406 if (mVelocityTracker != null) { 1407 mVelocityTracker.clear(); 1408 mVelocityTracker.recycle(); 1409 mVelocityTracker = null; 1425 if (mVelocityTracker != null) { [all …]
|