Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/widget/
DGallery.java1471 public void startUsingVelocity(int initialVelocity) { in startUsingVelocity() argument
1472 if (initialVelocity == 0) return; in startUsingVelocity()
1476 int initialX = initialVelocity < 0 ? Integer.MAX_VALUE : 0; in startUsingVelocity()
1478 mScroller.fling(initialX, 0, initialVelocity, 0, in startUsingVelocity()
DAbsListView.java4082 final int initialVelocity = (int) in onTouchUp()
4088 boolean flingVelocity = Math.abs(initialVelocity) > mMinimumVelocity; in onTouchUp()
4094 if (!dispatchNestedPreFling(0, -initialVelocity)) { in onTouchUp()
4099 mFlingRunnable.start(-initialVelocity); in onTouchUp()
4100 dispatchNestedFling(0, -initialVelocity, true); in onTouchUp()
4114 if (flingVelocity && !dispatchNestedPreFling(0, -initialVelocity)) { in onTouchUp()
4115 dispatchNestedFling(0, -initialVelocity, false); in onTouchUp()
4131 final int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId); in onTouchUp() local
4134 if (Math.abs(initialVelocity) > mMinimumVelocity) { in onTouchUp()
4135 mFlingRunnable.startOverfling(-initialVelocity); in onTouchUp()
[all …]
DHorizontalScrollView.java666 int initialVelocity = (int) velocityTracker.getXVelocity(mActivePointerId); in onTouchEvent() local
669 if ((Math.abs(initialVelocity) > mMinimumVelocity)) { in onTouchEvent()
670 fling(-initialVelocity); in onTouchEvent()
DScrollView.java728 int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId); in onTouchEvent() local
730 if ((Math.abs(initialVelocity) > mMinimumVelocity)) { in onTouchEvent()
731 flingWithNestedDispatch(-initialVelocity); in onTouchEvent()
DNumberPicker.java939 int initialVelocity = (int) velocityTracker.getYVelocity(); in onTouchEvent() local
940 if (Math.abs(initialVelocity) > mMinimumFlingVelocity) { in onTouchEvent()
941 fling(initialVelocity); in onTouchEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
DNotificationStackScrollLayout.java1339 int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId); in onScrollTouch() local
1341 if (shouldOverScrollFling(initialVelocity)) { in onScrollTouch()
1342 onOverScrollFling(true, initialVelocity); in onScrollTouch()
1345 if ((Math.abs(initialVelocity) > mMinimumVelocity)) { in onScrollTouch()
1347 if (currentOverScrollTop == 0.0f || initialVelocity > 0) { in onScrollTouch()
1348 fling(-initialVelocity); in onScrollTouch()
1350 onOverScrollFling(false, initialVelocity); in onScrollTouch()
1391 private void onOverScrollFling(boolean open, int initialVelocity) { in onOverScrollFling() argument
1393 mOverscrollTopChangedListener.flingTopOverscroll(initialVelocity, open); in onOverScrollFling()
2158 private boolean shouldOverScrollFling(int initialVelocity) { in shouldOverScrollFling() argument
[all …]
/frameworks/support/core-ui/java/android/support/v4/widget/
DSlidingPaneLayout.java868 private boolean closePane(View pane, int initialVelocity) { in closePane() argument
869 if (mFirstLayout || smoothSlideTo(0.f, initialVelocity)) { in closePane()
876 private boolean openPane(View pane, int initialVelocity) { in openPane() argument
877 if (mFirstLayout || smoothSlideTo(1.f, initialVelocity)) { in openPane()
DNestedScrollView.java837 int initialVelocity = (int) VelocityTrackerCompat.getYVelocity(velocityTracker, in onTouchEvent() local
840 if ((Math.abs(initialVelocity) > mMinimumVelocity)) { in onTouchEvent()
841 flingWithNestedDispatch(-initialVelocity); in onTouchEvent()
/frameworks/support/core-ui/java/android/support/v4/view/
DViewPager.java2273 int initialVelocity = (int) VelocityTrackerCompat.getXVelocity(
2286 int nextPage = determineTargetPage(currentPage, pageOffset, initialVelocity,
2288 setCurrentItemInternal(nextPage, true, true, initialVelocity);
2582 int initialVelocity = (int) VelocityTrackerCompat.getXVelocity(
2591 int nextPage = determineTargetPage(currentPage, pageOffset, initialVelocity,
2593 setCurrentItemInternal(nextPage, true, true, initialVelocity);
/frameworks/base/core/java/com/android/internal/widget/
DViewPager.java2011 … final int initialVelocity = (int) velocityTracker.getXVelocity(mActivePointerId);
2030 currentPage, nextPageOffset, initialVelocity, totalDelta);
2031 setCurrentItemInternal(nextPage, true, true, initialVelocity);