Searched refs:initialVelocity (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/core/java/android/widget/ |
D | Gallery.java | 1489 public void startUsingVelocity(int initialVelocity) { in startUsingVelocity() argument 1490 if (initialVelocity == 0) return; in startUsingVelocity() 1494 int initialX = initialVelocity < 0 ? Integer.MAX_VALUE : 0; in startUsingVelocity() 1496 mScroller.fling(initialX, 0, initialVelocity, 0, in startUsingVelocity()
|
D | AbsListView.java | 4151 final int initialVelocity = (int) in onTouchUp() 4157 boolean flingVelocity = Math.abs(initialVelocity) > mMinimumVelocity; in onTouchUp() 4163 if (!dispatchNestedPreFling(0, -initialVelocity)) { in onTouchUp() 4168 mFlingRunnable.start(-initialVelocity); in onTouchUp() 4169 dispatchNestedFling(0, -initialVelocity, true); in onTouchUp() 4183 if (flingVelocity && !dispatchNestedPreFling(0, -initialVelocity)) { in onTouchUp() 4184 dispatchNestedFling(0, -initialVelocity, false); in onTouchUp() 4200 final int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId); in onTouchUp() local 4203 if (Math.abs(initialVelocity) > mMinimumVelocity) { in onTouchUp() 4204 mFlingRunnable.startOverfling(-initialVelocity); in onTouchUp() [all …]
|
D | HorizontalScrollView.java | 764 int initialVelocity = (int) velocityTracker.getXVelocity(mActivePointerId); in onTouchEvent() local 767 if ((Math.abs(initialVelocity) > mMinimumVelocity)) { in onTouchEvent() 768 fling(-initialVelocity); in onTouchEvent()
|
D | ScrollView.java | 836 int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId); in onTouchEvent() local 838 if ((Math.abs(initialVelocity) > mMinimumVelocity)) { in onTouchEvent() 839 flingWithNestedDispatch(-initialVelocity); in onTouchEvent()
|
D | NumberPicker.java | 981 int initialVelocity = (int) velocityTracker.getYVelocity(); in onTouchEvent() local 982 if (Math.abs(initialVelocity) > mMinimumFlingVelocity) { in onTouchEvent() 983 fling(initialVelocity); in onTouchEvent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ |
D | NotificationStackScrollLayout.java | 2813 private boolean shouldOverScrollFling(int initialVelocity) { 2818 && initialVelocity > 0; 3861 int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId); 3863 if (shouldOverScrollFling(initialVelocity)) { 3864 onOverScrollFling(true, initialVelocity); 3867 if ((Math.abs(initialVelocity) > mMinimumVelocity)) { 3869 if (currentOverScrollTop == 0.0f || initialVelocity > 0) { 3870 fling(-initialVelocity); 3872 onOverScrollFling(false, initialVelocity); 3927 private void onOverScrollFling(boolean open, int initialVelocity) { [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ViewPager.java | 2019 … final int initialVelocity = (int) velocityTracker.getXVelocity(mActivePointerId); 2038 currentPage, nextPageOffset, initialVelocity, totalDelta); 2039 setCurrentItemInternal(nextPage, true, true, initialVelocity);
|