/frameworks/support/design/src/android/support/design/widget/ |
D | HeaderBehavior.java | 46 private VelocityTracker mVelocityTracker; field in HeaderBehavior 104 if (mVelocityTracker != null) { in onInterceptTouchEvent() 105 mVelocityTracker.recycle(); in onInterceptTouchEvent() 106 mVelocityTracker = null; in onInterceptTouchEvent() 112 if (mVelocityTracker != null) { in onInterceptTouchEvent() 113 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent() 168 if (mVelocityTracker != null) { in onTouchEvent() 169 mVelocityTracker.addMovement(ev); in onTouchEvent() 170 mVelocityTracker.computeCurrentVelocity(1000); in onTouchEvent() 171 float yvel = VelocityTrackerCompat.getYVelocity(mVelocityTracker, in onTouchEvent() [all …]
|
D | BottomSheetBehavior.java | 142 private VelocityTracker mVelocityTracker; field in BottomSheetBehavior 232 if (mVelocityTracker == null) { in onInterceptTouchEvent() 233 mVelocityTracker = VelocityTracker.obtain(); in onInterceptTouchEvent() 235 mVelocityTracker.addMovement(event); in onInterceptTouchEvent() 286 if (mVelocityTracker == null) { in onTouchEvent() 287 mVelocityTracker = VelocityTracker.obtain(); in onTouchEvent() 289 mVelocityTracker.addMovement(event); in onTouchEvent() 528 if (mVelocityTracker != null) { in reset() 529 mVelocityTracker.recycle(); in reset() 530 mVelocityTracker = null; in reset() [all …]
|
/frameworks/support/v4/java/android/support/v4/view/ |
D | GestureDetectorCompat.java | 100 private VelocityTracker mVelocityTracker; field in GestureDetectorCompat.GestureDetectorCompatImplBase 226 if (mVelocityTracker == null) { in onTouchEvent() 227 mVelocityTracker = VelocityTracker.obtain(); in onTouchEvent() 229 mVelocityTracker.addMovement(ev); in onTouchEvent() 263 mVelocityTracker.computeCurrentVelocity(1000, mMaximumFlingVelocity); in onTouchEvent() 266 final float x1 = VelocityTrackerCompat.getXVelocity(mVelocityTracker, id1); in onTouchEvent() 267 final float y1 = VelocityTrackerCompat.getYVelocity(mVelocityTracker, id1); in onTouchEvent() 272 final float x = x1 * VelocityTrackerCompat.getXVelocity(mVelocityTracker, id2); in onTouchEvent() 273 final float y = y1 * VelocityTrackerCompat.getYVelocity(mVelocityTracker, id2); in onTouchEvent() 277 mVelocityTracker.clear(); in onTouchEvent() [all …]
|
D | ViewPager.java | 217 private VelocityTracker mVelocityTracker; field in ViewPager 2134 if (mVelocityTracker == null) { 2135 mVelocityTracker = VelocityTracker.obtain(); 2137 mVelocityTracker.addMovement(ev); 2166 if (mVelocityTracker == null) { 2167 mVelocityTracker = VelocityTracker.obtain(); 2169 mVelocityTracker.addMovement(ev); 2227 final VelocityTracker velocityTracker = mVelocityTracker; 2513 if (mVelocityTracker == null) { 2514 mVelocityTracker = VelocityTracker.obtain(); [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | SwipeDismissLayout.java | 73 private VelocityTracker mVelocityTracker; field in SwipeDismissLayout 178 mVelocityTracker = VelocityTracker.obtain(); in onInterceptTouchEvent() 179 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent() 202 if (mVelocityTracker == null || mDiscardIntercept) { in onInterceptTouchEvent() 228 if (mVelocityTracker == null) { in onTouchEvent() 250 mVelocityTracker.addMovement(ev); in onTouchEvent() 290 if (mVelocityTracker != null) { in resetMembers() 291 mVelocityTracker.recycle(); in resetMembers() 293 mVelocityTracker = null; in resetMembers() 316 mVelocityTracker.addMovement(ev); [all …]
|
D | RotarySelector.java | 153 private VelocityTracker mVelocityTracker; field in RotarySelector 503 if (mVelocityTracker == null) { in onTouchEvent() 504 mVelocityTracker = VelocityTracker.obtain(); in onTouchEvent() 506 mVelocityTracker.addMovement(event); in onTouchEvent() 546 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent() 566 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent() 597 if (mVelocityTracker != null) { in onTouchEvent() 598 mVelocityTracker.recycle(); // wishin' we had generational GC in onTouchEvent() 599 mVelocityTracker = null; in onTouchEvent() 606 if (mVelocityTracker != null) { in onTouchEvent() [all …]
|
D | ResolverDrawerLayout.java | 92 private final VelocityTracker mVelocityTracker; field in ResolverDrawerLayout 141 mVelocityTracker = VelocityTracker.obtain(); in ResolverDrawerLayout() 237 mVelocityTracker.clear(); in onInterceptTouchEvent() 240 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent() 288 mVelocityTracker.addMovement(ev); in onTouchEvent() 362 mVelocityTracker.computeCurrentVelocity(1000); in onTouchEvent() 363 final float yvel = mVelocityTracker.getYVelocity(mActivePointerId); in onTouchEvent() 411 mVelocityTracker.clear();
|
D | ViewPager.java | 203 private VelocityTracker mVelocityTracker; field in ViewPager 1841 if (mVelocityTracker != null) { 1842 mVelocityTracker.recycle(); 1843 mVelocityTracker = null; 1956 if (mVelocityTracker == null) { 1957 mVelocityTracker = VelocityTracker.obtain(); 1959 mVelocityTracker.addMovement(ev); 1981 if (mVelocityTracker == null) { 1982 mVelocityTracker = VelocityTracker.obtain(); 1984 mVelocityTracker.addMovement(ev); [all …]
|
/frameworks/base/core/java/android/view/ |
D | GestureDetector.java | 267 private VelocityTracker mVelocityTracker; field in GestureDetector 497 if (mVelocityTracker == null) { in onTouchEvent() 498 mVelocityTracker = VelocityTracker.obtain(); in onTouchEvent() 500 mVelocityTracker.addMovement(ev); in onTouchEvent() 534 mVelocityTracker.computeCurrentVelocity(1000, mMaximumFlingVelocity); in onTouchEvent() 537 final float x1 = mVelocityTracker.getXVelocity(id1); in onTouchEvent() 538 final float y1 = mVelocityTracker.getYVelocity(id1); in onTouchEvent() 543 final float x = x1 * mVelocityTracker.getXVelocity(id2); in onTouchEvent() 544 final float y = y1 * mVelocityTracker.getYVelocity(id2); in onTouchEvent() 548 mVelocityTracker.clear(); in onTouchEvent() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | NavigationBarGestureHelper.java | 76 private VelocityTracker mVelocityTracker; field in NavigationBarGestureHelper 167 mVelocityTracker = VelocityTracker.obtain(); in handleDragActionDownEvent() 168 mVelocityTracker.addMovement(event); in handleDragActionDownEvent() 187 mVelocityTracker.addMovement(event); in handleDragActionMoveEvent() 242 mVelocityTracker.addMovement(event); in handleDragActionUpEvent() 243 mVelocityTracker.computeCurrentVelocity(1000); in handleDragActionUpEvent() 250 ? mVelocityTracker.getXVelocity() in handleDragActionUpEvent() 251 : mVelocityTracker.getYVelocity(), in handleDragActionUpEvent() 254 mRecentsComponent.onDraggingInRecentsEnded(mVelocityTracker.getYVelocity()); in handleDragActionUpEvent() 257 mVelocityTracker.recycle(); in handleDragActionUpEvent() [all …]
|
D | PanelView.java | 87 private VelocityTrackerInterface mVelocityTracker; field in PanelView 206 if (mVelocityTracker != null) mVelocityTracker.addMovement(event); in trackMovement() 263 if (mVelocityTracker == null) { in onTouchEvent() 379 if (mVelocityTracker != null) { in endMotionEvent() 380 mVelocityTracker.computeCurrentVelocity(1000); in endMotionEvent() 381 vel = mVelocityTracker.getYVelocity(); in endMotionEvent() 383 mVelocityTracker.getXVelocity(), mVelocityTracker.getYVelocity()); in endMotionEvent() 411 if (mVelocityTracker != null) { in endMotionEvent() 412 mVelocityTracker.recycle(); in endMotionEvent() 413 mVelocityTracker = null; in endMotionEvent() [all …]
|
D | KeyguardAffordanceHelper.java | 49 private VelocityTracker mVelocityTracker; field in KeyguardAffordanceHelper 222 if (mVelocityTracker != null) { in endMotion() 223 mVelocityTracker.recycle(); in endMotion() 224 mVelocityTracker = null; in endMotion() 471 if (mVelocityTracker != null) { in trackMovement() 472 mVelocityTracker.addMovement(event); in trackMovement() 477 if (mVelocityTracker != null) { in initVelocityTracker() 478 mVelocityTracker.recycle(); in initVelocityTracker() 480 mVelocityTracker = VelocityTracker.obtain(); in initVelocityTracker() 484 if (mVelocityTracker == null) { in getCurrentVelocity() [all …]
|
/frameworks/base/core/jni/ |
D | android_view_VelocityTracker.cpp | 61 VelocityTracker mVelocityTracker; member in android::VelocityTrackerState 68 mVelocityTracker(strategy), mActivePointerId(-1) { in VelocityTrackerState() 72 mVelocityTracker.clear(); in clear() 78 mVelocityTracker.addMovement(event); in addMovement() 82 BitSet32 idBits(mVelocityTracker.getCurrentPointerIdBits()); in computeCurrentVelocity() 89 mVelocityTracker.getVelocity(id, &vx, &vy); in computeCurrentVelocity() 113 id = mVelocityTracker.getActivePointerId(); in getVelocity() 136 return mVelocityTracker.getEstimator(id, outEstimator); in getEstimator()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | ExpandHelper.java | 108 private VelocityTracker mVelocityTracker; field in ExpandHelper 343 if (mVelocityTracker == null) { in trackVelocity() 344 mVelocityTracker = VelocityTracker.obtain(); in trackVelocity() 346 mVelocityTracker.clear(); in trackVelocity() 348 mVelocityTracker.addMovement(event); in trackVelocity() 351 if (mVelocityTracker == null) { in trackVelocity() 352 mVelocityTracker = VelocityTracker.obtain(); in trackVelocity() 354 mVelocityTracker.addMovement(event); in trackVelocity() 362 if (mVelocityTracker != null && (event.getActionMasked() == MotionEvent.ACTION_CANCEL in maybeRecycleVelocityTracker() 364 mVelocityTracker.recycle(); in maybeRecycleVelocityTracker() [all …]
|
D | SwipeHelper.java | 67 private VelocityTracker mVelocityTracker; field in SwipeHelper 95 mVelocityTracker = VelocityTracker.obtain(); in SwipeHelper() 261 mVelocityTracker.clear(); in onInterceptTouchEvent() 267 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent() 295 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent() 546 mVelocityTracker.addMovement(ev); 579 mVelocityTracker.computeCurrentVelocity(1000 /* px/sec */, getMaxVelocity()); 580 float velocity = getVelocity(mVelocityTracker); 639 float velocity = getVelocity(mVelocityTracker);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
D | TaskStackViewTouchHandler.java | 77 VelocityTracker mVelocityTracker; field in TaskStackViewTouchHandler 155 if (mVelocityTracker == null) { in initOrResetVelocityTracker() 156 mVelocityTracker = VelocityTracker.obtain(); in initOrResetVelocityTracker() 158 mVelocityTracker.clear(); in initOrResetVelocityTracker() 162 if (mVelocityTracker != null) { in recycleVelocityTracker() 163 mVelocityTracker.recycle(); in recycleVelocityTracker() 164 mVelocityTracker = null; in recycleVelocityTracker() 244 mVelocityTracker.addMovement(ev); in handleTouchEvent() 255 mVelocityTracker.addMovement(ev); in handleTouchEvent() 308 mVelocityTracker.addMovement(ev); in handleTouchEvent() [all …]
|
/frameworks/base/docs/html/training/gestures/ |
D | movement.jd | 107 private VelocityTracker mVelocityTracker = null; 116 if(mVelocityTracker == null) { 118 mVelocityTracker = VelocityTracker.obtain(); 122 mVelocityTracker.clear(); 125 mVelocityTracker.addMovement(event); 128 mVelocityTracker.addMovement(event); 132 mVelocityTracker.computeCurrentVelocity(1000); 136 VelocityTrackerCompat.getXVelocity(mVelocityTracker, 139 VelocityTrackerCompat.getYVelocity(mVelocityTracker, 145 mVelocityTracker.recycle();
|
/frameworks/support/v4/java/android/support/v4/widget/ |
D | ViewDragHelper.java | 126 private VelocityTracker mVelocityTracker; field in ViewDragHelper 502 if (mVelocityTracker != null) { in cancel() 503 mVelocityTracker.recycle(); in cancel() 504 mVelocityTracker = null; in cancel() 571 (int) VelocityTrackerCompat.getXVelocity(mVelocityTracker, mActivePointerId), in settleCapturedViewAt() 572 (int) VelocityTrackerCompat.getYVelocity(mVelocityTracker, mActivePointerId)); in settleCapturedViewAt() 704 (int) VelocityTrackerCompat.getXVelocity(mVelocityTracker, mActivePointerId), in flingCapturedView() 705 (int) VelocityTrackerCompat.getYVelocity(mVelocityTracker, mActivePointerId), in flingCapturedView() 961 if (mVelocityTracker == null) { in shouldInterceptTouchEvent() 962 mVelocityTracker = VelocityTracker.obtain(); in shouldInterceptTouchEvent() [all …]
|
D | NestedScrollView.java | 129 private VelocityTracker mVelocityTracker; field in NestedScrollView 578 if (mVelocityTracker == null) { in initOrResetVelocityTracker() 579 mVelocityTracker = VelocityTracker.obtain(); in initOrResetVelocityTracker() 581 mVelocityTracker.clear(); in initOrResetVelocityTracker() 586 if (mVelocityTracker == null) { in initVelocityTrackerIfNotExists() 587 mVelocityTracker = VelocityTracker.obtain(); in initVelocityTrackerIfNotExists() 592 if (mVelocityTracker != null) { in recycleVelocityTracker() 593 mVelocityTracker.recycle(); in recycleVelocityTracker() 594 mVelocityTracker = null; in recycleVelocityTracker() 656 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent() [all …]
|
/frameworks/native/libs/input/ |
D | VelocityControl.cpp | 49 mVelocityTracker.clear(); in reset() 69 mVelocityTracker.addMovement(eventTime, BitSet32(BitSet32::valueForBit(0)), &mRawPosition); in move() 73 if (mVelocityTracker.getVelocity(0, &vx, &vy)) { in move()
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/helper/ |
D | ItemTouchHelper.java | 270 private VelocityTracker mVelocityTracker; field in ItemTouchHelper 343 if (mVelocityTracker != null) { 344 mVelocityTracker.addMovement(event); 356 if (mVelocityTracker != null) { 357 mVelocityTracker.addMovement(event); 385 if (mVelocityTracker != null) { 386 mVelocityTracker.clear(); 907 if (mVelocityTracker != null) { in obtainVelocityTracker() 908 mVelocityTracker.recycle(); in obtainVelocityTracker() 910 mVelocityTracker = VelocityTracker.obtain(); in obtainVelocityTracker() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | HorizontalScrollView.java | 110 private VelocityTracker mVelocityTracker; field in HorizontalScrollView 419 if (mVelocityTracker == null) { in initOrResetVelocityTracker() 420 mVelocityTracker = VelocityTracker.obtain(); in initOrResetVelocityTracker() 422 mVelocityTracker.clear(); in initOrResetVelocityTracker() 427 if (mVelocityTracker == null) { in initVelocityTrackerIfNotExists() 428 mVelocityTracker = VelocityTracker.obtain(); in initVelocityTrackerIfNotExists() 433 if (mVelocityTracker != null) { in recycleVelocityTracker() 434 mVelocityTracker.recycle(); in recycleVelocityTracker() 435 mVelocityTracker = null; in recycleVelocityTracker() 499 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent() [all …]
|
D | ScrollView.java | 116 private VelocityTracker mVelocityTracker; field in ScrollView 445 if (mVelocityTracker == null) { in initOrResetVelocityTracker() 446 mVelocityTracker = VelocityTracker.obtain(); in initOrResetVelocityTracker() 448 mVelocityTracker.clear(); in initOrResetVelocityTracker() 453 if (mVelocityTracker == null) { in initVelocityTrackerIfNotExists() 454 mVelocityTracker = VelocityTracker.obtain(); in initVelocityTrackerIfNotExists() 459 if (mVelocityTracker != null) { in recycleVelocityTracker() 460 mVelocityTracker.recycle(); in recycleVelocityTracker() 461 mVelocityTracker = null; in recycleVelocityTracker() 533 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent() [all …]
|
D | SlidingDrawer.java | 112 private VelocityTracker mVelocityTracker; field in SlidingDrawer 411 mVelocityTracker.addMovement(event); in onInterceptTouchEvent() 424 mVelocityTracker.addMovement(event); in onTouchEvent() 432 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent() 561 mVelocityTracker = VelocityTracker.obtain(); in prepareTracking() 692 if (mVelocityTracker != null) { in stopTracking() 693 mVelocityTracker.recycle(); in stopTracking() 694 mVelocityTracker = null; in stopTracking()
|
D | StackView.java | 135 private VelocityTracker mVelocityTracker; field in StackView 724 if (mVelocityTracker == null) { 725 mVelocityTracker = VelocityTracker.obtain(); 727 mVelocityTracker.addMovement(ev); 796 if (mVelocityTracker != null) { 797 mVelocityTracker.clear(); 816 if (mVelocityTracker != null) { 817 mVelocityTracker.computeCurrentVelocity(1000, mMaximumVelocity); 818 mYVelocity = (int) mVelocityTracker.getYVelocity(mActivePointerId); 821 if (mVelocityTracker != null) { [all …]
|