Home
last modified time | relevance | path

Searched refs:velocityX (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
DActionBarOverlayLayout.java573 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) {
577 if (shouldHideActionBarOnFling(velocityX, velocityY)) {
671 private boolean shouldHideActionBarOnFling(float velocityX, float velocityY) {
DRecyclerView.java1993 public boolean fling(int velocityX, int velocityY) { in fling() argument
2006 if (!canScrollHorizontal || Math.abs(velocityX) < mMinFlingVelocity) { in fling()
2007 velocityX = 0; in fling()
2012 if (velocityX == 0 && velocityY == 0) { in fling()
2017 if (!dispatchNestedPreFling(velocityX, velocityY)) { in fling()
2033 dispatchNestedFling(velocityX, velocityY, consumed); in fling()
2035 if (mOnFlingListener != null && mOnFlingListener.onFling(velocityX, velocityY)) { in fling()
2042 velocityX = Math.max(-mMaxFlingVelocity, Math.min(velocityX, mMaxFlingVelocity)); in fling()
2044 mViewFlinger.fling(velocityX, velocityY); in fling()
2165 void absorbGlows(int velocityX, int velocityY) { in absorbGlows() argument
[all …]
DDecorCaptionView.java403 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument
DResolverDrawerLayout.java793 public boolean onNestedPreFling(View target, float velocityX, float velocityY) {
802 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) {
/frameworks/base/core/java/android/widget/
DScroller.java426 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
441 if (Math.signum(velocityX) == Math.signum(oldVelocityX) && in fling()
443 velocityX += oldVelocityX; in fling()
451 float velocity = (float) Math.hypot(velocityX, velocityY); in fling()
459 float coeffX = velocity == 0 ? 1.0f : velocityX / velocity; in fling()
DOverScroller.java390 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
392 fling(startX, startY, velocityX, velocityY, minX, maxX, minY, maxY, 0, 0); in fling()
422 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
428 if (Math.signum(velocityX) == Math.signum(oldVelocityX) && in fling()
430 velocityX += oldVelocityX; in fling()
436 mScrollerX.fling(startX, velocityX, minX, maxX, overX); in fling()
DHorizontalScrollView.java1718 public void fling(int velocityX) { in fling() argument
1726 mEdgeGlowLeft.onAbsorb(-velocityX); in fling()
1728 mEdgeGlowRight.onAbsorb(velocityX); in fling()
1730 mScroller.fling(mScrollX, mScrollY, velocityX, 0, 0, in fling()
1733 final boolean movingRight = velocityX > 0; in fling()
DGallery.java1020 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument
1033 mFlingRunnable.startUsingVelocity((int) -velocityX); in onFling()
DScrollView.java1858 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) { in onNestedFling() argument
DAbsListView.java4425 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) { in onNestedFling() argument
4438 return dispatchNestedFling(velocityX, velocityY, consumed); in onNestedFling()
/frameworks/base/core/java/android/view/
DViewParent.java623 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed); in onNestedFling() argument
645 public boolean onNestedPreFling(View target, float velocityX, float velocityY); in onNestedPreFling() argument
DGestureDetector.java130 boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY); in onFling() argument
205 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, in onFling() argument
759 final float velocityX = velocityTracker.getXVelocity(pointerId); in onTouchEvent() local
762 || (Math.abs(velocityX) > mMinimumFlingVelocity)) { in onTouchEvent()
763 handled = mListener.onFling(mCurrentDownEvent, ev, velocityX, velocityY); in onTouchEvent()
DViewGroup.java7952 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) { in onNestedFling() argument
7954 return dispatchNestedFling(velocityX, velocityY, consumed); in onNestedFling()
7961 public boolean onNestedPreFling(View target, float velocityX, float velocityY) { in onNestedPreFling() argument
7963 return dispatchNestedPreFling(velocityX, velocityY); in onNestedPreFling()
DView.java27449 public boolean dispatchNestedFling(float velocityX, float velocityY, boolean consumed) { in dispatchNestedFling() argument
27451 return mNestedScrollingParent.onNestedFling(this, velocityX, velocityY, consumed); in dispatchNestedFling()
27486 public boolean dispatchNestedPreFling(float velocityX, float velocityY) { in dispatchNestedPreFling() argument
27488 return mNestedScrollingParent.onNestedPreFling(this, velocityX, velocityY); in dispatchNestedPreFling()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipMotionHelper.java393 float velocityX, float velocityY, @Nullable Runnable postBoundsUpdateCallback) { in flingToSnapTarget() argument
394 movetoTarget(velocityX, velocityY, postBoundsUpdateCallback, false /* isStash */); in flingToSnapTarget()
406 float velocityX, in movetoTarget() argument
418 FloatProperties.RECT_X, velocityX, in movetoTarget()
434 final float xEndValue = velocityX < 0 ? leftEdge : rightEdge; in movetoTarget()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DSeekBarViewModel.kt397 velocityX: Float, in onFling()
400 if (Math.abs(velocityX) > flingVelocity || Math.abs(velocityY) > flingVelocity) { in onFling()
/frameworks/base/services/core/java/com/android/server/wm/
DSystemGesturesPointerEventListener.java318 float velocityX, float velocityY) { in onFling() argument
325 mOverscroller.fling(0, 0, (int)velocityX, (int)velocityY, in onFling()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboardView.java407 float velocityX, float velocityY) { in initGestureDetector()
409 final float absX = Math.abs(velocityX); in initGestureDetector()
419 if (velocityX > mSwipeThreshold && absY < absX && deltaX > travelX) { in initGestureDetector()
420 if (mDisambiguateSwipe && endingVelocityX < velocityX / 4) { in initGestureDetector()
426 } else if (velocityX < -mSwipeThreshold && absY < absX && deltaX < -travelX) { in initGestureDetector()
427 if (mDisambiguateSwipe && endingVelocityX > velocityX / 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
1269 mVelocityX = velocityX; in start()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
DPrintContentView.java421 public void onViewReleased(View child, float velocityX, float velocityY) { in onViewReleased() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DScreenshotView.java1155 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, in onFling() argument
1157 if (mScreenshotStatic.getTranslationX() * velocityX > 0 in onFling()
1159 animateDismissal(createSwipeDismissAnimation(velocityX / (float) 1000)); in onFling()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DLockIconViewController.java522 float velocityX, float velocityY) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsDialogLite.java2158 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,
2160 if (velocityY > 0 && Math.abs(velocityY) > Math.abs(velocityX)
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java3290 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument

12