Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/coretests/src/android/window/
DBackTouchTrackerTest.kt50 val velocityY = 0f in generatesProgress_leftEdge() constant
53 linearTracker.update(touchX, 0f, velocityX, velocityY) in generatesProgress_leftEdge()
59 linearTracker.update(touchX, 0f, velocityX, velocityY) in generatesProgress_leftEdge()
65 linearTracker.update(touchX, 0f, velocityX, velocityY) in generatesProgress_leftEdge()
70 linearTracker.update(touchX, 0f, velocityX, velocityY) in generatesProgress_leftEdge()
76 linearTracker.update(touchX, 0f, velocityX, velocityY) in generatesProgress_leftEdge()
81 linearTracker.update(touchX, 0f, velocityX, velocityY) in generatesProgress_leftEdge()
87 linearTracker.update(touchX, 0f, velocityX, velocityY) in generatesProgress_leftEdge()
97 val velocityY = 0f in generatesProgress_rightEdge() constant
101 linearTracker.update(touchX, 0f, velocityX, velocityY) in generatesProgress_rightEdge()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DNestedScrollingChild.java195 boolean dispatchNestedFling(float velocityX, float velocityY, boolean consumed); in dispatchNestedFling() argument
227 boolean dispatchNestedPreFling(float velocityX, float velocityY); in dispatchNestedPreFling() argument
DResolverDrawerLayout.java839 public boolean onNestedPreFling(View target, float velocityX, float velocityY) {
840 if (!getShowAtTop() && velocityY > mMinFlingVelocity && mCollapseOffset != 0) {
841 smoothScrollTo(0, velocityY);
848 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) {
849 if (!consumed && Math.abs(velocityY) > mMinFlingVelocity) {
851 if (isDismissable() && velocityY > 0) {
855 smoothScrollTo(velocityY < 0 ? mCollapsibleHeight : 0, velocityY);
859 && velocityY < 0 && mCollapseOffset > mCollapsibleHeight) {
860 smoothScrollTo(mCollapsibleHeight + mUncollapsibleHeight, velocityY);
863 smoothScrollTo(velocityY > 0 ? 0 : mCollapsibleHeight, velocityY);
DActionBarOverlayLayout.java644 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) {
648 if (shouldHideActionBarOnFling(velocityX, velocityY)) {
742 private boolean shouldHideActionBarOnFling(float velocityX, float velocityY) {
743 mFlingEstimator.fling(0, 0, 0, (int) velocityY, 0, 0, Integer.MIN_VALUE, Integer.MAX_VALUE);
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/ambient/touch/
DBouncerSwipeTouchHandlerTest.java469 final float velocityY = -1; in testSwipeUpPositionBelowThreshold_collapsesBouncer() local
470 swipeToPosition(swipeUpPercentage, velocityY); in testSwipeUpPositionBelowThreshold_collapsesBouncer()
479 eq(velocityY), eq((float) SCREEN_HEIGHT_PX)); in testSwipeUpPositionBelowThreshold_collapsesBouncer()
492 final float velocityY = 1; in testSwipeUpPositionAboveThreshold_expandsBouncer() local
493 swipeToPosition(swipeUpPercentage, velocityY); in testSwipeUpPositionAboveThreshold_expandsBouncer()
505 eq(velocityY), eq((float) SCREEN_HEIGHT_PX)); in testSwipeUpPositionAboveThreshold_expandsBouncer()
523 final float velocityY = -1; in testSwipeUpVelocityAboveMin_expandsBouncer() local
524 swipeToPosition(swipeUpPercentage, velocityY); in testSwipeUpVelocityAboveMin_expandsBouncer()
536 eq(velocityY), eq((float) SCREEN_HEIGHT_PX)); in testSwipeUpVelocityAboveMin_expandsBouncer()
554 private void swipeToPosition(float percent, float velocityY) { in swipeToPosition() argument
[all …]
/frameworks/base/core/java/android/window/
DBackMotionEvent.java68 float velocityY, in BackMotionEvent() argument
76 mVelocityY = velocityY; in BackMotionEvent()
DBackTouchTracker.java61 public void update(float touchX, float touchY, float velocityX, float velocityY) { in update() argument
77 mLatestVelocityY = velocityY; in update()
/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()
DScrollView.java1892 public void fling(int velocityY) { in fling() argument
1897 mScroller.fling(mScrollX, mScrollY, 0, velocityY, 0, 0, 0, in fling()
1912 private void flingWithNestedDispatch(int velocityY) { in flingWithNestedDispatch() argument
1913 final boolean canFling = (mScrollY > 0 || velocityY > 0) && in flingWithNestedDispatch()
1914 (mScrollY < getScrollRange() || velocityY < 0); in flingWithNestedDispatch()
1915 if (!dispatchNestedPreFling(0, velocityY)) { in flingWithNestedDispatch()
1916 final boolean consumed = dispatchNestedFling(0, velocityY, canFling); in flingWithNestedDispatch()
1918 fling(velocityY); in flingWithNestedDispatch()
1921 if (shouldAbsorb(mEdgeGlowTop, -velocityY)) { in flingWithNestedDispatch()
1922 mEdgeGlowTop.onAbsorb(-velocityY); in flingWithNestedDispatch()
[all …]
DOverScroller.java392 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
394 fling(startX, startY, velocityX, velocityY, minX, maxX, minY, maxY, 0, 0); in fling()
424 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
431 Math.signum(velocityY) == Math.signum(oldVelocityY)) { in fling()
433 velocityY += oldVelocityY; in fling()
439 mScrollerY.fling(startY, velocityY, minY, maxY, overY); in fling()
/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/core/java/android/view/
DViewParent.java631 public boolean onNestedFling(@NonNull View target, float velocityX, float velocityY, in onNestedFling() argument
654 public boolean onNestedPreFling(@NonNull View target, float velocityX, float velocityY); in onNestedPreFling() argument
DGestureDetector.java138 float velocityY); in onFling() argument
214 float velocityY) { in onFling() argument
796 final float velocityY = velocityTracker.getYVelocity(pointerId); in onTouchEvent() local
799 if ((Math.abs(velocityY) > mMinimumFlingVelocity) in onTouchEvent()
801 handled = mListener.onFling(mCurrentDownEvent, ev, velocityX, velocityY); in onTouchEvent()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/back/
DBackAnimation.java47 float velocityY, in onBackMotion() argument
DBackAnimationController.java316 float velocityY, in onBackMotion() argument
324 /* velocityY = */ velocityY, in onBackMotion()
452 float velocityY, in onMotionEvent() argument
458 activeTouchTracker.update(touchX, touchY, velocityX, velocityY); in onMotionEvent()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipMotionHelper.java384 float velocityX, float velocityY, @Nullable Runnable postBoundsUpdateCallback) { in flingToSnapTarget() argument
385 movetoTarget(velocityX, velocityY, postBoundsUpdateCallback, false /* isStash */); in flingToSnapTarget()
408 float velocityY, in movetoTarget() argument
423 FloatProperties.RECT_Y, velocityY, mFlingConfigY, mSpringConfig); in movetoTarget()
439 PhysicsAnimator.estimateFlingEndValue(startValueY, velocityY, mFlingConfigY); in movetoTarget()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/
DPipMotionHelper.java376 float velocityX, float velocityY, @Nullable Runnable postBoundsUpdateCallback) { in flingToSnapTarget() argument
377 movetoTarget(velocityX, velocityY, postBoundsUpdateCallback, false /* isStash */); in flingToSnapTarget()
400 float velocityY, in movetoTarget() argument
415 FloatProperties.RECT_Y, velocityY, mFlingConfigY, mSpringConfig); in movetoTarget()
431 PhysicsAnimator.estimateFlingEndValue(startValueY, velocityY, mFlingConfigY); in movetoTarget()
/frameworks/base/packages/SystemUI/src/com/android/systemui/ambient/touch/
DShadeTouchHandler.java103 float velocityY) { in onSessionStart()
DTouchMonitor.java470 float velocityY) {
471 return evaluate(listener -> listener.onFling(e1, e2, velocityX, velocityY));
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/touch/
DCommunalTouchHandler.java116 float velocityY) { in handleSessionStart()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/viewmodel/
DSeekBarViewModel.kt545 velocityY: Float in onFling()
547 if (Math.abs(velocityX) > flingVelocity || Math.abs(velocityY) > flingVelocity) { in onFling()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboardView.java409 float velocityX, float velocityY) { in initGestureDetector()
412 final float absY = Math.abs(velocityY); in initGestureDetector()
435 } else if (velocityY < -mSwipeThreshold && absX < absY && deltaY < -travelY) { in initGestureDetector()
436 if (mDisambiguateSwipe && endingVelocityY > velocityY / 4) { in initGestureDetector()
442 } else if (velocityY > mSwipeThreshold && absX < absY / 2 && deltaY > travelY) { in initGestureDetector()
443 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/SystemUI/src/com/android/systemui/statusbar/gesture/
DGesturePointerEventListener.kt435 velocityY: Float in <lambda>()
446 velocityY.toInt(), in <lambda>()
/frameworks/base/services/core/java/com/android/server/wm/
DSystemGesturesPointerEventListener.java436 float velocityX, float velocityY) { in onFling() argument
443 mOverscroller.fling(0, 0, (int)velocityX, (int)velocityY, in onFling()

12