Home
last modified time | relevance | path

Searched refs:fling (Results 1 – 25 of 48) sorted by relevance

12

/frameworks/support/compat/java/android/support/v4/widget/
DScrollerCompat.java173 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() method in ScrollerCompat
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() method in ScrollerCompat
203 mScroller.fling(startX, startY, velocityX, velocityY, in fling()
/frameworks/base/docs/html/training/custom-views/
Dmaking-interactive.jd48 For example, when users fling a UI object, they should sense friction at the beginning that delays
50 at the end sense momentum that carries the motion beyond the fling.</p>
143 …mber unless they produce physically plausible results. A good example of this is the <em>fling</em>
147 quickly in the direction of the fling, then slowing down, as if the user had pushed on a
155 {@link android.widget.Scroller} class is the basis for handling flywheel-style <em>fling</em>
158 <p>To start a fling, call {@link android.widget.Scroller#fling fling()} with the starting velocity
160 maximum x and y values of the fling. For the velocity value, you can use the value computed for
166 … mScroller.fling(currentX, currentY, velocityX / SCALE, velocityY / SCALE, minX, minY, maxX, maxY);
174 that using this value makes the fling animation too fast. It's common to divide the x and y
178 <p>The call to {@link android.widget.Scroller#fling fling()} sets up the physics model for the fling
[all …]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DStaggeredGridLayoutManagerSnappingTest.java127 assertTrue(fling(velocityDir, velocityDir)); in snapOnFlingSameView()
156 assertTrue(fling(velocityDir, velocityDir)); in snapOnFlingNextView()
209 private boolean fling(final int velocityX, final int velocityY) in fling() method in StaggeredGridLayoutManagerSnappingTest
215 boolean result = mRecyclerView.fling(velocityX, velocityY); in fling()
DLinearLayoutManagerSnappingTest.java121 assertTrue(fling(velocityDir, velocityDir)); in snapOnFlingSameView()
147 assertTrue(fling(velocityDir, velocityDir)); in snapOnFlingNextView()
204 private boolean fling(final int velocityX, final int velocityY) throws Throwable { in fling() method in LinearLayoutManagerSnappingTest
209 boolean result = mRecyclerView.fling(velocityX, velocityY); in fling()
DGridLayoutManagerSnappingTest.java121 assertTrue(fling(velocityDir, velocityDir)); in snapOnFlingSameView()
150 assertTrue(fling(velocityDir, velocityDir)); in snapOnFlingNextView()
211 private boolean fling(final int velocityX, final int velocityY) in fling() method in GridLayoutManagerSnappingTest
217 boolean result = mRecyclerView.fling(velocityX, velocityY); in fling()
DRecyclerViewLayoutTest.java562 private void testScrollFrozen(boolean fling) throws Throwable { in testScrollFrozen() argument
617 if (fling) { in testScrollFrozen()
618 assertFalse("fling should be blocked", fling(horizontalVelocity, verticalVelocity)); in testScrollFrozen()
631 if (fling) { in testScrollFrozen()
632 assertTrue("fling should be started", fling(horizontalVelocity, verticalVelocity)); in testScrollFrozen()
1184 assertTrue("test sanity, fling must run", fling(horizontalVelocity, verticalVelocity)); in scrollInBothDirection()
1296 fling(flingVelocity, flingVelocity)); in scrollInOtherOrientationTest()
1307 private boolean fling(final int velocityX, final int velocityY) throws Throwable { in fling() method in RecyclerViewLayoutTest
1312 boolean result = mRecyclerView.fling(velocityX, velocityY); in fling()
1984 final float fling = vc.getScaledMinimumFlingVelocity() in scrollStateForFling() local
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPanelView.java403 fling(vel, expand, isFalseTouch(x, y)); in endMotionEvent()
619 protected void fling(float vel, boolean expand) { in fling() method in PanelView
620 fling(vel, expand, 1.0f /* collapseSpeedUpFactor */, false); in fling()
623 protected void fling(float vel, boolean expand, boolean expandBecauseOfFalsing) { in fling() method in PanelView
624 fling(vel, expand, 1.0f /* collapseSpeedUpFactor */, expandBecauseOfFalsing); in fling()
627 protected void fling(float vel, boolean expand, float collapseSpeedUpFactor, in fling() method in PanelView
720 fling(mUpdateFlingVelocity, true /* expands */); in onLayout()
838 fling(0, false /* expand */, speedUpFactor, false /* expandBecauseOfFalsing */); in collapse()
846 fling(0, false /* expand */, mNextCollapseSpeedUpFactor,
899 fling(0, true /* expand */); in expand()
DObservableScrollView.java132 public void fling(int velocityY) { in fling() method in ObservableScrollView
134 super.fling(velocityY); in fling()
DKeyguardAffordanceHelper.java331 fling(vel, snapBack || forceSnapBack, mTranslation < 0); in flingWithCurrentVelocity()
343 private void fling(float vel, final boolean snapBack, boolean right) { in fling() method in KeyguardAffordanceHelper
533 fling(0, false, !left); in launchAffordance()
/frameworks/support/compat/tests/java/android/support/v4/widget/
DScrollerCompatTestBase.java63 mScroller.fling(0, 0, 0, 1000, in testTargetReached()
79 mScroller.fling(0, 0, 0, 10000, in testAbort()
/frameworks/base/core/java/android/widget/
DOverScroller.java399 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() method in OverScroller
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() method in OverScroller
445 mScrollerX.fling(startX, velocityX, minX, maxX, overX); in fling()
446 mScrollerY.fling(startY, velocityY, minY, maxY, overY); in fling()
744 void fling(int start, int velocity, int min, int max, int over) { in fling() method in OverScroller.SplineOverScroller
833 fling(start, velocity, positive ? min : start, positive ? start : max, mOver); in startAfterEdge()
DHorizontalScrollView.java662 fling(-initialVelocity); in onTouchEvent()
1581 public void fling(int velocityX) { in fling() method in HorizontalScrollView
1586 mScroller.fling(mScrollX, mScrollY, velocityX, 0, 0, in fling()
DScroller.java419 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() method in Scroller
DNumberPicker.java938 fling(initialVelocity); in onTouchEvent()
1811 private void fling(int velocityY) { in fling() method in NumberPicker
1815 mFlingScroller.fling(0, 0, 0, velocityY, 0, 0, 0, Integer.MAX_VALUE); in fling()
1817 mFlingScroller.fling(0, Integer.MAX_VALUE, 0, velocityY, 0, 0, 0, Integer.MAX_VALUE); in fling()
DScrollView.java1603 public void fling(int velocityY) { in fling() method in ScrollView
1608 mScroller.fling(mScrollX, mScrollY, 0, velocityY, 0, 0, 0, in fling()
1625 fling(velocityY); in flingWithNestedDispatch()
/frameworks/support/design/src/android/support/design/widget/
DHeaderBehavior.java172 fling(parent, child, -getScrollRangeForDragFling(child), 0, yvel); in onTouchEvent()
228 final boolean fling(CoordinatorLayout coordinatorLayout, V layout, int minOffset, in fling() method in HeaderBehavior
239 mScroller.fling( in fling()
/frameworks/base/docs/html/training/gestures/
Dscroll.jd58 after a pan or fling gesture. The {@code InteractiveChart} sample
111 in conjunction with a fling gesture, but they
128 It uses {@link android.widget.OverScroller} to track the fling gesture.
130 after the fling gesture, the app displays a "glow" effect.
176 fling((int) -velocityX, (int) -velocityY);
181 private void fling(int velocityX, int velocityY) {
196 mScroller.fling(
253 // The scroller isn't finished, meaning a fling or programmatic pan
Dmovement.jd98 gesture, such as a fling.</p>
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DTaskStackViewScroller.java147 public void fling(float downScrollP, int downY, int y, int velY, int minY, int maxY, in fling() method in TaskStackViewScroller
155 mScroller.fling(0, y, 0, velY, 0, 0, minY, maxY, 0, overscroll); in fling()
DTaskStackViewTouchHandler.java340 mScroller.fling(mDownScrollP, mDownY, y, velocity, (int) minY, (int) maxY, in handleTouchEvent()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DSnapHelper.java129 mGravityScroller.fling(0, 0, velocityX, velocityY, in calculateScrollDistance()
/frameworks/base/services/core/java/com/android/server/policy/
DSystemGesturesPointerEventListener.java261 mOverscroller.fling(0, 0, (int)velocityX, (int)velocityY, in onFling()
/frameworks/support/core-ui/java/android/support/v4/widget/
DNestedScrollView.java1690 public void fling(int velocityY) { in fling() method in NestedScrollView
1695 mScroller.fling(getScrollX(), getScrollY(), 0, velocityY, 0, 0, 0, in fling()
1709 fling(velocityY); in flingWithNestedDispatch()
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/
DDividerView.java410 fling(position, velocity, avoidDismissStart, logMetrics); in stopDragging()
552 private void fling(int position, float velocity, boolean avoidDismissStart, in fling() method in DividerView
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DActionBarOverlayLayout.java597 mFlingEstimator.fling(0, 0, 0, (int) velocityY, 0, 0, Integer.MIN_VALUE, Integer.MAX_VALUE);

12