/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 | 190 private VelocityTracker mVelocityTracker; field in ViewPager 1796 if (mVelocityTracker != null) { 1797 mVelocityTracker.recycle(); 1798 mVelocityTracker = null; 1911 if (mVelocityTracker == null) { 1912 mVelocityTracker = VelocityTracker.obtain(); 1914 mVelocityTracker.addMovement(ev); 1943 if (mVelocityTracker == null) { 1944 mVelocityTracker = VelocityTracker.obtain(); 1946 mVelocityTracker.addMovement(ev); [all …]
|
/frameworks/base/core/java/android/view/ |
D | GestureDetector.java | 240 private VelocityTracker mVelocityTracker; field in GestureDetector 457 if (mVelocityTracker == null) { in onTouchEvent() 458 mVelocityTracker = VelocityTracker.obtain(); in onTouchEvent() 460 mVelocityTracker.addMovement(ev); in onTouchEvent() 494 mVelocityTracker.computeCurrentVelocity(1000, mMaximumFlingVelocity); in onTouchEvent() 497 final float x1 = mVelocityTracker.getXVelocity(id1); in onTouchEvent() 498 final float y1 = mVelocityTracker.getYVelocity(id1); in onTouchEvent() 503 final float x = x1 * mVelocityTracker.getXVelocity(id2); in onTouchEvent() 504 final float y = y1 * mVelocityTracker.getYVelocity(id2); in onTouchEvent() 508 mVelocityTracker.clear(); in onTouchEvent() [all …]
|
D | ViewRootImpl.java | 4491 private VelocityTracker mVelocityTracker; field in ViewRootImpl.SyntheticTouchNavigationHandler 4592 mVelocityTracker = VelocityTracker.obtain(); in process() 4593 mVelocityTracker.addMovement(event); in process() 4620 mVelocityTracker.addMovement(event); in process() 4636 mVelocityTracker.computeCurrentVelocity(1000, mConfigMaxFlingVelocity); in process() 4637 final float vx = mVelocityTracker.getXVelocity(mActivePointerId); in process() 4638 final float vy = mVelocityTracker.getYVelocity(mActivePointerId); in process() 4673 mVelocityTracker.recycle(); in finishTracking() 4674 mVelocityTracker = null; in finishTracking()
|
/frameworks/base/core/jni/ |
D | android_view_VelocityTracker.cpp | 60 VelocityTracker mVelocityTracker; member in android::VelocityTrackerState 67 mVelocityTracker(strategy), mActivePointerId(-1) { in VelocityTrackerState() 71 mVelocityTracker.clear(); in clear() 77 mVelocityTracker.addMovement(event); in addMovement() 81 BitSet32 idBits(mVelocityTracker.getCurrentPointerIdBits()); in computeCurrentVelocity() 88 mVelocityTracker.getVelocity(id, &vx, &vy); in computeCurrentVelocity() 112 id = mVelocityTracker.getActivePointerId(); in getVelocity() 135 return mVelocityTracker.getEstimator(id, outEstimator); in getEstimator()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | SwipeHelper.java | 64 private VelocityTracker mVelocityTracker; field in SwipeHelper 83 mVelocityTracker = VelocityTracker.obtain(); in SwipeHelper() 213 mVelocityTracker.clear(); in onInterceptTouchEvent() 217 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent() 241 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent() 342 mVelocityTracker.addMovement(ev); in onTouchEvent() 369 mVelocityTracker.computeCurrentVelocity(1000 /* px/sec */, maxVelocity); in onTouchEvent() 371 float velocity = getVelocity(mVelocityTracker); in onTouchEvent() 372 float perpendicularVelocity = getPerpendicularVelocity(mVelocityTracker); in onTouchEvent()
|
/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/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/base/core/java/com/android/internal/widget/ |
D | RotarySelector.java | 146 private VelocityTracker mVelocityTracker; field in RotarySelector 496 if (mVelocityTracker == null) { in onTouchEvent() 497 mVelocityTracker = VelocityTracker.obtain(); in onTouchEvent() 499 mVelocityTracker.addMovement(event); in onTouchEvent() 539 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent() 559 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent() 590 if (mVelocityTracker != null) { in onTouchEvent() 591 mVelocityTracker.recycle(); // wishin' we had generational GC in onTouchEvent() 592 mVelocityTracker = null; in onTouchEvent() 599 if (mVelocityTracker != null) { in onTouchEvent() [all …]
|
/frameworks/support/v4/java/android/support/v4/widget/ |
D | ViewDragHelper.java | 125 private VelocityTracker mVelocityTracker; field in ViewDragHelper 501 if (mVelocityTracker != null) { in cancel() 502 mVelocityTracker.recycle(); in cancel() 503 mVelocityTracker = null; in cancel() 563 (int) VelocityTrackerCompat.getXVelocity(mVelocityTracker, mActivePointerId), in settleCapturedViewAt() 564 (int) VelocityTrackerCompat.getYVelocity(mVelocityTracker, mActivePointerId)); in settleCapturedViewAt() 696 (int) VelocityTrackerCompat.getXVelocity(mVelocityTracker, mActivePointerId), in flingCapturedView() 697 (int) VelocityTrackerCompat.getYVelocity(mVelocityTracker, mActivePointerId), in flingCapturedView() 948 if (mVelocityTracker == null) { in shouldInterceptTouchEvent() 949 mVelocityTracker = VelocityTracker.obtain(); in shouldInterceptTouchEvent() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | PanelView.java | 83 private FlingTracker mVelocityTracker; field in PanelView 362 if (mVelocityTracker != null) mVelocityTracker.addMovement(event); 404 mVelocityTracker = FlingTracker.obtain(); 457 if (mVelocityTracker != null) { 459 mVelocityTracker.computeCurrentVelocity(1000); 461 yVel = mVelocityTracker.getYVelocity(); 464 xVel = mVelocityTracker.getXVelocity(); 477 mVelocityTracker.recycle(); 478 mVelocityTracker = null;
|
D | PhoneStatusBar.java | 252 VelocityTracker mVelocityTracker; field in PhoneStatusBar
|
/frameworks/base/core/java/android/widget/ |
D | HorizontalScrollView.java | 106 private VelocityTracker mVelocityTracker; field in HorizontalScrollView 402 if (mVelocityTracker == null) { in initOrResetVelocityTracker() 403 mVelocityTracker = VelocityTracker.obtain(); in initOrResetVelocityTracker() 405 mVelocityTracker.clear(); in initOrResetVelocityTracker() 410 if (mVelocityTracker == null) { in initVelocityTrackerIfNotExists() 411 mVelocityTracker = VelocityTracker.obtain(); in initVelocityTrackerIfNotExists() 416 if (mVelocityTracker != null) { in recycleVelocityTracker() 417 mVelocityTracker.recycle(); in recycleVelocityTracker() 418 mVelocityTracker = null; in recycleVelocityTracker() 478 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent() [all …]
|
D | ScrollView.java | 113 private VelocityTracker mVelocityTracker; field in ScrollView 424 if (mVelocityTracker == null) { in initOrResetVelocityTracker() 425 mVelocityTracker = VelocityTracker.obtain(); in initOrResetVelocityTracker() 427 mVelocityTracker.clear(); in initOrResetVelocityTracker() 432 if (mVelocityTracker == null) { in initVelocityTrackerIfNotExists() 433 mVelocityTracker = VelocityTracker.obtain(); in initVelocityTrackerIfNotExists() 438 if (mVelocityTracker != null) { in recycleVelocityTracker() 439 mVelocityTracker.recycle(); in recycleVelocityTracker() 440 mVelocityTracker = null; in recycleVelocityTracker() 508 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent() [all …]
|
D | SlidingDrawer.java | 114 private VelocityTracker mVelocityTracker; field in SlidingDrawer 393 mVelocityTracker.addMovement(event); in onInterceptTouchEvent() 406 mVelocityTracker.addMovement(event); in onTouchEvent() 414 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent() 543 mVelocityTracker = VelocityTracker.obtain(); in prepareTracking() 674 if (mVelocityTracker != null) { in stopTracking() 675 mVelocityTracker.recycle(); in stopTracking() 676 mVelocityTracker = null; in stopTracking()
|
D | StackView.java | 136 private VelocityTracker mVelocityTracker; field in StackView 718 if (mVelocityTracker == null) { 719 mVelocityTracker = VelocityTracker.obtain(); 721 mVelocityTracker.addMovement(ev); 790 if (mVelocityTracker != null) { 791 mVelocityTracker.clear(); 810 if (mVelocityTracker != null) { 811 mVelocityTracker.computeCurrentVelocity(1000, mMaximumVelocity); 812 mYVelocity = (int) mVelocityTracker.getYVelocity(mActivePointerId); 815 if (mVelocityTracker != null) { [all …]
|
D | Switch.java | 90 private VelocityTracker mVelocityTracker = VelocityTracker.obtain(); field in Switch 542 mVelocityTracker.addMovement(ev); in onTouchEvent() 599 mVelocityTracker.clear(); in onTouchEvent() 628 mVelocityTracker.computeCurrentVelocity(1000); in stopDrag() 629 float xvel = mVelocityTracker.getXVelocity(); in stopDrag()
|
D | NumberPicker.java | 379 private VelocityTracker mVelocityTracker; field in NumberPicker 857 if (mVelocityTracker == null) { in onTouchEvent() 858 mVelocityTracker = VelocityTracker.obtain(); in onTouchEvent() 860 mVelocityTracker.addMovement(event); in onTouchEvent() 885 VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent() 917 mVelocityTracker.recycle(); in onTouchEvent() 918 mVelocityTracker = null; in onTouchEvent()
|
D | AbsListView.java | 410 private VelocityTracker mVelocityTracker; field in AbsListView 3261 if (mVelocityTracker != null) { in scrollIfNeeded() 3262 mVelocityTracker.clear(); in scrollIfNeeded() 3421 mVelocityTracker.addMovement(ev); in onTouchEvent() 3677 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchUp() 3718 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchUp() 3873 if (mVelocityTracker == null) { in initOrResetVelocityTracker() 3874 mVelocityTracker = VelocityTracker.obtain(); in initOrResetVelocityTracker() 3876 mVelocityTracker.clear(); in initOrResetVelocityTracker() 3881 if (mVelocityTracker == null) { in initVelocityTrackerIfNotExists() [all …]
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
D | SlidingChallengeLayout.java | 105 private VelocityTracker mVelocityTracker; field in SlidingChallengeLayout 558 if (mVelocityTracker == null) { in onInterceptTouchEvent() 559 mVelocityTracker = VelocityTracker.obtain(); in onInterceptTouchEvent() 561 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent() 617 mVelocityTracker.recycle(); in resetTouch() 618 mVelocityTracker = null; in resetTouch() 625 if (mVelocityTracker == null) { in onTouchEvent() 626 mVelocityTracker = VelocityTracker.obtain(); in onTouchEvent() 628 mVelocityTracker.addMovement(ev); in onTouchEvent() 651 mVelocityTracker.computeCurrentVelocity(1000, mMaxVelocity); in onTouchEvent() [all …]
|
D | PagedView.java | 116 private VelocityTracker mVelocityTracker; field in PagedView 1581 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent() 1738 if (mVelocityTracker == null) { in acquireVelocityTrackerAndAddMovement() 1739 mVelocityTracker = VelocityTracker.obtain(); in acquireVelocityTrackerAndAddMovement() 1741 mVelocityTracker.addMovement(ev); in acquireVelocityTrackerAndAddMovement() 1745 if (mVelocityTracker != null) { in releaseVelocityTracker() 1746 mVelocityTracker.recycle(); in releaseVelocityTracker() 1747 mVelocityTracker = null; in releaseVelocityTracker() 1764 if (mVelocityTracker != null) { in onSecondaryPointerUp() 1765 mVelocityTracker.clear(); in onSecondaryPointerUp() [all …]
|
/frameworks/native/include/input/ |
D | VelocityControl.h | 102 VelocityTracker mVelocityTracker; variable
|
/frameworks/base/services/java/com/android/server/accessibility/ |
D | TouchExplorer.java | 160 private final VelocityTracker mVelocityTracker = VelocityTracker.obtain(); field in TouchExplorer 390 mVelocityTracker.addMovement(rawEvent); in handleMotionEventStateTouchExploring() 483 mVelocityTracker.computeCurrentVelocity(1000); in handleMotionEventStateTouchExploring() 485 Math.abs(mVelocityTracker.getXVelocity(pointerId)), in handleMotionEventStateTouchExploring() 486 Math.abs(mVelocityTracker.getYVelocity(pointerId))); in handleMotionEventStateTouchExploring() 491 mVelocityTracker.clear(); in handleMotionEventStateTouchExploring() 583 mVelocityTracker.clear(); in handleMotionEventStateTouchExploring() 604 mVelocityTracker.clear(); in handleMotionEventStateTouchExploring() 617 mVelocityTracker.clear(); in handleMotionEventStateTouchExploring()
|
/frameworks/ex/widget/java/com/android/ex/widget/ |
D | StaggeredGridView.java | 129 private final VelocityTracker mVelocityTracker = VelocityTracker.obtain(); field in StaggeredGridView 280 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent() 284 mVelocityTracker.clear(); in onInterceptTouchEvent() 321 mVelocityTracker.addMovement(ev); in onTouchEvent() 325 mVelocityTracker.clear(); in onTouchEvent() 354 mVelocityTracker.clear(); in onTouchEvent() 364 mVelocityTracker.computeCurrentVelocity(1000, mMaximumVelocity); in onTouchEvent() 365 final float velocity = VelocityTrackerCompat.getYVelocity(mVelocityTracker, in onTouchEvent()
|