Home
last modified time | relevance | path

Searched refs:velocityY (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/core/java/com/android/internal/widget/
DNestedScrollingChild.java193 boolean dispatchNestedFling(float velocityX, float velocityY, boolean consumed); in dispatchNestedFling() argument
225 boolean dispatchNestedPreFling(float velocityX, float velocityY); in dispatchNestedPreFling() argument
DResolverDrawerLayout.java793 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);
DActionBarOverlayLayout.java573 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);
DRecyclerView.java1993 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 …]
DDecorCaptionView.java403 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument
/frameworks/base/core/java/android/widget/
DScroller.java426 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()
DOverScroller.java390 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()
DScrollView.java1757 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 …]
DNumberPicker.java1939 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()
DAbsListView.java4388 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()
DGallery.java1020 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument
/frameworks/base/core/java/android/view/
DViewParent.java623 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
DGestureDetector.java130 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()
DViewGroup.java7952 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/
DObservableScrollView.java132 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/
DPipMotionHelper.java393 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/
DSeekBarViewModel.kt398 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/
DSystemGesturesPointerEventListener.java318 float velocityX, float velocityY) { in onFling() argument
325 mOverscroller.fling(0, 0, (int)velocityX, (int)velocityY, in onFling()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboardView.java407 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/
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
1270 mVelocityY = velocityY; in start()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
DPrintContentView.java421 public void onViewReleased(View child, float velocityX, float velocityY) { in onViewReleased() argument
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DLockIconViewController.java522 float velocityX, float velocityY) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsDialogLite.java2159 float velocityY) {
2160 if (velocityY > 0 && Math.abs(velocityY) > Math.abs(velocityX)
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationStackScrollLayout.java2471 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/
DScreenshotView.java1156 float velocityY) { in onFling() argument

12