/frameworks/base/core/tests/coretests/src/android/window/ |
D | BackTouchTrackerTest.kt | 49 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/ |
D | NestedScrollingChild.java | 195 boolean dispatchNestedFling(float velocityX, float velocityY, boolean consumed); in dispatchNestedFling() argument 227 boolean dispatchNestedPreFling(float velocityX, float velocityY); in dispatchNestedPreFling() argument
|
D | ActionBarOverlayLayout.java | 644 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) { 648 if (shouldHideActionBarOnFling(velocityX, velocityY)) { 742 private boolean shouldHideActionBarOnFling(float velocityX, float velocityY) {
|
D | RecyclerView.java | 1993 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/ |
D | BackMotionEvent.java | 67 float velocityX, in BackMotionEvent() argument 75 mVelocityX = velocityX; in BackMotionEvent()
|
D | BackTouchTracker.java | 61 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/ |
D | Scroller.java | 426 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()
|
D | OverScroller.java | 392 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()
|
D | HorizontalScrollView.java | 1793 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/ |
D | MenuAnimationController.java | 195 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/ |
D | ViewParent.java | 631 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
|
D | GestureDetector.java | 137 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/ |
D | BackAnimation.java | 46 float velocityX, in onBackMotion() argument
|
D | BackAnimationController.java | 315 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/ |
D | DraggableConstraintLayout.java | 270 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/ |
D | PipMotionHelper.java | 384 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/ |
D | PipMotionHelper.java | 376 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/ |
D | ShadeTouchHandler.java | 102 public boolean onFling(MotionEvent e1, @NonNull MotionEvent e2, float velocityX, in onSessionStart()
|
D | TouchMonitor.java | 469 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/ |
D | CommunalTouchHandler.java | 115 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, in handleSessionStart()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/viewmodel/ |
D | SeekBarViewModel.kt | 544 velocityX: Float, in onFling() 547 if (Math.abs(velocityX) > flingVelocity || Math.abs(velocityY) > flingVelocity) { in onFling()
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | KeyboardView.java | 409 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/ |
D | PhotoView.java | 362 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/ |
D | GesturePointerEventListener.kt | 434 velocityX: Float, in <lambda>() 445 velocityX.toInt(), in <lambda>()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | SystemGesturesPointerEventListener.java | 436 float velocityX, float velocityY) { in onFling() argument 443 mOverscroller.fling(0, 0, (int)velocityX, (int)velocityY, in onFling()
|