Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/
DAnimateToScene.kt81 initialVelocity = transitionState.progressVelocity, in animateToScene()
102 initialVelocity = transitionState.progressVelocity, in animateToScene()
152 initialVelocity: Float = 0f, in CoroutineScope()
201 animatable.animateTo(targetProgress, animationSpec, initialVelocity) in CoroutineScope()
DDraggableHandler.kt377 initialVelocity = velocity, in onStop()
679 initialVelocity: Float, in animateOffset()
720 initialVelocity = initialVelocity, in animateOffset()
793 initialVelocity = 0f, in finish()
/frameworks/base/core/java/android/widget/
DGallery.java1490 public void startUsingVelocity(int initialVelocity) { in startUsingVelocity() argument
1491 if (initialVelocity == 0) return; in startUsingVelocity()
1495 int initialX = initialVelocity < 0 ? Integer.MAX_VALUE : 0; in startUsingVelocity()
1497 mScroller.fling(initialX, 0, initialVelocity, 0, in startUsingVelocity()
DAbsListView.java4287 final int initialVelocity = (int) in onTouchUp()
4293 boolean flingVelocity = Math.abs(initialVelocity) > mMinimumVelocity; in onTouchUp()
4295 if (shouldAbsorb(mEdgeGlowTop, initialVelocity)) { in onTouchUp()
4296 mEdgeGlowTop.onAbsorb(initialVelocity); in onTouchUp()
4301 mFlingRunnable.start(-initialVelocity); in onTouchUp()
4304 if (shouldAbsorb(mEdgeGlowBottom, -initialVelocity)) { in onTouchUp()
4305 mEdgeGlowBottom.onAbsorb(-initialVelocity); in onTouchUp()
4310 mFlingRunnable.start(-initialVelocity); in onTouchUp()
4318 if (!dispatchNestedPreFling(0, -initialVelocity)) { in onTouchUp()
4323 mFlingRunnable.start(-initialVelocity); in onTouchUp()
[all …]
DHorizontalScrollView.java800 int initialVelocity = (int) velocityTracker.getXVelocity(mActivePointerId); in onTouchEvent() local
803 if ((Math.abs(initialVelocity) > mMinimumVelocity)) { in onTouchEvent()
804 fling(-initialVelocity); in onTouchEvent()
DScrollView.java910 int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId); in onTouchEvent() local
912 if ((Math.abs(initialVelocity) > mMinimumVelocity)) { in onTouchEvent()
913 flingWithNestedDispatch(-initialVelocity); in onTouchEvent()
DNumberPicker.java980 int initialVelocity = (int) velocityTracker.getYVelocity(); in onTouchEvent() local
981 if (Math.abs(initialVelocity) > mMinimumFlingVelocity) { in onTouchEvent()
982 fling(initialVelocity); in onTouchEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationStackScrollLayout.java2636 private boolean shouldOverScrollFling(int initialVelocity) {
2641 && (initialVelocity > mMinimumVelocity
2642 || (topOverScroll > mMinTopOverScrollToEscape && initialVelocity > 0));
3659 int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId); in onScrollTouch() local
3661 if (shouldOverScrollFling(initialVelocity)) { in onScrollTouch()
3662 onOverScrollFling(true, initialVelocity); in onScrollTouch()
3665 if ((Math.abs(initialVelocity) > mMinimumVelocity)) { in onScrollTouch()
3667 if (currentOverScrollTop == 0.0f || initialVelocity > 0) { in onScrollTouch()
3675 fling(-initialVelocity); in onScrollTouch()
3677 onOverScrollFling(false, initialVelocity); in onScrollTouch()
[all …]
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/scaffold/
DCustomizedAppBar.kt591 initialVelocity = velocity, in settleAppBar()
/frameworks/base/core/java/com/android/internal/widget/
DViewPager.java2030 … final int initialVelocity = (int) velocityTracker.getXVelocity(mActivePointerId);
2049 currentPage, nextPageOffset, initialVelocity, totalDelta);
2050 setCurrentItemInternal(nextPage, true, true, initialVelocity);