Searched refs:mVelocityTracker (Results 1 - 25 of 36) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
H A DPipTouchState.java45 private VelocityTracker mVelocityTracker; field in class:PipTouchState
122 mVelocityTracker.addMovement(ev);
153 mVelocityTracker.addMovement(ev);
176 mVelocityTracker.addMovement(ev);
177 mVelocityTracker.computeCurrentVelocity(1000,
179 mVelocity.set(mVelocityTracker.getXVelocity(), mVelocityTracker.getYVelocity());
321 if (mVelocityTracker == null) {
322 mVelocityTracker = VelocityTracker.obtain();
324 mVelocityTracker
[all...]
/frameworks/support/wear/src/main/java/androidx/wear/widget/
H A DSwipeDismissLayout.java125 private VelocityTracker mVelocityTracker; field in class:SwipeDismissLayout
233 mVelocityTracker = VelocityTracker.obtain();
234 mVelocityTracker.addMovement(ev);
257 if (mVelocityTracker == null || mDiscardIntercept) {
312 if (mVelocityTracker == null) {
339 mVelocityTracker.addMovement(ev);
371 if (mVelocityTracker != null) {
372 mVelocityTracker.recycle();
374 mVelocityTracker = null;
402 mVelocityTracker
[all...]
H A DScrollManager.java74 VelocityTracker mVelocityTracker; field in class:ScrollManager
82 mVelocityTracker = VelocityTracker.obtain();
101 mVelocityTracker.addMovement(vtev);
155 mVelocityTracker.computeCurrentVelocity(ONE_SEC_IN_MS,
157 int velocityY = (int) mVelocityTracker.getYVelocity();
161 mVelocityTracker.clear();
/frameworks/native/libs/input/
H A DVelocityControl.cpp49 mVelocityTracker.clear();
69 mVelocityTracker.addMovement(eventTime, BitSet32(BitSet32::valueForBit(0)), &mRawPosition);
73 if (mVelocityTracker.getVelocity(0, &vx, &vy)) {
/frameworks/base/core/java/android/view/
H A DGestureDetector.java267 private VelocityTracker mVelocityTracker; field in class:GestureDetector
497 if (mVelocityTracker == null) {
498 mVelocityTracker = VelocityTracker.obtain();
500 mVelocityTracker.addMovement(ev);
536 mVelocityTracker.computeCurrentVelocity(1000, mMaximumFlingVelocity);
539 final float x1 = mVelocityTracker.getXVelocity(id1);
540 final float y1 = mVelocityTracker.getYVelocity(id1);
545 final float x = x1 * mVelocityTracker.getXVelocity(id2);
546 final float y = y1 * mVelocityTracker.getYVelocity(id2);
550 mVelocityTracker
[all...]
/frameworks/support/compat/src/main/java/androidx/core/view/
H A DGestureDetectorCompat.java100 private VelocityTracker mVelocityTracker; field in class:GestureDetectorCompat.GestureDetectorCompatImplBase
230 if (mVelocityTracker == null) {
231 mVelocityTracker = VelocityTracker.obtain();
233 mVelocityTracker.addMovement(ev);
267 mVelocityTracker.computeCurrentVelocity(1000, mMaximumFlingVelocity);
270 final float x1 = mVelocityTracker.getXVelocity(id1);
271 final float y1 = mVelocityTracker.getYVelocity(id1);
276 final float x = x1 * mVelocityTracker.getXVelocity(id2);
277 final float y = y1 * mVelocityTracker.getYVelocity(id2);
281 mVelocityTracker
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DNavigationBarGestureHelper.java75 private VelocityTracker mVelocityTracker; field in class:NavigationBarGestureHelper
183 mVelocityTracker = VelocityTracker.obtain();
184 mVelocityTracker.addMovement(event);
203 mVelocityTracker.addMovement(event);
258 mVelocityTracker.addMovement(event);
259 mVelocityTracker.computeCurrentVelocity(1000);
266 ? mVelocityTracker.getXVelocity()
267 : mVelocityTracker.getYVelocity(),
270 mRecentsComponent.onDraggingInRecentsEnded(mVelocityTracker.getYVelocity());
273 mVelocityTracker
[all...]
H A DPanelView.java104 private VelocityTrackerInterface mVelocityTracker; field in class:PanelView
230 if (mVelocityTracker != null) mVelocityTracker.addMovement(event);
314 if (mVelocityTracker == null) {
464 if (mVelocityTracker != null) {
465 mVelocityTracker.computeCurrentVelocity(1000);
466 vel = mVelocityTracker.getYVelocity();
468 mVelocityTracker.getXVelocity(), mVelocityTracker.getYVelocity());
506 if (mVelocityTracker !
[all...]
H A DKeyguardAffordanceHelper.java49 private VelocityTracker mVelocityTracker; field in class:KeyguardAffordanceHelper
222 if (mVelocityTracker != null) {
223 mVelocityTracker.recycle();
224 mVelocityTracker = null;
471 if (mVelocityTracker != null) {
472 mVelocityTracker.addMovement(event);
477 if (mVelocityTracker != null) {
478 mVelocityTracker.recycle();
480 mVelocityTracker = VelocityTracker.obtain();
484 if (mVelocityTracker
[all...]
/frameworks/base/core/jni/
H A Dandroid_view_VelocityTracker.cpp61 VelocityTracker mVelocityTracker; member in class:android::VelocityTrackerState
68 mVelocityTracker(strategy), mActivePointerId(-1) {
72 mVelocityTracker.clear();
78 mVelocityTracker.addMovement(event);
82 BitSet32 idBits(mVelocityTracker.getCurrentPointerIdBits());
89 mVelocityTracker.getVelocity(id, &vx, &vy);
113 id = mVelocityTracker.getActivePointerId();
136 return mVelocityTracker.getEstimator(id, outEstimator);
/frameworks/native/include/input/
H A DVelocityControl.h102 VelocityTracker mVelocityTracker; member in class:android::VelocityControl
/frameworks/base/core/java/com/android/internal/widget/
H A DSwipeDismissLayout.java82 private VelocityTracker mVelocityTracker; field in class:SwipeDismissLayout
187 mVelocityTracker = VelocityTracker.obtain("int1");
188 mVelocityTracker.addMovement(ev);
211 if (mVelocityTracker == null || mDiscardIntercept) {
241 if (mVelocityTracker == null || !mDismissable) {
270 mVelocityTracker.addMovement(ev);
311 if (mVelocityTracker != null) {
312 mVelocityTracker.recycle();
314 mVelocityTracker = null;
349 mVelocityTracker
[all...]
H A DResolverDrawerLayout.java93 private final VelocityTracker mVelocityTracker; field in class:ResolverDrawerLayout
145 mVelocityTracker = VelocityTracker.obtain();
265 mVelocityTracker.clear();
268 mVelocityTracker.addMovement(ev);
316 mVelocityTracker.addMovement(ev);
390 mVelocityTracker.computeCurrentVelocity(1000);
391 final float yvel = mVelocityTracker.getYVelocity(mActivePointerId);
448 mVelocityTracker.clear();
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DExpandHelper.java109 private VelocityTracker mVelocityTracker; field in class:ExpandHelper
351 if (mVelocityTracker == null) {
352 mVelocityTracker = VelocityTracker.obtain();
354 mVelocityTracker.clear();
356 mVelocityTracker.addMovement(event);
359 if (mVelocityTracker == null) {
360 mVelocityTracker = VelocityTracker.obtain();
362 mVelocityTracker.addMovement(event);
370 if (mVelocityTracker != null && (event.getActionMasked() == MotionEvent.ACTION_CANCEL
372 mVelocityTracker
[all...]
H A DSwipeHelper.java73 private final VelocityTracker mVelocityTracker; field in class:SwipeHelper
104 mVelocityTracker = VelocityTracker.obtain();
277 mVelocityTracker.clear();
283 mVelocityTracker.addMovement(ev);
313 mVelocityTracker.addMovement(ev);
586 mVelocityTracker.addMovement(ev);
619 mVelocityTracker.computeCurrentVelocity(1000 /* px/sec */, getMaxVelocity());
620 float velocity = getVelocity(mVelocityTracker);
684 float velocity = getVelocity(mVelocityTracker);
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DTaskStackViewTouchHandler.java76 VelocityTracker mVelocityTracker; field in class:TaskStackViewTouchHandler
154 if (mVelocityTracker == null) {
155 mVelocityTracker = VelocityTracker.obtain();
157 mVelocityTracker.clear();
161 if (mVelocityTracker != null) {
162 mVelocityTracker.recycle();
163 mVelocityTracker = null;
243 mVelocityTracker.addMovement(ev);
254 mVelocityTracker.addMovement(ev);
314 mVelocityTracker
[all...]
/frameworks/support/customview/src/main/java/androidx/customview/widget/
H A DViewDragHelper.java129 private VelocityTracker mVelocityTracker; field in class:ViewDragHelper
514 if (mVelocityTracker != null) {
515 mVelocityTracker.recycle();
516 mVelocityTracker = null;
583 (int) mVelocityTracker.getXVelocity(mActivePointerId),
584 (int) mVelocityTracker.getYVelocity(mActivePointerId));
716 (int) mVelocityTracker.getXVelocity(mActivePointerId),
717 (int) mVelocityTracker.getYVelocity(mActivePointerId),
972 if (mVelocityTracker == null) {
973 mVelocityTracker
[all...]
/frameworks/base/core/java/android/widget/
H A DScrollView.java119 private VelocityTracker mVelocityTracker; field in class:ScrollView
455 if (mVelocityTracker == null) {
456 mVelocityTracker = VelocityTracker.obtain();
458 mVelocityTracker.clear();
463 if (mVelocityTracker == null) {
464 mVelocityTracker = VelocityTracker.obtain();
469 if (mVelocityTracker != null) {
470 mVelocityTracker.recycle();
471 mVelocityTracker = null;
543 mVelocityTracker
[all...]
H A DSlidingDrawer.java110 private VelocityTracker mVelocityTracker; field in class:SlidingDrawer
409 mVelocityTracker.addMovement(event);
422 mVelocityTracker.addMovement(event);
430 final VelocityTracker velocityTracker = mVelocityTracker;
560 mVelocityTracker = VelocityTracker.obtain();
691 if (mVelocityTracker != null) {
692 mVelocityTracker.recycle();
693 mVelocityTracker = null;
H A DHorizontalScrollView.java111 private VelocityTracker mVelocityTracker; field in class:HorizontalScrollView
427 if (mVelocityTracker == null) {
428 mVelocityTracker = VelocityTracker.obtain();
430 mVelocityTracker.clear();
435 if (mVelocityTracker == null) {
436 mVelocityTracker = VelocityTracker.obtain();
441 if (mVelocityTracker != null) {
442 mVelocityTracker.recycle();
443 mVelocityTracker = null;
507 mVelocityTracker
[all...]
H A DStackView.java134 private VelocityTracker mVelocityTracker; field in class:StackView
723 if (mVelocityTracker == null) {
724 mVelocityTracker = VelocityTracker.obtain();
726 mVelocityTracker.addMovement(ev);
795 if (mVelocityTracker != null) {
796 mVelocityTracker.clear();
815 if (mVelocityTracker != null) {
816 mVelocityTracker.computeCurrentVelocity(1000, mMaximumVelocity);
817 mYVelocity = (int) mVelocityTracker.getYVelocity(mActivePointerId);
820 if (mVelocityTracker !
[all...]
/frameworks/base/core/java/com/android/internal/widget/helper/
H A DItemTouchHelper.java265 VelocityTracker mVelocityTracker; field in class: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) {
901 mVelocityTracker.recycle();
903 mVelocityTracker
[all...]
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
H A DItemTouchHelper.java269 private VelocityTracker mVelocityTracker; field in class:ItemTouchHelper
347 if (mVelocityTracker != null) {
348 mVelocityTracker.addMovement(event);
360 if (mVelocityTracker != null) {
361 mVelocityTracker.addMovement(event);
388 if (mVelocityTracker != null) {
389 mVelocityTracker.clear();
922 if (mVelocityTracker != null) {
923 mVelocityTracker.recycle();
925 mVelocityTracker
[all...]
/frameworks/support/compat/src/main/java/androidx/core/widget/
H A DNestedScrollView.java135 private VelocityTracker mVelocityTracker; field in class:NestedScrollView
658 if (mVelocityTracker == null) {
659 mVelocityTracker = VelocityTracker.obtain();
661 mVelocityTracker.clear();
666 if (mVelocityTracker == null) {
667 mVelocityTracker = VelocityTracker.obtain();
672 if (mVelocityTracker != null) {
673 mVelocityTracker.recycle();
674 mVelocityTracker = null;
735 mVelocityTracker
[all...]
/frameworks/support/viewpager/src/main/java/androidx/viewpager/widget/
H A DViewPager.java217 private VelocityTracker mVelocityTracker; field in class:ViewPager
2152 if (mVelocityTracker == null) {
2153 mVelocityTracker = VelocityTracker.obtain();
2155 mVelocityTracker.addMovement(ev);
2184 if (mVelocityTracker == null) {
2185 mVelocityTracker = VelocityTracker.obtain();
2187 mVelocityTracker.addMovement(ev);
2247 final VelocityTracker velocityTracker = mVelocityTracker;
2534 if (mVelocityTracker == null) {
2535 mVelocityTracker
[all...]

Completed in 136 milliseconds

12