/frameworks/base/core/java/android/view/ |
D | GestureDetector.java | 246 private VelocityTracker mVelocityTracker; field in GestureDetector 461 if (mVelocityTracker == null) { in onTouchEvent() 462 mVelocityTracker = VelocityTracker.obtain(); in onTouchEvent() 464 mVelocityTracker.addMovement(ev); in onTouchEvent() 483 mVelocityTracker.recycle(); in onTouchEvent() 484 mVelocityTracker = VelocityTracker.obtain(); in onTouchEvent() 572 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent() 587 mVelocityTracker.recycle(); in onTouchEvent() 588 mVelocityTracker = null; in onTouchEvent() 609 mVelocityTracker.recycle(); in cancel() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | SwipeHelper.java | 60 private VelocityTracker mVelocityTracker; field in SwipeHelper 73 mVelocityTracker = VelocityTracker.obtain(); in SwipeHelper() 175 mVelocityTracker.clear(); in onInterceptTouchEvent() 179 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent() 185 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent() 274 mVelocityTracker.addMovement(ev); in onTouchEvent() 303 mVelocityTracker.computeCurrentVelocity(1000 /* px/sec */, maxVelocity); in onTouchEvent() 305 float velocity = getVelocity(mVelocityTracker); in onTouchEvent() 306 float perpendicularVelocity = getPerpendicularVelocity(mVelocityTracker); in onTouchEvent()
|
/frameworks/base/core/jni/ |
D | android_view_VelocityTracker.cpp | 58 VelocityTracker mVelocityTracker; member in android::VelocityTrackerState 68 mVelocityTracker.clear(); in clear() 74 mVelocityTracker.addMovement(event); in addMovement() 78 BitSet32 idBits(mVelocityTracker.getCurrentPointerIdBits()); in computeCurrentVelocity() 85 mVelocityTracker.getVelocity(id, &vx, &vy); in computeCurrentVelocity() 109 id = mVelocityTracker.getActivePointerId(); in getVelocity() 133 return mVelocityTracker.getEstimator(id, degree, horizon, outEstimator); in getEstimator()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | RotarySelector.java | 144 private VelocityTracker mVelocityTracker; field in RotarySelector 494 if (mVelocityTracker == null) { in onTouchEvent() 495 mVelocityTracker = VelocityTracker.obtain(); in onTouchEvent() 497 mVelocityTracker.addMovement(event); in onTouchEvent() 537 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent() 557 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent() 588 if (mVelocityTracker != null) { in onTouchEvent() 589 mVelocityTracker.recycle(); // wishin' we had generational GC in onTouchEvent() 590 mVelocityTracker = null; in onTouchEvent() 597 if (mVelocityTracker != null) { in onTouchEvent() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | ScrollView.java | 101 private VelocityTracker mVelocityTracker; field in ScrollView 410 if (mVelocityTracker == null) { in initOrResetVelocityTracker() 411 mVelocityTracker = VelocityTracker.obtain(); in initOrResetVelocityTracker() 413 mVelocityTracker.clear(); in initOrResetVelocityTracker() 418 if (mVelocityTracker == null) { in initVelocityTrackerIfNotExists() 419 mVelocityTracker = VelocityTracker.obtain(); in initVelocityTrackerIfNotExists() 424 if (mVelocityTracker != null) { in recycleVelocityTracker() 425 mVelocityTracker.recycle(); in recycleVelocityTracker() 426 mVelocityTracker = null; in recycleVelocityTracker() 481 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent() [all …]
|
D | HorizontalScrollView.java | 105 private VelocityTracker mVelocityTracker; field in HorizontalScrollView 399 if (mVelocityTracker == null) { in initOrResetVelocityTracker() 400 mVelocityTracker = VelocityTracker.obtain(); in initOrResetVelocityTracker() 402 mVelocityTracker.clear(); in initOrResetVelocityTracker() 407 if (mVelocityTracker == null) { in initVelocityTrackerIfNotExists() 408 mVelocityTracker = VelocityTracker.obtain(); in initVelocityTrackerIfNotExists() 413 if (mVelocityTracker != null) { in recycleVelocityTracker() 414 mVelocityTracker.recycle(); in recycleVelocityTracker() 415 mVelocityTracker = null; in recycleVelocityTracker() 469 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent() [all …]
|
D | SlidingDrawer.java | 108 private VelocityTracker mVelocityTracker; field in SlidingDrawer 387 mVelocityTracker.addMovement(event); in onInterceptTouchEvent() 400 mVelocityTracker.addMovement(event); in onTouchEvent() 408 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent() 537 mVelocityTracker = VelocityTracker.obtain(); in prepareTracking() 668 if (mVelocityTracker != null) { in stopTracking() 669 mVelocityTracker.recycle(); in stopTracking() 670 mVelocityTracker = null; in stopTracking()
|
D | StackView.java | 133 private VelocityTracker mVelocityTracker; field in StackView 715 if (mVelocityTracker == null) { 716 mVelocityTracker = VelocityTracker.obtain(); 718 mVelocityTracker.addMovement(ev); 787 if (mVelocityTracker != null) { 788 mVelocityTracker.clear(); 807 if (mVelocityTracker != null) { 808 mVelocityTracker.computeCurrentVelocity(1000, mMaximumVelocity); 809 mYVelocity = (int) mVelocityTracker.getYVelocity(mActivePointerId); 812 if (mVelocityTracker != null) { [all …]
|
D | Switch.java | 76 private VelocityTracker mVelocityTracker = VelocityTracker.obtain(); field in Switch 405 mVelocityTracker.addMovement(ev); in onTouchEvent() 462 mVelocityTracker.clear(); in onTouchEvent() 491 mVelocityTracker.computeCurrentVelocity(1000); in stopDrag() 492 float xvel = mVelocityTracker.getXVelocity(); in stopDrag()
|
D | NumberPicker.java | 357 private VelocityTracker mVelocityTracker; field in NumberPicker 734 if (mVelocityTracker == null) { in onTouchEvent() 735 mVelocityTracker = VelocityTracker.obtain(); in onTouchEvent() 737 mVelocityTracker.addMovement(ev); in onTouchEvent() 762 VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent() 777 mVelocityTracker.recycle(); in onTouchEvent() 778 mVelocityTracker = null; in onTouchEvent()
|
D | AbsListView.java | 388 private VelocityTracker mVelocityTracker; field in AbsListView 2870 if (mVelocityTracker != null) { in scrollIfNeeded() 2871 mVelocityTracker.clear(); in scrollIfNeeded() 3020 mVelocityTracker.addMovement(ev); in onTouchEvent() 3199 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent() 3240 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent() 3455 if (mVelocityTracker == null) { in initOrResetVelocityTracker() 3456 mVelocityTracker = VelocityTracker.obtain(); in initOrResetVelocityTracker() 3458 mVelocityTracker.clear(); in initOrResetVelocityTracker() 3463 if (mVelocityTracker == null) { in initVelocityTrackerIfNotExists() [all …]
|
/frameworks/support/v4/java/android/support/v4/view/ |
D | ViewPager.java | 134 private VelocityTracker mVelocityTracker; field in ViewPager 1132 if (mVelocityTracker == null) { 1133 mVelocityTracker = VelocityTracker.obtain(); 1135 mVelocityTracker.addMovement(ev); 1212 final VelocityTracker velocityTracker = mVelocityTracker; 1340 if (mVelocityTracker == null) { 1341 mVelocityTracker = VelocityTracker.obtain(); 1343 mVelocityTracker.clear(); 1347 mVelocityTracker.addMovement(ev); 1364 final VelocityTracker velocityTracker = mVelocityTracker; [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | PhoneStatusBar.java | 204 VelocityTracker mVelocityTracker; field in PhoneStatusBar 1285 mVelocityTracker.recycle(); in stopTracking() 1286 mVelocityTracker = null; in stopTracking() 1328 mVelocityTracker = VelocityTracker.obtain(); in prepareTracking() 1473 mVelocityTracker.computeCurrentVelocity(1000); in interceptTouchEvent() 1475 float yVel = mVelocityTracker.getYVelocity(); in interceptTouchEvent() 1478 float xVel = mVelocityTracker.getXVelocity(); in interceptTouchEvent() 1493 mVelocityTracker.getXVelocity(), in interceptTouchEvent() 1494 mVelocityTracker.getYVelocity(), in interceptTouchEvent() 1512 mVelocityTracker.addMovement(event);
|
/frameworks/base/core/java/android/webkit/ |
D | WebView.java | 494 VelocityTracker mVelocityTracker; field in WebView 4494 || mVelocityTracker != null) in drawCoreAndCursorRing() 6172 if (mVelocityTracker == null) { in handleTouchEventCommon() 6178 mVelocityTracker.addMovement(ev); in handleTouchEventCommon() 6429 if (mVelocityTracker == null) { in handleTouchEventCommon() 6436 mVelocityTracker.addMovement(ev); in handleTouchEventCommon() 6546 if (mVelocityTracker == null) { in handleMultiTouchInWebView() 6547 mVelocityTracker = VelocityTracker.obtain(); in handleMultiTouchInWebView() 6604 mVelocityTracker = VelocityTracker.obtain(); in startTouch() 6695 if (mVelocityTracker != null) { in stopTouch() [all …]
|
/frameworks/base/libs/ui/ |
D | Input.cpp | 1112 mVelocityTracker.clear(); in reset() 1132 mVelocityTracker.addMovement(eventTime, BitSet32(BitSet32::valueForBit(0)), &mRawPosition); in move() 1136 if (mVelocityTracker.getVelocity(0, &vx, &vy)) { in move()
|
/frameworks/base/include/ui/ |
D | Input.h | 791 VelocityTracker mVelocityTracker; variable
|