Home
last modified time | relevance | path

Searched refs:velocityX (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/window/
DBackTouchTrackerTest.kt49 val velocityX = 0f in generatesProgress_leftEdge() constant
53 linearTracker.update(touchX, 0f, velocityX, velocityY) in generatesProgress_leftEdge()
59 linearTracker.update(touchX, 0f, velocityX, velocityY) in generatesProgress_leftEdge()
65 linearTracker.update(touchX, 0f, velocityX, velocityY) in generatesProgress_leftEdge()
70 linearTracker.update(touchX, 0f, velocityX, velocityY) in generatesProgress_leftEdge()
76 linearTracker.update(touchX, 0f, velocityX, velocityY) in generatesProgress_leftEdge()
81 linearTracker.update(touchX, 0f, velocityX, velocityY) in generatesProgress_leftEdge()
87 linearTracker.update(touchX, 0f, velocityX, velocityY) in generatesProgress_leftEdge()
96 val velocityX = 0f in generatesProgress_rightEdge() constant
101 linearTracker.update(touchX, 0f, velocityX, velocityY) in generatesProgress_rightEdge()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DNestedScrollingChild.java195 boolean dispatchNestedFling(float velocityX, float velocityY, boolean consumed); in dispatchNestedFling() argument
227 boolean dispatchNestedPreFling(float velocityX, float velocityY); in dispatchNestedPreFling() argument
DActionBarOverlayLayout.java644 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) {
648 if (shouldHideActionBarOnFling(velocityX, velocityY)) {
742 private boolean shouldHideActionBarOnFling(float velocityX, float velocityY) {
DRecyclerView.java1993 public boolean fling(int velocityX, int velocityY) { in fling() argument
2006 if (!canScrollHorizontal || Math.abs(velocityX) < mMinFlingVelocity) { in fling()
2007 velocityX = 0; in fling()
2012 if (velocityX == 0 && velocityY == 0) { in fling()
2017 if (!dispatchNestedPreFling(velocityX, velocityY)) { in fling()
2033 dispatchNestedFling(velocityX, velocityY, consumed); in fling()
2035 if (mOnFlingListener != null && mOnFlingListener.onFling(velocityX, velocityY)) { in fling()
2042 velocityX = Math.max(-mMaxFlingVelocity, Math.min(velocityX, mMaxFlingVelocity)); in fling()
2044 mViewFlinger.fling(velocityX, velocityY); in fling()
2165 void absorbGlows(int velocityX, int velocityY) { in absorbGlows() argument
[all …]
/frameworks/base/core/java/android/window/
DBackMotionEvent.java67 float velocityX, in BackMotionEvent() argument
75 mVelocityX = velocityX; in BackMotionEvent()
DBackTouchTracker.java61 public void update(float touchX, float touchY, float velocityX, float velocityY) { in update() argument
76 mLatestVelocityX = velocityX; in update()
/frameworks/base/core/java/android/widget/
DScroller.java426 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
441 if (Math.signum(velocityX) == Math.signum(oldVelocityX) && in fling()
443 velocityX += oldVelocityX; in fling()
451 float velocity = (float) Math.hypot(velocityX, velocityY); in fling()
459 float coeffX = velocity == 0 ? 1.0f : velocityX / velocity; in fling()
DOverScroller.java392 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
394 fling(startX, startY, velocityX, velocityY, minX, maxX, minY, maxY, 0, 0); in fling()
424 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
430 if (Math.signum(velocityX) == Math.signum(oldVelocityX) && in fling()
432 velocityX += oldVelocityX; in fling()
438 mScrollerX.fling(startX, velocityX, minX, maxX, overX); in fling()
DHorizontalScrollView.java1793 public void fling(int velocityX) { in fling() argument
1802 if (shouldAbsorb(mEdgeGlowLeft, -velocityX)) { in fling()
1803 mEdgeGlowLeft.onAbsorb(-velocityX); in fling()
1808 if (shouldAbsorb(mEdgeGlowRight, velocityX)) { in fling()
1809 mEdgeGlowRight.onAbsorb(velocityX); in fling()
1817 mScroller.fling(mScrollX, mScrollY, velocityX, 0, 0, in fling()
1825 final boolean movingRight = velocityX > 0; in fling()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DMenuAnimationController.java195 void flingMenuThenSpringToEdge(float x, float velocityX, float velocityY) { in flingMenuThenSpringToEdge() argument
197 ? velocityX < ESCAPE_VELOCITY in flingMenuThenSpringToEdge()
198 : velocityX < -ESCAPE_VELOCITY; in flingMenuThenSpringToEdge()
208 ? Math.min(minimumVelocityToReachEdge, velocityX) in flingMenuThenSpringToEdge()
209 : Math.max(minimumVelocityToReachEdge, velocityX); in flingMenuThenSpringToEdge()
/frameworks/base/core/java/android/view/
DViewParent.java631 public boolean onNestedFling(@NonNull View target, float velocityX, float velocityY, in onNestedFling() argument
654 public boolean onNestedPreFling(@NonNull View target, float velocityX, float velocityY); in onNestedPreFling() argument
DGestureDetector.java137 boolean onFling(@Nullable MotionEvent e1, @NonNull MotionEvent e2, float velocityX, in onFling() argument
213 public boolean onFling(@Nullable MotionEvent e1, @NonNull MotionEvent e2, float velocityX, in onFling() argument
797 final float velocityX = velocityTracker.getXVelocity(pointerId); in onTouchEvent() local
800 || (Math.abs(velocityX) > mMinimumFlingVelocity)) { in onTouchEvent()
801 handled = mListener.onFling(mCurrentDownEvent, ev, velocityX, velocityY); in onTouchEvent()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/back/
DBackAnimation.java46 float velocityX, in onBackMotion() argument
DBackAnimationController.java315 float velocityX, in onBackMotion() argument
323 /* velocityX = */ velocityX, in onBackMotion()
451 float velocityX, in onMotionEvent() argument
458 activeTouchTracker.update(touchX, touchY, velocityX, velocityY); in onMotionEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DDraggableConstraintLayout.java270 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, in onFling() argument
272 if (mView.getTranslationX() * velocityX > 0 in onFling()
275 createSwipeDismissAnimation(velocityX / (float) 1000); in onFling()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipMotionHelper.java384 float velocityX, float velocityY, @Nullable Runnable postBoundsUpdateCallback) { in flingToSnapTarget() argument
385 movetoTarget(velocityX, velocityY, postBoundsUpdateCallback, false /* isStash */); in flingToSnapTarget()
407 float velocityX, in movetoTarget() argument
419 FloatProperties.RECT_X, velocityX, in movetoTarget()
435 final float xEndValue = velocityX < 0 ? leftEdge : rightEdge; in movetoTarget()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/
DPipMotionHelper.java376 float velocityX, float velocityY, @Nullable Runnable postBoundsUpdateCallback) { in flingToSnapTarget() argument
377 movetoTarget(velocityX, velocityY, postBoundsUpdateCallback, false /* isStash */); in flingToSnapTarget()
399 float velocityX, in movetoTarget() argument
411 FloatProperties.RECT_X, velocityX, in movetoTarget()
427 final float xEndValue = velocityX < 0 ? leftEdge : rightEdge; in movetoTarget()
/frameworks/base/packages/SystemUI/src/com/android/systemui/ambient/touch/
DShadeTouchHandler.java102 public boolean onFling(MotionEvent e1, @NonNull MotionEvent e2, float velocityX, in onSessionStart()
DTouchMonitor.java469 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,
471 return evaluate(listener -> listener.onFling(e1, e2, velocityX, velocityY));
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/touch/
DCommunalTouchHandler.java115 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, in handleSessionStart()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/viewmodel/
DSeekBarViewModel.kt544 velocityX: Float, in onFling()
547 if (Math.abs(velocityX) > flingVelocity || Math.abs(velocityY) > flingVelocity) { in onFling()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboardView.java409 float velocityX, float velocityY) { in initGestureDetector()
411 final float absX = Math.abs(velocityX); in initGestureDetector()
421 if (velocityX > mSwipeThreshold && absY < absX && deltaX > travelX) { in initGestureDetector()
422 if (mDisambiguateSwipe && endingVelocityX < velocityX / 4) { in initGestureDetector()
428 } else if (velocityX < -mSwipeThreshold && absY < absX && deltaX < -travelX) { in initGestureDetector()
429 if (mDisambiguateSwipe && endingVelocityX > velocityX / 4) { in initGestureDetector()
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
DPhotoView.java362 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument
364 mTranslateRunnable.start(velocityX, velocityY); in onFling()
1264 public boolean start(float velocityX, float velocityY) { in start() argument
1269 mVelocityX = velocityX; in start()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/gesture/
DGesturePointerEventListener.kt434 velocityX: Float, in <lambda>()
445 velocityX.toInt(), in <lambda>()
/frameworks/base/services/core/java/com/android/server/wm/
DSystemGesturesPointerEventListener.java436 float velocityX, float velocityY) { in onFling() argument
443 mOverscroller.fling(0, 0, (int)velocityX, (int)velocityY, in onFling()

12