Home
last modified time | relevance | path

Searched refs:initialVelocity (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
DNotificationStackScrollLayout.java932 int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId); in onScrollTouch() local
934 if (shouldOverScrollFling(initialVelocity)) { in onScrollTouch()
935 onOverScrollFling(true, initialVelocity); in onScrollTouch()
938 if ((Math.abs(initialVelocity) > mMinimumVelocity)) { in onScrollTouch()
940 if (currentOverScrollTop == 0.0f || initialVelocity > 0) { in onScrollTouch()
941 fling(-initialVelocity); in onScrollTouch()
943 onOverScrollFling(false, initialVelocity); in onScrollTouch()
984 private void onOverScrollFling(boolean open, int initialVelocity) { in onOverScrollFling() argument
986 mOverscrollTopChangedListener.flingTopOverscroll(initialVelocity, open); in onOverScrollFling()
1453 private boolean shouldOverScrollFling(int initialVelocity) { in shouldOverScrollFling() argument
[all …]
/frameworks/base/core/java/android/widget/
DGallery.java1437 public void startUsingVelocity(int initialVelocity) { in startUsingVelocity() argument
1438 if (initialVelocity == 0) return; in startUsingVelocity()
1442 int initialX = initialVelocity < 0 ? Integer.MAX_VALUE : 0; in startUsingVelocity()
1444 mScroller.fling(initialX, 0, initialVelocity, 0, in startUsingVelocity()
DAbsListView.java3914 final int initialVelocity = (int) in onTouchUp()
3920 boolean flingVelocity = Math.abs(initialVelocity) > mMinimumVelocity; in onTouchUp()
3926 if (!dispatchNestedPreFling(0, -initialVelocity)) { in onTouchUp()
3931 mFlingRunnable.start(-initialVelocity); in onTouchUp()
3932 dispatchNestedFling(0, -initialVelocity, true); in onTouchUp()
3946 if (flingVelocity && !dispatchNestedPreFling(0, -initialVelocity)) { in onTouchUp()
3947 dispatchNestedFling(0, -initialVelocity, false); in onTouchUp()
3963 final int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId); in onTouchUp() local
3966 if (Math.abs(initialVelocity) > mMinimumVelocity) { in onTouchUp()
3967 mFlingRunnable.startOverfling(-initialVelocity); in onTouchUp()
[all …]
DHorizontalScrollView.java646 int initialVelocity = (int) velocityTracker.getXVelocity(mActivePointerId); in onTouchEvent() local
649 if ((Math.abs(initialVelocity) > mMinimumVelocity)) { in onTouchEvent()
650 fling(-initialVelocity); in onTouchEvent()
DScrollView.java714 int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId); in onTouchEvent() local
716 if ((Math.abs(initialVelocity) > mMinimumVelocity)) { in onTouchEvent()
717 flingWithNestedDispatch(-initialVelocity); in onTouchEvent()
DNumberPicker.java936 int initialVelocity = (int) velocityTracker.getYVelocity(); in onTouchEvent() local
937 if (Math.abs(initialVelocity) > mMinimumFlingVelocity) { in onTouchEvent()
938 fling(initialVelocity); in onTouchEvent()
/frameworks/support/v4/java/android/support/v4/widget/
DSlidingPaneLayout.java861 private boolean closePane(View pane, int initialVelocity) { in closePane() argument
862 if (mFirstLayout || smoothSlideTo(0.f, initialVelocity)) { in closePane()
869 private boolean openPane(View pane, int initialVelocity) { in openPane() argument
870 if (mFirstLayout || smoothSlideTo(1.f, initialVelocity)) { in openPane()
DNestedScrollView.java793 int initialVelocity = (int) VelocityTrackerCompat.getYVelocity(velocityTracker, in onTouchEvent() local
796 if ((Math.abs(initialVelocity) > mMinimumVelocity)) { in onTouchEvent()
797 flingWithNestedDispatch(-initialVelocity); in onTouchEvent()
/frameworks/support/v4/java/android/support/v4/view/
DViewPager.java2089 int initialVelocity = (int) VelocityTrackerCompat.getXVelocity(
2101 int nextPage = determineTargetPage(currentPage, pageOffset, initialVelocity,
2103 setCurrentItemInternal(nextPage, true, true, initialVelocity);
2393 int initialVelocity = (int) VelocityTrackerCompat.getXVelocity(
2402 int nextPage = determineTargetPage(currentPage, pageOffset, initialVelocity,
2404 setCurrentItemInternal(nextPage, true, true, initialVelocity);
/frameworks/base/core/java/com/android/internal/widget/
DViewPager.java2022 … final int initialVelocity = (int) velocityTracker.getXVelocity(mActivePointerId);
2041 currentPage, nextPageOffset, initialVelocity, totalDelta);
2042 setCurrentItemInternal(nextPage, true, true, initialVelocity);