Searched refs:fling (Results 1 - 25 of 31) sorted by relevance

12

/frameworks/support/compat/java/android/support/v4/widget/
H A DScrollerCompat.java30 * current device's preferred scroll physics and fling behavior. It offers a subset of
155 * Start scrolling based on a fling gesture. The distance travelled will
156 * depend on the initial velocity of the fling.
160 * @param velocityX Initial velocity of the fling (X) measured in pixels per
162 * @param velocityY Initial velocity of the fling (Y) measured in pixels per
173 public void fling(int startX, int startY, int velocityX, int velocityY, method in class:ScrollerCompat
175 mScroller.fling(startX, startY, velocityX, velocityY, minX, maxX, minY, maxY);
179 * Start scrolling based on a fling gesture. The distance travelled will
180 * depend on the initial velocity of the fling.
184 * @param velocityX Initial velocity of the fling (
201 public void fling(int startX, int startY, int velocityX, int velocityY, method in class:ScrollerCompat
[all...]
/frameworks/support/compat/tests/java/android/support/v4/widget/
H A DScrollerCompatTestBase.java63 mScroller.fling(0, 0, 0, 1000,
79 mScroller.fling(0, 0, 0, 10000,
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DObservableScrollView.java132 public void fling(int velocityY) { method in class:ObservableScrollView
134 super.fling(velocityY);
H A DPanelView.java404 fling(vel, expand, isFalseTouch(x, y));
586 * @return whether a fling should expands the panel; contracts otherwise
620 protected void fling(float vel, boolean expand) { method in class:PanelView
621 fling(vel, expand, 1.0f /* collapseSpeedUpFactor */, false);
624 protected void fling(float vel, boolean expand, boolean expandBecauseOfFalsing) { method in class:PanelView
625 fling(vel, expand, 1.0f /* collapseSpeedUpFactor */, expandBecauseOfFalsing);
628 protected void fling(float vel, boolean expand, float collapseSpeedUpFactor, method in class:PanelView
721 fling(mUpdateFlingVelocity, true /* expands */);
839 fling(0, false /* expand */, speedUpFactor, false /* expandBecauseOfFalsing */);
847 fling(
[all...]
H A DKeyguardAffordanceHelper.java331 fling(vel, snapBack || forceSnapBack, mTranslation < 0);
343 private void fling(float vel, final boolean snapBack, boolean right) { method in class:KeyguardAffordanceHelper
533 fling(0, false, !left);
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DGridLayoutManagerSnappingTest.java121 assertTrue(fling(velocityDir, velocityDir));
150 assertTrue(fling(velocityDir, velocityDir));
223 private boolean fling(final int velocityX, final int velocityY) method in class:GridLayoutManagerSnappingTest
229 boolean result = mRecyclerView.fling(velocityX, velocityY);
H A DLinearLayoutManagerSnappingTest.java147 assertTrue(fling(velocityDir, velocityDir));
173 assertTrue(fling(velocityDir, velocityDir));
244 private boolean fling(final int velocityX, final int velocityY) throws Throwable { method in class:LinearLayoutManagerSnappingTest
249 boolean result = mRecyclerView.fling(velocityX, velocityY);
H A DStaggeredGridLayoutManagerSnappingTest.java167 assertTrue(fling(velocityDir, velocityDir));
196 assertTrue(fling(velocityDir, velocityDir));
286 private boolean fling(final int velocityX, final int velocityY) method in class:StaggeredGridLayoutManagerSnappingTest
292 boolean result = mRecyclerView.fling(velocityX, velocityY);
H A DRecyclerViewLayoutTest.java562 private void testScrollFrozen(boolean fling) throws Throwable { argument
617 if (fling) {
618 assertFalse("fling should be blocked", fling(horizontalVelocity, verticalVelocity));
631 if (fling) {
632 assertTrue("fling should be started", fling(horizontalVelocity, verticalVelocity));
1184 assertTrue("test sanity, fling must run", fling(horizontalVelocity, verticalVelocity));
1295 assertEquals("fling starte
1307 private boolean fling(final int velocityX, final int velocityY) throws Throwable { method in class:RecyclerViewLayoutTest
[all...]
/frameworks/support/design/src/android/support/design/widget/
H A DHeaderBehavior.java172 fling(parent, child, -getScrollRangeForDragFling(child), 0, yvel);
228 final boolean fling(CoordinatorLayout coordinatorLayout, V layout, int minOffset, method in class:HeaderBehavior
239 mScroller.fling(
256 * Called when a fling has finished, or the fling was initiated but there wasn't enough
/frameworks/base/core/java/android/widget/
H A DOverScroller.java68 * @param flywheel If true, successive fling motions will keep on increasing scroll speed.
109 * @param flywheel If true, successive fling motions will keep on increasing scroll speed.
205 * Returns where the scroll will end. Valid only for "fling" scrolls.
214 * Returns where the scroll will end. Valid only for "fling" scrolls.
399 public void fling(int startX, int startY, int velocityX, int velocityY, method in class:OverScroller
401 fling(startX, startY, velocityX, velocityY, minX, maxX, minY, maxY, 0, 0);
405 * Start scrolling based on a fling gesture. The distance traveled will
406 * depend on the initial velocity of the fling.
410 * @param velocityX Initial velocity of the fling (X) measured in pixels per
412 * @param velocityY Initial velocity of the fling (
431 public void fling(int startX, int startY, int velocityX, int velocityY, method in class:OverScroller
744 void fling(int start, int velocity, int min, int max, int over) { method in class:OverScroller.SplineOverScroller
[all...]
H A DHorizontalScrollView.java580 * If being flinged and user touches, stop the fling. isFinished
662 fling(-initialVelocity);
1581 public void fling(int velocityX) { method in class:HorizontalScrollView
1586 mScroller.fling(mScrollX, mScrollY, velocityX, 0, 0,
H A DScrollView.java627 * If being flinged and user touches, stop the fling. isFinished
1603 public void fling(int velocityY) { method in class:ScrollView
1608 mScroller.fling(mScrollX, mScrollY, 0, velocityY, 0, 0, 0,
1612 mFlingStrictSpan = StrictMode.enterCriticalSpan("ScrollView-fling");
1625 fling(velocityY);
H A DNumberPicker.java115 * The coefficient by which to adjust (divide) the max fling velocity.
529 * The user had previously been scrolling using touch and performed a fling.
764 // create the fling and adjust scrollers
941 fling(initialVelocity);
1814 private void fling(int velocityY) { method in class:NumberPicker
1818 mFlingScroller.fling(0, 0, 0, velocityY, 0, 0, 0, Integer.MAX_VALUE);
1820 mFlingScroller.fling(0, Integer.MAX_VALUE, 0, velocityY, 0, 0, 0, Integer.MAX_VALUE);
H A DScroller.java30 * animation&mdash;for example, in response to a fling gesture. Scrollers track
51 * whether the scroller is finished. If it isn't, it means that a fling or
278 * Returns where the scroll will end. Valid only for "fling" scrolls.
287 * Returns where the scroll will end. Valid only for "fling" scrolls.
401 * Start scrolling based on a fling gesture. The distance travelled will
402 * depend on the initial velocity of the fling.
406 * @param velocityX Initial velocity of the fling (X) measured in pixels per
408 * @param velocityY Initial velocity of the fling (Y) measured in pixels per
419 public void fling(int startX, int startY, int velocityX, int velocityY, method in class:Scroller
421 // Continue a scroll or fling i
[all...]
H A DGallery.java119 * Executes the delta scrolls from a fling or scroll movement.
136 * When fling runnable runs, it resets this to false. Any method along the
138 * remaining fling. For example, if we've reached either the leftmost or
150 * fling.
562 // We haven't been callbacking during the fling, so do it now
1043 * the fling, and this scroll could possibly be a fling. Don't
1044 * do selection changes until we're sure it is not a fling.
1063 // Kill any existing fling/scroll
1447 * Responsible for fling behavio
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DTaskStackViewScroller.java145 * Starts a fling that is coordinated with the {@link TaskStackViewTouchHandler}.
147 public void fling(float downScrollP, int downY, int y, int velY, int minY, int maxY, method in class:TaskStackViewScroller
150 Log.d(TAG, "fling: " + downScrollP + ", downY: " + downY + ", y: " + y +
155 mScroller.fling(0, y, 0, velY, 0, 0, minY, maxY, 0, overscroll);
265 /** Stops the scroller and any current fling. */
H A DTaskStackViewTouchHandler.java191 * Finishes all scroll-fling and non-dismissing animations currently running.
340 mScroller.fling(mDownScrollP, mDownY, y, velocity, (int) minY, (int) maxY,
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DSnapHelper.java31 * SnapHelper tries to handle fling as well but for this to work properly, the
33 * you should override {@link #onFling(int, int)} and handle fling manually.
139 mGravityScroller.fling(0, 0, velocityX, velocityY,
147 * Helper method to facilitate for snapping triggered by a fling.
180 * snapping was triggered by a scroll and when the fling is at its final stages.
237 * This method is called when the {@link SnapHelper} has intercepted a fling and it needs
258 * after a fling and requires a reference view from the current set of child views.
265 * @return the target view to which to snap on fling or end of scroll
276 * @param velocityX fling velocity on the horizontal axis
277 * @param velocityY fling velocit
[all...]
/frameworks/base/services/core/java/com/android/server/policy/
H A DSystemGesturesPointerEventListener.java261 mOverscroller.fling(0, 0, (int)velocityX, (int)velocityY,
/frameworks/support/core-ui/java/android/support/v4/widget/
H A DNestedScrollView.java746 * If being flinged and user touches, stop the fling. isFinished
1699 public void fling(int velocityY) { method in class:NestedScrollView
1704 mScroller.fling(getScrollX(), getScrollY(), 0, velocityY, 0, 0, 0,
1718 fling(velocityY);
H A DViewDragHelper.java48 * A view is not currently being dragged or animating as a result of a fling/snap.
59 * A view is currently settling into place as a result of a fling or
186 * The fling velocity is also supplied, if relevant. The velocity values may
189 * <p>Calling code may decide to fling or otherwise release the view to let it
690 * Settle the captured view based on standard free-moving fling behavior.
705 mScroller.fling(mCapturedView.getLeft(), mCapturedView.getTop(),
/frameworks/base/core/java/com/android/internal/widget/
H A DActionBarOverlayLayout.java655 mFlingEstimator.fling(0, 0, 0, (int) velocityY, 0, 0, Integer.MIN_VALUE, Integer.MAX_VALUE);
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DActionBarOverlayLayout.java601 mFlingEstimator.fling(0, 0, 0, (int) velocityY, 0, 0, Integer.MIN_VALUE, Integer.MAX_VALUE);
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/
H A DDividerView.java410 fling(position, velocity, avoidDismissStart, logMetrics);
552 private void fling(int position, float velocity, boolean avoidDismissStart, method in class:DividerView

Completed in 731 milliseconds

12