Home
last modified time | relevance | path

Searched refs:mVelocityTracker (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/core/java/android/view/
DGestureDetector.java246 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/
DSwipeHelper.java60 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/
Dandroid_view_VelocityTracker.cpp58 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/
DRotarySelector.java144 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/
DScrollView.java101 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 …]
DHorizontalScrollView.java105 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 …]
DSlidingDrawer.java108 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()
DStackView.java133 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 …]
DSwitch.java76 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()
DNumberPicker.java357 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()
DAbsListView.java388 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/
DViewPager.java134 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/
DPhoneStatusBar.java204 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/
DWebView.java494 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/
DInput.cpp1112 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/
DInput.h791 VelocityTracker mVelocityTracker; variable