Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipTouchState.java46 private VelocityTracker mVelocityTracker; field in PipTouchState
181 mVelocityTracker.computeCurrentVelocity(1000, in onTouchEvent()
183 mVelocity.set(mVelocityTracker.getXVelocity(), mVelocityTracker.getYVelocity()); in onTouchEvent()
346 if (mVelocityTracker == null) {
355 mVelocityTracker.addMovement(event);
360 if (mVelocityTracker == null) {
361 mVelocityTracker = VelocityTracker.obtain();
363 mVelocityTracker.clear();
368 if (mVelocityTracker != null) {
369 mVelocityTracker.recycle();
[all …]
/frameworks/base/core/java/android/view/
DGestureDetector.java295 private VelocityTracker mVelocityTracker; field in GestureDetector
553 if (mVelocityTracker == null) { in onTouchEvent()
554 mVelocityTracker = VelocityTracker.obtain(); in onTouchEvent()
556 mVelocityTracker.addMovement(ev); in onTouchEvent()
592 mVelocityTracker.computeCurrentVelocity(1000, mMaximumFlingVelocity); in onTouchEvent()
595 final float x1 = mVelocityTracker.getXVelocity(id1); in onTouchEvent()
596 final float y1 = mVelocityTracker.getYVelocity(id1); in onTouchEvent()
601 final float x = x1 * mVelocityTracker.getXVelocity(id2); in onTouchEvent()
602 final float y = y1 * mVelocityTracker.getYVelocity(id2); in onTouchEvent()
606 mVelocityTracker.clear(); in onTouchEvent()
[all …]
/frameworks/base/core/jni/
Dandroid_view_VelocityTracker.cpp61 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/
DExpandHelper.java110 private VelocityTracker mVelocityTracker; field in ExpandHelper
361 if (mVelocityTracker == null) { in trackVelocity()
362 mVelocityTracker = VelocityTracker.obtain(); in trackVelocity()
364 mVelocityTracker.clear(); in trackVelocity()
366 mVelocityTracker.addMovement(event); in trackVelocity()
369 if (mVelocityTracker == null) { in trackVelocity()
370 mVelocityTracker = VelocityTracker.obtain(); in trackVelocity()
372 mVelocityTracker.addMovement(event); in trackVelocity()
380 if (mVelocityTracker != null && (event.getActionMasked() == MotionEvent.ACTION_CANCEL in maybeRecycleVelocityTracker()
382 mVelocityTracker.recycle(); in maybeRecycleVelocityTracker()
[all …]
DSwipeHelper.java75 private final VelocityTracker mVelocityTracker; field in SwipeHelper
122 mVelocityTracker = VelocityTracker.obtain(); in SwipeHelper()
297 mVelocityTracker.clear(); in onInterceptTouchEvent()
303 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent()
315 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent()
607 mVelocityTracker.addMovement(ev); in onTouchEvent()
648 mVelocityTracker.computeCurrentVelocity(1000 /* px/sec */, getMaxVelocity()); in onTouchEvent()
649 float velocity = getVelocity(mVelocityTracker); in onTouchEvent()
715 float velocity = getVelocity(mVelocityTracker); in swipedFastEnough()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardAffordanceHelper.java48 private VelocityTracker mVelocityTracker; field in KeyguardAffordanceHelper
219 if (mVelocityTracker != null) { in endMotion()
220 mVelocityTracker.recycle(); in endMotion()
221 mVelocityTracker = null; in endMotion()
465 if (mVelocityTracker != null) { in trackMovement()
466 mVelocityTracker.addMovement(event); in trackMovement()
471 if (mVelocityTracker != null) { in initVelocityTracker()
472 mVelocityTracker.recycle(); in initVelocityTracker()
474 mVelocityTracker = VelocityTracker.obtain(); in initVelocityTracker()
478 if (mVelocityTracker == null) { in getCurrentVelocity()
[all …]
DNavigationBarEdgePanel.java163 private VelocityTracker mVelocityTracker; field in NavigationBarEdgePanel
441 if (mVelocityTracker == null) { in onMotionEvent()
442 mVelocityTracker = VelocityTracker.obtain(); in onMotionEvent()
444 mVelocityTracker.addMovement(event); in onMotionEvent()
466 mVelocityTracker.recycle(); in onMotionEvent()
467 mVelocityTracker = null; in onMotionEvent()
472 mVelocityTracker.recycle(); in onMotionEvent()
473 mVelocityTracker = null; in onMotionEvent()
594 if (mVelocityTracker == null) { in triggerBack()
595 mVelocityTracker = VelocityTracker.obtain(); in triggerBack()
[all …]
DPanelViewController.java110 private final VelocityTracker mVelocityTracker = VelocityTracker.obtain(); field in PanelViewController
286 mVelocityTracker.addMovement(event); in addMovement()
369 mVelocityTracker.computeCurrentVelocity(1000); in endMotionEvent()
370 float vel = mVelocityTracker.getYVelocity(); in endMotionEvent()
372 mVelocityTracker.getXVelocity(), mVelocityTracker.getYVelocity()); in endMotionEvent()
423 mVelocityTracker.clear(); in endMotionEvent()
428 mVelocityTracker.computeCurrentVelocity(1000); in getCurrentExpandVelocity()
429 return mVelocityTracker.getYVelocity(); in getCurrentExpandVelocity()
1150 mVelocityTracker.clear(); in onInterceptTouchEvent()
1169 mVelocityTracker.clear(); in onInterceptTouchEvent()
/frameworks/native/libs/input/
DVelocityControl.cpp49 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/
DItemTouchHelper.java265 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/
DScrollView.java145 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 …]
DHorizontalScrollView.java135 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 …]
DSlidingDrawer.java113 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()
DStackView.java136 private VelocityTracker mVelocityTracker; field in StackView
727 if (mVelocityTracker == null) {
728 mVelocityTracker = VelocityTracker.obtain();
730 mVelocityTracker.addMovement(ev);
799 if (mVelocityTracker != null) {
800 mVelocityTracker.clear();
819 if (mVelocityTracker != null) {
820 mVelocityTracker.computeCurrentVelocity(1000, mMaximumVelocity);
821 mYVelocity = (int) mVelocityTracker.getYVelocity(mActivePointerId);
824 if (mVelocityTracker != null) {
[all …]
DSwitch.java126 private VelocityTracker mVelocityTracker = VelocityTracker.obtain(); field in Switch
1020 mVelocityTracker.addMovement(ev); in onTouchEvent()
1089 mVelocityTracker.clear(); in onTouchEvent()
1118 mVelocityTracker.computeCurrentVelocity(1000); in stopDrag()
1119 final float xvel = mVelocityTracker.getXVelocity(); in stopDrag()
DNumberPicker.java418 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()
DAbsListView.java441 private VelocityTracker mVelocityTracker; field in AbsListView
3653 if (atOverscrollEdge && mVelocityTracker != null) { in scrollIfNeeded()
3655 mVelocityTracker.clear(); in scrollIfNeeded()
3913 if (mVelocityTracker != null) { in onTouchEvent()
3914 mVelocityTracker.addMovement(vtev); in onTouchEvent()
4129 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchUp()
4179 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchUp()
4420 if (mVelocityTracker == null) { in initOrResetVelocityTracker()
4421 mVelocityTracker = VelocityTracker.obtain(); in initOrResetVelocityTracker()
4423 mVelocityTracker.clear(); in initOrResetVelocityTracker()
[all …]
/frameworks/native/include/input/
DVelocityControl.h102 VelocityTracker mVelocityTracker; variable
/frameworks/base/core/java/com/android/internal/widget/
DResolverDrawerLayout.java107 private final VelocityTracker mVelocityTracker; field in ResolverDrawerLayout
165 mVelocityTracker = VelocityTracker.obtain(); in ResolverDrawerLayout()
304 mVelocityTracker.clear(); in onInterceptTouchEvent()
307 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent()
371 mVelocityTracker.addMovement(ev); in onTouchEvent()
451 mVelocityTracker.computeCurrentVelocity(1000); in onTouchEvent()
452 final float yvel = mVelocityTracker.getYVelocity(mActivePointerId); in onTouchEvent()
514 mVelocityTracker.clear();
DViewPager.java179 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 …]
DRecyclerView.java422 private VelocityTracker mVelocityTracker; field in RecyclerView
2649 if (mVelocityTracker == null) { in onInterceptTouchEvent()
2650 mVelocityTracker = VelocityTracker.obtain(); in onInterceptTouchEvent()
2652 mVelocityTracker.addMovement(e); in onInterceptTouchEvent()
2723 mVelocityTracker.clear(); in onInterceptTouchEvent()
2761 if (mVelocityTracker == null) { in onTouchEvent()
2762 mVelocityTracker = VelocityTracker.obtain(); in onTouchEvent()
2863 mVelocityTracker.addMovement(vtev); in onTouchEvent()
2865 mVelocityTracker.computeCurrentVelocity(1000, mMaxFlingVelocity); in onTouchEvent()
2867 ? -mVelocityTracker.getXVelocity(mScrollPointerId) : 0; in onTouchEvent()
[all …]
/frameworks/ex/widget/java/com/android/ex/widget/
DStaggeredGridView.java129 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/systemui/stackdivider/
DDividerView.java144 private VelocityTracker mVelocityTracker; field in DividerView
488 mVelocityTracker = VelocityTracker.obtain(); in onTouch()
489 mVelocityTracker.addMovement(event); in onTouch()
502 mVelocityTracker.addMovement(event); in onTouch()
522 mVelocityTracker.addMovement(event); in onTouch()
527 mVelocityTracker.computeCurrentVelocity(1000); in onTouch()
529 stopDragging(position, isHorizontalDivision() ? mVelocityTracker.getYVelocity() in onTouch()
530 : mVelocityTracker.getXVelocity(), false /* avoidDismissStart */, in onTouch()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSecurityContainer.java130 private final VelocityTracker mVelocityTracker = VelocityTracker.obtain(); field in KeyguardSecurityContainer
311 mVelocityTracker.clear(); in onInterceptTouchEvent()
345 mVelocityTracker.addMovement(event); in onTouchEvent()
359 startSpringAnimation(mVelocityTracker.getYVelocity()); in onTouchEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationStackScrollLayout.java221 private VelocityTracker mVelocityTracker; field in NotificationStackScrollLayout
1977 if (mVelocityTracker == null) {
1978 mVelocityTracker = VelocityTracker.obtain();
1984 if (mVelocityTracker != null) {
1985 mVelocityTracker.recycle();
1986 mVelocityTracker = null;
1992 if (mVelocityTracker == null) {
1993 mVelocityTracker = VelocityTracker.obtain();
1995 mVelocityTracker.clear();
3941 mVelocityTracker.addMovement(ev);
[all …]

12