/frameworks/base/core/java/com/android/internal/widget/ |
D | NestedScrollingChild.java | 193 boolean dispatchNestedFling(float velocityX, float velocityY, boolean consumed); in dispatchNestedFling() argument 225 boolean dispatchNestedPreFling(float velocityX, float velocityY); in dispatchNestedPreFling() argument
|
D | ResolverDrawerLayout.java | 793 public boolean onNestedPreFling(View target, float velocityX, float velocityY) { 794 if (!getShowAtTop() && velocityY > mMinFlingVelocity && mCollapseOffset != 0) { 795 smoothScrollTo(0, velocityY); 802 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) { 803 if (!consumed && Math.abs(velocityY) > mMinFlingVelocity) { 805 if (isDismissable() && velocityY > 0) { 809 smoothScrollTo(velocityY < 0 ? mCollapsibleHeight : 0, velocityY); 813 && velocityY < 0 && mCollapseOffset > mCollapsibleHeight) { 814 smoothScrollTo(mCollapsibleHeight + mUncollapsibleHeight, velocityY); 817 smoothScrollTo(velocityY > 0 ? 0 : mCollapsibleHeight, velocityY);
|
D | ActionBarOverlayLayout.java | 573 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) { 577 if (shouldHideActionBarOnFling(velocityX, velocityY)) { 671 private boolean shouldHideActionBarOnFling(float velocityX, float velocityY) { 672 mFlingEstimator.fling(0, 0, 0, (int) velocityY, 0, 0, Integer.MIN_VALUE, Integer.MAX_VALUE);
|
D | RecyclerView.java | 1993 public boolean fling(int velocityX, int velocityY) { in fling() argument 2009 if (!canScrollVertical || Math.abs(velocityY) < mMinFlingVelocity) { in fling() 2010 velocityY = 0; in fling() 2012 if (velocityX == 0 && velocityY == 0) { in fling() 2017 if (!dispatchNestedPreFling(velocityX, velocityY)) { in fling() 2022 if (velocityY < 0) { in fling() 2027 if (velocityY > 0) { in fling() 2033 dispatchNestedFling(velocityX, velocityY, consumed); in fling() 2035 if (mOnFlingListener != null && mOnFlingListener.onFling(velocityX, velocityY)) { in fling() 2043 velocityY = Math.max(-mMaxFlingVelocity, Math.min(velocityY, mMaxFlingVelocity)); in fling() [all …]
|
D | DecorCaptionView.java | 403 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument
|
/frameworks/base/core/java/android/widget/ |
D | Scroller.java | 426 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument 442 Math.signum(velocityY) == Math.signum(oldVelocityY)) { in fling() 444 velocityY += oldVelocityY; in fling() 451 float velocity = (float) Math.hypot(velocityX, velocityY); in fling() 460 float coeffY = velocity == 0 ? 1.0f : velocityY / velocity; in fling()
|
D | OverScroller.java | 390 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument 392 fling(startX, startY, velocityX, velocityY, minX, maxX, minY, maxY, 0, 0); in fling() 422 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument 429 Math.signum(velocityY) == Math.signum(oldVelocityY)) { in fling() 431 velocityY += oldVelocityY; in fling() 437 mScrollerY.fling(startY, velocityY, minY, maxY, overY); in fling()
|
D | ScrollView.java | 1757 public void fling(int velocityY) { in fling() argument 1762 mScroller.fling(mScrollX, mScrollY, 0, velocityY, 0, 0, 0, in fling() 1773 private void flingWithNestedDispatch(int velocityY) { in flingWithNestedDispatch() argument 1774 final boolean canFling = (mScrollY > 0 || velocityY > 0) && in flingWithNestedDispatch() 1775 (mScrollY < getScrollRange() || velocityY < 0); in flingWithNestedDispatch() 1776 if (!dispatchNestedPreFling(0, velocityY)) { in flingWithNestedDispatch() 1777 final boolean consumed = dispatchNestedFling(0, velocityY, canFling); in flingWithNestedDispatch() 1779 fling(velocityY); in flingWithNestedDispatch() 1782 mEdgeGlowTop.onAbsorb(-velocityY); in flingWithNestedDispatch() 1784 mEdgeGlowBottom.onAbsorb(velocityY); in flingWithNestedDispatch() [all …]
|
D | NumberPicker.java | 1939 private void fling(int velocityY) { in fling() argument 1942 if (velocityY > 0) { in fling() 1943 mFlingScroller.fling(0, 0, 0, velocityY, 0, 0, 0, Integer.MAX_VALUE); in fling() 1945 mFlingScroller.fling(0, Integer.MAX_VALUE, 0, velocityY, 0, 0, 0, Integer.MAX_VALUE); in fling()
|
D | AbsListView.java | 4388 public void fling(int velocityY) { in fling() argument 4393 mFlingRunnable.start(velocityY); in fling() 4425 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) { in onNestedFling() argument 4427 if (!consumed && childCount > 0 && canScrollList((int) velocityY) && in onNestedFling() 4428 Math.abs(velocityY) > mMinimumVelocity) { in onNestedFling() 4433 if (!dispatchNestedPreFling(0, velocityY)) { in onNestedFling() 4434 mFlingRunnable.start((int) velocityY); in onNestedFling() 4438 return dispatchNestedFling(velocityX, velocityY, consumed); in onNestedFling()
|
D | Gallery.java | 1020 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument
|
/frameworks/base/core/java/android/view/ |
D | ViewParent.java | 623 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed); in onNestedFling() argument 645 public boolean onNestedPreFling(View target, float velocityX, float velocityY); in onNestedPreFling() argument
|
D | GestureDetector.java | 130 boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY); in onFling() argument 206 float velocityY) { in onFling() argument 758 final float velocityY = velocityTracker.getYVelocity(pointerId); in onTouchEvent() local 761 if ((Math.abs(velocityY) > mMinimumFlingVelocity) in onTouchEvent() 763 handled = mListener.onFling(mCurrentDownEvent, ev, velocityX, velocityY); in onTouchEvent()
|
D | ViewGroup.java | 7952 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) { in onNestedFling() argument 7954 return dispatchNestedFling(velocityX, velocityY, consumed); in onNestedFling() 7961 public boolean onNestedPreFling(View target, float velocityX, float velocityY) { in onNestedPreFling() argument 7963 return dispatchNestedPreFling(velocityX, velocityY); in onNestedPreFling()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | ObservableScrollView.java | 132 public void fling(int velocityY) { in fling() argument 134 super.fling(velocityY); in fling()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/ |
D | PipMotionHelper.java | 393 float velocityX, float velocityY, @Nullable Runnable postBoundsUpdateCallback) { in flingToSnapTarget() argument 394 movetoTarget(velocityX, velocityY, postBoundsUpdateCallback, false /* isStash */); in flingToSnapTarget() 407 float velocityY, in movetoTarget() argument 422 FloatProperties.RECT_Y, velocityY, mFlingConfigY, mSpringConfig); in movetoTarget() 438 PhysicsAnimator.estimateFlingEndValue(startValueY, velocityY, mFlingConfigY); in movetoTarget()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
D | SeekBarViewModel.kt | 398 velocityY: Float in onFling() 400 if (Math.abs(velocityX) > flingVelocity || Math.abs(velocityY) > flingVelocity) { in onFling()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | SystemGesturesPointerEventListener.java | 318 float velocityX, float velocityY) { in onFling() argument 325 mOverscroller.fling(0, 0, (int)velocityX, (int)velocityY, in onFling()
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | KeyboardView.java | 407 float velocityX, float velocityY) { in initGestureDetector() 410 final float absY = Math.abs(velocityY); in initGestureDetector() 433 } else if (velocityY < -mSwipeThreshold && absX < absY && deltaY < -travelY) { in initGestureDetector() 434 if (mDisambiguateSwipe && endingVelocityY > velocityY / 4) { in initGestureDetector() 440 } else if (velocityY > mSwipeThreshold && absX < absY / 2 && deltaY > travelY) { in initGestureDetector() 441 if (mDisambiguateSwipe && endingVelocityY < velocityY / 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 1270 mVelocityY = velocityY; in start()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/ |
D | PrintContentView.java | 421 public void onViewReleased(View child, float velocityX, float velocityY) { in onViewReleased() argument
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | LockIconViewController.java | 522 float velocityX, float velocityY) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/ |
D | GlobalActionsDialogLite.java | 2159 float velocityY) { 2160 if (velocityY > 0 && Math.abs(velocityY) > Math.abs(velocityX)
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ |
D | NotificationStackScrollLayout.java | 2471 protected void fling(int velocityY) { 2475 if (velocityY < 0 && topAmount > 0) { 2479 mMaxOverScroll = Math.abs(velocityY) / 1000f * getRubberBandFactor(true /* onTop */) 2481 } else if (velocityY > 0 && bottomAmount > 0) { 2484 mMaxOverScroll = Math.abs(velocityY) / 1000f 2496 mScroller.fling(mScrollX, mOwnScrollY, 1, velocityY, 0, 0, 0, minScrollY, 0,
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
D | ScreenshotView.java | 1156 float velocityY) { in onFling() argument
|