/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/ |
D | BubbleTouchHandler.java | 65 private VelocityTracker mVelocityTracker; field in BubbleTouchHandler 157 mVelocityTracker.computeCurrentVelocity(/* maxVelocity */ 1000); in onTouch() 158 final float velX = mVelocityTracker.getXVelocity(); in onTouch() 159 final float velY = mVelocityTracker.getYVelocity(); in onTouch() 175 mVelocityTracker.computeCurrentVelocity(/* maxVelocity */ 1000); in onTouch() 176 final float velX = mVelocityTracker.getXVelocity(); in onTouch() 177 final float velY = mVelocityTracker.getYVelocity(); in onTouch() 260 if (mVelocityTracker != null) { in resetForNextGesture() 261 mVelocityTracker.recycle(); in resetForNextGesture() 262 mVelocityTracker = null; in resetForNextGesture() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/ |
D | PipTouchState.java | 44 private VelocityTracker mVelocityTracker; field in PipTouchState 178 mVelocityTracker.computeCurrentVelocity(1000, in onTouchEvent() 180 mVelocity.set(mVelocityTracker.getXVelocity(), mVelocityTracker.getYVelocity()); in onTouchEvent() 322 if (mVelocityTracker == null) { 323 mVelocityTracker = VelocityTracker.obtain(); 325 mVelocityTracker.clear(); 330 if (mVelocityTracker != null) { 331 mVelocityTracker.recycle(); 332 mVelocityTracker = null; 342 mVelocityTracker.addMovement(event);
|
/frameworks/base/core/java/android/view/ |
D | GestureDetector.java | 287 private VelocityTracker mVelocityTracker; field in GestureDetector 525 if (mVelocityTracker == null) { in onTouchEvent() 526 mVelocityTracker = VelocityTracker.obtain(); in onTouchEvent() 528 mVelocityTracker.addMovement(ev); in onTouchEvent() 564 mVelocityTracker.computeCurrentVelocity(1000, mMaximumFlingVelocity); in onTouchEvent() 567 final float x1 = mVelocityTracker.getXVelocity(id1); in onTouchEvent() 568 final float y1 = mVelocityTracker.getYVelocity(id1); in onTouchEvent() 573 final float x = x1 * mVelocityTracker.getXVelocity(id2); in onTouchEvent() 574 final float y = y1 * mVelocityTracker.getYVelocity(id2); in onTouchEvent() 578 mVelocityTracker.clear(); in onTouchEvent() [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/core/java/com/android/internal/widget/ |
D | SwipeDismissLayout.java | 82 private VelocityTracker mVelocityTracker; field in SwipeDismissLayout 187 mVelocityTracker = VelocityTracker.obtain("int1"); in onInterceptTouchEvent() 188 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent() 211 if (mVelocityTracker == null || mDiscardIntercept) { in onInterceptTouchEvent() 241 if (mVelocityTracker == null || !mDismissable) { in onTouchEvent() 270 mVelocityTracker.addMovement(ev); in onTouchEvent() 311 if (mVelocityTracker != null) { in resetMembers() 312 mVelocityTracker.recycle(); in resetMembers() 314 mVelocityTracker = null; in resetMembers() 349 mVelocityTracker.computeCurrentVelocity(1000); [all …]
|
D | ResolverDrawerLayout.java | 101 private final VelocityTracker mVelocityTracker; field in ResolverDrawerLayout 156 mVelocityTracker = VelocityTracker.obtain(); in ResolverDrawerLayout() 280 mVelocityTracker.clear(); in onInterceptTouchEvent() 283 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent() 338 mVelocityTracker.addMovement(ev); in onTouchEvent() 416 mVelocityTracker.computeCurrentVelocity(1000); in onTouchEvent() 417 final float yvel = mVelocityTracker.getYVelocity(mActivePointerId); in onTouchEvent() 477 mVelocityTracker.clear();
|
D | ViewPager.java | 179 private VelocityTracker mVelocityTracker; field in ViewPager 1822 if (mVelocityTracker != null) { 1823 mVelocityTracker.recycle(); 1824 mVelocityTracker = null; 1937 if (mVelocityTracker == null) { 1938 mVelocityTracker = VelocityTracker.obtain(); 1940 mVelocityTracker.addMovement(ev); 1962 if (mVelocityTracker == null) { 1963 mVelocityTracker = VelocityTracker.obtain(); 1965 mVelocityTracker.addMovement(ev); [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | ExpandHelper.java | 109 private VelocityTracker mVelocityTracker; field in ExpandHelper 351 if (mVelocityTracker == null) { in trackVelocity() 352 mVelocityTracker = VelocityTracker.obtain(); in trackVelocity() 354 mVelocityTracker.clear(); in trackVelocity() 356 mVelocityTracker.addMovement(event); in trackVelocity() 359 if (mVelocityTracker == null) { in trackVelocity() 360 mVelocityTracker = VelocityTracker.obtain(); in trackVelocity() 362 mVelocityTracker.addMovement(event); in trackVelocity() 370 if (mVelocityTracker != null && (event.getActionMasked() == MotionEvent.ACTION_CANCEL in maybeRecycleVelocityTracker() 372 mVelocityTracker.recycle(); in maybeRecycleVelocityTracker() [all …]
|
D | SwipeHelper.java | 74 private final VelocityTracker mVelocityTracker; field in SwipeHelper 106 mVelocityTracker = VelocityTracker.obtain(); in SwipeHelper() 281 mVelocityTracker.clear(); in onInterceptTouchEvent() 287 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent() 317 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent() 599 mVelocityTracker.addMovement(ev); in onTouchEvent() 640 mVelocityTracker.computeCurrentVelocity(1000 /* px/sec */, getMaxVelocity()); in onTouchEvent() 641 float velocity = getVelocity(mVelocityTracker); in onTouchEvent() 707 float velocity = getVelocity(mVelocityTracker); in swipedFastEnough()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | KeyguardAffordanceHelper.java | 48 private VelocityTracker mVelocityTracker; field in KeyguardAffordanceHelper 218 if (mVelocityTracker != null) { in endMotion() 219 mVelocityTracker.recycle(); in endMotion() 220 mVelocityTracker = null; in endMotion() 464 if (mVelocityTracker != null) { in trackMovement() 465 mVelocityTracker.addMovement(event); in trackMovement() 470 if (mVelocityTracker != null) { in initVelocityTracker() 471 mVelocityTracker.recycle(); in initVelocityTracker() 473 mVelocityTracker = VelocityTracker.obtain(); in initVelocityTracker() 477 if (mVelocityTracker == null) { in getCurrentVelocity() [all …]
|
D | NavigationBarEdgePanel.java | 151 private VelocityTracker mVelocityTracker; field in NavigationBarEdgePanel 384 if (mVelocityTracker == null) { in handleTouch() 385 mVelocityTracker = VelocityTracker.obtain(); in handleTouch() 387 mVelocityTracker.addMovement(event); in handleTouch() 413 mVelocityTracker.recycle(); in handleTouch() 414 mVelocityTracker = null; in handleTouch() 534 mVelocityTracker.computeCurrentVelocity(1000); in triggerBack() 536 boolean isSlow = Math.abs(mVelocityTracker.getXVelocity()) < 500; in triggerBack() 649 mVelocityTracker.computeCurrentVelocity(1000); in handleMoveEvent() 650 float xVelocity = mVelocityTracker.getXVelocity(); in handleMoveEvent() [all …]
|
D | PanelView.java | 109 private final VelocityTracker mVelocityTracker = VelocityTracker.obtain(); field in PanelView 238 mVelocityTracker.addMovement(event); in addMovement() 471 mVelocityTracker.computeCurrentVelocity(1000); in endMotionEvent() 472 float vel = mVelocityTracker.getYVelocity(); in endMotionEvent() 474 mVelocityTracker.getXVelocity(), mVelocityTracker.getYVelocity()); in endMotionEvent() 512 mVelocityTracker.clear(); in endMotionEvent() 517 mVelocityTracker.computeCurrentVelocity(1000); in getCurrentExpandVelocity() 518 return mVelocityTracker.getYVelocity(); in getCurrentExpandVelocity() 607 mVelocityTracker.clear(); in onInterceptTouchEvent() 625 mVelocityTracker.clear(); in onInterceptTouchEvent()
|
/frameworks/base/packages/SystemUI/legacy/recents/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() 315 mVelocityTracker.addMovement(ev); in handleTouchEvent() [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/base/core/java/com/android/internal/widget/helper/ |
D | ItemTouchHelper.java | 265 VelocityTracker mVelocityTracker; field in ItemTouchHelper 337 if (mVelocityTracker != null) { 338 mVelocityTracker.addMovement(event); 350 if (mVelocityTracker != null) { 351 mVelocityTracker.addMovement(event); 378 if (mVelocityTracker != null) { 379 mVelocityTracker.clear(); 900 if (mVelocityTracker != null) { in obtainVelocityTracker() 901 mVelocityTracker.recycle(); in obtainVelocityTracker() 903 mVelocityTracker = VelocityTracker.obtain(); in obtainVelocityTracker() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | ScrollView.java | 145 private VelocityTracker mVelocityTracker; field in ScrollView 557 if (mVelocityTracker == null) { in initOrResetVelocityTracker() 558 mVelocityTracker = VelocityTracker.obtain(); in initOrResetVelocityTracker() 560 mVelocityTracker.clear(); in initOrResetVelocityTracker() 565 if (mVelocityTracker == null) { in initVelocityTrackerIfNotExists() 566 mVelocityTracker = VelocityTracker.obtain(); in initVelocityTrackerIfNotExists() 571 if (mVelocityTracker != null) { in recycleVelocityTracker() 572 mVelocityTracker.recycle(); in recycleVelocityTracker() 573 mVelocityTracker = null; in recycleVelocityTracker() 645 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent() [all …]
|
D | HorizontalScrollView.java | 135 private VelocityTracker mVelocityTracker; field in HorizontalScrollView 524 if (mVelocityTracker == null) { in initOrResetVelocityTracker() 525 mVelocityTracker = VelocityTracker.obtain(); in initOrResetVelocityTracker() 527 mVelocityTracker.clear(); in initOrResetVelocityTracker() 532 if (mVelocityTracker == null) { in initVelocityTrackerIfNotExists() 533 mVelocityTracker = VelocityTracker.obtain(); in initVelocityTrackerIfNotExists() 539 if (mVelocityTracker != null) { in recycleVelocityTracker() 540 mVelocityTracker.recycle(); in recycleVelocityTracker() 541 mVelocityTracker = null; in recycleVelocityTracker() 605 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent() [all …]
|
D | SlidingDrawer.java | 113 private VelocityTracker mVelocityTracker; field in SlidingDrawer 416 mVelocityTracker.addMovement(event); in onInterceptTouchEvent() 429 mVelocityTracker.addMovement(event); in onTouchEvent() 437 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent() 568 mVelocityTracker = VelocityTracker.obtain(); in prepareTracking() 700 if (mVelocityTracker != null) { in stopTracking() 701 mVelocityTracker.recycle(); in stopTracking() 702 mVelocityTracker = null; in stopTracking()
|
D | StackView.java | 134 private VelocityTracker mVelocityTracker; field in StackView 725 if (mVelocityTracker == null) { 726 mVelocityTracker = VelocityTracker.obtain(); 728 mVelocityTracker.addMovement(ev); 797 if (mVelocityTracker != null) { 798 mVelocityTracker.clear(); 817 if (mVelocityTracker != null) { 818 mVelocityTracker.computeCurrentVelocity(1000, mMaximumVelocity); 819 mYVelocity = (int) mVelocityTracker.getYVelocity(mActivePointerId); 822 if (mVelocityTracker != null) { [all …]
|
D | Switch.java | 127 private VelocityTracker mVelocityTracker = VelocityTracker.obtain(); field in Switch 1012 mVelocityTracker.addMovement(ev); in onTouchEvent() 1081 mVelocityTracker.clear(); in onTouchEvent() 1110 mVelocityTracker.computeCurrentVelocity(1000); in stopDrag() 1111 final float xvel = mVelocityTracker.getXVelocity(); in stopDrag()
|
D | NumberPicker.java | 417 private VelocityTracker mVelocityTracker; field in NumberPicker 951 if (mVelocityTracker == null) { in onTouchEvent() 952 mVelocityTracker = VelocityTracker.obtain(); in onTouchEvent() 954 mVelocityTracker.addMovement(event); in onTouchEvent() 979 VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent() 1011 mVelocityTracker.recycle(); in onTouchEvent() 1012 mVelocityTracker = null; in onTouchEvent()
|
/frameworks/native/include/input/ |
D | VelocityControl.h | 102 VelocityTracker mVelocityTracker; variable
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/ |
D | DividerView.java | 145 private VelocityTracker mVelocityTracker; field in DividerView 496 mVelocityTracker = VelocityTracker.obtain(); in onTouch() 497 mVelocityTracker.addMovement(event); in onTouch() 510 mVelocityTracker.addMovement(event); in onTouch() 529 mVelocityTracker.addMovement(event); in onTouch() 534 mVelocityTracker.computeCurrentVelocity(1000); in onTouch() 536 stopDragging(position, isHorizontalDivision() ? mVelocityTracker.getYVelocity() in onTouch() 537 : mVelocityTracker.getXVelocity(), false /* avoidDismissStart */, in onTouch()
|
/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()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardSecurityContainer.java | 94 private final VelocityTracker mVelocityTracker = VelocityTracker.obtain(); field in KeyguardSecurityContainer 175 mVelocityTracker.clear(); in onInterceptTouchEvent() 209 mVelocityTracker.addMovement(event); in onTouchEvent() 223 startSpringAnimation(mVelocityTracker.getYVelocity()); in onTouchEvent()
|