/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 | 746 public boolean onNestedPreFling(View target, float velocityX, float velocityY) { 747 if (!getShowAtTop() && velocityY > mMinFlingVelocity && mCollapseOffset != 0) { 748 smoothScrollTo(0, velocityY); 755 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) { 756 if (!consumed && Math.abs(velocityY) > mMinFlingVelocity) { 758 if (isDismissable() && velocityY > 0) { 762 smoothScrollTo(velocityY < 0 ? mCollapsibleHeight : 0, velocityY); 766 && velocityY < 0 && mCollapseOffset > mCollapsibleHeight) { 767 smoothScrollTo(mCollapsibleHeight + mUncollapsibleHeight, velocityY); 770 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 | 1989 public boolean fling(int velocityX, int velocityY) { in fling() argument 2005 if (!canScrollVertical || Math.abs(velocityY) < mMinFlingVelocity) { in fling() 2006 velocityY = 0; in fling() 2008 if (velocityX == 0 && velocityY == 0) { in fling() 2013 if (!dispatchNestedPreFling(velocityX, velocityY)) { in fling() 2015 dispatchNestedFling(velocityX, velocityY, canScroll); in fling() 2017 if (mOnFlingListener != null && mOnFlingListener.onFling(velocityX, velocityY)) { in fling() 2023 velocityY = Math.max(-mMaxFlingVelocity, Math.min(velocityY, mMaxFlingVelocity)); in fling() 2024 mViewFlinger.fling(velocityX, velocityY); in fling() 2145 void absorbGlows(int velocityX, int velocityY) { in absorbGlows() argument [all …]
|
D | DecorCaptionView.java | 426 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/ |
D | PipMotionHelper.java | 246 Rect flingToMinimizedState(float velocityY, Rect movementBounds, Point dragStartPosition) { in flingToMinimizedState() argument 253 0 /* velocityX */, velocityY, dragStartPosition); in flingToMinimizedState() 258 velocityY); in flingToMinimizedState() 285 Rect flingToSnapTarget(float velocity, float velocityX, float velocityY, Rect movementBounds, in flingToSnapTarget() argument 290 velocityX, velocityY, startPosition); in flingToSnapTarget() 383 Rect animateDismiss(Rect pipBounds, float velocityX, float velocityY, in animateDismiss() argument 386 final float velocity = PointF.length(velocityX, velocityY); in animateDismiss() 388 Point p = getDismissEndPoint(pipBounds, velocityX, velocityY, isFling); in animateDismiss()
|
/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 | 407 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument 409 fling(startX, startY, velocityX, velocityY, minX, maxX, minY, maxY, 0, 0); in fling() 439 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument 446 Math.signum(velocityY) == Math.signum(oldVelocityY)) { in fling() 448 velocityY += oldVelocityY; in fling() 454 mScrollerY.fling(startY, velocityY, minY, maxY, overY); in fling()
|
D | ScrollView.java | 1730 public void fling(int velocityY) { in fling() argument 1735 mScroller.fling(mScrollX, mScrollY, 0, velocityY, 0, 0, 0, in fling() 1746 private void flingWithNestedDispatch(int velocityY) { in flingWithNestedDispatch() argument 1747 final boolean canFling = (mScrollY > 0 || velocityY > 0) && in flingWithNestedDispatch() 1748 (mScrollY < getScrollRange() || velocityY < 0); in flingWithNestedDispatch() 1749 if (!dispatchNestedPreFling(0, velocityY)) { in flingWithNestedDispatch() 1750 dispatchNestedFling(0, velocityY, canFling); in flingWithNestedDispatch() 1752 fling(velocityY); in flingWithNestedDispatch() 1825 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) { in onNestedFling() argument 1827 flingWithNestedDispatch((int) velocityY); in onNestedFling()
|
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 | 4333 public void fling(int velocityY) { in fling() argument 4338 mFlingRunnable.start(velocityY); in fling() 4370 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) { in onNestedFling() argument 4372 if (!consumed && childCount > 0 && canScrollList((int) velocityY) && in onNestedFling() 4373 Math.abs(velocityY) > mMinimumVelocity) { in onNestedFling() 4378 if (!dispatchNestedPreFling(0, velocityY)) { in onNestedFling() 4379 mFlingRunnable.start((int) velocityY); in onNestedFling() 4383 return dispatchNestedFling(velocityX, velocityY, consumed); in onNestedFling()
|
D | Gallery.java | 1019 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument
|
/frameworks/base/core/java/android/view/ |
D | ViewParent.java | 622 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed); in onNestedFling() argument 644 public boolean onNestedPreFling(View target, float velocityX, float velocityY); in onNestedPreFling() argument
|
D | GestureDetector.java | 126 boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY); in onFling() argument 202 float velocityY) { in onFling() argument 740 final float velocityY = velocityTracker.getYVelocity(pointerId); in onTouchEvent() local 743 if ((Math.abs(velocityY) > mMinimumFlingVelocity) in onTouchEvent() 745 handled = mListener.onFling(mCurrentDownEvent, ev, velocityX, velocityY); in onTouchEvent()
|
D | ViewGroup.java | 7698 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) { in onNestedFling() argument 7700 return dispatchNestedFling(velocityX, velocityY, consumed); in onNestedFling() 7707 public boolean onNestedPreFling(View target, float velocityX, float velocityY) { in onNestedPreFling() argument 7709 return dispatchNestedPreFling(velocityX, velocityY); in onNestedPreFling()
|
D | View.java | 26692 public boolean dispatchNestedFling(float velocityX, float velocityY, boolean consumed) { in dispatchNestedFling() argument 26694 return mNestedScrollingParent.onNestedFling(this, velocityX, velocityY, consumed); in dispatchNestedFling() 26729 public boolean dispatchNestedPreFling(float velocityX, float velocityY) { in dispatchNestedPreFling() argument 26731 return mNestedScrollingParent.onNestedPreFling(this, velocityX, velocityY); in dispatchNestedPreFling()
|
/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/services/core/java/com/android/server/wm/ |
D | SystemGesturesPointerEventListener.java | 298 float velocityX, float velocityY) { in onFling() argument 305 mOverscroller.fling(0, 0, (int)velocityX, (int)velocityY, in onFling()
|
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/car/ |
D | CarStatusBar.java | 1552 float velocityX, float velocityY) { in onFling() argument 1553 if (velocityY > SWIPE_THRESHOLD_VELOCITY) { in onFling() 1554 mOpeningVelocity = velocityY; in onFling() 1618 float velocityX, float velocityY) { in onFling() argument 1624 || Math.abs(velocityY) < SWIPE_THRESHOLD_VELOCITY) { in onFling() 1628 boolean isUp = velocityY < 0; in onFling() 1634 animateNotificationPanel(velocityY, false); 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/core/java/com/android/internal/policy/ |
D | PipSnapAlgorithm.java | 109 float velocityY, Point dragStartPosition) { in findClosestSnapBounds() argument 111 final Point intersect = getEdgeIntersect(stackBounds, movementBounds, velocityX, velocityY, in findClosestSnapBounds()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ |
D | NotificationStackScrollLayout.java | 2649 protected void fling(int velocityY) { 2653 if (velocityY < 0 && topAmount > 0) { 2661 mMaxOverScroll = Math.abs(velocityY) / 1000f * getRubberBandFactor(true /* onTop */) 2663 } else if (velocityY > 0 && bottomAmount > 0) { 2670 mMaxOverScroll = Math.abs(velocityY) / 1000f 2678 flingScroller(velocityY); 2685 mScroller.fling(mScrollX, mOwnScrollY, 1, velocityY, 0, 0, 0, minScrollY, 0, 2700 private void flingScroller(int velocityY) { 2703 maybeFlingScroller(velocityY, true /* always fling */); 2706 private void maybeFlingScroller(int velocityY, boolean alwaysFling) { [all …]
|
/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/opt/chips/src/com/android/ex/chips/ |
D | RecipientEditTextView.java | 3290 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument
|