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

12

/frameworks/support/compat/src/main/java/androidx/core/widget/
H A DScrollerCompat.java27 * current device's preferred scroll physics and fling behavior. It offers a subset of
187 * Start scrolling based on a fling gesture. The distance travelled will
188 * depend on the initial velocity of the fling.
192 * @param velocityX Initial velocity of the fling (X) measured in pixels per
194 * @param velocityY Initial velocity of the fling (Y) measured in pixels per
205 * @deprecated Use {@link OverScroller#fling(int, int, int, int, int, int, int, int)} directly.
208 public void fling(int startX, int startY, int velocityX, int velocityY, method in class:ScrollerCompat
210 mScroller.fling(startX, startY, velocityX, velocityY, minX, maxX, minY, maxY);
214 * Start scrolling based on a fling gesture. The distance travelled will
215 * depend on the initial velocity of the fling
240 public void fling(int startX, int startY, int velocityX, int velocityY, method in class:ScrollerCompat
[all...]
H A DNestedScrollView.java823 * If being flinged and user touches, stop the fling. isFinished
1815 public void fling(int velocityY) { method in class:NestedScrollView
1818 mScroller.fling(getScrollX(), getScrollY(), // start
1834 fling(velocityY);
/frameworks/support/compat/src/androidTest/java/androidx/core/widget/
H A DScrollerCompatTestBase.java56 mScroller.fling(0, 0, 0, 1000,
72 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.java485 fling(vel, expand, isFalseTouch(x, y));
690 * @return whether a fling should expands the panel; contracts otherwise
724 protected void fling(float vel, boolean expand) { method in class:PanelView
725 fling(vel, expand, 1.0f /* collapseSpeedUpFactor */, false);
728 protected void fling(float vel, boolean expand, boolean expandBecauseOfFalsing) { method in class:PanelView
729 fling(vel, expand, 1.0f /* collapseSpeedUpFactor */, expandBecauseOfFalsing);
732 protected void fling(float vel, boolean expand, float collapseSpeedUpFactor, method in class:PanelView
839 fling(mUpdateFlingVelocity, true /* expands */);
971 fling(0, false /* expand */, speedUpFactor, false /* expandBecauseOfFalsing */);
983 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
540 fling(0, false, !left);
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DGridLayoutManagerSnappingTest.java122 assertTrue(fling(velocityDir, velocityDir));
149 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.java144 assertTrue(fling(velocityDir, velocityDir));
169 assertTrue(fling(velocityDir, velocityDir));
240 private boolean fling(final int velocityX, final int velocityY) throws Throwable { method in class:LinearLayoutManagerSnappingTest
245 boolean result = mRecyclerView.fling(velocityX, velocityY);
H A DStaggeredGridLayoutManagerSnappingTest.java162 assertTrue(fling(velocityDir, velocityDir));
189 assertTrue(fling(velocityDir, velocityDir));
279 private boolean fling(final int velocityX, final int velocityY) method in class:StaggeredGridLayoutManagerSnappingTest
285 boolean result = mRecyclerView.fling(velocityX, velocityY);
H A DPagerSnapHelperTest.java137 // Scroll at one pixel in the correct direction to allow fling snapping to the next view.
145 assertTrue(fling(velocityDir, velocityDir));
188 // Scroll at one pixel in the correct direction to allow fling snapping to the next view.
196 assertTrue(fling(velocityDir, velocityDir));
271 private boolean fling(final int velocityX, final int velocityY) throws Throwable { method in class:PagerSnapHelperTest
276 boolean result = mRecyclerView.fling(velocityX, velocityY);
H A DRecyclerViewLayoutTest.java1137 private void testScrollFrozen(boolean fling) throws Throwable { argument
1192 if (fling) {
1193 assertFalse("fling should be blocked", fling(horizontalVelocity, verticalVelocity));
1206 if (fling) {
1207 assertTrue("fling should be started", fling(horizontalVelocity, verticalVelocity));
1844 assertTrue("test sanity, fling must run", fling(horizontalVelocity, verticalVelocity));
1888 // Verify that the non-touch events were dispatched by the fling settl
2039 private boolean fling(final int velocityX, final int velocityY) throws Throwable { method in class:RecyclerViewLayoutTest
[all...]
/frameworks/base/core/java/android/widget/
H A DOverScroller.java68 * @param flywheel If true, successive fling motions will keep on increasing scroll speed.
110 * @param flywheel If true, successive fling motions will keep on increasing scroll speed.
207 * Returns where the scroll will end. Valid only for "fling" scrolls.
216 * Returns where the scroll will end. Valid only for "fling" scrolls.
401 public void fling(int startX, int startY, int velocityX, int velocityY, method in class:OverScroller
403 fling(startX, startY, velocityX, velocityY, minX, maxX, minY, maxY, 0, 0);
407 * Start scrolling based on a fling gesture. The distance traveled will
408 * depend on the initial velocity of the fling.
412 * @param velocityX Initial velocity of the fling (X) measured in pixels per
414 * @param velocityY Initial velocity of the fling (
433 public void fling(int startX, int startY, int velocityX, int velocityY, method in class:OverScroller
746 void fling(int start, int velocity, int min, int max, int over) { method in class:OverScroller.SplineOverScroller
[all...]
H A DHorizontalScrollView.java588 * If being flinged and user touches, stop the fling. isFinished
670 fling(-initialVelocity);
1596 public void fling(int velocityX) { method in class:HorizontalScrollView
1601 mScroller.fling(mScrollX, mScrollY, velocityX, 0, 0,
H A DScrollView.java637 * If being flinged and user touches, stop the fling. isFinished
1620 public void fling(int velocityY) { method in class:ScrollView
1625 mScroller.fling(mScrollX, mScrollY, 0, velocityY, 0, 0, 0,
1629 mFlingStrictSpan = StrictMode.enterCriticalSpan("ScrollView-fling");
1642 fling(velocityY);
H A DNumberPicker.java114 * The coefficient by which to adjust (divide) the max fling velocity.
532 * The user had previously been scrolling using touch and performed a fling.
768 // create the fling and adjust scrollers
949 fling(initialVelocity);
1844 private void fling(int velocityY) { method in class:NumberPicker
1848 mFlingScroller.fling(0, 0, 0, velocityY, 0, 0, 0, Integer.MAX_VALUE);
1850 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...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DTaskStackViewScroller.java157 * Starts a fling that is coordinated with the {@link TaskStackViewTouchHandler}.
159 public void fling(float downScrollP, int downY, int y, int velY, int minY, int maxY, method in class:TaskStackViewScroller
162 Log.d(TAG, "fling: " + downScrollP + ", downY: " + downY + ", y: " + y +
167 mScroller.fling(0, y, 0, velY, 0, 0, minY, maxY, 0, overscroll);
220 // Calculate the fling and snap to closest task from final y position, computeScroll()
223 fling(0 /* downScrollP */, 0 /* downY */, algorithm.percentageToScroll(stackScroll),
335 /** Stops the scroller and any current fling. */
H A DTaskStackViewTouchHandler.java190 * Finishes all scroll-fling and non-dismissing animations currently running.
347 mScroller.fling(mDownScrollP, mDownY, y, velocity, (int) minY, (int) maxY,
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DQSScrollLayout.java176 public void onDragEnd(float velocity, boolean fling) { argument
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
H A DNotificationShadeActivity.java69 mScroller.fling(0, mFullHeight, 0, (int) vY, 0, 0, 0, getHeight());
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
H A DSnapHelper.java30 * SnapHelper tries to handle fling as well but for this to work properly, the
32 * you should override {@link #onFling(int, int)} and handle fling manually.
138 mGravityScroller.fling(0, 0, velocityX, velocityY,
146 * Helper method to facilitate for snapping triggered by a fling.
179 * snapping was triggered by a scroll and when the fling is at its final stages.
255 * This method is called when the {@link SnapHelper} has intercepted a fling and it needs
276 * after a fling and requires a reference view from the current set of child views.
283 * @return the target view to which to snap on fling or end of scroll
294 * @param velocityX fling velocity on the horizontal axis
295 * @param velocityY fling velocit
[all...]
/frameworks/support/wear/src/main/java/androidx/wear/widget/
H A DScrollManager.java163 return mRecyclerView.fling(0, (int) (VELOCITY_MULTIPLIER * velocityY));
/frameworks/base/services/core/java/com/android/server/policy/
H A DSystemGesturesPointerEventListener.java261 mOverscroller.fling(0, 0, (int)velocityX, (int)velocityY,
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/touch/
H A DSwipeDetector.java52 * The minimum release velocity in pixels per millisecond that triggers fling..
176 void onDragEnd(float velocity, boolean fling); argument
/frameworks/base/core/java/com/android/internal/widget/
H A DActionBarOverlayLayout.java670 mFlingEstimator.fling(0, 0, 0, (int) velocityY, 0, 0, Integer.MIN_VALUE, Integer.MAX_VALUE);

Completed in 140 milliseconds

12