Home
last modified time | relevance | path

Searched refs:velocityX (Results 1 – 25 of 47) sorted by relevance

12

/frameworks/support/compat/java/android/support/v4/view/
DViewParentCompat.java46 boolean onNestedFling(ViewParent parent, View target, float velocityX, float velocityY, in onNestedFling() argument
48 boolean onNestedPreFling(ViewParent parent, View target, float velocityX, float velocityY); in onNestedPreFling() argument
111 public boolean onNestedFling(ViewParent parent, View target, float velocityX, in onNestedFling() argument
114 return ((NestedScrollingParent) parent).onNestedFling(target, velocityX, velocityY, in onNestedFling()
121 public boolean onNestedPreFling(ViewParent parent, View target, float velocityX, in onNestedPreFling() argument
124 return ((NestedScrollingParent) parent).onNestedPreFling(target, velocityX, in onNestedPreFling()
188 public boolean onNestedFling(ViewParent parent, View target, float velocityX, in onNestedFling() argument
190 return ViewParentCompatLollipop.onNestedFling(parent, target, velocityX, velocityY, in onNestedFling()
195 public boolean onNestedPreFling(ViewParent parent, View target, float velocityX, in onNestedPreFling() argument
197 return ViewParentCompatLollipop.onNestedPreFling(parent, target, velocityX, velocityY); in onNestedPreFling()
[all …]
DNestedScrollingChild.java194 public boolean dispatchNestedFling(float velocityX, float velocityY, boolean consumed); in dispatchNestedFling() argument
226 public boolean dispatchNestedPreFling(float velocityX, float velocityY); in dispatchNestedPreFling() argument
DNestedScrollingParent.java159 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed); in onNestedFling() argument
181 public boolean onNestedPreFling(View target, float velocityX, float velocityY); in onNestedPreFling() argument
DViewCompat.java474 boolean dispatchNestedFling(View view, float velocityX, float velocityY, boolean consumed); in dispatchNestedFling() argument
475 boolean dispatchNestedPreFling(View view, float velocityX, float velocityY); in dispatchNestedPreFling() argument
1073 public boolean dispatchNestedFling(View view, float velocityX, float velocityY, in dispatchNestedFling() argument
1076 return ((NestedScrollingChild) view).dispatchNestedFling(velocityX, velocityY, in dispatchNestedFling()
1083 public boolean dispatchNestedPreFling(View view, float velocityX, float velocityY) { in dispatchNestedPreFling() argument
1085 return ((NestedScrollingChild) view).dispatchNestedPreFling(velocityX, velocityY); in dispatchNestedPreFling()
1713 public boolean dispatchNestedFling(View view, float velocityX, float velocityY, in dispatchNestedFling() argument
1715 return ViewCompatLollipop.dispatchNestedFling(view, velocityX, velocityY, consumed); in dispatchNestedFling()
1719 public boolean dispatchNestedPreFling(View view, float velocityX, float velocityY) { in dispatchNestedPreFling() argument
1720 return ViewCompatLollipop.dispatchNestedPreFling(view, velocityX, velocityY); in dispatchNestedPreFling()
[all …]
DGestureDetectorCompat.java379 final float velocityX = VelocityTrackerCompat.getXVelocity( in onTouchEvent() local
383 || (Math.abs(velocityX) > mMinimumFlingVelocity)){ in onTouchEvent()
384 handled = mListener.onFling(mCurrentDownEvent, ev, velocityX, velocityY); in onTouchEvent()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DSnapHelper.java65 public boolean onFling(int velocityX, int velocityY) { in onFling() argument
75 return (Math.abs(velocityY) > minFlingVelocity || Math.abs(velocityX) > minFlingVelocity) in onFling()
76 && snapFromFling(layoutManager, velocityX, velocityY); in onFling()
137 public int[] calculateScrollDistance(int velocityX, int velocityY) { in calculateScrollDistance() argument
139 mGravityScroller.fling(0, 0, velocityX, velocityY, in calculateScrollDistance()
156 private boolean snapFromFling(@NonNull LayoutManager layoutManager, int velocityX, in snapFromFling() argument
167 int targetPosition = findTargetSnapPosition(layoutManager, velocityX, velocityY); in snapFromFling()
282 public abstract int findTargetSnapPosition(LayoutManager layoutManager, int velocityX,
DLinearSnapHelper.java63 public int findTargetSnapPosition(RecyclerView.LayoutManager layoutManager, int velocityX, in findTargetSnapPosition() argument
98 getHorizontalHelper(layoutManager), velocityX, 0); in findTargetSnapPosition()
165 OrientationHelper helper, int velocityX, int velocityY) { in estimateNextPositionDiffForFling() argument
166 int[] distances = calculateScrollDistance(velocityX, velocityY); in estimateNextPositionDiffForFling()
/frameworks/support/compat/api21/android/support/v4/view/
DViewParentCompatLollipop.java77 public static boolean onNestedFling(ViewParent parent, View target, float velocityX, in onNestedFling() argument
80 return parent.onNestedFling(target, velocityX, velocityY, consumed); in onNestedFling()
88 public static boolean onNestedPreFling(ViewParent parent, View target, float velocityX, in onNestedPreFling() argument
91 return parent.onNestedPreFling(target, velocityX, velocityY); in onNestedPreFling()
DViewCompatLollipop.java175 public static boolean dispatchNestedFling(View view, float velocityX, float velocityY, in dispatchNestedFling() argument
177 return view.dispatchNestedFling(velocityX, velocityY, consumed); in dispatchNestedFling()
180 public static boolean dispatchNestedPreFling(View view, float velocityX, float velocityY) { in dispatchNestedPreFling() argument
181 return view.dispatchNestedPreFling(velocityX, velocityY); in dispatchNestedPreFling()
/frameworks/support/compat/java/android/support/v4/widget/
DScrollerCompat.java173 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
175 mScroller.fling(startX, startY, velocityX, velocityY, minX, maxX, minY, maxY); in fling()
201 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
203 mScroller.fling(startX, startY, velocityX, velocityY, in fling()
/frameworks/support/core-ui/java/android/support/v4/view/
DNestedScrollingChildHelper.java234 public boolean dispatchNestedFling(float velocityX, float velocityY, boolean consumed) { in dispatchNestedFling() argument
236 return ViewParentCompat.onNestedFling(mNestedScrollingParent, mView, velocityX, in dispatchNestedFling()
251 public boolean dispatchNestedPreFling(float velocityX, float velocityY) { in dispatchNestedPreFling() argument
253 return ViewParentCompat.onNestedPreFling(mNestedScrollingParent, mView, velocityX, in dispatchNestedPreFling()
/frameworks/base/core/java/android/widget/
DScroller.java419 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
434 if (Math.signum(velocityX) == Math.signum(oldVelocityX) && in fling()
436 velocityX += oldVelocityX; in fling()
444 float velocity = (float) Math.hypot(velocityX, velocityY); in fling()
452 float coeffX = velocity == 0 ? 1.0f : velocityX / velocity; in fling()
DOverScroller.java399 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
401 fling(startX, startY, velocityX, velocityY, minX, maxX, minY, maxY, 0, 0); in fling()
431 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
437 if (Math.signum(velocityX) == Math.signum(oldVelocityX) && in fling()
439 velocityX += oldVelocityX; in fling()
445 mScrollerX.fling(startX, velocityX, minX, maxX, overX); in fling()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNavigationBarGestureHelper.java280 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument
281 float absVelX = Math.abs(velocityX); in onFling()
288 showNext = mIsVertical ? (velocityY < 0) : (velocityX < 0); in onFling()
291 showNext = mIsVertical ? (velocityY < 0) : (velocityX > 0); in onFling()
/frameworks/base/core/java/android/view/
DViewParent.java579 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed); in onNestedFling() argument
601 public boolean onNestedPreFling(View target, float velocityX, float velocityY); in onNestedPreFling() argument
DGestureDetector.java115 boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY); in onFling() argument
190 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, in onFling() argument
646 final float velocityX = velocityTracker.getXVelocity(pointerId); in onTouchEvent() local
649 || (Math.abs(velocityX) > mMinimumFlingVelocity)){ in onTouchEvent()
650 handled = mListener.onFling(mCurrentDownEvent, ev, velocityX, velocityY); in onTouchEvent()
/frameworks/support/core-ui/java/android/support/v4/widget/
DSwipeRefreshLayout.java903 public boolean onNestedPreFling(View target, float velocityX, in onNestedPreFling() argument
905 return dispatchNestedPreFling(velocityX, velocityY); in onNestedPreFling()
909 public boolean onNestedFling(View target, float velocityX, float velocityY, in onNestedFling() argument
911 return dispatchNestedFling(velocityX, velocityY, consumed); in onNestedFling()
915 public boolean dispatchNestedFling(float velocityX, float velocityY, boolean consumed) { in dispatchNestedFling() argument
916 return mNestedScrollingChildHelper.dispatchNestedFling(velocityX, velocityY, consumed); in dispatchNestedFling()
920 public boolean dispatchNestedPreFling(float velocityX, float velocityY) { in dispatchNestedPreFling() argument
921 return mNestedScrollingChildHelper.dispatchNestedPreFling(velocityX, velocityY); in dispatchNestedPreFling()
DNestedScrollView.java251 public boolean dispatchNestedFling(float velocityX, float velocityY, boolean consumed) { in dispatchNestedFling() argument
252 return mChildHelper.dispatchNestedFling(velocityX, velocityY, consumed); in dispatchNestedFling()
256 public boolean dispatchNestedPreFling(float velocityX, float velocityY) { in dispatchNestedPreFling() argument
257 return mChildHelper.dispatchNestedPreFling(velocityX, velocityY); in dispatchNestedPreFling()
295 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) { in onNestedFling() argument
304 public boolean onNestedPreFling(View target, float velocityX, float velocityY) { in onNestedPreFling() argument
305 return dispatchNestedPreFling(velocityX, velocityY); in onNestedPreFling()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DTestedFrameLayout.java146 public boolean onNestedPreFling(View target, float velocityX, float velocityY) { in onNestedPreFling() argument
168 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) { in onNestedFling() argument
DGridLayoutManagerSnappingTest.java223 private boolean fling(final int velocityX, final int velocityY) in fling() argument
229 boolean result = mRecyclerView.fling(velocityX, velocityY); in fling()
DLinearLayoutManagerSnappingTest.java244 private boolean fling(final int velocityX, final int velocityY) throws Throwable { in fling() argument
249 boolean result = mRecyclerView.fling(velocityX, velocityY); in fling()
DStaggeredGridLayoutManagerSnappingTest.java286 private boolean fling(final int velocityX, final int velocityY) in fling() argument
292 boolean result = mRecyclerView.fling(velocityX, velocityY); in fling()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DActionBarOverlayLayout.java500 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) {
504 if (shouldHideActionBarOnFling(velocityX, velocityY)) {
519 public boolean onNestedPreFling(View target, float velocityX, float velocityY) {
600 private boolean shouldHideActionBarOnFling(float velocityX, float velocityY) {
/frameworks/base/services/core/java/com/android/server/policy/
DSystemGesturesPointerEventListener.java254 float velocityX, float velocityY) { in onFling() argument
261 mOverscroller.fling(0, 0, (int)velocityX, (int)velocityY, in onFling()
/frameworks/base/core/java/com/android/internal/widget/
DActionBarOverlayLayout.java556 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) {
560 if (shouldHideActionBarOnFling(velocityX, velocityY)) {
654 private boolean shouldHideActionBarOnFling(float velocityX, float velocityY) {

12