Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/com/android/internal/widget/
DNestedScrollingChild.java193 boolean dispatchNestedFling(float velocityX, float velocityY, boolean consumed); in dispatchNestedFling() argument
225 boolean dispatchNestedPreFling(float velocityX, float velocityY); in dispatchNestedPreFling() argument
DResolverDrawerLayout.java746 public boolean onNestedPreFling(View target, float velocityX, float velocityY) {
747 if (!getShowAtTop() && velocityY > mMinFlingVelocity && mCollapseOffset != 0) {
748 smoothScrollTo(0, velocityY);
755 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) {
756 if (!consumed && Math.abs(velocityY) > mMinFlingVelocity) {
758 if (isDismissable() && velocityY > 0) {
762 smoothScrollTo(velocityY < 0 ? mCollapsibleHeight : 0, velocityY);
766 && velocityY < 0 && mCollapseOffset > mCollapsibleHeight) {
767 smoothScrollTo(mCollapsibleHeight + mUncollapsibleHeight, velocityY);
770 smoothScrollTo(velocityY > 0 ? 0 : mCollapsibleHeight, velocityY);
DActionBarOverlayLayout.java572 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) {
576 if (shouldHideActionBarOnFling(velocityX, velocityY)) {
670 private boolean shouldHideActionBarOnFling(float velocityX, float velocityY) {
671 mFlingEstimator.fling(0, 0, 0, (int) velocityY, 0, 0, Integer.MIN_VALUE, Integer.MAX_VALUE);
DRecyclerView.java1989 public boolean fling(int velocityX, int velocityY) { in fling() argument
2005 if (!canScrollVertical || Math.abs(velocityY) < mMinFlingVelocity) { in fling()
2006 velocityY = 0; in fling()
2008 if (velocityX == 0 && velocityY == 0) { in fling()
2013 if (!dispatchNestedPreFling(velocityX, velocityY)) { in fling()
2015 dispatchNestedFling(velocityX, velocityY, canScroll); in fling()
2017 if (mOnFlingListener != null && mOnFlingListener.onFling(velocityX, velocityY)) { in fling()
2023 velocityY = Math.max(-mMaxFlingVelocity, Math.min(velocityY, mMaxFlingVelocity)); in fling()
2024 mViewFlinger.fling(velocityX, velocityY); in fling()
2145 void absorbGlows(int velocityX, int velocityY) { in absorbGlows() argument
[all …]
DDecorCaptionView.java426 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipMotionHelper.java246 Rect flingToMinimizedState(float velocityY, Rect movementBounds, Point dragStartPosition) { in flingToMinimizedState() argument
253 0 /* velocityX */, velocityY, dragStartPosition); in flingToMinimizedState()
258 velocityY); in flingToMinimizedState()
285 Rect flingToSnapTarget(float velocity, float velocityX, float velocityY, Rect movementBounds, in flingToSnapTarget() argument
290 velocityX, velocityY, startPosition); in flingToSnapTarget()
383 Rect animateDismiss(Rect pipBounds, float velocityX, float velocityY, in animateDismiss() argument
386 final float velocity = PointF.length(velocityX, velocityY); in animateDismiss()
388 Point p = getDismissEndPoint(pipBounds, velocityX, velocityY, isFling); in animateDismiss()
/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()
DOverScroller.java407 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
409 fling(startX, startY, velocityX, velocityY, minX, maxX, minY, maxY, 0, 0); in fling()
439 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
446 Math.signum(velocityY) == Math.signum(oldVelocityY)) { in fling()
448 velocityY += oldVelocityY; in fling()
454 mScrollerY.fling(startY, velocityY, minY, maxY, overY); in fling()
DScrollView.java1730 public void fling(int velocityY) { in fling() argument
1735 mScroller.fling(mScrollX, mScrollY, 0, velocityY, 0, 0, 0, in fling()
1746 private void flingWithNestedDispatch(int velocityY) { in flingWithNestedDispatch() argument
1747 final boolean canFling = (mScrollY > 0 || velocityY > 0) && in flingWithNestedDispatch()
1748 (mScrollY < getScrollRange() || velocityY < 0); in flingWithNestedDispatch()
1749 if (!dispatchNestedPreFling(0, velocityY)) { in flingWithNestedDispatch()
1750 dispatchNestedFling(0, velocityY, canFling); in flingWithNestedDispatch()
1752 fling(velocityY); in flingWithNestedDispatch()
1825 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) { in onNestedFling() argument
1827 flingWithNestedDispatch((int) velocityY); in onNestedFling()
DNumberPicker.java1938 private void fling(int velocityY) { in fling() argument
1941 if (velocityY > 0) { in fling()
1942 mFlingScroller.fling(0, 0, 0, velocityY, 0, 0, 0, Integer.MAX_VALUE); in fling()
1944 mFlingScroller.fling(0, Integer.MAX_VALUE, 0, velocityY, 0, 0, 0, Integer.MAX_VALUE); in fling()
DAbsListView.java4333 public void fling(int velocityY) { in fling() argument
4338 mFlingRunnable.start(velocityY); in fling()
4370 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) { in onNestedFling() argument
4372 if (!consumed && childCount > 0 && canScrollList((int) velocityY) && in onNestedFling()
4373 Math.abs(velocityY) > mMinimumVelocity) { in onNestedFling()
4378 if (!dispatchNestedPreFling(0, velocityY)) { in onNestedFling()
4379 mFlingRunnable.start((int) velocityY); in onNestedFling()
4383 return dispatchNestedFling(velocityX, velocityY, consumed); in onNestedFling()
DGallery.java1019 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument
/frameworks/base/core/java/android/view/
DViewParent.java622 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed); in onNestedFling() argument
644 public boolean onNestedPreFling(View target, float velocityX, float velocityY); in onNestedPreFling() argument
DGestureDetector.java126 boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY); in onFling() argument
202 float velocityY) { in onFling() argument
740 final float velocityY = velocityTracker.getYVelocity(pointerId); in onTouchEvent() local
743 if ((Math.abs(velocityY) > mMinimumFlingVelocity) in onTouchEvent()
745 handled = mListener.onFling(mCurrentDownEvent, ev, velocityX, velocityY); in onTouchEvent()
DViewGroup.java7654 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) { in onNestedFling() argument
7656 return dispatchNestedFling(velocityX, velocityY, consumed); in onNestedFling()
7663 public boolean onNestedPreFling(View target, float velocityX, float velocityY) { in onNestedPreFling() argument
7665 return dispatchNestedPreFling(velocityX, velocityY); in onNestedPreFling()
DView.java26146 public boolean dispatchNestedFling(float velocityX, float velocityY, boolean consumed) { in dispatchNestedFling() argument
26148 return mNestedScrollingParent.onNestedFling(this, velocityX, velocityY, consumed); in dispatchNestedFling()
26183 public boolean dispatchNestedPreFling(float velocityX, float velocityY) { in dispatchNestedPreFling() argument
26185 return mNestedScrollingParent.onNestedPreFling(this, velocityX, velocityY); in dispatchNestedPreFling()
/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/packages/CarSystemUI/src/com/android/systemui/statusbar/car/
DCarStatusBar.java1124 float velocityX, float velocityY) { in onFling() argument
1125 if (velocityY > SWIPE_THRESHOLD_VELOCITY) { in onFling()
1126 mOpeningVelocity = velocityY; in onFling()
1190 float velocityX, float velocityY) { in onFling() argument
1196 || Math.abs(velocityY) < SWIPE_THRESHOLD_VELOCITY) { in onFling()
1200 boolean isUp = velocityY < 0; in onFling()
1206 animateNotificationPanel(velocityY, false); in onFling()
/frameworks/base/services/core/java/com/android/server/wm/
DSystemGesturesPointerEventListener.java298 float velocityX, float velocityY) { in onFling() argument
305 mOverscroller.fling(0, 0, (int)velocityX, (int)velocityY, in onFling()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboardView.java407 float velocityX, float velocityY) { in initGestureDetector()
410 final float absY = Math.abs(velocityY); in initGestureDetector()
433 } else if (velocityY < -mSwipeThreshold && absX < absY && deltaY < -travelY) { in initGestureDetector()
434 if (mDisambiguateSwipe && endingVelocityY > velocityY / 4) { in initGestureDetector()
440 } else if (velocityY > mSwipeThreshold && absX < absY / 2 && deltaY > travelY) { in initGestureDetector()
441 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/core/java/com/android/internal/policy/
DPipSnapAlgorithm.java109 float velocityY, Point dragStartPosition) { in findClosestSnapBounds() argument
111 final Point intersect = getEdgeIntersect(stackBounds, movementBounds, velocityX, velocityY, in findClosestSnapBounds()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationStackScrollLayout.java2603 protected void fling(int velocityY) {
2607 if (velocityY < 0 && topAmount > 0) {
2615 mMaxOverScroll = Math.abs(velocityY) / 1000f * getRubberBandFactor(true /* onTop */)
2617 } else if (velocityY > 0 && bottomAmount > 0) {
2624 mMaxOverScroll = Math.abs(velocityY) / 1000f
2632 flingScroller(velocityY);
2639 mScroller.fling(mScrollX, mOwnScrollY, 1, velocityY, 0, 0, 0, minScrollY, 0,
2654 private void flingScroller(int velocityY) {
2657 maybeFlingScroller(velocityY, true /* always fling */);
2660 private void maybeFlingScroller(int velocityY, boolean alwaysFling) {
[all …]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
DPrintContentView.java421 public void onViewReleased(View child, float velocityX, float velocityY) { in onViewReleased() argument
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java3287 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument

12